enjoy-digital / litex_openwrt_test

Test of OpenWRT on LiteX SoCs.
Other
3 stars 0 forks source link

openWRT status #2

Open trabucayre opened 4 months ago

trabucayre commented 4 months ago

NOTE: only 64bits architecture is supported and must support imafdc

InitRAMFS boot

Looks rootfs.cpio is too big / not adapted

SDCard boot

With openSBI, soc.dtb and rootfs build using buildroot:

Boot is blocked with Can't open /dev/console: No such file or directory

With openSBI, soc.dtb build using buildroot, Image and rootfs from openWRT

[    2.494404] mmc0: new SDHC card at address 0001
[    2.502517] mmcblk0: mmc0:0001 SD16G 14.5 GiB
[    2.525656]  mmcblk0: p1 p2
[    2.911732] EXT4-fs (mmcblk0p2): mounted filesystem ff313567-e9f1-5a5d-9895-3ba130b4a864 ro with ordered data mode. Quota mode: disabled.
[    2.923431] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.932191] Freeing unused kernel image (initmem) memory: 352K
[    2.937008] Kernel memory protection not selected by kernel config.
[    2.943100] Run /sbin/init as init process
[    5.250442] init: Console is alive
[    5.347580] kmodloader: failed to open /proc/modules
[    5.376165] init: - preinit -
[    6.515808] sh[44]: unhandled signal 4 code 0x1 at 0x0000003f9d40ce48 in libc.so[3f9d3c8000+72000]
[    6.523779] CPU: 0 PID: 44 Comm: sh Not tainted 6.9.8 #0
[    6.529069] Hardware name: digilent_arty (DT)
[    6.533409] epc : 0000003f9d40ce48 ra : 00000000000360ee sp : 0000003fe5304ae0
[    6.540610]  gp : 000000000006a800 tp : 0000003f9d43dda8 t0 : 0000000000000039
[    6.547814]  t1 : 000000000001622c t2 : 0000000000000000 s0 : 0000003f9d43a020
[    6.555021]  s1 : 0000003f9d43a2f8 a0 : 0000003fe5304b18 a1 : 0000000000000000
[    6.562226]  a2 : 0000000000000000 a3 : 0000000000000000 a4 : 0000003f9d43a518
[    6.569432]  a5 : 0000003f9d43a518 a6 : 0000003f9d43a518 a7 : 0000000000000000
[    6.576638]  s2 : 0000000000059000 s3 : 000000000001831e s4 : 0000003fe5304d20
[    6.583844]  s5 : 0000003fe5304d70 s6 : 0000003f9d43d898 s7 : ffffffffffffffff
[    6.591051]  s8 : 0000000000000000 s9 : 0000003f9d43b8c0 s10: 0000003f9d43db60
[    6.598256]  s11: 0000003f9d43db40 t3 : 0000003f9d40ce14 t4 : 0000000000000000
[    6.605462]  t5 : 0000000000000001 t6 : 000000006474e551
[    6.610758] status: 0000000200000020 badaddr: 000000000000b920 cause: 0000000000000002
[    6.618742] Code: 3423 0595 3823 05a5 3c23 05b5 3023 0625 3423 0615 (b920) bd24
[    6.678498] procd: - early -
[    6.961310] procd[1]: unhandled signal 4 code 0x1 at 0x0000003fb272e550 in libjson-c.so.5.3.0[3fb2726000+e000]
[    6.970318] CPU: 0 PID: 1 Comm: procd Not tainted 6.9.8 #0
[    6.975778] Hardware name: digilent_arty (DT)
[    6.980119] epc : 0000003fb272e550 ra : 0000003fb272ca32 sp : 0000003fd65a2a50
[    6.987323]  gp : 0000002abd3fb518 tp : 0000003fb27c5da8 t0 : 0000000000000116
[    6.994527]  t1 : 0000003fb2763dec t2 : 0000000000000068 s0 : 0000003fb27c28f0
[    7.001731]  s1 : 0000003fb274b9d0 a0 : 0000003fb27219d0 a1 : 0000003fb2721b00
[    7.008937]  a2 : 0000003fb2721a10 a3 : 00000000437a1813 a4 : 0000000000000000
[    7.016144]  a5 : 0000000000000010 a6 : 0000000000000000 a7 : 0000000000000000
[    7.023350]  s2 : 0000000000000787 s3 : 0000003fb26cb030 s4 : 0000000000000040
[    7.030555]  s5 : 0000000000000016 s6 : 0000000000000002 s7 : 0000000000000000
[    7.037761]  s8 : 0000003fb26cb070 s9 : 0000003fb2730980 s10: 0000003fb274b028
[    7.044966]  s11: 000000000000001a t3 : 0000003fb2721ac4 t4 : 0000000000000000
[    7.052172]  t5 : 0000000000000044 t6 : 0000000000000074
[    7.057469] status: 0000000200000020 badaddr: 00000000d20787d3 cause: 0000000000000002
[    7.065449] Code: 907f 60e2 8526 64a2 6105 b06f 8fbf 411c 7179 f022 (87d3) d207
[    7.194557] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    7.200925] CPU: 0 PID: 1 Comm: procd Not tainted 6.9.8 #0
[    7.206382] Hardware name: digilent_arty (DT)
[    7.210723] Call Trace:
[    7.213158] [<ffffffff80004d10>] dump_backtrace+0x2c/0x3c
[    7.218536] [<ffffffff808c164c>] show_stack+0x44/0x5c
[    7.223571] [<ffffffff808ce8e4>] dump_stack_lvl+0x78/0xac
[    7.228954] [<ffffffff808ce934>] dump_stack+0x1c/0x2c
[    7.233988] [<ffffffff808c192c>] panic+0x130/0x328
[    7.238764] [<ffffffff8001860c>] do_exit+0x89c/0x8a4
[    7.243713] [<ffffffff800187d8>] do_group_exit+0x38/0x9c
[    7.249008] [<ffffffff80028be4>] get_signal+0x990/0x9bc
[    7.254217] [<ffffffff80003244>] arch_do_signal_or_restart+0x60/0x488
[    7.260642] [<ffffffff808cfda8>] irqentry_exit_to_user_mode+0xb0/0x110
[    7.267152] [<ffffffff808cedfc>] do_trap_insn_illegal+0x6c/0x134
[    7.273145] [<ffffffff808d9f80>] ret_from_exception+0x0/0xac
[    7.278818] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 ]---
trabucayre commented 4 months ago

Required to find how to store openWRT configuration because:

trabucayre commented 4 months ago

\o/

[...]
[   10.019733] procd: - early -
[   10.967894] procd: - ubus -
[   11.164110] procd: - init -
Please press Enter to activate this console.

BusyBox v1.36.1 (2024-07-18 16:52:07 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r26922-eb2e5842ad
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@(none):/# [   15.521620] kmodloader: loading kernel modules from /etc/modules.d/*
[   15.553050] kmodloader: done loading kernel modules from /etc/modules.d/*
[   18.008089] urngd: v1.0.2 started.
trabucayre commented 4 months ago

openWRT_LUCI