您尚未登录。

#2 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 25元的矿渣BeagleBone Black_NAND版AM335x » 2019-07-24 23:38:58

AnodeCHAI 说:

无论是1.5版本还是1.6版本,eeprom都没有焊接,如果想使用自己编译的uboot需要更改 board.c中的部分代码。

已找到patch

#4 Re: 全志 SOC » Debian 9.9 (stretch) 文件系统制作 » 2019-07-17 22:20:41

我在蚂蚁矿机主控板上跑起来了,没加--verbose。使用内置工具进行第二阶段定制。

#5 Re: 全志 SOC » Debian 9.9 (stretch) 文件系统制作 » 2019-07-17 22:20:10

我在蚂蚁矿机主控板上跑起来了,没加--verbose。使用内置工具进行第二阶段定制。

#6 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 18:58:51

晕哥 说:

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

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

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

#7 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 16:21:38

Hu187 说:
晕哥 说:
Hu187 说:

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

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

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

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

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

#8 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 16:19:13

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

#9 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 16:13:50

晕哥 说:
Hu187 说:
晕哥 说:

你的根文件系统在哪里?

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

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

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

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

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

#10 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 16:00:01

晕哥 说:

你的根文件系统在哪里?

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

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

#11 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 15:54:00

晕哥 说:

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

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

#12 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 15:47:49

晕哥 说:
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那边先不管他

#13 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 15:45:11

晕哥 说:

你的根文件系统在哪里?

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

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

#14 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 15:40:04

晕哥 说:

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

#15 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 15:35:19

晕哥 说:

@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)

#16 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-27 07:42:59

晕哥 说:

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

#17 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-04-26 19:01:09

晕哥 说:

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模式后编译不再报错

#19 Re: 全志 SOC » V3s uboot 打开usb host编译报错 » 2019-04-26 12:20:39

还能这么玩 说:

http://linux-sunxi.org/Mainline_U-Boot

看起来 u-boot 还没有 适配 V3s 的 usb

我也是这么想的
应该试试新版本
2017 的dtsi文件里usbotg是给H3用的

#20 Re: 全志 SOC » V3s uboot 打开usb host编译报错 » 2019-04-25 22:14:12

晕哥 说:

uboot还没有试过 usb呢

IIC一开也报错 ,我编译好的现在只是eth能识别到,勉强能启动
DRAM:408MHz
CPU:1200MHz

#21 全志 SOC » V3s uboot 打开usb host编译报错 » 2019-04-25 20:08:23

Hu187
回复: 4

使用的uboot在打开SPL / TPL—>Support USB host drivers后编译报错,看了dts文件里是有usb的配置信息的。就是看不懂这报错到底什么意思。
IIC也打不开,真尴尬
common/built-in.o: In function `usb_stor_BBB_reset':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:480: undefined reference to `usb_control_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:495: undefined reference to `usb_clear_halt'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:502: undefined reference to `usb_clear_halt'
common/built-in.o: In function `usb_stor_CB_reset':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:523: undefined reference to `usb_control_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:533: undefined reference to `usb_clear_halt'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:534: undefined reference to `usb_clear_halt'
common/built-in.o: In function `usb_stor_BBB_clear_endpt_stall':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:712: undefined reference to `usb_control_msg'
common/built-in.o: In function `usb_stor_BBB_comdat':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:583: undefined reference to `usb_bulk_msg'
common/built-in.o: In function `usb_stor_BBB_transport':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:783: undefined reference to `usb_bulk_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:783: undefined reference to `usb_bulk_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:755: undefined reference to `usb_bulk_msg'
common/built-in.o: In function `us_one_transfer':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:387: undefined reference to `usb_maxpacket'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:405: undefined reference to `usb_bulk_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:421: undefined reference to `usb_clear_halt'
common/built-in.o: In function `usb_stor_CB_comdat':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:614: undefined reference to `usb_control_msg'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:629: undefined reference to `usb_clear_halt'
common/built-in.o: In function `usb_storage_probe':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:1362: undefined reference to `usb_set_interface'
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:1384: undefined reference to `usb_maxpacket'
common/built-in.o: In function `usb_mass_storage_probe':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:1483: undefined reference to `dev_get_parent_priv'
common/built-in.o: In function `usb_get_max_lun':
/home/ff/Documents/V3s/u-boot/common/usb_storage.c:186: undefined reference to `usb_control_msg'
drivers/built-in.o: In function `usb_child_post_bind':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:685: undefined reference to `dev_get_parent_platdata'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:693: undefined reference to `fdtdec_get_int'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:698: undefined reference to `fdtdec_get_int'
drivers/built-in.o: In function `usb_get_bus':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:711: undefined reference to `device_get_uclass_id'
drivers/built-in.o: In function `usb_child_pre_probe':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:724: undefined reference to `dev_get_parent_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:725: undefined reference to `dev_get_parent_platdata'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/usb-uclass.c:752: undefined reference to `usb_select_config'
drivers/built-in.o: In function `ohci_destroy_int_queue':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2191: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_poll_int_queue':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2183: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ep_add_ed':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:873: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `ohci_create_int_queue':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2174: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `submit_common_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:1525: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `ohci_submit_int_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2164: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_submit_bulk_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2155: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_submit_control_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2146: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `_ohci_submit_control_msg':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:1743: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `ohci_register':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2198: undefined reference to `dev_get_uclass_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2199: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_deregister':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-hcd.c:2225: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_usb_remove':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-sunxi.c:77: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ohci_usb_probe':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-sunxi.c:38: undefined reference to `dev_get_uclass_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-sunxi.c:39: undefined reference to `dev_get_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ohci-sunxi.c:40: undefined reference to `dev_get_addr'
drivers/built-in.o: In function `ehci_get_ctrl':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:116: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ehci_update_endpt2_dev_n_port':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:293: undefined reference to `usb_find_usb2_hub_address_port'
drivers/built-in.o: In function `ehci_submit_async':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:408: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `_ehci_create_int_queue':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1238: undefined reference to `usb_maxpacket'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1297: undefined reference to `usb_maxpacket'
drivers/built-in.o: In function `ehci_register':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1599: undefined reference to `dev_get_uclass_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1600: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ehci_deregister':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-hcd.c:1640: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ehci_usb_remove':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-sunxi.c:75: undefined reference to `dev_get_priv'
drivers/built-in.o: In function `ehci_usb_probe':
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-sunxi.c:37: undefined reference to `dev_get_platdata'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-sunxi.c:38: undefined reference to `dev_get_priv'
/home/ff/Documents/V3s/u-boot/drivers/usb/host/ehci-sunxi.c:39: undefined reference to `dev_get_addr'
drivers/built-in.o:(.u_boot_list_2_uclass_2_usb+0x8): undefined reference to `dm_scan_fdt_dev'
scripts/Makefile.spl:288: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1319: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2

#22 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 请问淘宝上这HIFI 板子上面的走线, 是什么工艺做的? » 2019-04-06 20:18:01

走线不错,平滑 但这个碳膜电阻...天气好的时候机器高兴,工作点稳。贴片1%的工作点就稳定住了,功率也够
古董质量不一定好

#23 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 请问淘宝上这HIFI 板子上面的走线, 是什么工艺做的? » 2019-04-06 20:13:04

走线不错,平滑 但这个碳膜电阻...天气好的时候机器高兴,工作点稳。贴片1%的工作点就稳定住了,功率也够
古董质量不一定好

#25 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 17:59:34

Hu187 说:
晕哥 说:

执行初始化配置文件之后:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig

立即编译:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make

能成功吗?


成功

又调整了几下 编译中有警告 但最终生成了。bin

非常感谢 。改天烧进去试试

#26 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 17:56:33

晕哥 说:

执行初始化配置文件之后:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig

立即编译:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make

能成功吗?

但此时只能用到16MB

#27 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 17:54:35

晕哥 说:

执行初始化配置文件之后:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig

立即编译:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make

能成功吗?


成功

#28 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 17:47:40

Hu187 说:
晕哥 说:

按这个流程不会出问题,你的电脑系统是什么什么?

drivers/mtd/spi/spi_flash.c:1114:12: error: redefinition of 'write_bar'
static int write_bar(struct spi_flash *flash, u32 offset)
            ^~~~~~~~~
drivers/mtd/spi/spi_flash.c:116:12: note: previous definition of 'write_bar' was here
static int write_bar(struct spi_flash *flash, u32 offset)
            ^~~~~~~~~
drivers/mtd/spi/spi_flash.c:1114:12: warning: 'write_bar' defined but not used [-Wunused-function]
static int write_bar(struct spi_flash *flash, u32 offset)
            ^~~~~~~~~
scripts/Makefile.build:280: recipe for target 'drivers/mtd/spi/spi_flash.o' failed
make[1]: *** [drivers/mtd/spi/spi_flash.o] Error 1
make[1]: *** Waiting for unfinished jobs....

superuser编译打印输出片段:
drivers/spi/sunxi_spi.c: In function ‘sunxi_spi_claim_bus’:
drivers/spi/sunxi_spi.c:179:15: warning: unused variable ‘pin_func’ [-Wunused-variable]
  unsigned int pin_func = SUNXI_GPC_SPI0;
               ^~~~~~~~
  LD      drivers/video/built-in.o
  CC      common/edid.o
  LD      drivers/built-in.o
  CC      drivers/usb/common/common.o
  LD      drivers/usb/dwc3/built-in.o
common/edid.c: In function ‘edid_print_dtd’:
common/edid.c:242:15: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
   if (v_total * h_total)
       ~~~~~~~~^~~~~~~~~
此时成功生成。bin文件

#29 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 17:42:12

晕哥 说:
Hu187 说:
晕哥 说:

按这个流程不会出问题,你的电脑系统是什么什么?

Ubuntu18.04_server_amd64

可以把你的大概流程说一下吗?


以下为详细操作日志
/*****************************************************************************************************************************************/
ff@ff:~$ cd ./Documents/u-boot/
ff@ff:~/Documents/u-boot$ ls
Kbuild    MAINTAINERS  api    build.log  config.mk  doc      examples  lib   scripts          tools
Kconfig   Makefile     arch   cmd        configs    drivers  fs        net   snapshot.commit
Licenses  README       board  common     disk       dts      include   post  test
ff@ff:~/Documents/u-boot$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig
#
# configuration written to .config
#
ff@ff:~/Documents/u-boot$ ARCH=arm make menuconfig //激活大容量flalsh支持 设置cpu主频到1.2GHz
scripts/kconfig/mconf  Kconfig
configuration written to .config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

ff@ff:~/Documents/u-boot$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j8
scripts/kconfig/conf  --silentoldconfig Kconfig

*** Error during update of the configuration.

scripts/kconfig/Makefile:46: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
Makefile:478: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
ff@ff:~/Documents/u-boot$

#30 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 17:34:17

晕哥 说:

按这个流程不会出问题,你的电脑系统是什么什么?

drivers/mtd/spi/spi_flash.c:1114:12: error: redefinition of 'write_bar'
static int write_bar(struct spi_flash *flash, u32 offset)
            ^~~~~~~~~
drivers/mtd/spi/spi_flash.c:116:12: note: previous definition of 'write_bar' was here
static int write_bar(struct spi_flash *flash, u32 offset)
            ^~~~~~~~~
drivers/mtd/spi/spi_flash.c:1114:12: warning: 'write_bar' defined but not used [-Wunused-function]
static int write_bar(struct spi_flash *flash, u32 offset)
            ^~~~~~~~~
scripts/Makefile.build:280: recipe for target 'drivers/mtd/spi/spi_flash.o' failed
make[1]: *** [drivers/mtd/spi/spi_flash.o] Error 1
make[1]: *** Waiting for unfinished jobs....

#31 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 17:28:33

晕哥 说:

按这个流程不会出问题,你的电脑系统是什么什么?

Ubuntu18.04_server_amd64

#33 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 14:31:41

晕哥 说:

https://whycan.cn/t_561.html


按这个流程试一试

cmd/bootm.c: In function 'do_imls_nor':
cmd/bootm.c:327:7: error: 'CONFIG_SYS_MAX_FLASH_BANKS' undeclared (first use in this function); did you mean 'CONFIG_SYS_MAX_FLASH_SECT'?
   i < CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~
       CONFIG_SYS_MAX_FLASH_SECT
cmd/bootm.c:327:7: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:280: recipe for target 'cmd/bootm.o' failed
make[1]: *** [cmd/bootm.o] Error 1
make[1]: *** Waiting for unfinished jobs....
还是同样的错误

#34 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 11:11:55

晕哥 说:

不改配置正常吗?

root用户

root@ff:/home/ff/Documents/u-boot# time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log
make: arm-linux-gnueabihf-gcc: Command not found
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
dirname: missing operand
Try 'dirname --help' for more information.
scripts/kconfig/conf  --silentoldconfig Kconfig
warning: (ARCH_SUNXI && TDX_CFG_BLOCK && TDX_CFG_BLOCK && TDX_CFG_BLOCK && TDX_CFG_BLOCK && TDX_CFG_BLOCK && TDX_CFG_BLOCK && ARCH_UNIPHIER_LD20 && TDX_CFG_BLOCK && TDX_CFG_BLOCK) selects OF_BOARD_SETUP which has unmet direct dependencies (OF_LIBFDT)
warning: (ARCH_SUNXI) selects SPL_STACK_R which has unmet direct dependencies (SPL)
warning: (ARCH_SUNXI) selects SPL_SYS_MALLOC_SIMPLE which has unmet direct dependencies (SPL)
warning: (ARCH_SUNXI && TDX_CFG_BLOCK && TDX_CFG_BLOCK && TDX_CFG_BLOCK && TDX_CFG_BLOCK && TDX_CFG_BLOCK && TDX_CFG_BLOCK && ARCH_UNIPHIER_LD20 && TDX_CFG_BLOCK && TDX_CFG_BLOCK) selects OF_BOARD_SETUP which has unmet direct dependencies (OF_LIBFDT)
warning: (ARCH_SUNXI) selects SPL_STACK_R which has unmet direct dependencies (SPL)
warning: (ARCH_SUNXI) selects SPL_SYS_MALLOC_SIMPLE which has unmet direct dependencies (SPL)
  CHK     include/config.h
  CFG     u-boot.cfg
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
scripts/Makefile.autoconf:79: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.

real    0m0.227s
user    0m0.192s
sys     0m0.030s

#35 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 11:06:30

晕哥 说:

不改配置正常吗?


直接time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log就是这样
ff@ff:~/Documents/u-boot$ time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log
scripts/kconfig/conf  --silentoldconfig Kconfig

*** Error during update of the configuration.

scripts/kconfig/Makefile:46: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
Makefile:478: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.

real    0m0.246s
user    0m0.192s
sys     0m0.059s

#36 Re: 全志 SOC » V3s—uboot编译报错 » 2019-04-06 11:04:59

晕哥 说:

不改配置正常吗?

还是报错

#37 全志 SOC » V3s—uboot编译报错 » 2019-04-06 10:24:09

Hu187
回复: 17

ff@ff:~/Documents/V3s_/u-boot$ arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/7.4.1/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: '/home/tcwg-buildslave/workspace/tcwg-make-release_0/snapshots/gcc.git~linaro-7.4-2019.02/configure' SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-shared --without-included-gettext --enable-nls --with-system-zlib --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/x86_64-unknown-linux-gnu
Thread model: posix
gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)

/******************************************************************************************************************************************/
ff@ff:~/Documents/V3s_/u-boot$ time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/mkenvimage.o
  HOSTLD  tools/mkenvimage
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/dumpimage.o
  HOSTLD  tools/dumpimage
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/mkimage
  CC      cmd/bootm.o
cmd/bootm.c: In function 'do_imls_nor':
cmd/bootm.c:327:7: error: 'CONFIG_SYS_MAX_FLASH_BANKS' undeclared (first use in this function); did you mean 'CONFIG_SYS_MAX_FLASH_SECT'?
   i < CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~
       CONFIG_SYS_MAX_FLASH_SECT
cmd/bootm.c:327:7: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:280: recipe for target 'cmd/bootm.o' failed
make[1]: *** [cmd/bootm.o] Error 1
Makefile:1206: recipe for target 'cmd' failed
make: *** [cmd] Error 2

real    0m1.858s
user    0m1.455s
sys     0m0.408s
出现这么个问题,最后cmd错误编译失败
配置时开启了flash bank选项
是个W256的flash
新手一脸茫然  被水淹没 不知所措
请求帮助

页脚

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

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