Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Some questions about kernel tailoring
@ 2005-03-30  7:37 dfsd df
  2005-03-30 22:20 ` Stuart Longland
  0 siblings, 1 reply; 9+ messages in thread
From: dfsd df @ 2005-03-30  7:37 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

Hello, everybody:
     Now, I participate to porting linux to MIPS platform. I'm a newbie.
 
     I met some questions, I hope somebody can tell me why or give me some hints! thanks!
 
The board is Malta, CPU is MIPS4kc. I downloaded kernel src from ftp.mips.com
 
    1. I use "make zImage" for kernel-2.4.3, everything is ok!
 But using "make zImage" for kernel-2.4.18, I failed, It could only build a vmlinux file. 
I  find it's because of no rules in arch/mips/boot/Makefile to build zImage. 
So I modified the arch/mips/boot/Makefile, It worked fine.
 but when excuted "./mkboot zImage.tmp zImage", It generated a very big zImage file. After noticing "file size exceed", the system delete the zImage file automatically!
 
what's wrong about it? It's ok for kernel-2.4.3. and I can make sure that the mkboot is no problem.
 
2. I only selectd board and cpu type when compiling the kernel-2.4.3. 
If using make ,the vmlinux size is about 780k. If using "make zImage", the zImage file is about 580k.
I think that's a minimun size by using "make menuconfig". 
but I use gzip to compress this two files, its size became only 1/3 of their original size.
 
So I'm puzzled why "make zImage" don't use gzip compress method? If so , we can get a more small kernel, isn't it?
 
thanks again!
 



---------------------------------
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!

[-- Attachment #2: Type: text/html, Size: 2102 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Some questions about kernel tailoring
@ 2005-03-31  1:49 dfsd df
  2005-03-31  3:49 ` Stuart Longland
  0 siblings, 1 reply; 9+ messages in thread
From: dfsd df @ 2005-03-31  1:49 UTC (permalink / raw)
  To: linux-mips

Thanks for your reply!

> That's correct... 'vmlinux' is your kernel.  mips
> doesn't use zImages.

But , the vmlinux is too big, Waht should I do? Is the
vmlinux already compressed?

> (PS... Please refrain from HTML email on this list)

Sorry, I'm a newbie, I really don't know what you
mean. :-)

--- Stuart Longland <stuartl@longlandclan.hopto.org>
wrote:
> dfsd df wrote:
> > Hello, everybody:
> >      Now, I participate to porting linux to MIPS
> platform. I'm a newbie.
> >  
> >      I met some questions, I hope somebody can
> tell me why or give me
> > some hints! thanks!
> >  
> > The board is Malta, CPU is MIPS4kc. I downloaded
> kernel src from
> > ftp.mips.com <ftp://ftp.mips.com>
> >  
> > 1. I use "make zImage" for kernel-2.4.3,
> everything is ok!
> > But using "make zImage" for kernel-2.4.18, I
> failed, It could only
> > build a vmlinux file.
> 
> That's correct... 'vmlinux' is your kernel.  mips
> doesn't use zImages.
> 
> > I find it's because of no rules in
> arch/mips/boot/Makefile to build
> > zImage.
> > So I modified the arch/mips/boot/Makefile, It
> worked fine.
> >  but when excuted "./mkboot zImage.tmp zImage", It
> generated a very big
> > zImage file. After noticing "file size exceed",
> the system delete the
> > zImage file automatically!
> > 
> 
> Try running mkboot on the vmlinux file.
> 
> > what's wrong about it? It's ok for kernel-2.4.3.
> and I can make sure
> > that the mkboot is no problem.
> 
> A newer kernel mightn't be a bad idea either...
> 2.4.3 is very old now.
> 
> > 2. I only selectd board and cpu type when
> compiling the kernel-2.4.3.
> > If using make ,the vmlinux size is about 780k. If
> using "make zImage",
> > the zImage file is about 580k.
> > I think that's a minimun size by using "make
> menuconfig".
> > but I use gzip to compress this two files, its
> size became only 1/3 of
> > their original size.
> >  
> > So I'm puzzled why "make zImage" don't use gzip
> compress method? If so ,
> > we can get a more small kernel, isn't it?
> >  
> > thanks again!
> 
> I'll let the guru's chime in here :-)
> 
> (PS... Please refrain from HTML email on this list)
> 
> -- 
>
+-------------------------------------------------------------+
> | Stuart Longland -oOo-
> http://stuartl.longlandclan.hopto.org |
> | Atomic Linux Project     -oOo-   
> http://atomicl.berlios.de |
> | - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - |
> | I haven't lost my mind - it's backed up on a tape
> somewhere |
>
+-------------------------------------------------------------+
> 

_________________________________________________________
Do You Yahoo!?
注册世界一流品质的雅虎免费电邮
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Some questions about kernel tailoring
@ 2005-03-31  9:41 dfsd df
  2005-03-31 22:06 ` Stuart Longland
  2005-04-01  0:29 ` Wolfgang Denk
  0 siblings, 2 replies; 9+ messages in thread
From: dfsd df @ 2005-03-31  9:41 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1803 bytes --]

Thanks again!
 
Because of the limitation of memory, I don't want to use YAMON. 
Using gzip -9, I can get a kernel more small than the kernel made by "make zImage". 
So I want to write a very simple bootloader and make a self-decompressed kernel.
 
But why everyone use "make zImage" instead of my method? That's what puzzles me? 

Stuart Longland <stuartl@longlandclan.hopto.org> wrote:
dfsd df wrote:
> Thanks for your reply!
> 
>>That's correct... 'vmlinux' is your kernel. mips
>>doesn't use zImages.
> 
> But , the vmlinux is too big, Waht should I do? Is the
> vmlinux already compressed?

Normally you manually gzip it -- but it will largely depend on what the
bootloader for your device expects. Incidentally, are you trying to
boot the kernel directly, or via something like U-boot or YAMON?
AFAIK these evaluation boards are not designed to directly boot a kernel.

>>(PS... Please refrain from HTML email on this list)
> Sorry, I'm a newbie, I really don't know what you
> mean. :-)

Rich text emails -- in layman's terms. Couple of reasons for this:
* They do make the email slightly larger
* Not everyone can see HTML
* SPAM and Viruses commonly exploit HTML

Never mind though, as it seems your mail client has figured to use
plaintext already. ;-)

-- 
+-------------------------------------------------------------+
| Stuart Longland -oOo- http://stuartl.longlandclan.hopto.org |
| Atomic Linux Project -oOo- http://atomicl.berlios.de |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| I haven't lost my mind - it's backed up on a tape somewhere |
+-------------------------------------------------------------+



---------------------------------
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!

[-- Attachment #2: Type: text/html, Size: 2399 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Some questions about kernel tailoring
@ 2005-04-01  1:08 dfsd df
  0 siblings, 0 replies; 9+ messages in thread
From: dfsd df @ 2005-04-01  1:08 UTC (permalink / raw)
  To: linux-mips

Sorry, I used YAHOO web e-mail.I'm not familiar with
it.and I have set the edit mode to plain text. Pls
help me to check whether the e-mail is still on HTML,
thanks!

Now, I have 4M flash memory and 8M SDRAM can use.any
suggestion?

Thanks again!

--- Stuart Longland <stuartl@longlandclan.hopto.org>
wrote:
> dfsd df wrote:
> > Thanks again!
> 
> BTW: Your mail client has just switched back to its
> fixation on HTML.
> Could you please have a close look at the settings
> and disable HTML mail
> composition?  (at least for this email
> address/domain)
> 
> > Because of the limitation of memory, I don't want
> to use YAMON.
> > Using gzip -9, I can get a kernel more small than
> the kernel made by
> > "make zImage".
> > So I want to write a very simple bootloader and
> make a self-decompressed
> > kernel.
> 
> AFAIK the bootloader is only resident during the
> initial bootup, and is
> normally gone by the time userland kicks in.  (Think
> about it -- what's
>  the point in it sticking around, its job is done
> ;-)
> 
> If you've got at least 8MB RAM you should be okay. 
> (And lets face it --
> Linux on 4MB *IS NOT PRETTY* -- Been there, done
> that)  How much RAM are
> you working with?
> -- 
>
+-------------------------------------------------------------+
> | Stuart Longland -oOo-
> http://stuartl.longlandclan.hopto.org |
> | Atomic Linux Project     -oOo-   
> http://atomicl.berlios.de |
> | - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - |
> | I haven't lost my mind - it's backed up on a tape
> somewhere |
>
+-------------------------------------------------------------+
> 

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-04-01  1:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-30  7:37 Some questions about kernel tailoring dfsd df
2005-03-30 22:20 ` Stuart Longland
2005-03-31 16:09   ` Ralf Baechle DL5RB
  -- strict thread matches above, loose matches on Subject: below --
2005-03-31  1:49 dfsd df
2005-03-31  3:49 ` Stuart Longland
2005-03-31  9:41 dfsd df
2005-03-31 22:06 ` Stuart Longland
2005-04-01  0:29 ` Wolfgang Denk
2005-04-01  1:08 dfsd df

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox