Zoom2 (Beta) Hardware and SoftwareSetup
--------By Fendy_Dai
1. Prepare SD card for booting.
§ Copy MLO, u-boot and uImage in partition 1 (FAT32) of SD card
2. Prepare filesystem and install on SD card
§ For SD card based filesystem
o insert SD Card
o mkdir /tmp/ mmc 1
o mkdir /tmp/mmc2
o mount /dev/sdx1 mmc1
o mount /dev/sd x 2 mmc 2 à here replace ‘x’ with the device on your host ex: sdb2 or sdc2
o cd /home/ wenjuan/android/out/target/product/zoom2
o su root
o (cd root; tar cf - * ) | (cd /tmp/mmc2; tar xfp -)
o tar cf – system | (cd /tmp/mmc2; tar xfp -)
o cd /tmp/mmc2
o cp init.omap zoom2 .rc init.rc
o sudo ln – s ./system/etc ./etc
o sudo chmod – R 777 system
o cd dev
o mknod – m 660 null 1 3
o mknod – m 660 console 5 1
o cd ..
o sudo vim init.rc
o # playmp3
o umount /dev/sdx2
o Eject the card
3. Setup u-boot environment variables.
§ Insert SD card into the card reader on Zoom2
§ nand unlock
§ setenv bootargs console=ttyS 3 ,115200n8 root=/dev/mmcblk0p2 rw rootdelay=1 ip= off init=./init devfs=mount
§ setenv bootcmd = ’ mmcinit;fatload mmc 0 0x80800000 uImage;bootm 80800000 ’ :
§ setenv bootfile=uImage;
§ saveenv
§ boot
4. The kernel will boot using the Filesystem provided and you will get the kernel prompt on the console