Help Needed ... Embedded Linux for x86

Hi All, I'm a newbie to embedded linux and trying to port linux onto AMD Elan SC520 processor with x86 architecture. I built the kernel and loaded into the target. when I try to run the linux in the target, I'm getting the following error and the system is getting hanged.

The error is : Unable to handle kernel NULL pointer dereference at virtual address

00000f2c current->tss.cr3 = 00101000, %cr3 = 00101000 *pde = 00000000 Oops: 0000 CPU: 0 EIP: 0010:[] EFLAGS: 00010286 eax: c01ddfa0 ebx: c01dc000 ecx: c01cb5d8 edx: 00000000 esi: c01ddfd4 edi: c0230808 ebp: 00000f00 esp: c01ddf08 ds: 0018 es: 0018 ss: 0018 Process swapper (pid: 0, process nr: 0, stackpage=c01dd000) Stack: c01ddf28 c010fc89 c009c000 00000f00 c01060d0 00000282 c01ddfa0 00000f00 00000001 c011250e 00000001 00000001 c0108d77 00000001 00000000 00000000 00000000 c01f9ea0 00000000 00000000 00000000 00000000 00000000 c01ebd37 Call Trace: [] [] [] [] [] [] [] [] [] [] [] [] [] Code: 8b 45 2c 83 e0 03 83 f8 03 ba 01 00 00 00 74 0d 81 c4 8c 00 Kernel panic: Attempted to kill the idle task! In swapper task - not syncing

I tried to debug the code and found out that this error is occuring when the Kernel_Thread() is called from the /linux/init/main.c file. Can anybody please tell me what may be the problem and suggest me how to do a step by step debugging of the code in the target. your earliest reply would help me a lot.

with Regards, Kishore.S.Kumar.

Reply to
Kishore.S
Loading thread data ...

Hi Kishore,

We have a target using the Elan SC520 in our linux distro. You may find it easier to download and build your kernel/OS with that:

SnapGear Linux -

formatting link

regards,

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     damion@snapgear.com
 Click to see the full signature
Reply to
Damion de Soto

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.