![]() |
|
![]() | We cannot use the vxWorks bootloader to load a Linux kernel since it looks in the ELF header and loads the image to the address written there. However, the Linux kernel, which uses virtual memory, is linked to a high-memory address, and vxWorks can't handle that. |
Once the target is stopped, run the VisionICE software and perform the following steps:
![]() | The bias field makes it possible to tell ICE to load a certain image in a different address than what's stated in the ELF binary. We wanted to load the kernel into address 0x300000, and since the binary was linked to 0xC0000000, we entered -0xBFD00000. |
Once the image is loaded succesfully, you can press Run or Step to start executing your kernel.
![]() | VisionICE is not the correct tool to use when debugging Linux. ICE doesn't know about virtual memory and protected mode (at least the version we had), and since the Linux kernel turns on virtual memory very early, ICE is only useful for debugging the first assembler statements. After VM is turned on, ICE starts crashing and giving wierd results. |
Hosting by: Hurra Communications Ltd.
Generated: 2007-01-26 17:57:31