Last active
March 5, 2024 07:57
-
-
Save lupyuen/3a79adba4f72acc71e3077a9a2fe3737 to your computer and use it in GitHub Desktop.
Apache NuttX Paging on Ox64 BL808 SBC. See https://github.com/apache/nuttx/pull/11824
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing NuttX On-Demand Paging on Ox64 BL808 SBC: | |
- NuttX Config: https://github.com/lupyuen2/wip-pinephone-nuttx/pull/55/files | |
- NuttX Kernel: https://github.com/lupyuen2/wip-pinephone-nuttx/tree/on-demand-paging2 | |
- NuttX Apps: https://github.com/lupyuen2/wip-pinephone-nuttx-apps/tree/on-demand-paging2 | |
[I][] | |
[I][] ____ ____ __ __ _ | |
[I][] / __ \ | _ \ / _|/ _| | | | |
[I][] | | | |_ __ ___ _ __ | |_) | ___ _ _| |_| |_ __ _| | ___ | |
[I][] | | | | '_ \ / _ \ '_ \| _ < / _ \| | | | _| _/ _` | |/ _ \ | |
[I][] | |__| | |_) | __/ | | | |_) | (_) | |_| | | | || (_| | | (_) | | |
[I][] \____/| .__/ \___|_| |_|____/ \___/ \__,_|_| |_| \__,_|_|\___/ | |
[I][] | | | |
[I][] |_| | |
[I][] | |
[I][] Powered by BouffaoLab | |
[I][] Build:11:52:04,Mar 6 2023 | |
[I][] Copyright (c) 2023 OpenBouffalo team | |
[I][] Copyright (c) 2022 Bouffalolab team | |
[I][] dynamic memory init success,heap s[I][LowLoad] D0 start... | |
[I][LowLoad] low_load start... | |
[I][LowLoad] Header at 0x5d5ff000 | |
[I][LowLoad] Section dtb(1) - Start 0x5d5ff100, Size 14314 | |
[I][LowLoad] Copying DTB to 0x51ff8000...0x51ffb7ea | |
[I][LowLoad] Done! | |
[I][LowLoad] Section OpenSBI(2) - Start 0x5d60f100, Size 109864 | |
[I][LowLoad] Copying OpenSBI to 0x3ef80000...0x3ef9ad28 | |
[I][LowLoad] Done! | |
[I][LowLoad] Section Kernel(3) - Start 0x5d62f100, Size 315597 | |
[I][LowLoad]ernel to 0x50000000... | |
[I][LowLoad] Done! | |
[I][LowLoad] CRC: 00000000 | |
[I][LowLoad] load time: 61311 us | |
[I][LowLoad] [I][LowLoad] Booting OpenSBI at 03ef80000 with DTB at 0x51ff8000 | |
OpenSBI v1.2 | |
____ _____ ____ _____ | |
/ __ \ / ____| _ \_ _| | |
| | | |_ __ ___ _ __ | (___ | |_) || | | |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |
| |__| | |_) | __/ | | |____) | |_) || |_ | |
\____/| .__/ \___|_| |_|_____/|____/_____| | |
| | | |
|_| | |
Platform Name : Pine64 Ox64 (D0) | |
Platform Features : medeleg | |
Platform HART : 1 | |
Platform IPI Device wi | |
Platform Timer Device : aclint-mtimer @ 1000000Hz | |
Platform Console Device : bflb_uart | |
Platform HSM Device : --Platform PMU Device : --- | |
Platform Reboot Device : --- | |
Platform Shutdown Device : --- | |
Firmware Base : 0x3ef80000 | |
Firmware Size : 200 KB | |
Runtime SBI Version : 1.0 | |
Domain0 Name : root | |
Domain0 Boot HART : 0 | |
Domain0 HARTs : 0* | |
Domain0 Region00 : 0x00000000e4008000-0x00000000e400bfff (I) | |
Domain0 Region01 : 0x00000000e4000000-0x00000000e4007fff (I) | |
Domain0 Region02 : 0x000000003ef80000-0x000000003efbffff () | |
Domain0 Region03 : 0x0000000000000000-0xffffffffffffffff (R,W,X) | |
Domain0 Next Address : 0x0000000050000000 | |
Domain0 Next Arg1 : 0x0000000051ff8000 | |
Domain0 Next Mode : S-mode | |
Domain0 SysReset : yes | |
Boot HART ID : 0 | |
Boot HART Domain : root | |
Boot HART Priv Version : v1.11 | |
Boot HART Base ISA : rv64imafdcvx | |
Boot HART ISA Extensions : time | |
Boot HART PMP Count : 8 | |
Boot HART PMP Granularity : 4096 | |
Boot HART PMP Address Bits: 38 | |
Boot HART MHPM Count : 8 | |
Boot HART MIDELEG : 0x0000000000000222 | |
Boot HART MEDELEG : 0x000000000000b109 | |
U-Boot 2023.04-rc2 (Mar 06 2023 - 11:48:40 +0000) | |
DRAM: 64 MiB | |
Core: 36 devices, 17 uclasses, devicetree: board | |
MMC: mmc@20060000: 0 | |
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:2... | |
Loading Environment from nowhere... OK | |
In: serial@30002000 | |
Out: serial@30002000 | |
Err: serial@30002000 | |
Net: | |
Warning: emac@20070000 (eth0) using random MAC address - 02:78:bb:df:04:50 | |
eth0: emac@20070000 | |
Hit any key to stop autoboot: 0 | |
switch to partitions #0, OK | |
mmc0 is current device | |
Scanning mmc 0:2... | |
Found /extlinux/extlinux.conf | |
Retrieving file: /extlinux/extlinux.conf | |
Select the boot mode | |
1:.Pine64 0X64 Kernel | |
2:.Sipeed M1SDock Kernel | |
Enter choice: 1:.Pine64 0X64 Kernel | |
Retrieving file: /extlinux/../Image | |
append: root=PARTLABEL=rootfs rootwaitrw rootfstype=ext4 console=ttyS0,2000000 loglevel=8 earlyc: /extlinux/../bl808-pine64-ox64## Flattened Device Tree blob at 51ff8000 | |
Booting using the fdt blob at 0x51ff8000 | |
Working ff8000 | |
Loading Device Tree to 0000000053f22000, end 0000000053f25fab ... OK | |
Working FDT set to 53f22000 | |
Starting kernel ... | |
ABCnx_start: Entry | |
uart_register: Registering /dev/console | |
work_start_lowpri: Starting low-priority kernel worker thread(s) | |
up_create_stack: ERROR: Failed to allocate stack, size 2048 | |
_assert: Current Version: NuttX 12.4.0-RC0 990e918-dirty Mar 5 2024 15:45:34 risc-v | |
_assert: Assertion failed pid > 0: at file: wqueue/kwork_thread.c:263 task: Idle_Task process: Kernel 0x50201a84 | |
up_dump_register: EPC: 00000000502021f6 | |
up_dump_register: A0: 00000000504013e0 A1: 0000000000000107 A2: 000000005021ae40 A3: 000000000000007e | |
up_dump_register: A4: 0000000050400d08 A5: 0000000000000003 A6: 0000000050407e28 A7: fffffffffffffff8 | |
up_dump_register: T0: 000000000000002e T1: 0000000000000007 T2: 00000000000001ff T3: 0000000050409878 | |
up_dump_register: T4: 0000000050409870 T5: 0000000000000009 T6: 000000000000002a | |
up_dump_register: S0: 0000000000000000 S1: 0000000050400d08 S2: 0000000050407b10 S3: 0000000000000000 | |
up_dump_register: S4: 000000005021ae40 S5: 000000005021b908 S6: 8000000200046022 S7: 0000000050401b40 | |
up_dump_register: S8: 0000000000000107 S9: 0000000053fcf2e0 S10: 0000000000000001 S11: 0000000000000003 | |
up_dump_register: SP: 00000000504079a0 FP: 0000000000000000 TP: 0000000000000000 RA: 00000000502021f6 | |
dump_stack: User Stack: | |
dump_stack: base: 0x50407010 | |
dump_stack: size: 00003056 | |
dump_stack: sp: 0x504079a0 | |
stack_dump: 0x50407980: 00000001 00000000 50400d08 00000000 504079a0 00000000 5020235a 00000000 | |
stack_dump: 0x504079a0: 50201a84 00000000 50407c00 00000000 50409460 00000000 5020a796 00000000 | |
stack_dump: 0x504079c0: 50400d08 00000000 504013e0 00000000 5021ae40 00000000 5021b908 00000000 | |
stack_dump: 0x504079e0: 00000107 00000000 7474754e 00000058 50409460 00000000 5020a6ba 00000000 | |
stack_dump: 0x50407a00: 50409460 00000000 5020432c 00000000 fffffff3 ffffffff fffffffc 2e323100 | |
stack_dump: 0x50407a20: 2d302e34 00304352 50407c00 00000000 393992f0 31396530 69642d38 20797472 | |
stack_dump: 0x50407a40: 2072614d 32203520 20343230 343a3531 34333a35 00000000 5020894c 00000000 | |
stack_dump: 0x50407a60: 504092f0 73697200 00762d63 ffffffff 504092f0 00000000 5020a6ba 00000000 | |
stack_dump: 0x50407a80: 00000001 00000000 53fcf2e0 00000000 53f7a15c 00000000 00000000 00000000 | |
stack_dump: 0x50407aa0: 00000000 00000000 53fe2f98 00000000 fffffff3 ffffffff 50400cf8 00000000 | |
stack_dump: 0x50407ac0: 50407b10 00000000 50407b30 00000000 50401aa0 00000000 502086ec 00000000 | |
stack_dump: 0x50407ae0: 50401aa0 00000000 50203d32 00000000 504081b0 00000000 50407b10 00000000 | |
stack_dump: 0x50407b00: 50407b30 00000000 00000000 00000000 30357830 61313034 00003061 00000000 | |
stack_dump: 0x50407b20: 504081b0 00000000 50204074 00000000 30357830 61313034 53003863 00000000 | |
stack_dump: 0x50407b40: fffffff3 ffffffff 50400cf8 00000000 50401b54 00000000 50401b58 00000000 | |
stack_dump: 0x50407b60: 50400d08 00000000 50201dbc 00000000 50400d08 00000000 50201c80 00000000 | |
stack_dump: 0x50407b80: 50600000 00000000 01400000 00000000 5021a490 00000000 00000003 00000000 | |
stack_dump: 0x50407ba0: 5021a490 00000000 50447c00 00000000 00000000 00000000 502006e2 00000000 | |
stack_dump: 0x50407bc0: 50410281 00000000 50200830 00000000 00000000 00000000 00000000 2d000000 | |
stack_dump: 0x50407be0: 53f7a15c 00000000 53ff4680 00000000 00000400 00000000 50200088 00000000 | |
stack_dump: 0x50407c00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 | |
dump_tasks: PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND | |
dump_tasks: ---- --- --- -------- ------- --- ------- ---------- ---------------- 0x50400290 2048 184 8.9% irq | |
dump_task: 0 0 0 FIFO Kthread - Running 0000000000000000 0x50407010 3056 1472 48.1% Idle_Task |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment