Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHi John,
I managed to get a booting kernel in the meantime. I posted a short overview of what I did in the rocketboards mailinglist (http://lists.rocketboards.org/pipermail/rfi/2014-february/001341.html) --- Quote Start --- I don't know if this is the perfect way but in case someone else wants to do this here is how I got there (also thanks to Dalon W.): - I used the linux-socfpga git repository for building a kernel * make ARCH=arm CROSS_COMPILE=xxx/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/arm-linux-gnueabihf- socfpga_defconfig * make ARCH=arm CROSS_COMPILE=xxx/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/arm-linux-gnueabihf- uImage LOADADDR=0x8000 - And for building the modules * make ARCH=arm CROSS_COMPILE=xxx/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/arm-linux-gnueabihf- modules * make ARCH=arm CROSS_COMPILE=xxx/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/arm-linux-gnueabihf- INSTALL_MOD_PATH=xxx/rootfspatch/ modules_install - I used the rootfs from the yocto release, and added the modules generated by the previous step to that rootfs - I merged my old 3.9 dts with the socfpga(_cyclone5)(_socdk).dts(i) files from the 3.13 kernel and generated the dtb from it - I had to modify 3.13 dw_mmc-socfpga.c with some 3.9 code to add mci_writel(host, PWREN, pwr_en); to power on / keep powered the SD card [probably not the ideal solution] --- Quote End --- But now I am running into different problems with the 3.13 kernel so I am not sure my upgrade efforts were worth it ;p http://stackoverflow.com/questions/22228347/linux-kernel-asynchronous-aio-do-i-need-to-copy-over-the-struct-iovec-for-later (http://stackoverflow.com/questions/22228347/linux-kernel-asynchronous-aio-do-i-need-to-copy-over-the-struct-iovec-for-later)