OK6410A 开发板 (七) 1 OK6410A 文件系统 busybox和buildroot 移植

存在问题,
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) 编译没问题,待研究

  • busybox
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/
  • buildroot
https://github.com/lisider/buildroot/tree/ok6410a-2021.02
configs/ok6410a_busybox_defconfig
// 编译的包
host-skeleton				// host
host-attr 					// host
host-acl 					// host
host-m4 					// host
host-libtool 				// host
host-autoconf 				// host
host-automake 				// host
host-fakeroot 				// host
host-makedevs 				// host
skeleton-init-common		// target/staging
skeleton-init-sysv 			// target
skeleton 					// null
toolchain-external-custom 	// host/staging
toolchain-external 			// null
toolchain					// host/staging
busybox 					// target
initscripts 				// target
host-patchelf 				// host
rootfs-common
rootfs-tar

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/u011011827/article/details/114935643