Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:linux_on_ipaq_hx4700 [2012/01/03 18:14] admin |
projects:linux_on_ipaq_hx4700 [2013/02/02 11:20] (current) |
||
---|---|---|---|
Line 54: | Line 54: | ||
$ MACHINE=hx4700 ./oebb.sh bitbake x11-gpe-image | $ MACHINE=hx4700 ./oebb.sh bitbake x11-gpe-image | ||
</code> | </code> | ||
- | Kernel and compressed root filesystem are located in **${PROJECT_DIR}/setup-scripts/build/tmp-angstrom_2008_1/deploy/glibc/images/hx4700/** directory, packages can be found in **${PROJECT_DIR}/setup-scripts/build/tmp-angstrom_2008_1/deploy/glibc/ipk/** directory. | + | ==== Deploy (boot from Compact Flash) ==== |
+ | * Partition 4GB Compact Flash card | ||
+ | Let's try to boot Linux directly from WinCE using [[http://xdandroid.com/wiki/HaRET|HaRET]] bootloader. In order to do that, create two fdisk partitions on CF card. The first one with FAT filesystem containing HaRET bootloader along with its configuration file and Linux kernel. The second one is formatted as ext2 and will contain Linux root filesystem. | ||
+ | <code> | ||
+ | # fdisk -l /dev/sdd | ||
+ | |||
+ | Disk /dev/sdd: 3997 MB, 3997163520 bytes | ||
+ | 123 heads, 62 sectors/track, 1023 cylinders, total 7806960 sectors | ||
+ | Units = sectors of 1 * 512 = 512 bytes | ||
+ | Sector size (logical/physical): 512 bytes / 512 bytes | ||
+ | I/O size (minimum/optimal): 512 bytes / 512 bytes | ||
+ | Disk identifier: 0x00006d65 | ||
+ | |||
+ | Device Boot Start End Blocks Id System | ||
+ | /dev/sdd1 2048 67583 32768 6 FAT16 | ||
+ | /dev/sdd2 67584 7804927 3868672 83 Linux | ||
+ | # | ||
+ | </code> | ||
+ | * Populate FAT partition with HaRET and Linux kernel | ||
+ | <code> | ||
+ | # mkdir /tmp/fat16 | ||
+ | # mount /dev/sdd1 /tmp/fat16 | ||
+ | # wget http://pda-linux.googlecode.com/files/haret-0.5.2.exe -O /tmp/fat16/haret-0.5.2.exe | ||
+ | # echo 'set kernel "zImage-2.6.21-hh20-r26-hx4700.bin"' > /tmp/fat16/startup.txt | ||
+ | # echo 'set cmdline "root=/dev/hda2 rootdelay=10 console=ttyS0,115200n8 console=tty0 psplash=false"' >> /tmp/fat16/startup.txt | ||
+ | # echo 'bootlinux' >> /tmp/fat16/startup.txt | ||
+ | # cp ${PROJECT_DIR}/setup-scripts/build/tmp-angstrom_2008_1/deploy/glibc/images/hx4700/zImage-2.6.21-hh20-r26-hx4700.bin /tmp/fat16/ | ||
+ | # sync | ||
+ | # umount /tmp/fat16 | ||
+ | </code> | ||
+ | * Populate ext2 partition with root filesystem | ||
+ | <code> | ||
+ | # mkdir /tmp/ext2 | ||
+ | # mount /dev/sdd2 /tmp/ext2 | ||
+ | # cd /tmp/ext2 | ||
+ | # tar xvjpf ${PROJECT_DIR}/setup-scripts/build/tmp-angstrom_2008_1/deploy/glibc/images/hx4700/Angstrom-x11-gpe-image-glibc-ipk-2011.03-hx4700.rootfs.tar.bz2 | ||
+ | # cd ~ | ||
+ | # sync | ||
+ | # umount /tmp/ext2 | ||
+ | </code> | ||
+ | * Boot Linux by executing haret binary from WinCE |