您尚未登录。

楼主 #1 2019-04-26 14:23:49

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

编译 V3s 2019 版本的 u-boot

1. 下载最新版本 arm linux gcc 7.4.1

cd /usr/local/
wget https://releases.linaro.org/components/toolchain/binaries/7.4-2019.02/arm-linux-gnueabihf/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf.tar.xz
tar xvf gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf.tar.xz
export PATH=/usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/:$PATH

2. 克隆 u-boot 源码:

git clone https://github.com/u-boot/u-boot.git

3. 编译:

###生成默认配置文件###
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig

###编译###
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make




离线

楼主 #2 2019-04-26 14:24:20

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

这个版本支持 在 menuconfig(也可以编辑 .config)修改 bootargs, bootcmd,

而无需像旧版本那样更改 include/configs/sun8i.h 的 BOOTARGS, BOOTCMD 宏.


参考: https://whycan.cn/t_561.html





离线

楼主 #3 2019-04-26 14:24:22

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

占位





离线

楼主 #4 2019-04-26 14:24:24

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

占位





离线

楼主 #8 2019-04-27 08:16:28

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

@Hu187 I2C没有测试, USB试了, 改改可以编译成功, 但是仍然用不了。





离线

楼主 #10 2019-04-27 15:39:17

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

你的根文件系统在哪里?

可以直接在 uboot menuconfig 里面设置 bootargs  的 root 参数指定根文件系统





离线

楼主 #12 2019-04-27 15:41:28

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

Hu187 说:
晕哥 说:

@Hu187 I2C没有测试, USB试了, 改改可以编译成功, 但是仍然用不了。

这是一部分启动日志
[    0.765594] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver                                         
[    0.772262] ehci-platform: EHCI generic platform driver                                                         
[    0.777752] ehci-platform 1c1a000.usb: EHCI Host Controller                                                     
[    0.783430] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1                           
[    0.791382] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000                                               
[    0.821152] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00                                               
[    0.828151] hub 1-0:1.0: USB hub found                                                                         
[    0.832102] hub 1-0:1.0: 1 port detected                                                                       
[    0.836562] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver                                             
[    0.842866] ohci-platform: OHCI generic platform driver                                                         
[    0.848378] ohci-platform 1c1a400.usb: Generic Platform OHCI controller                                         
[    0.855097] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2                           
[    0.863024] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400                                               
[    0.936028] hub 2-0:1.0: USB hub found                                                                         
[    0.939876] hub 2-0:1.0: 1 port detected             
感觉usb控制器已经被识别了,但我现在进不去系统,也没法细看

这个是 linux 的 usb 日志吧?和uboot没关系





离线

楼主 #15 2019-04-27 15:49:14

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

Linux usb驱动和设备树一直没有问题。





离线

楼主 #18 2019-04-27 16:07:56

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

Hu187 说:
晕哥 说:

你的根文件系统在哪里?

可以直接在 uboot menuconfig 里面设置 bootargs  的 root 参数指定根文件系统

这个就尴尬了,我是第一次接触这种东西,根本找不到这个东西在哪,

旧版的 uboot 更尴尬, 修改 bootargs 还得改源码。





离线

楼主 #22 2019-04-27 16:26:24

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

根文件系统不是这里改哦, 在 bootargs 里面.

如果用 initrd 根文件系统可以该这里: https://whycan.cn/t_2388.html





离线

楼主 #25 2019-06-19 20:01:10

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

离线

楼主 #28 2019-07-18 13:33:33

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

fan12398 说:

最新的uboot支持V3s的spi nor flash启动吗

看源码应该是支持的,当时我测试的是 usb 启动。





离线

楼主 #29 2019-07-18 13:34:14

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,245
积分: 9197

Re: 编译 V3s 2019 版本的 u-boot

迪卡 说:

可以给F1C100S移植个uboot2019吗?简单吗?uboot里面带spl吗?

冰淇淋的代码没有提交到u-boot主线,要自己手动合并一下才行。





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn