bouffalolab / bl808_linux

Apache License 2.0
129 stars 41 forks source link

Load access fault on C906 during boot #6

Closed gamelaster closed 2 years ago

gamelaster commented 2 years ago

Board Ox64, used the c906.config defconfig, compiled and flashed according instructions, sadly, after few seconds, C906 crashes as follows (E907 is OK):

Due having limited time for this, I can't play with JTAG and getting more information right now. Please, any suggestions where I might do a mistake?

dynamic memory init success,heap size = 26 Kbyte 
C906 start...
mtimer clk:1000000
linux load start... 
len:0x006df29f

Un-handled Exception on CPU 1:
mstatus = 0x, FS=8403200, MPP=1, MPIE=3
mcause: 5, mtval = 0x, mepc = 0x

Load access fault

ra = 0x  sp = 0x  gp = 0x  tp = 0x  
t0 = 0x  t1 = 0x  t2 = 0x  t3 = 0x  
t4 = 0x  t5 = 0x  t6 = 0x  
a0 = 0x  a1 = 0x  a2 = 0x  a3 = 0x  
a4 = 0x  a5 = 0x  a6 = 0x  a7 = 0x  
s0 = 0x  s1 = 0x  s2 = 0x  s3 = 0x  
s4 = 0x  s5 = 0x  s6 = 0x  s7 = 0x  
s8 = 0x  s9 = 0x  s10 = 0x s11 = 0x  
gamelaster commented 2 years ago

Fixed by https://github.com/bouffalolab/bl808_linux/commit/73a5e95b665ec90ace218ac388d2bc166e0f719c