sophgo / bootloader-riscv

15 stars 37 forks source link

the new edk2 firmware startup error #83

Open wangliu-iscas opened 4 months ago

wangliu-iscas commented 4 months ago

I download the new single maste firmware, copy SG2042.fd to be riscv64_Image, then burn it into my three sdcards, they all startup error in pioneer v1.3 with the same problem . This is the log:

SOPHGO ZSBL sg2042:v0.3

sg2042 work in single socket mode chip0 ddr info: raw data=0x5050505, ddr0 size:0x800000000 ddr1 size:0x800000000 ddr2 size:0x800000000 ddr3 size:0x800000000 SD initializing 100000000Hz (transfer frequency at 25000000Hz) sd card init ok open 0:riscv64/conf.ini failed conf.ini should start with "[sophgo-config]" have no conf.ini file rv boot from sd card SD initializing 100000000Hz (transfer frequency at 25000000Hz) sd card init ok 0:riscv64/fw_dynamic.bin file size is 270032 0:riscv64/riscv64_Image file size is 8585216 0:riscv64/initrd.img file size is 15773284 0:riscv64/mango-milkv-pioneer.dtb file size is 44551 sd read file ok chip0 ddr node in dtb: base:0x0000000000, len:0xc0000000 base:0x0100000000, len:0x700000000 base:0x0800000000, len:0x800000000 base:0x1000000000, len:0x800000000 base:0x1800000000, len:0x800000000 use default mac address main core sbi jump to 0x0, dynamic info:40019860

OpenSBI v1.2 Build time: 2024-05-14 02:32:42 +0000 Build compiler: gcc version 13.2.0 ()


/ \ / __ _ _ __ (___ _) ' \ / \ '_ \ ___ \ _ < __ _) __/ ____) _) _ ____/ ./ _ _ _ _____/ _/___
_

Platform Name : Sophgo Mango Platform Features : medeleg Platform HART Count : 64 Platform IPI Device : aclint-mswi Platform Timer Device : aclint-mtimer @ 50000000Hz Platform Console Device : uart8250 Platform HSM Device : --- Platform PMU Device : Platform Reboot Device : mango-reset Platform Shutdown Device : mango-reset Platform Suspend Device : --- Firmware Base : 0x0 Firmware Size : 1376 KB Firmware RW Offset : 0x40000 Runtime SBI Version : 1.0

Domain0 Name : root Domain0 Boot HART : 4 Domain0 HARTs : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63 Domain0 Region00 : 0x0000007094000000-0x0000007094003fff M: (I,R,W) S/U: () Domain0 Region01 : 0x0000000000000000-0x000000000003ffff M: (R,X) S/U: () Domain0 Region02 : 0x0000000000000000-0x00000000001fffff M: (R,W) S/U: () Domain0 Region03 : 0x00000070ac000000-0x00000070ac3fffff M: (I,R,W) S/U: () Domain0 Region04 : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X) Domain0 Next Address : 0x0000000002000000 Domain0 Next Arg1 : 0x000000004009fd90 Domain0 Next Mode : S-mode Domain0 SysReset : yes Domain0 SysSuspend : yes

Boot HART ID : 4 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 : 2048 Boot HART PMP Address Bits: 38 Boot HART MHPM Count : 29 Boot HART MIDELEG : 0x0000000000020222 Boot HART MEDELEG : 0x000000000000b109 PROGRESS CODE: V03040003 I0 PROGRESS CODE: V03040002 I0 PROGRESS CODE: V03040003 I0 PROGRESS CODE: V03040002 I0 PROGRESS CODE: V03040003 I0 PROGRESS CODE: V03040002 I0 !!!! RISCV64 Exception Type - 000000000000000D(EXCEPT_RISCV_LOAD_ACCESS_PAGE_FAULT) !!!! t0 = 0x000000000048FFB78 t1 = 0x000000000048FFB80 t2 = 0x00000000000002000 t3 = 0x00000000000000000 t4 = 0x00000000000000000 t5 = 0x00000000000000000 t6 = 0x00000000000000000 s0 = 0x000000000048FFA60 s1 = 0x00000000000000000 s2 = 0x00000000000000000 s3 = 0x00000000000000000 s4 = 0x00000000000000000 s5 = 0x00000000000000000 s6 = 0x00000000000000004 s7 = 0x00000000000000040 s8 = 0x00000000000004000 s9 = 0x0000000000004EAC8 s10 = 0x00000000000000000 s11 = 0x00000000000000000 a0 = 0x000000000BF56C128 a1 = 0x000000000BF56C0A8 a2 = 0x000000000BF56C0A0 a3 = 0x000000000BF56C108 a4 = 0x00000000000000001 a5 = 0x01417B715610EE55F a6 = 0x000000000BFED1790 a7 = 0x00000000000000010 zero = 0x00000000000000000 ra = 0x000000000BFDD3304 sp = 0x00000000000000000 gp = 0x00000000000000000 tp = 0x00000000000146000 sepc = 0x000000000BFDD22BC sstatus = 0x08000000200006120 stval = 0x000000015610EE55F