Hi,
I'm looking for some advice on how to go about recompiling the piCore Kernel?
The background is, I've created a patch for the smsc95xx driver which causes it to first check for a MAC address on eeprom before using the smsc95xx.macaddr parameter given by start.elf (or through cmdline.txt). This is because I have some USB-Ethernet adaptors based on the same chip as the Pi and they were all being assigned the same MAC address on boot. I've tested this on a stock Raspbian install, following the guide here:
https://www.raspberrypi.org/documentation/linux/kernel/building.md and this has been successful.
My attempt with piCore has been less so though, I downloaded the sources from:
http://tinycorelinux.net/7.x/armv6/releases/RPi/src/kernel/ and extracted them all. I then applied the supplied patch and my patch. I also copied the supplied .config file into the extracted kernel sources.
I then ran
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- oldconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bzImage modules dtbs
sudo scripts/mkknlimg arch/arm/boot/zImage ../kernel7.img
and copied the kernel7.img file to the SD card, updated config.txt to point to that kernel and tried booting the pi... alas, it gets stuck on the rainbow screen.
I know I've not done anything with the modules - not too sure what to do here, but could this be causing my problem?
I've also been part-following the guide here:
http://wiki.tinycorelinux.net/wiki:custom_kernel but this is geared more to the x86 version so I'm treading a line between that and the Raspbian guide.
Any advice is welcomed!
Thanks