Hi list,<br><br>I tried to find out what happened to the booting of okl4 at gta02(Free Runner). <br>The problem I met is no more respond after the msg "OKL4 - (provider: Open <br>Kernel ..." is displayed.<br><br>
The build cmd I use is:<br>./tools/build.py machine=gta02 project=examples pyfreeze=false example=hello \<br>pistachio.TOOLCHAIN=gnu_arm_toolchain<br><br>For more verbose debug msgs, I added CONFIG_VERBOSE_INIT and <br>CONFIG_KDB_ON_STARTUP to machines.py, see the attached file. <br>
<br>The other attached file okl4.log is the complete log, including booting and how I find out <br>the problem through KDB.<br><br>The reason why I got no respond is because of PAGE_FAULT when switching from idle <br>thread to _hello_ thread. <br>
<br>We could see the instruction address(pc) when page fault happened is _0x001056a0_ <br>from okl4.log.<br><br>00105640 <hello-device_setup_impl>:<br> ...<br> 105690: e284400c add r4, r4, #12 ; 0xc<br>
105694: daffffef ble 105658 <hello-device_setup_impl+0x18><br> 105698: e5952068 ldr r2, [r5, #104]<br> 10569c: e59fe160 ldr lr, [pc, #352] ; 105804 <hello.text+0x5804><br>
1056a0: e5923000 ldr r3, [r2]<br><br>According the asm code, <br><br>r2 = memory(r5+#104) = memory(0x200d98+#104) = memory(0x200e00) = 0x0<br>r3 = memory(r2) = memory(0x0)<br><br>When I dump the memory (0x0), it show ######## always, I thought that's why <br>
page_fault. I'll keep trying and any idea/hint how to resolve this problem is very <br>appreciated. ;)<br><br>Captured from okl4.log:<br><br>> go<br>DABT @ 00000000 [00000000], pc = 001056a0, tcb = f0103d20, fs = 5<br>
--- KD# ARM_DATA_ABORT ---<br>> frame<br>== Stack frame: f0023f58 == <br>cpsr = 200000d3, pc = f0010a78, sp = f0023f58, lr = f0010a78<br>r0 = f001a944, r1 = f9000000, r2 = 85, r3 = ffffffff, r4 = 0<br>
r5 = 5, r6 = f00243d0, r7 = 200df8, r8 = f0103d70, r9 = 1075b4<br>r10 = f0103d20, r11 = 5, r12 = 0<br>> dumpframe<br>tcb/tid/addr [current]: current<br>== Stack frame: f0103d70 == <br>cpsr = 20000010, pc = 1056a0, sp = 1108a8, lr = 10f79c<br>
r0 = 200d98, r1 = 0, r2 = 0, r3 = 105c2c, r4 = 10f83c<br>r5 = 200d98, r6 = 8, r7 = 200df8, r8 = 0, r9 = 1075b4<br>r10 = ffffffff, r11 = 10f6b8, r12 = 200db0<br>> go<br>
PF @ 00000000 [00000000], pc = 001056a0, tcb = f0103d20, fs = 5<br>--- KD# ARM_PAGE_FAULT ---<br>> go<br>user read pagefault by f0103d20 at 00000000, ip=001056a0, ksp=f0023f80<br>--- KD# PAGEFAULT_USER ---<br>> go<br>
DABT @ 00000000 [00000000], pc = 001056a0, tcb = f0103d20, fs = 5<br>--- KD# ARM_DATA_ABORT ---<br>> go<br>PF @ 00000000 [00000000], pc = 001056a0, tcb = f0103d20, fs = 5<br>--- KD# ARM_PAGE_FAULT ---<br>> memdump<br>
Dump address [0x200000]: 0x200e00<br>00200e00 00000000 00000000 00000000 00000000 ........ ........<br>00200e10 00000000 00000000 00000000 00000000 ........ ........<br>00200e20 00000000 00000000 00000000 00000000 ........ ........<br>
00200e30 00000000 00000000 00000000 00000000 ........ ........<br>00200e40 00000000 00000000 00000000 00000000 ........ ........<br>00200e50 00000000 00000000 00000000 00000000 ........ ........<br>00200e60 00000000 00000000 00000000 00000000 ........ ........<br>
00200e70 00000000 00000000 00000000 00000000 ........ ........<br>00200e80 00000000 00000000 00000000 00000000 ........ ........<br>00200e90 00000000 00000000 00000000 00000000 ........ ........<br>00200ea0 00000000 00000000 00000000 00000000 ........ ........<br>
00200eb0 00000000 00000000 00000000 00000000 ........ ........<br>00200ec0 00000000 00000000 00000000 00000000 ........ ........<br>00200ed0 00000000 00000000 00000000 00000000 ........ ........<br>00200ee0 00000000 00000000 00000000 00000000 ........ ........<br>
00200ef0 00000000 00000000 00000000 00000000 ........ ........<br>Continue? (Continue/Quit) [continue]: quit<br>> dumpframe<br>tcb/tid/addr [current]: current<br>== Stack frame: f0103d70 == <br>cpsr = 20000010, pc = 1056a0, sp = 1108a8, lr = 10f79c<br>
r0 = 200d98, r1 = 0, r2 = 0, r3 = 105c2c, r4 = 10f83c<br>r5 = 200d98, r6 = 8, r7 = 200df8, r8 = 0, r9 = 1075b4<br>r10 = ffffffff, r11 = 10f6b8, r12 = 200db0<br>> memdump<br>
Dump address [0x200e00]: 0x00000000<br>00000000 ######## ######## ######## ######## ######## ########<br>00000010 ######## ######## ######## ######## ######## ########<br>00000020 ######## ######## ######## ######## ######## ########<br>
00000030 ######## ######## ######## ######## ######## ########<br>00000040 ######## ######## ######## ######## ######## ########<br>00000050 ######## ######## ######## ######## ######## ########<br>00000060 ######## ######## ######## ######## ######## ########<br>
00000070 ######## ######## ######## ######## ######## ########<br>00000080 ######## ######## ######## ######## ######## ########<br>00000090 ######## ######## ######## ######## ######## ########<br>000000a0 ######## ######## ######## ######## ######## ########<br>
000000b0 ######## ######## ######## ######## ######## ########<br>000000c0 ######## ######## ######## ######## ######## ########<br>000000d0 ######## ######## ######## ######## ######## ########<br>000000e0 ######## ######## ######## ######## ######## ########<br>
000000f0 ######## ######## ######## ######## ######## ########<br>Continue? (Continue/Quit) [continue]: continue<br>00000100 ######## ######## ######## ######## ######## ########<br>00000110 ######## ######## ######## ######## ######## ########<br>
00000120 ######## ######## ######## ######## ######## ########<br>00000130 ######## ######## ######## ######## ######## ########<br>00000140 ######## ######## ######## ######## ######## ########<br>00000150 ######## ######## ######## ######## ######## ########<br>
00000160 ######## ######## ######## ######## ######## ########<br>00000170 ######## ######## ######## ######## ######## ########<br>00000180 ######## ######## ######## ######## ######## ########<br>00000190 ######## ######## ######## ######## ######## ########<br>
000001a0 ######## ######## ######## ######## ######## ########<br>000001b0 ######## ######## ######## ######## ######## ########<br>000001c0 ######## ######## ######## ######## ######## ########<br>000001d0 ######## ######## ######## ######## ######## ########<br>
000001e0 ######## ######## ######## ######## ######## ########<br>000001f0 ######## ######## ######## ######## ######## ########<br>Continue? (Continue/Quit) [continue]: quit<br>> <br><br>Thanks, <br><br>-Sean Chiang<br>
<br>