1、修改内核配置:
官方blog上说修改2008-02-10的内核配置已经包含了CONFIG_MMC_S3C=y,且默认已经支持了ext3文件系统,默认的2.6.22.5内核已经支持以上说的2项,只要把卡格式化成ext3的就可以从sd卡启动了。
看你编译rootfs的org.openembedded.dev的版本了,我写的那片文章是升级到最新的版本,也就是默认的2.6.22.5内核版本,于是修改 $OEDIR/org.openembedded.org/packages/linux/linux-openmoko/defconfig-2.6.22.5.
确保CONFIG_MMC_S3C=m改成:
CONFIG_MMC_S3C=y
还有,如果需要内核支持ext2文件系统的话,那么确保
CONFIG_EXT2_FS=m
改成:
CONFIG_EXT2_FS=y
然后清理一下上次编译rootfs和内核的遗留文件:
make clean-package-linux-openmoko
2、把IMAGE_FSTYPES = "jffs2 tar"加到 $OEDIR/build/conf/local.conf
3、bitbake openmoko-devel-image 编译新的内核和rootfs
等待若干喝咖啡,吃饭,加上睡觉的时间之后编译完成了
4、给sd卡分区,把sd卡的第一个分区格式化成ext3或者ext2(如果你的sd有好几个分区的话),因为以上我们已经把ext2和ext3的支持都加到了内核中,所以这里用哪个都可以,
然后挂载sd卡,把编译出来的rootfs解压到卡上,例如你的sd卡挂载到/media/card
tar -xvf openmoko-devel-image-?????.rootfs.tar -C /mnt/moko/
然后,拷贝内核成/mnt/moko/boot/uImage
5、安装aux和power键进入boot menu模式添加bootmenu 启动菜单:
GTA01Bv4 # setenv sd_image_name uImage (如果你第4步的内核的名字不是uImage的话,这里也要改成相应的)
GTA01Bv4 # saveenv
Step 4: Boot into the new system
Power off your device, insert the SD card and boot into the boot menu. You should have an entry called "Boot from SD" which does exactly that. :-)
Installing without removing your SD card
Being the lazy person that I am, at one point I tried copying an image over to the micro SD card while still in my phone. This didn't work so well, primarily due to .
Now that this bug has been resolved, the process becomes relatively simple:
- Boot to your internal flash partition (not the SD card.) Make sure you're running a release that includes the fix to bug 677!
- Plug in your USB and set up [USB Networking].
- Clean off your currently installed microSD card and install the new image:
ssh root@192.168.0.202 "rm -rf /media/card/*"
cat openmoko-devel-image-fic-gta01-20070313022035.rootfs.tar | ssh root@192.168.0.202 tar -C /media/card -xv
scp uImage-fic-gta01-latest.bin root@192.168.0.202:/media/card/boot/uImage
如果你的是SDHC卡,那么请看官方wiki
禁止udev自动挂载sd卡到/media/card目录,解决方法:
echo /dev/mmcblk >> /etc/udev/mount.blacklist
Remarks on Kernel Parameters
loglevel
Some people suggested adding:
loglevel=8
top the kernel command line. This makes the boot process extremely slow because the framebuffer (the neo display in text mode) has to print out tons of lines of debug messages like:
s3c2410-sdi s3c2410-sdi: ......
mmc0: ....
rootdelay
Is suggested to be added when the root filesystem is on the SD card and not in the NAND flash. Also see:
阅读(1902) | 评论(0) | 转发(0) |