[折腾]CC-A80升级u-boot
今天有空折腾一下cb4,发现要用官方的内核就必须要升级u-boot。于是在u-boot官网下到代码u-boot-2017.09.tar.bz2,解压后发现已经有对cubieboard4的支持,用ct-ng做了个工具链编译,其中遇到一些依赖问题,安装相应的包后解决,编译成功后得到以下几个文件: u-boot-sunxi-with-spl.bin, u-boot-dtb.bin,u-boot-nodtb.bin,u-boot.bin按照之前的方法放到盒子上:dd if=u-boot.bin of=/dev/mmcblk1 bs=1k seek=19096,重启后报错
: ***SD/MMC 2 init OK!!!***
sdcard 2 init ok
ERROR! NOT find the head of uboot.
Ready to disable icache.
发现以前是需要做个转换的,不知道是否必要,做个记录改天再试
cp -fv chips/sun9iw1p1/configs/optimus/sys_config.fex out/sys_config.fex
cp -fv chips/sun9iw1p1/bin/u-boot-sun9iw1p1.bin out/u-boot.fex
unix2dos out/sys_config.fex
pctools/linux/mod_update/script out/sys_config.fex
pctools/linux/mod_update/update_uboot out/u-boot.fex out/sys_config.bin
patch uboot报错:
pctools/linux/mod_update/update_uboot out/u-boot.fex out/sys_config.bin
update uboot error : uboot pre checksum error
update uboot error: update error
难道是boot0需要更新吗,这个该怎么弄?
用老的u-boot直接上新内核会挂住:
## Booting kernel from Legacy Image at 20007800 ...
Image Name: Linux-4.13.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2859736 Bytes = 2.7 MiB
Load Address: 20008000
Entry Point:20008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
[ 5.850]: mmc exit start
[ 5.854]: mmc 2 old config clk 0
[ 5.864]: mmc 2 old config clk 0
[ 5.876]: mmc 2 cmd 8 timeout, err 100
[ 5.883]: mmc 2 mmc cmd 8 err 0x00000100
[ 5.887]: mmc send if cond failed
[ 5.891]: mmc 2 cmd 55 timeout, err 100
[ 5.897]: mmc 2 mmc cmd 55 err 0x00000100
[ 5.901]: send app cmd failed
[ 5.914]: mmc 2 exit ok
[ 5.917]
Starting kernel ...
编的uImage,加载点抄的原来lichee中的配置
make uImage ARCH=arm CROSS_COMPILE=armv7-unknown-linux-gnueabihf- LOADADDR=0x20008000
论坛好冷清啊,希望有大神看到能够解答一下,谢谢
没这样搞过,
不过既然u-boot 官方支持的,应该能进入uboot 的,但ERROR! NOT find the head of uboot.
Ready to disable icache.
@allen 发表于 2017-9-29 10:47 static/image/common/back.gif
没这样搞过,
不过既然u-boot 官方支持的,应该能进入uboot 的,但ERROR! NOT find the head of uboot.
Rea ...
是不是boot0需要升级呢?如果可以的话还请帮忙咨询一下allwinner厂家,是不是有更新,谢谢。
suddenkiller 发表于 2017-10-9 12:55 static/image/common/back.gif
是不是boot0需要升级呢?如果可以的话还请帮忙咨询一下allwinner厂家,是不是有更新,谢谢。
...
allwinner厂家 这就不支持A80 了,官网都下架A80了,而且他们也不管linux 系统的
页:
[1]