- Setup EDK project: Should be able to figure this out...Make sure you enable interrupts for Rs232_uart(for console)
- generate bitstreams
Software Setup:
- Get sources: linux2.6 from git.xilinx.com/ you can also get a generic kernel from kernel.org but should configure it properly by enabling only a select few drivers.
- Setup the cross compiler: I used scripts from http://www.kegel.com/crosstool. Change the scripts to select minor-version 2. (gcc version 4.1.2) 4.1.0 doesn't compile2.6
- generate xilinx.dts (required for 2.6 kernel) file for your hardware setting (EDK project). This file is generated using xilinx device-tree. A harder way to do this is to manually edit one of the virtex***.dts files in $LinuxTree/arch/powerpc/boot/dts/virtex***.dts matching you EDK system.mhs and.mss files
- Copy this file to the linuxtree
- Copy initramd before compiling. generate config for virtex2p board using virtexdefconfig files using: make ARCH=powerpc 40x/virtex_defconfig CROSS_COMPILE=powerpc-405-linux-gnu-
- Compile the kernel using make ARCH=powerpc simpleImage.xilinx CROSS_COMPILE=powerpc-405-linux-gnu-
- make ARCH=powerpc simpleImage.initrd.xilinx CROSS_COMPILE=powerpc-405-linux-gnu-
- download the elf files generated in the folder arch/powerpc/boot/simpleImage[.initrd].xilinx.elf
Finalizing device tree... flat tree at 0x71e300
It could be mostly due to the Uart driver. Change it from uartlite to uart_16650(xps_uart16650) also could be some issue with the interrupt to this core.
If the kernel crashes, disable the cache setup on powerpc and try rebuilding

No comments:
Post a Comment