您尚未登录。

楼主 # 2024-06-06 10:16:58

fxx
会员
注册时间: 2023-11-13
已发帖子: 7
积分: 22

v3s官方buildroot文件系统卡在start kernerl...

设备:v3s;
启动方式:无TF卡,USB sunxi-fel启动。

用晕哥的一键启动 https://whycan.com/t_2449.html ,在ubuntu linux虚拟机启动。
因为项目要求定制部分功能,所以zImage和rootfs需要自己定制,我用linux-4.10-zero编译zImage,用buildroot-2019.08编译rootfs,但是进度卡在start kernel...

经测试,晕哥的zImage+buildroot可以正常启动进系统;但是晕哥zImage+我的buildroot会卡在start kernel。问题锁定在buildroot,编译时我采用/config自带的licheepi_zero_defconfig,个人操作仅仅是取消勾选附带的kernel和u-boot下载。

注意到我的rootfs体积为16M,但是晕哥的是9M。

请提示我可能是哪里出了问题=(=(,感谢大家。

附log:

U-Boot SPL 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
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
(FEL boot)
## Executing script at 41900000
## Loading init Ramdisk from Legacy Image at 41a00000 ...
   Image Name:   Root Filesystem
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    16967436 Bytes = 16.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Ramdisk to 41dd1000, end 42dff70c ... OK
   Loading Device Tree to 41dcb000, end 41dd0e4f ... OK

Starting kernel ...

离线

#1 2024-06-06 10:29:43

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,285
积分: 9197

Re: v3s官方buildroot文件系统卡在start kernerl...

用这个:

(V3s/V3x/S3/S3L/R11通吃)小智V3x开发板smallwitpi lite u-boot/linux/buildroot测试
https://whycan.com/t_7248.html





离线

楼主 #2 2024-06-17 17:51:54

fxx
会员
注册时间: 2023-11-13
已发帖子: 7
积分: 22

Re: v3s官方buildroot文件系统卡在start kernerl...

问题出在rootfs的大小。
已知基础rootfs≈10m,项目所需文件也是10m,把文件预先放在/output/target/tmp里,rootfs变成20m,就会卡在start kernerl...
目前解决方案是启动后,启动gadget的mass storage传递10m项目文件,绕开问题。

不知道具体原因...因为这个问题出在uboot和kernel交接console的时期,没有log信息

最近编辑记录 fxx (2024-06-17 17:53:34)

离线

页脚

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

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