Created
November 11, 2023 12:29
-
-
Save lupyuen/124aa56c263e51d9306e0d70321f2864 to your computer and use it in GitHub Desktop.
NuttX on Ox64 BL808: Add L1 for 0xC000 0000. See https://github.com/lupyuen/nuttx-ox64
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
[I][] | |
[I][] ____ ____ __ __ _ | |
[I][] / __ \ | _ \ / _|/ _| | | | |
[I][] | | | |_ __ ___ _ __ | |_) | ___ _ _| |_| |_ __ _| | ___ | |
[I][] | | | | '_ \ / _ \ '_ \| _ < / _ \| | | | _| _/ _` | |/ _ \ | |
[I][] | |__| | |_) | __/ | | | |_) | (_) | |_| | | | || (_| | | (_) | | |
[I][] \____/| .__/ \___|_| |_|____/ \___/ \__,_|_| |_| \__,_|_|\___/ | |
[I][] | | | |
[I][] |_| | |
[I][] | |
[I][] Powered by BouffaloLab | |
[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]ncompressing Kernel to 0x50000000... | |
[I][LowLoad] Done! | |
[I][LowLoad] CRC: 00000000 | |
[I][LowLoad] load time: 61348 us | |
[I][LowLoad] Setting PMP | |
[I][LowLoad] Booting OpenSBI at 0x000000003ef80000 with DTB at 0x51ff8000 | |
OpenSBI v1.2 | |
____ _____ ____ _____ | |
/ __ \ / ____| _ \_ _| | |
| | | |_ __ ___ _ __ | (___ | |_) || | | |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |
| |__| | |_) | __/ | | |____) | |_) || |_ | |
\____/| .__/ \___|_| |_|_____/|____/_____| | |
| | | |
|_| | |
Platform Name : Pine64 Ox64 (D0) | |
Platform Features : medeleg | |
Platform HART Count : 1 | |
Platform IPI Device : aclint-mswi | |
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 select a mode | |
** Bad device specification mmc 0 ** | |
Loading Environment from nowhere... OK | |
In: serial@30002000 | |
Out: serial@30002000 | |
Err: serial@30002000 | |
Net: | |
Warning: emac@20070000 (eth0) using random MAC address - ce:b3:73:2c:60:24 | |
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 rootwait rw rootfstype=ext4 console=ttyS0,2000000 loglevel=8 earlycon=sbi | |
Retrieving file: /extlibl808-pine64-ox64.dtb | |
## Flattened Device Tree blob at 51ff8000 | |
Booting using the fdt blob at 0x51ff8000 | |
Working FDT set to 51ff8000 | |
Loading Device Tree to 0000000053f22000, end 0000000053f25fab ... OK | |
Working FDT set to 53f22000 | |
Starting kernel ... | |
123jh7110_copy_ramdisk: _edata=0x50400258, _sbss=0x50400290, _ebss=0x50407000, JH7110_IDLESTACK_TOP=0x50407c00 | |
jh7110_copy_ramdisk: ramdisk_addr=0x50408288 | |
jh7110_copy_ramdisk: size=8192016 | |
ABCjh7110_kernel_mappings: map I/O regions | |
mmu_ln_map_region: ptlevel=1, lnvaddr=0x50406000, par=0, vaddr=0, size=0x50000000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=1, lnvaddr=0x50406000, paddr=0, vaddr=0, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=1, lnvaddr=0x50406000, paddr=0x40000000, vaddr=0x40000000, mmuflags=0x26 | |
jh7110_kernel_mappings: map PLIC | |
mmu_ln_map_region: ptlevel=1, lnvaddr=0x50406000, paddr=0xc0000000, vaddr=0xc0000000, size=0x40000000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=1, lnvaddr=0x50406000, paddr=0xc0000000, vaddr=0xc0000000, mmuflags=0x26 | |
jh7110_kernel_mappings: map kernel text | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x50403000, vaddr=0x50200000, mmuflags=0x0 | |
jh7110_kernel_mappings: map kernl data | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x50404000, vaddr=0x50400000, mmuflags=0x0 | |
jh7110_kernel_mappings: connect the L1 and L2 page tables | |
mmu_ln_setentry: ptlevel=1, lnvaddr=0x50406000, paddr=0x50405000, vaddr=0x50200000, mmuflags=0x20 | |
jh7110_kernel_mappings: map the page pool | |
mmu_ln_map_region: ptlevel=2, lnvaddr=0x50405000, paddr=0x50600000, vaddr=0x50600000, size=0x1400000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x50600000, vaddr=0x50600000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x50800000, vaddr=0x50800000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x50a00000, vaddr=0x50a00000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x50c00000, vaddr=0x50c00000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x50e00000, vaddr=0x50e00000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x51000000, vaddr=0x51000000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x51200000, vaddr=0x51200000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x51400000, vaddr=0x51400000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50405000, paddr=0x51600000, vaddr=0x51600000, mmuflags=0x26 | |
mmu_ln_setentry: ptlevel=2, nvaddr=0x50405000, paddr=0x51800000, vaddr=0x51800000, mmuflags=0x26 | |
nx_start: Entry | |
up_irqinitialize: | |
irq_attach: irq=0, isr=0x5020833c | |
irq_attach: irq=1, isr=0x5020833c | |
irq_attach: irq=2, isr=0x5020833c | |
irq_attach: irq=3, isr=0x5020833c | |
irq_attach: irq=5, isr=0x5020833c | |
irq_attach: irq=7, isr=0x5020833c | |
irq_attach: irq=4, isr=0x5020833c | |
irq_attach: irq=6, isr=0x5020833c | |
irq_attach: irq=8, isr=0x50208e1a | |
irq_attach: irq=9, isr=0x5020833c | |
irq_attach: irq=10, isr=0x5020833c | |
irq_attach: irq=11, isr=0x5020833c | |
irq_attach: irq=12, isr=0x5020833c | |
irq_attach: irq=13, isr=0x5020833c | |
irq_attach: irq=14, isr=0x5020833c | |
irq_attach: irq=15, isr=0x5020833c | |
irq_attach: irq=19, isr=0x5020833c | |
up_irq_enable: | |
irq_attach: irq=17, isr=0x50208158 | |
up_enable_irq: irq=17 | |
uart_register: Registering /dev/console | |
work_start_lowpri: Starting low-priority kernel worker thread(s) | |
nx_start_application: Starting init task: /system/bin/init | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50601000, paddr=0x50602000, vaddr=0xc0100000, mmuflags=0x0 | |
mmu_ln_setentry: ptlevel=2, lnvaddr=0x50601000, paddr=0x5061b000, vaddr=0xc0200000, mmuflags=0x0 | |
elf_addrenv_select: ERROR: up_addrenv_text_enable_write failed: -22 | |
elf_load: ERROR: elf_addrenv_select() failed: -22 | |
elf_loadbinary: Failed to load ELF program binary: -22 | |
exec_internal: ERROR: Failed to load program '/system/bin/init': -22 | |
_assert: Current Version: NuttX 12.0.3 47ec850-dirty Nov 11 2023 20:24:22 risc-v | |
_assert: Assertion failed ret > 0: at file: init/nx_bringup.c:302 task: AppBringUp process: Kernel 0x502014b0 | |
up_dump_register: EPC: 0000000050210232 | |
up_dump_register: A0: 0000000050401d50 A1: 000000000000012e A2: 000000005021ab68 A3: 000000000000007e | |
up_dump_register: A4: 0000000050409900 A5: 0000000000000001 A6: 0000000050407cf8 A7: fffffffffffffff8 | |
up_dump_register: T0: 000000000000002e T1: 000000000000006a T2: 00000000000001ff T3: 000000000000006c | |
up_dump_register: T4: 0000000000000068 T5: 0000000000000009 T6: 000000000000002a | |
up_dump_register: S0: 0000000000000000 S1: 0000000050409900 S2: 0000000000000000 S3: 0000000000000000 | |
up_dump_register: S4: 000000005021ab68 S5: 000000005021ab18 S6: 0000000200042022 S7: 0000000050401f90 | |
up_dump_register: S8: 000000000000012e S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000 | |
up_dump_register: SP: 000000005040c660 FP: 0000000000000000 TP: 0000000000000000 RA: 0000000050210232 | |
dump_stack: User Stack: | |
dump_stack: base: 0x5040c030 | |
dump_stack: size: 00002000 | |
dump_stack: sp: 0x5040c660 | |
stack_dump: 0x5040c660: 502014b0 00000000 5040c7b8 00000000 5021ab30 00000000 5040aa80 00000000 | |
stack_dump: 0x5040c680: 50409900 00000000 50401d50 00000000 5021ab68 00000000 5021ab18 00000000 | |
stack_dump: 0x5040c6a0: 0000012e 00000000 7474754e 00000058 50213938 00000000 502138d2 00000000 | |
stack_dump: 0x5040c6c0: 50206544 00000000 0000000a 00000000 00000000 00000000 fffffffc 2e323100 | |
stack_dump: 0x5040c6e0: 00332e30 ffffffff 50407c00 00000000 3734aa80 35386365 69642d30 20797472 | |
stack_dump: 0x5040c700: 20766f4e 32203131 20333230 323a3032 32323a34 00000000 502053e8 00000000 | |
stack_dump: 0x5040c720: 5040aa80 73697200 00762d63 00000000 ffffffea ffffffff 50206dd4 00000000 | |
stack_dump: 0x5040c740: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 | |
stack_dump: 0x5040c760: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 | |
stack_dump: 0x5040c780: 00000000 00000000 00000064 00000000 ffffffea ffffffff 50205282 00000000 | |
stack_dump: 0x5040c7a0: 00000c00 00000000 50201516 00000000 00000000 00000000 00026400 00000000 | |
stack_dump: 0x5040c7c0: 00000000 00000000 00000c00 00000000 00000000 00000000 00000000 00000000 | |
stack_dump: 0x5040c7e0: 00000000 00000000 50201f1c 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 72 3.5% irq | |
dump_task: 0 0 0 FIFO Kthread N-- Ready 0000000000000000 0x50407010 3056 840 27.4% Idle_Task | |
dump_task: 1 1 100 RR Kthread --- Ready 0000000000000000 0x5040a050 1968 528 26.8% lpwork 0x50401ce0 0x50401d08 | |
dump_task: 2 2 240 RR Kthread --- Running 0000000000000000 0x5040c030 2000 1456 72.8% AppBringUp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment