On Fri, Sep 11, 2009 at 9:52 AM, Luan Chan
<luanchan@xxxxxxxxx> wrote:
Let me start of by saying that I am able to get petalinux-v0.40-rc4 running the 2.6.20 kernel working on this particular devkit. The problem is that the 2.6.20 kernel does not have CAN support, it looks like that was added in 2.6.24. So I decided to grab the head of the linux-2.6-microblaze.git which looks to have the 2.6.30 kernel. I took the linux-2.6-microblaze kernel and replaced the petalinux-v0.40-rc4\software\linux-2.6.x-petalogix directory. I copied over the petalinux-dist\linux-2.6.x\arch\microblaze\platform directory from the petalinux-v.40-rc4 distribution. I also created a sym link at petalinux-dist\linux-2.6.x\include\asm-microblaze to point to petalinux-dist\linux-2.6.x\arch\microblaze\include\asm. I also modified the petalinux-dist\linux-2.6.x\arch\microblaze\platform\Xilinx-Spartan3A1800-RevA\Kconfig.auto (copied from my edk repository) to include KERNEL_BASE_ADDRESS and petalinux-dist\linux-2.6.x\arch\microblaze\Kconfig to default the KERNEL_START to XILINX_ERAM_START. I set KERNEL_BASE_ADDRESS to the same value as XILINX_ERAM_START.
After doing all those things I was able to get the distribution to fully compile. The problem is that when I load the image into the devkit, it doesn't appear to actually start running linux. I get a succesful message saying the image was placed in the correct location (0x48000000) but nothing happens. I can take a image created using the petalinux-v0.40-rc4 with my Kconfig.auto and try to load that and it works perfectly fine. Any suggestions as to what I'm doing wrong or where to start looking would be extremely helpful. My linux-2.6.x\.config file is below.
The new kernel requires a device tree blob (DTB) to get the platform configuration. You can download the device tree generator from either
developer.petalogix.com/gitweb/gitweb.cgi or the Xilinx git server.
Regards,
John
--