22、【Ubuntu】 Firefly Ubuntu开发入门之(7)固化开发板上的Ubuntu系统
踩坑的过程如下:
烧Firefly-RK3288-Reload_Ubuntu14.04_201612101121.img,系统可以正常跑起来,我用git clone
https://bitbuclollipopket.org/T-Firefly/firefly-rk3288-kernel.git lollipop分支编译出来的zImage,加上Firefly-RK3288-Reload_Ubuntu14.04_201612101121.img提取出来的ramdisk,生成的boot.img烧录到板子上,系统无法启动,出现wait-for-root /dev/block/mtd/by-name/linuxroot, retry 30...。
我试过修改paramter的root参数,把/dev/block/mtd/by-name/linuxroot修改为/dev/mmcblk0p5也还是同样问题。感觉时emmc挂载不正常。请问如何修改?
另外,如果使用git clone
https://github.com/TeeFirefly/initrd.git 编译出来的initrd.img的话,系统在uboot阶段就挂了,提示sha mismatch
Hit any key to stop autoboot: 0
boot/recovery image sha mismatch!
Unable to boot:boot
try to start recovery
failed to find part:recovery
'recovery' does not seem to be a partition nor an address
Unable to boot:recovery
try to start backup
failed to find part:kernel
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:backup
try to start rockusb
之后无奈的想编个android跑跑吧,把uboot、ramdisk什么之类的都替换到ubuntu上是不是就好了。于是乎编了lollipop,全部烧到了我的rk3288 reload板上,系统成功运行。。。。
接着重新把Firefly-RK3288-Reload_Ubuntu14.04_201612101121.img烧回rk3288 reload。然后做替换工作:
1、uboot替换为lollipop上编译出来的bin文件,系统能跑起来,说明我编uboot没问题;
2、从Firefly-RK3288-Reload_Ubuntu14.04_201612101121.img解压出kernel image,用lollipop上编译出来的ramdisk.img进行打包生成boot.img,
烧到板子上,系统能正常运行,说明我编译的ramdisk也没问题;
打包命令: rk_mkbootimg --kernel zImage --ramdisk ramdisk.img -o boot.img
3、将2中的ramdisk与我编译生成的kernel(zImage)打包成boot.img烧到板子上,系统只能跑到一半
[ 0.898660] usbcore: registered new interface driver hso
[ 0.898715] usbcore: registered new interface driver asix
[ 0.898763] usbcore: registered new interface driver ax88179_178a
[ 0.898816] usbcore: registered new interface driver cdc_ether
[ 0.898866] usbcore: registered new interface driver cdc_eem
[ 0.898913] usbcore: registered new interface driver dm9601
[ 0.898965] usbcore: registered new interface driver dm9620
[ 0.899022] usbcore: registered new interface driver smsc75xx
[ 0.899077] usbcore: registered new interface driver smsc95xx
[ 0.899127] usbcore: registered new interface driver gl620a
[ 0.899175] usbcore: registered new interface driver net1080
[ 0.899223] usbcore: registered new interface driver plusb
[ 0.899278] usbcore: registered new interface driver rndis_host
[ 0.899377] usbcore: registered new interface driver cdc_subset
[ 0.899432] usbcore: registered new interface driver zaurus
[ 0.899485] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[ 0.899560] usbcore: registered new interfacee
跑到这里就停住了.
kernel 用的时lollipop的kernel,编译命令如下:
make firefly-rk3288-reload-linux_defconfigmake -j8 firefly-rk3288-reload-linux.img
如果使用firefly-3.14-kernel的话,系统跑到starting kernel..... 就停住了。
请各位大神帮忙看看是什么问题,谢谢!!!
附件为官方ubuntu固件以及替换我自己的kernel的固件,内核打印的log。