前两天在A40i/T3 sdk的lichee目录下,用./build.sh distclean后,再重新./build.sh与./build.sh pack后,就出现了 “系统挂载异常” 的问题,出现的错误(部分打印省略)
[2021-11-16 11:30:0 253] HELLO! BOOT0 is starting!
.................................................
[2021-11-16 11:30:0 620]
[2021-11-16 11:30:0 620]
[2021-11-16 11:30:0 620] U-Boot 2014.07 (Nov 12 2021 - 17:59:21) Allwinner Technology
[2021-11-16 11:30:0 620]
[2021-11-16 11:30:0 621] uboot commit : 8.......................................................
[2021-11-16 11:30:4 702] [ 0.000000] Booting Linux on physical CPU 0x0
[2021-11-16 11:30:4 703] [ 0.000000] Initializing cgroup subsys cpuset
[2021-11-16 11:30:4 703] [ 0.000000] Initializing cgroup subsys cpu
[2021-11-16 11:30:4 703] [ 0.000000] Initializing cgroup subsys cpuacct
[2021-11-16 11:30:4 703] [ 0.000000] Linux version 3.10.65 (root@xfzx-dev) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #437 SMP PREEMPT Tue Nov 16 11:12:50 CST 2021
[2021-11-16 11:30:4 704] [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[2021-11-16 11:30:4 704] [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[2021-11-16 11:30:4 704] [ 0.000000] Machine: sun8iw11p1, model: sun8iw11p1
[2021-11-16 11:30:4 704] [ 0.000000] bootconsole [earlycon0] enabled
[2021-11-16 11:30:6 135] [/init]: RootDevice is "/dev/mmcblk0p7"
[2021-11-16 11:30:6 135] [/init]: Try to load EMMC ...
[2021-11-16 11:30:6 136] [/init]: Wait /dev/mmcblk0p7 ready ...
[2021-11-16 11:30:7 141] e2fsck 1.41.14 (22-Dec-2010)
[2021-11-16 11:30:7 169] /dev/mmcblk0p7: clean, 4419/32000 files, 33169/128000 blocks
[2021-11-16 11:30:7 248] switch_root: can't execute '/init': Exec format error
[2021-11-16 11:30:7 639] [ 2.270114] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[2021-11-16 11:30:7 639] [ 2.270114]
[2021-11-16 11:30:7 639] [ 2.280004] CPU: 0 PID: 1 Comm: switch_root Not tainted 3.10.65 #437
[2021-11-16 11:30:7 640] [ 2.280004] [<c00178d0>] (unwind_backtrace+0x0/0xe8) from [<c0013fac>] (show_stack+0x20/0x24)
[2021-11-16 11:30:7 640] [ 2.280004] [<c0013fac>] (show_stack+0x20/0x24) from [<c05e0f2c>] (dump_stack+0x20/0x28)
[2021-11-16 11:30:7 640] [ 2.280004] [<c05e0f2c>] (dump_stack+0x20/0x28) from [<c05df66c>] (panic+0x98/0x1e0)
[2021-11-16 11:30:7 640] [ 2.310018] [<c05df66c>] (panic+0x98/0x1e0) from [<c0029508>] (do_exit+0x474/0x8c0)
[2021-11-16 11:30:7 641] [ 2.310018] [<c0029508>] (do_exit+0x474/0x8c0) from [<c00299fc>] (do_group_exit+0x5c/0xc0)
[2021-11-16 11:30:7 641] [ 2.310018] [<c00299fc>] (do_group_exit+0x5c/0xc0) from [<c0029a80>] (__wake_up_parent+0x0/0x30)
[2021-11-16 11:30:7 641] [ 2.310018] [<c0029a80>] (__wake_up_parent+0x0/0x30) from [<c000f880>] (ret_fast_syscall+0x0/0x30)
[2021-11-16 11:30:7 641] [ 2.351808] CPU2: stopping
[2021-11-16 11:30:7 642] [ 2.354763] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 3.10.65 #437
[2021-11-16 11:30:7 642] [ 2.361519] [<c00178d0>] (unwind_backtrace+0x0/0xe8) from [<c0013fac>] (show_stack+0x20/0x24)
[2021-11-16 11:30:7 642] [ 2.361804] [<c0013fac>] (show_stack+0x20/0x24) from [<c05e0f2c>] (dump_stack+0x20/0x28)
[2021-11-16 11:30:7 642] [ 2.361804] [<c05e0f2c>] (dump_stack+0x20/0x28) from [<c0015aac>] (handle_IPI+0xf4/0x280)
[2021-11-16 11:30:7 643] [ 2.361804] [<c0015aac>] (handle_IPI+0xf4/0x280) from [<c000a34c>] (gic_handle_irq+0x64/0x6c)
[2021-11-16 11:30:7 643] [ 2.361804] [<c000a34c>] (gic_handle_irq+0x64/0x6c) from [<c05e5c00>] (__irq_svc+0x40/0x70)
[2021-11-16 11:30:7 643] [ 2.361804] Exception stack(0xe68e1f10 to 0xe68e1f58)
[2021-11-16 11:30:7 643] [ 2.361804] 1f00: e68e1f58 00000000 8c2dac18 00000000
.....................................................................
其中打印了错误信息,后面内核就直接down掉了。
对比正常的启动信息:
[2021-11-02 9:37:2 890] [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[2021-11-02 9:37:2 891] [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[2021-11-02 9:37:2 891] [ 0.000000] Machine: sun8iw11p1, model: sun8iw11p1
[2021-11-02 9:37:2 891] [ 0.000000] bootconsole [earlycon0] enabled[2021-11-02 9:37:4 606] [/init]: RootDevice is "/dev/mmcblk0p7"
[2021-11-02 9:37:4 606] [/init]: Try to load EMMC ...
[2021-11-02 9:37:4 606] [/init]: Wait /dev/mmcblk0p7 ready ...
[2021-11-02 9:37:5 624] e2fsck 1.41.14 (22-Dec-2010)
[2021-11-02 9:37:5 624] /dev/mmcblk0p7: recovering journal
[2021-11-02 9:37:5 670] /dev/mmcblk0p7: clean, 4760/32000 files, 34922/128000 blocks
[2021-11-02 9:37:5 798] mount: proc is already mounted or /proc busy
[2021-11-02 9:37:5 841] mount: proc is already mounted or /proc busy
[2021-11-02 9:37:5 841] mount: sysfs is already mounted or /sys busy
[2021-11-02 9:37:5 841] mount: devtmpfs is already mounted or /dev busy
[2021-11-02 9:37:5 873] init fs...[2021-11-02 9:37:6 305] loading modules ...
[2021-11-02 9:37:7 279] Populating /dev/ using udev: done
[2021-11-02 9:37:7 279] ----udev---done
[2021-11-02 9:37:7 279] loading flashdisk ...
[2021-11-02 9:37:7 298] init network ...
[2021-11-02 9:37:7 707] /etc/init.d/rcS: line 83: ifconifg: command not found
[2021-11-02 9:37:7 707] /etc/init.d/rcS: line 84: ifconifg: command not found
[2021-11-02 9:37:7 744] Starting network: ifup: interface lo already configured
[2021-11-02 9:37:7 744] ifup: interface eth0 already configured
[2021-11-02 9:37:7 744] ifup: interface eth1 already configured
[2021-11-02 9:37:7 744] OK
[2021-11-02 9:37:7 744] loading service ...
[2021-11-02 9:37:7 840] init user script
很明显init进程已经启动,按照流程应该是加载inittab,挂载文件系统。
按方案商的说法,全志A40i/T3的sdk在make clean与make distclean时会出现问题。
如果需要从头全编译的话,建议直接删除lichee目录下的out目录,进行重编译。
试了之后,该问题解决。