LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-16-2007, 04:40 AM   #1
tde02003
LQ Newbie
 
Registered: Apr 2007
Location: Sweden, Malmö
Distribution: Debian GNU/Linux
Posts: 3

Rep: Reputation: 0
Uncompressed kernel Image boot problems


Hello!
I'm trying to optimize the startup time for an embedded system based on Atmel AT91RM9200.
I have done some tests to figure out the best configuration for the boot.bin, U-boot and the Linux kernel. All works fine.
Now I would
like to try starting my system with an uncompressed kernel image. My idea is that it takes some more time to uncompress a kernel than just boot a large one.
I have built one and installed it to the board. The problem is that nothing happens. The last displayed message comes from the boot loader U-boot.
"Ok
Starting the kernel..."

Are there special steps to do if one would like to run an uncompressed kernel image?
My kernel is Linux 2.6.17.

Greetings
Joakim Nordell
 
Old 04-16-2007, 01:47 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I'm not that sure. What's your transfer from DF? How long would it take to load compressed and uncompressed version? How long does the decompression take?

I'd count that before doing the non-trivial kernel work. My (good) guess is that bottleneck here would be DF reading, not decompression here.
 
Old 04-17-2007, 01:36 AM   #3
tde02003
LQ Newbie
 
Registered: Apr 2007
Location: Sweden, Malmö
Distribution: Debian GNU/Linux
Posts: 3

Original Poster
Rep: Reputation: 0
The DF reading, before the message "Starting kernel..." is about 2 s with an uncompressed kernel and about 1 s with the compressed one.
The time to uncompress the bzImage is about 1.5 s. Therefore you are right. . . There isn't much time to save, about 5% in my case, but that's only true if the uncompressed kernel will start.
Do you have an idea about what's going wrong with the uncompressed one?

/Joakim Nordell
 
Old 04-17-2007, 02:56 AM   #4
kingraja84
LQ Newbie
 
Registered: Aug 2006
Location: India
Distribution: suse,mandriva
Posts: 24

Rep: Reputation: 15
hi
r u using "mkimage" to compress the image
see the compressed image is less than uncompressed one
eg: if 4MB is ur uncompressed it will be around 1MB compressed

uboot will uncompress the image at bootup
 
Old 04-18-2007, 12:35 AM   #5
tde02003
LQ Newbie
 
Registered: Apr 2007
Location: Sweden, Malmö
Distribution: Debian GNU/Linux
Posts: 3

Original Poster
Rep: Reputation: 0
Hello!
No, I'm just using mkimage to add the relevant U-boot information to the kernel image.
I have:
make Image
make zImage
and then ../u-boot/tools/mkimage for both Image and zImage.
In my case the zImage is about 850 kb and the uncompressed one is about 1580 kb. The size differens before and after mkimage is about 128 bytes.
The compressed one starts as you can expect. The uncompressed one stops at ones, without any error messages.
I have also tried the compress function within mkimage but the uncompress method within U-boot is slower than in the kernel so that's not the right way to save startup time.

Greetings
/Joakim Nordell
 
Old 04-18-2007, 11:47 PM   #6
kingraja84
LQ Newbie
 
Registered: Aug 2006
Location: India
Distribution: suse,mandriva
Posts: 24

Rep: Reputation: 15
if ur getting any error like "bad magic number" there is problem with compression

if kernel is uncompressing at bootup and later got hanged it means ur static allocated drivers might have bugged ur kernel

r u seeing printk statements from drivers showing "device upgrade success"....

if drivers are all good
ur kernel not able to find ur ramdisk(ur rootfs)
(for me to uncompress & start the application it took 20seconds)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot kernel image through tftp muleypr *BSD 0 01-01-2007 04:26 AM
How to extract uncompressed image from /boot/vmlinuz-2.6.11 ?? trelf Linux - Kernel 4 05-30-2006 07:51 PM
Kernel uncompressed error sickasabat Linux - Hardware 2 12-10-2005 03:14 PM
kernel-image-2.6.11-1-k7 problems hkctr Debian 0 05-27-2005 08:14 AM
Uncompressed Webcam image? charliei Linux - Hardware 1 05-16-2005 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration