Hi Dave et al, Got 3.12 kernel up and running.. looks there was some mess-up with the kernelconfig-3.12 file.. might be my mistake... sorry for that.. and thanks for your time.. and the kernel size after eliminating loading debug symbols is around 1.8MB.
Thanks, Girish On Sun, Jul 20, 2014 at 2:57 PM, Girish Desai <[email protected]> wrote: > Hi Juergen, > > I am trying to boot linux-3.12 on FriendlyARM mini2440 board. > > I incorporated your changes mentioned in the link " > http://git-public.pengutronix.de/?p=OSELAS.BSP-Pengutronix-Mini2440.git;a=blobdiff;f=configs/platform-friendlyarm-mini2440/kernelconfig-3.12;h=f568a9c4cb8878d856247436d775d00019c25e0e;hp=e961ec3a3a0680341b7009843942268c55c55599;hb=8b830bfabcaf91bbf91ff6f9115c7d395d86d954;hpb=bfb8449b6655e38386847de6240cf3a8309dcb81 > " > > in kernelconfig-3.12 file to reduce the kernel size to fit into nand. but > it could only reduce from some where around 3.7 MB to around 3.3MB. and > hence still could not fit into NAND. Thought of changing the size of the > nand partition but wanted to get this kernel successfully booted from ram > first. > > I have applied the patches to linux-3.12 mentioned in the link > > http://git-public.pengutronix.de/?p=OSELAS.BSP-Pengutronix-Mini2440.git;a=tree;f=configs/platform-friendlyarm-mini2440/patches/linux-3.12;h=dfb1107751790e2f420b1ad89826452eebed19e8;hb=5c283f627ec36e94695a0717515288cc37d7ed5c > > but box freezes after printing "Starting kernel..." below is the output > pasted.. you can see that I have changed 'malloc space' & 'stack space' > sizes as I was getting some error saying "Error: out of memory" when I > tried manually booting the kernel using 'bootm' command after the > uImage-mini2440 is downloaded to ram through TFTP.. > =============== Console output: booting kernel 3.12 =============== > barebox 2011.05.0-ptx-2012.12.0 (Jul 19 2014 - 20:51:25) > > Board: Mini 2440 > NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V > 8-bit) > Bad block table found at page 524224, version 0x01 > Bad block table found at page 524160, version 0x01 > dm9000 i/o: 0x20000300, id: 0x90000a46 > eth@eth0: got MAC address from EEPROM: 00:00:00:00:00:00 > refclk: 12000 kHz > mpll: 405000 kHz > upll: 48000 kHz > fclk: 405000 kHz > hclk: 101250 kHz > pclk: 50625 kHz > SDRAM1: CL2@101MHz > Malloc space: 0x33500000 -> 0x33f00000 (size 10 MB) > Stack space : 0x334f6000 -> 0x33500000 (size 40 kB) > running /env/bin/init... > > Hit any key to stop autoboot: 0 > phy0: Link is up - 100/Full > TFTP from server 10.0.0.100 ('uImage-mini2440' -> '/dev/ram0.kernel') > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ############################ > booting kernel of type uimage from /dev/ram0.kernel > Verifying Checksum ... OK > Image Name: Linux-3.12.18-ptx-master > Created: 2014-07-19 14:38:23 UTC > Image Type: <NULL> <NULL> <NULL> (<NULL>) > Data Size: 3470808 Bytes = 3.3 MB > Load Address: 30008000 > Entry Point: 30008000 > OK > commandline: console=ttySAC0,115200 mini2440=5tbc root=/dev/nfs rw > nfsroot=10.0.0.100:/home/girish/FriendlyARM/rootfs ip=10.0.0.101:10 > .0.0.100) > arch_number: 1999 > > Starting kernel ... > > ============================================================= > > Could there be any solution/suggestion to this? > as seen in the forum, kernel linux-3.7 is coming up smoothly. Issue is in > booting linux 3.12 > > Thanks, > Girish >
