Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dexdynedgc
PostPosted: Nov 09, 2010 - 10:37 AM
Hangaround


Joined: Sep 23, 2005
Posts: 387
Location: UK

All of a sudden I can't run the kernels I build!!!

I've no idea what I've done - the kernel size has jumped from 1.2M to 1.4M though

Is it possible I've run out of space to load the compressed image or store the uncompressed one?

I've never quite understood the significance of the 10200000 and 10400000 numbers used by boot - can someone inform my ignorance, or suggest another reason why I sudden get no output after

Starting kernel at 90000000 (params at 11f6e008)...

TVM

David
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Nov 09, 2010 - 11:32 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

Quote:
I've never quite understood the significance of the 10200000 and 10400000 numbers used by boot - can someone inform my ignorance, or suggest another reason why I sudden get no output after

You didn't understand why loading at a different address might solve the issue when the kernel starts growing? Wink

The kernel loads to the address you refer to above, then it extracts to address 0x10000000. If there is not enough room between 0x10000000 and your load address, then you will corrupt the contents at your load address while extracting the kernel.

Adjust your load address to 0x10400000 and you should have enough room.
 
 View user's profile Send private message  
Reply with quote Back to top
dexdynedgc
PostPosted: Nov 09, 2010 - 12:06 PM
Hangaround


Joined: Sep 23, 2005
Posts: 387
Location: UK

doesn't fix it even if I stick the kernel in parallel flash.

Oh what on earth have I done .... 200k bigger and not working - it must be SOMETHING I've changed

D
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Nov 09, 2010 - 12:19 PM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

dexdynedgc wrote:
doesn't fix it even if I stick the kernel in parallel flash.

Oh what on earth have I done .... 200k bigger and not working - it must be SOMETHING I've changed
Could you paste the output from U-Boot when trying to load the kernel?

Have you tried restarting by cleaning your kernel tree, and load a *_defconfig?

100% sure you got the correct prefix to your avr32-linux-* toolchain? Also, are you using the avr32-linux-* toolchain generated by Buildroot for AVR32? If not, I highly recommend to switch to that, as this fixes quite some compiler bugs.
 
 View user's profile Send private message  
Reply with quote Back to top
dexdynedgc
PostPosted: Nov 09, 2010 - 03:39 PM
Hangaround


Joined: Sep 23, 2005
Posts: 387
Location: UK

good lord - somehow I had picked up a corrupt/ancient .config file....

So a simple question does 1040 mean "space for a 4M kernel once decompressed"?

D
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Nov 09, 2010 - 04:51 PM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

Quote:
So a simple question does 1040 mean "space for a 4M kernel once decompressed"?

Correct. The SDRAM starts at address 0x10000000, and you have to have enough space from the beginning to the address you load the compressed kernel. Strait forward simple kernels are typically well below 2 MB in size uncompressed, hence the default 0x10200000 load address in U-Boot.
 
 View user's profile Send private message  
Reply with quote Back to top
dexdynedgc
PostPosted: Nov 10, 2010 - 11:56 AM
Hangaround


Joined: Sep 23, 2005
Posts: 387
Location: UK

OK - sorted now - I have no idea what happened but all of a sudden my .config file was one for an STK100n board.

and I've found a comment which says that1040 means "allow for a 4M kernel" so I believed it once and I guess it's still true.
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Nov 10, 2010 - 12:57 PM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

Quote:
and I've found a comment which says that1040 means "allow for a 4M kernel" so I believed it once and I guess it's still true.

Correct, if you mean 1040 actually means 0x10400000 load address for the compressed kernel. That leave 0x400000 bytes (4 MB) space for the uncompressed kernel.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits