存在问题,
kernel 是用 Linaro GCC 7.4-2019.02) 7.4.1 20181213 编译的
但是 Linaro GCC 7.4-2019.02) 7.4.1 20181213 编译 busybox和buildroot 出来, 执行 linuxrc 的时候 ,会出现 段错误
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing unused kernel memory: 1024K
Run /linuxrc as init process
random: fast init done
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
CPU: 0 PID: 1 Comm: linuxrc Not tainted 5.11.0-00001-gd64fe683e8d-dirty #37
Hardware name: SMDK6410
[<c0105ac0>] (unwind_backtrace) from [<c01046d8>] (show_stack+0x10/0x14)
[<c01046d8>] (show_stack) from [<c038d244>] (panic+0xe8/0x2e4)
[<c038d244>] (panic) from [<c0114068>] (do_exit+0x7d0/0x9f8)
[<c0114068>] (do_exit) from [<c01142f8>] (do_group_exit+0x3c/0xa4)
[<c01142f8>] (do_group_exit) from [<c011e7f8>] (get_signal+0x164/0x7d0)
[<c011e7f8>] (get_signal) from [<c0103e2c>] (do_work_pending+0x1a4/0x598)
[<c0103e2c>] (do_work_pending) from [<c01000f0>] (slow_work_pending+0xc/0x20)
Exception stack(0xc084bfb0 to 0xc084bff8)
bfa0: 00000000 00000001 00000000 00000000
bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
bfe0: 00000000 beee3f00 00072888 001854a8 40000010 ffffffff
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---
用 gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) 编译没问题,待研究
https://github.com/lisider/busybox/tree/ok6410a-busybox-1_32_1
configs/ok6410a_mini_defconfig
bin/
bin/mkdir
bin/cat
bin/sh
bin/busybox
bin/mount
bin/echo
bin/ls
bin/mv
bin/sleep
bin/cp
bin/ash
dev/
dev/tty1
dev/tty2
dev/console
dev/tty3
dev/tty4
dev/null
etc/
etc/profile
etc/init.d/
etc/init.d/rcS
etc/fstab
etc/inittab
lib/
linuxrc
proc/
sbin/
sbin/mdev
sys/
tmp/
usr/
usr/bin/
usr/bin/which
var/
https://github.com/lisider/buildroot/tree/ok6410a-2021.02
configs/ok6410a_busybox_defconfig
host-skeleton
host-attr
host-acl
host-m4
host-libtool
host-autoconf
host-automake
host-fakeroot
host-makedevs
skeleton-init-common
skeleton-init-sysv
skeleton
toolchain-external-custom
toolchain-external
toolchain
busybox
initscripts
host-patchelf
rootfs-common
rootfs-tar