rootfs is flashed into SPI NOR flash
1. bootargs
set bootargs console=ttyS0,115200 noinitrd root=/dev/mtdblock4 rootfstype=jffs2 rootwait rw earlycon=uart8250,mmio,0x21c0500 quiet lpj=250000
2. rootfs is generated by
flex-builder -i mkrfs -r yocto:tiny
3. mkfs.jffs2 command
flexbuild_lsdk2108/build/rfs/rootfs_lsdk2108_yocto_tiny_arm64/target
sudo mkfs.jffs2 -o test.jffs2 -r target/ -e 0x10000 -s 0x1000 -n -l --pad=0x1000000
After booting into kernel, kernel crash:
INIT: version 2.99 booting
hwclock: can't open '/dev/misc/rtc': No such file or directory
Fri Mar 9 12:34:56 UTC 2018
hwclock: can't open '/dev/misc/rtc': No such file or directory
Configuring packages on first boot....
(This may take several minutes. Please do not power off the machine.)
Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
Removing any system startup links for run-postinsts ...
INIT: Entering runlevel: 5
Starting random number generator daemon.
[ 4.840188] Unable to handle kernel paging request at virtual address ffffe36c00001590
[ 4.856120] Mem abort info:
[ 4.858916] ESR = 0x96000004
[ 4.866158] EC = 0x25: DABT (current EL), IL = 32 bits
[ 4.880121] SET = 0, FnV = 0
[ 4.883179] EA = 0, S1PTW = 0
[ 4.892139] Data abort info:
[ 4.895029] ISV = 0, ISS = 0x00000004
[ 4.904157] CM = 0, WnR = 0
[ 4.912141] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000085e11000
[ 4.924138] [ffffe36c00001590] pgd=0000000000000000, p4d=0000000000000000
[ 4.940141] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 4.945724] Modules linked in:
[ 4.948789] CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.10.35-00002-gd06856fba47f-dirty #1
[ 4.957241] Hardware name: LS1012A RDB Board (DT)
[ 4.961964] Workqueue: events cache_reap
[ 4.965894] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--)
[ 4.971911] pc : cache_reap+0xcc/0x290
[ 4.975665] lr : cache_reap+0xfc/0x290
[ 4.979418] sp : ffff800010033ce0
[ 4.982735] x29: ffff800010033ce0 x28: ffff800010033d78
[ 4.988059] x27: ffff000000c27a00 x26: ffff80001252b550
[ 4.993383] x25: ffff00000004e140 x24: ffff800011f9f758
[ 4.998708] x23: ffff80001252b570 x22: ffff000001175500
[ 5.004032] x21: 0000000000000080 x20: 0000000000000000
[ 5.009356] x19: ffff800012496980 x18: fffffdffffe47708
[ 5.014680] x17: ffff0000011a1c88 x16: ffff0000011a1ca8
[ 5.020005] x15: 0001000000000000 x14: fffffdffffe00000
[ 5.025329] x13: dead000000000100 x12: dead000000000122
[ 5.030652] x11: ffff0000011dc040 x10: 0000000000000001
[ 5.035976] x9 : ffff0000011dc040 x8 : ffff0000011a1c80
[ 5.041300] x7 : 0000000000000006 x6 : ffff800027c53000
[ 5.046624] x5 : 0000000000000000 x4 : ffff000000c27a60
[ 5.051948] x3 : ffff800010033ce0 x2 : 0000000000000000
[ 5.057272] x1 : ffff800027c53000 x0 : ffffe36c00001590
[ 5.062595] Call trace:
[ 5.065046] cache_reap+0xcc/0x290
[ 5.068452] process_one_work+0x1bc/0x338
[ 5.072467] worker_thread+0x50/0x420
[ 5.076135] kthread+0x154/0x158
[ 5.079367] ret_from_fork+0x10/0x34
[ 5.082950] Code: f9400416 f94032c0 b40000e0 f8616b02 (f862d806)
[ 5.089055] ---[ end trace 4188919bba8dcb43 ]---
[ 5.844155] random: crng init done
Starting OpenBSD Secure Shell server: sshd
generating ssh RSA host key...
generating ssh ECDSA host key...
generating ssh ED25519 host key...
[ 13.214387] ------------[ cut here ]------------
[ 13.219030] kernel BUG at net/netlink/af_netlink.c:1354!
[ 13.224352] Internal error: Oops - BUG: 0 [#2] PREEMPT SMP
[ 13.229847] Modules linked in:
[ 13.232913] CPU: 0 PID: 322 Comm: sshd Tainted: G D 5.10.35-00002-gd06856fba47f-dirty #1
[ 13.242324] Hardware name: LS1012A RDB Board (DT)
[ 13.247037] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 13.253061] pc : netlink_has_listeners+0x9c/0xa0
[ 13.257689] lr : __sk_free+0x94/0xd8
[ 13.261266] sp : ffff800010033c60
[ 13.264583] x29: ffff800010033c60 x28: ffff000000b0c1c0
[ 13.269908] x27: 0000000000000000 x26: 0000000000000000
[ 13.275232] x25: 0000000000000000 x24: 0000000000000000
[ 13.280556] x23: ffff0000000272e0 x22: ffff0000005d5cc0
[ 13.285880] x21: 0000000000000000 x20: ffff000000b4fc68
[ 13.291204] x19: 0000000000000004 x18: 0000000000000000
[ 13.296528] x17: 0000000000000000 x16: 0000000000000000
[ 13.301852] x15: 0000000000000000 x14: 0000000000000000
[ 13.307176] x13: 0000000000000000 x12: 0000000000000000
[ 13.312500] x11: 0000000000000000 x10: 0000000000000000
[ 13.317823] x9 : 0000000000000000 x8 : 0000000000000000
[ 13.323147] x7 : ffff000000b0c1c0 x6 : ffff000000b4fb8c
[ 13.328470] x5 : 0000000000000001 x4 : 0000000000000000
[ 13.333794] x3 : ffff800027c53000 x2 : ffff000000b0c1c0
[ 13.339117] x1 : 0000000091908f87 x0 : ffff000001167800
[ 13.344442] Call trace:
[ 13.346892] netlink_has_listeners+0x9c/0xa0
[ 13.351168] __sk_free+0x94/0xd8
[ 13.354399] sk_free+0x34/0x80
[ 13.357458] sk_common_release+0x98/0x110
[ 13.361476] udp_lib_close+0x10/0x20
[ 13.365058] inet_release+0x44/0x70
[ 13.368552] inet6_release+0x34/0x50
[ 13.372131] __sock_release+0x44/0xc0
[ 13.375796] sock_close+0x18/0x28
[ 13.379118] __fput+0x78/0x230
[ 13.382174] ____fput+0x10/0x20
[ 13.385321] task_work_run+0x80/0x140
[ 13.388989] do_notify_resume+0x23c/0x6e8
[ 13.393004] work_pending+0xc/0x3a8
[ 13.396500] Code: f94013f5 a8c37bfd d50323bf d65f03c0 (d4210000)
[ 13.402604] ---[ end trace 4188919bba8dcb44 ]---
[ 13.407229] note: sshd[322] exited with preempt_count 1
Segmentation fault
hwclock: can't open '/dev/misc/rtc': No such file or directory
Starting syslogd/klogd: done
NXP LSDK tiny 2108 (based on Yocto)
TinyLinux login: [ 14.326450] ------------[ cut here ]------------
[ 14.331108] WARNING: CPU: 0 PID: 0 at kernel/rcu/tree.c:624 rcu_eqs_enter.isra.0+0x84/0x90
[ 14.339386] Modules linked in:
[ 14.342452] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G D 5.10.35-00002-gd06856fba47f-dirty #1
[ 14.352124] Hardware name: LS1012A RDB Board (DT)
[ 14.356837] pstate: 20000085 (nzCv daIf -PAN -UAO -TCO BTYPE=--)
[ 14.362855] pc : rcu_eqs_enter.isra.0+0x84/0x90
[ 14.367394] lr : rcu_idle_enter+0x10/0x20
[ 14.371407] sp : ffff800012493e10
[ 14.374724] x29: ffff800012493e10 x28: 0000000085e20018
[ 14.380050] x27: 0000000000000000 x26: ffff000001067880
[ 14.385374] x25: 0000000000000018 x24: 0000000355ebe350
[ 14.390699] x23: 0000000000000000 x22: ffff000001067880
[ 14.396023] x21: ffff000039bf3640 x20: ffff000001067898
[ 14.401348] x19: 0000000000000000 x18: 0000000000000002
[ 14.406673] x17: 0000000000000000 x16: 0000000000000000
[ 14.411997] x15: 0000b10a67d94e94 x14: 0000000000000322
[ 14.417321] x13: 0000000000000001 x12: 0000000000000019
[ 14.422645] x11: 071c71c71c71c71c x10: 0000000000000001
[ 14.427970] x9 : ffff000039bf39cc x8 : 0000000000000007
[ 14.433294] x7 : 000000007fffffff x6 : 0000000147bc849d
[ 14.438618] x5 : 00ffffffffffffff x4 : 0000000000000015
[ 14.443942] x3 : 4000000000000002 x2 : 4000000000000000
[ 14.449267] x1 : ffff800011fa3540 x0 : ffff000039bf6540
[ 14.454591] Call trace:
[ 14.457042] rcu_eqs_enter.isra.0+0x84/0x90
[ 14.461231] rcu_idle_enter+0x10/0x20
[ 14.464900] cpuidle_enter_state+0x24c/0x2f0
[ 14.469175] cpuidle_enter+0x38/0x50
[ 14.472756] call_cpuidle+0x1c/0x40
[ 14.476249] do_idle+0x204/0x268
[ 14.479479] cpu_startup_entry+0x24/0x68
[ 14.483409] rest_init+0xd8/0xe8
[ 14.486643] arch_call_rest_init+0x10/0x1c
[ 14.490745] start_kernel+0x4b4/0x4f0
[ 14.494410] ---[ end trace 4188919bba8dcb45 ]---