Just booted my first self compiled kernel
9 March 2008RaidSonic being a good FOSS citizen has put out the sources of the linux kernel they use on the NAS4220. I used buildroot to generate myself an armv4 cross toolchain and than tried to compile my own kernel. The first thing that needs to be changed is the $CROSS_COMPILE variable in the kernel makefile. The correct value for my toolchain is “arm-linux-”. The kernel source contains a .config file appropriate for the NAS4220 so no further configuration is needed. It doesn’t compile right out of the box but its only a few simple syntax errors which are easy to correct. The resulting zImage boots without a hitch.
sl-boot>load -m tftp -b 0x01600000 TFTP Server IP Address: 192.168.0.201 Image Path and name(e.g. /images/zImage): /srv/tftp/zImage TFTP Download /srv/tftp/zImage from 192.168.0.201 ................... Successful to download by TFTP! Size=2048536 sl-boot>go 0x01600000 Uncompressing Linux...................................................................................... Linux version 2.6.15 (frank@dexter) (gcc version 4.2.1) #119 Tue Mar 4 06:17:30 CET 2008 CPU: FA526id(wb) [66015261] revision 1 (ARMv4) Machine: GeminiA Ignoring unrecognised tag 0x00000000 Memory policy: ECC disabled, Data cache writeback CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 2, 16 byte lines, 512 sets CPU0: D cache: 8192 bytes, associativity 2, 16 byte lines, 256 sets Built 1 zonelists Kernel command line: root=/dev/ram0 rw console=ttySL0,19200 initrd=0x00800000,16M ramdisk_size=16384 [...]
