CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 12308|回复: 5

[折腾]CC-A80升级u-boot

[复制链接]
发表于 2017-9-27 22:08:27 | 显示全部楼层 |阅读模式
今天有空折腾一下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,重启后报错
[mmc]: ***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




回复

使用道具 举报

 楼主| 发表于 2017-9-28 22:52:05 | 显示全部楼层
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需要更新吗,这个该怎么弄?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-9-28 23:06:18 | 显示全部楼层
用老的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]: mmc exit start
[      5.854][mmc]: mmc 2 old config clk 0
[      5.864][mmc]: mmc 2 old config clk 0
[      5.876][mmc]: mmc 2 cmd 8 timeout, err 100
[      5.883][mmc]: mmc 2 mmc cmd 8 err 0x00000100
[      5.887][mmc]: mmc send if cond failed
[      5.891][mmc]: mmc 2 cmd 55 timeout, err 100
[      5.897][mmc]: mmc 2 mmc cmd 55 err 0x00000100
[      5.901][mmc]: send app cmd failed
[      5.914][mmc]: mmc 2 exit ok
[      5.917]
Starting kernel ...

编的uImage,加载点抄的原来lichee中的配置
make uImage ARCH=arm CROSS_COMPILE=armv7-unknown-linux-gnueabihf- LOADADDR=0x20008000

论坛好冷清啊,希望有大神看到能够解答一下,谢谢
回复 支持 反对

使用道具 举报

发表于 2017-9-29 10:47:52 | 显示全部楼层
没这样搞过,
不过既然u-boot 官方支持的,应该能进入uboot 的,但ERROR! NOT find the head of uboot.
Ready to disable icache.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-10-9 12:55:07 | 显示全部楼层
@allen 发表于 2017-9-29 10:47
没这样搞过,
不过既然u-boot 官方支持的,应该能进入uboot 的,但ERROR! NOT find the head of uboot.
Rea ...

是不是boot0需要升级呢?如果可以的话还请帮忙咨询一下allwinner厂家,是不是有更新,谢谢。
回复 支持 反对

使用道具 举报

发表于 2017-10-13 20:05:58 | 显示全部楼层
suddenkiller 发表于 2017-10-9 12:55
是不是boot0需要升级呢?如果可以的话还请帮忙咨询一下allwinner厂家,是不是有更新,谢谢。
...

allwinner厂家 这就不支持A80 了,官网都下架A80了,而且他们也不管linux 系统的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-3-29 20:36 , Processed in 0.023695 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部