您尚未登录。

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

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 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,223
积分: 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,223
积分: 9197

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

占位





在线

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

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

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

占位





在线

#5 2019-04-26 18:39:40

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

That's good

离线

#6 2019-04-26 19:01:09

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

Re: 编译 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

此版本打开usb host模式后编译不再报错

离线

#7 2019-04-27 07:42:59

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

Re: 编译 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

打开IIc后照常报错recipe for target 'spl/u-boot-spl' failed

离线

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

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

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

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





在线

#9 2019-04-27 15:35:19

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

晕哥 说:

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

确实,现在我只能把板子先跑起来(因为这板子是修过得)
硬件没问题(但卡住了)
U-Boot SPL 2019.04-00743-g7d99406742-dirty (Apr 27 2019 - 11:07:27 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2019.04-00743-g7d99406742-dirty (Apr 27 2019 - 11:07:27 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot:  0
4006016 bytes read in 249 ms (15.3 MiB/s)                                                                         
11904 bytes read in 5 ms (2.3 MiB/s)                                                                               
## Flattened Device Tree blob at 41800000                                                                         
   Booting using the fdt blob at 0x41800000                                                                       
   Loading Device Tree to 42dfa000, end 42dffe7f ... OK                                                           
                                                                                                                   
Starting kernel ...                                                                                               
/×××××××××××××××××××××××××××××××××××××××××××/
[    1.359341] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)                     
[    1.367606] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.14-licheepi-zero #2                                 
[    1.374822] Hardware name: Allwinner sun8i Family                                                               
[    1.379560] [<c010e7b0>] (unwind_backtrace) from [<c010b458>] (show_stack+0x10/0x14)                           
[    1.387309] [<c010b458>] (show_stack) from [<c066fd84>] (dump_stack+0x88/0x9c)                                 
[    1.394540] [<c066fd84>] (dump_stack) from [<c011b700>] (panic+0xdc/0x248)                                     
[    1.401420] [<c011b700>] (panic) from [<c09011dc>] (mount_block_root+0x194/0x268)                               
[    1.408904] [<c09011dc>] (mount_block_root) from [<c09013d0>] (mount_root+0x120/0x128)                         
[    1.416820] [<c09013d0>] (mount_root) from [<c0901528>] (prepare_namespace+0x150/0x198)                         
[    1.424822] [<c0901528>] (prepare_namespace) from [<c0900e20>] (kernel_init_freeable+0x1c0/0x1d0)               
[    1.433693] [<c0900e20>] (kernel_init_freeable) from [<c0681ed0>] (kernel_init+0x8/0x110)                       
[    1.441871] [<c0681ed0>] (kernel_init) from [<c0107788>] (ret_from_fork+0x14/0x2c)                             
[    1.449452] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

最近编辑记录 Hu187 (2019-04-27 15:36:17)

离线

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

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

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

你的根文件系统在哪里?

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





在线

#11 2019-04-27 15:40:04

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

晕哥 说:

@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控制器已经被识别了,但我现在进不去系统,也没法细看

离线

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

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 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没关系





在线

#13 2019-04-27 15:45:11

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

晕哥 说:

你的根文件系统在哪里?

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

装载sda2,ext4分区上,uboot找不到哪个选项

离线

#14 2019-04-27 15:47:49

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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没关系

确实是linux的日志,一会我进linux看能不能认到设备,uboot那边先不管他

离线

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

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

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

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





在线

#16 2019-04-27 15:54:00

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

晕哥 说:

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

那就好 估计这种芯片只能凑合用用,毕竟是个记录仪的控制器

离线

#17 2019-04-27 16:00:01

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

晕哥 说:

你的根文件系统在哪里?

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

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

离线

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

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

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

Hu187 说:
晕哥 说:

你的根文件系统在哪里?

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

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

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





在线

#19 2019-04-27 16:13:50

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

晕哥 说:
Hu187 说:
晕哥 说:

你的根文件系统在哪里?

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

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

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

我这问题就是多,一步一步照着教程搞,就是分区大小变了,结果文件系统挂不上。

怀疑是跟这个地址有关
"bootz 0x41000000 - 0x41800000;" //就是写在uboot里的

离线

#20 2019-04-27 16:19:13

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

这块zero板子之前修的时候去掉了5V主线上的一颗滤波电容(去耦电容),现在断电后在短时间内上电,3V3可以达到3V8,V3s发热巨大且不能启动

离线

#21 2019-04-27 16:21:38

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

Hu187 说:
晕哥 说:
Hu187 说:

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

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

我这问题就是多,一步一步照着教程搞,就是分区大小变了,结果文件系统挂不上。

怀疑是跟这个地址有关
"bootz 0x41000000 - 0x41800000;" //就是写在uboot里的

我觉得把这两个字符串改一下就能挂载上,然而不知道怎么把分区位置转化为16进制字符串

离线

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

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

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

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

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





在线

#23 2019-04-27 18:58:51

Hu187
会员
注册时间: 2019-02-18
已发帖子: 39
积分: 39

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

晕哥 说:

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

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

很好,工具不错我再摸索摸索吧
我的主机是Ubuntu实体单系统,现在更新内核后虚拟机跑不起来,说是个bug,再等等

离线

#24 2019-06-19 19:34:34

shujtu
会员
注册时间: 2019-06-13
已发帖子: 4
积分: 4

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

各位大佬,我在编译2019 uboot版本遇到一个问题,提示gcc版本低于6,可我已经升级到7了,有哪位朋友也遇到过这个情况吗?ubuntu 14.04,手动升级GCC到7的


root@xxxU14:/home/xxx/ARM/V3S/u-boot# ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make
  CHK     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
*** Your GCC is older than 6.0 and is not supported
make: *** [checkgcc6] 错误 1

root@xxxU14:/home/xxx/ARM/V3S/u-boot# gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~14.04~ppa1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.

离线

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

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

在线

#26 2019-07-18 12:45:41

fan12398
会员
注册时间: 2019-07-09
已发帖子: 34
积分: 33

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

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

最近编辑记录 fan12398 (2019-07-18 12:46:26)

离线

#27 2019-07-18 13:07:56

迪卡
会员
所在地: 河北
注册时间: 2018-11-02
已发帖子: 916
积分: 903
个人网站

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

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

离线

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

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 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,223
积分: 9197

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

迪卡 说:

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

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





在线

#30 2019-07-18 14:28:28

fan12398
会员
注册时间: 2019-07-09
已发帖子: 34
积分: 33

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

晕哥 说:
fan12398 说:

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

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

赞!

离线

#31 2020-02-25 17:26:15

yytyu
会员
注册时间: 2018-11-01
已发帖子: 34
积分: 18

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

mark

离线

#32 2020-02-27 09:03:55

enjoy
会员
注册时间: 2020-02-18
已发帖子: 5
积分: 5

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

$ gcc --version
gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
这是代表GCC版本 8.3.0
可不可以编译最新的uboot

离线

#33 2020-02-27 09:08:00

enjoy
会员
注册时间: 2020-02-18
已发帖子: 5
积分: 5

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

git clone https://github.com/u-boot/u-boot.git      获取到最新的源码
VERSION = 2020
PATCHLEVEL = 04
SUBLEVEL =
EXTRAVERSION = -rc3
下面这是什么错误
ARCH=arm make menuconfig
  YACC    scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
make[1]: *** [scripts/Makefile.lib:226:scripts/kconfig/zconf.tab.c] 错误 127
make: *** [Makefile:539:menuconfig] 错误 2

离线

#34 2020-02-27 09:32:17

我心飞翔
会员
注册时间: 2019-12-25
已发帖子: 82
积分: 82

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

enjoy 说:

git clone https://github.com/u-boot/u-boot.git      获取到最新的源码
VERSION = 2020
PATCHLEVEL = 04
SUBLEVEL =
EXTRAVERSION = -rc3
下面这是什么错误
ARCH=arm make menuconfig
  YACC    scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
make[1]: *** [scripts/Makefile.lib:226:scripts/kconfig/zconf.tab.c] 错误 127
make: *** [Makefile:539:menuconfig] 错误 2

sudo apt-get install bison -y

离线

#35 2020-02-27 11:57:35

enjoy
会员
注册时间: 2020-02-18
已发帖子: 5
积分: 5

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

我心飞翔 说:

sudo apt-get install bison -y

谢谢,安装了;但还有错误
ARCH=arm make menuconfig
  LEX     scripts/kconfig/zconf.lex.c
/bin/sh: 1: flex: not found
make[1]: *** [scripts/Makefile.lib:218:scripts/kconfig/zconf.lex.c] 错误 127
make: *** [Makefile:539:menuconfig] 错误 2

离线

#36 2020-02-27 12:14:20

awfans
会员
注册时间: 2018-04-03
已发帖子: 264
积分: 264

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

enjoy 说:

谢谢,安装了;但还有错误
ARCH=arm make menuconfig
  LEX     scripts/kconfig/zconf.lex.c
/bin/sh: 1: flex: not found
make[1]: *** [scripts/Makefile.lib:218:scripts/kconfig/zconf.lex.c] 错误 127
make: *** [Makefile:539:menuconfig] 错误 2

大佬你要补基础知识了:

sudo apt-get install flex -y

离线

#37 2020-02-27 12:17:25

enjoy
会员
注册时间: 2020-02-18
已发帖子: 5
积分: 5

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

enjoy 说:

谢谢,安装了;但还有错误
ARCH=arm make menuconfig
  LEX     scripts/kconfig/zconf.lex.c
/bin/sh: 1: flex: not found
make[1]: *** [scripts/Makefile.lib:218:scripts/kconfig/zconf.lex.c] 错误 127
make: *** [Makefile:539:menuconfig] 错误 2

已经可以了,看了看makefile需要flex
sudo apt-get install flex -y

离线

#38 2020-02-27 13:01:29

enjoy
会员
注册时间: 2020-02-18
已发帖子: 5
积分: 5

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

现在获取到的licheePi/u-boot里面怎么没有
LicheePi_Zero_800x480LCD_defconfig
LicheePi_Zero_480x272LCD_defconfig
这2个文件

离线

#39 2020-05-24 13:20:19

sunbird606
会员
注册时间: 2020-02-10
已发帖子: 17
积分: 107

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

enjoy 说:

现在获取到的licheePi/u-boot里面怎么没有
LicheePi_Zero_800x480LCD_defconfig
LicheePi_Zero_480x272LCD_defconfig
这2个文件

v3s-current.zip 这个文件就有上面那两个.defconfig

最近编辑记录 sunbird606 (2020-05-24 13:25:58)

离线

#40 2020-07-16 09:49:15

lxl_wc_regi
会员
注册时间: 2020-07-14
已发帖子: 2
积分: 2

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

晕哥,我用你发的最新的uboot文件,编译的时候为什么会出现这个错误:
bison: /media/user1/V3SSDK_BUILDROOT/v3ssdk/buildroot/out/host/share/bison/m4sugar/m4sugar.m4:无法打开: 没有那个文件或目录

离线

#41 2020-07-16 09:50:24

我思故我在
会员
注册时间: 2019-09-03
已发帖子: 244
积分: 243.5

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

我的正常, 删掉重新来过吧.

离线

#42 2020-07-16 16:05:43

lxl_wc_regi
会员
注册时间: 2020-07-14
已发帖子: 2
积分: 2

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

我思故我在 说:

我的正常, 删掉重新来过吧.

删掉后重新解压 编译,一样的问题,错误 中提示是 bison: /media/user1/V3SSDK_BUILDROOT/v3ssdk/buildroot/out/host/share/bison/m4sugar/m4sugar.m4:无法打开: 没有那个文件或目录

是不是要装个 V3SSDK 哈

离线

#43 2021-01-26 15:25:01

yuleniwo
会员
注册时间: 2021-01-22
已发帖子: 9
积分: 8.5

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

请问这个版本的uboot中怎么启用以太网口?修改了uboot的sun8i-v3s-licheepi-zero.dts文件增加
    aliases {
        ethernet0 = &emac; // 添加
        serial0 = &uart0;
    };

// 文件末尾增加
&emac {
    phy-handle = <&int_mii_phy>;
    phy-mode = "mii";
    allwinner,leds-active-low;
    status = "okay";
};

uboot起来后认不到网口,启动到linux可以认到。
U-Boot 2021.01-dirty (Jan 26 2021 - 14:38:25 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... OK
In:    serial@1c28000
Out:   serial@1c28000
Err:   serial@1c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot:  0

离线

#44 2021-01-29 16:33:17

yuleniwo
会员
注册时间: 2021-01-22
已发帖子: 9
积分: 8.5

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

折腾了两天终于搞定荔枝派zero uboot 2021.01版本的以太网口

离线

#45 2021-01-29 16:41:38

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

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

yuleniwo 说:

折腾了两天终于搞定荔枝派zero uboot 2021.01版本的以太网口

要修改什么吗?

离线

#46 2021-02-01 13:14:19

xfdr0805
会员
注册时间: 2020-07-23
已发帖子: 291
积分: 344

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

yuleniwo 说:

折腾了两天终于搞定荔枝派zero uboot 2021.01版本的以太网口

我也是这么修改的,能识别到但不能用?求大佬指点

最近编辑记录 xfdr0805 (2021-02-01 13:14:47)

离线

页脚

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

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