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_mini_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

在这里插入图片描述

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值