4MB DRAM is enough for linux kernel 2.2.13
Hello Everybody
Can someone tell me if 4MB DRAM is enough to boot linux kernel
2.2.13. Note that the 8xx rom boot loader occupies around 500k.
Thanks
Prashant Patel
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 4 lines · Prashant Patel
Hello Everybody
Can someone tell me if 4MB DRAM is enough to boot linux kernel
2.2.13. Note that the 8xx rom boot loader occupies around 500k.
Yes, I can say it will not work.
The code in the arch/ppc/mbxboot directory, which is used for all 8xx and 8260 processors, assumes there is memory above 4 MB it can use for buffer space while decompressing the kernel. You can play around with adjusting these addresses and sizes, and get a kernel to boot. You will get a shell prompt, and that is about all. You won't be able to use a ramdisk, you probably won't be able to execute any useful programs.
-- Dan
--
I like MMUs because I don't have a real life.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hello,
I'm a newbie. Help me!!!!!
Can anybody tell me the minimum size of the linux kernel 2.2.13 that we can reduce?
(this kernel doesn't need console, anything else ... just boot and run my own program)
If I want to support only ftp, what is the minimum size of ramdisk ? I think if I reduce the code of the kernel and the library libc6, 4MB is OK. Is that right?
best regards,
Jari
Quoted 1 line · you
I like MMUs because I don't have a real life.
How old are you in this life?
I've just had my full-month celebration. ;-))) just relax....
Quoted 16 lines · Dan Malek
Quoted 4 lines · Prashant Patel
Hello Everybody
Can someone tell me if 4MB DRAM is enough to boot linux kernel
2.2.13. Note that the 8xx rom boot loader occupies around 500k.Yes, I can say it will not work.
The code in the
arch/ppc/mbxbootdirectory, which is used for all 8xx and 8260 processors, assumes there is memory above 4 MB it can use for buffer space while decompressing the kernel. You can play around with adjusting these addresses and sizes, and get a kernel to boot. You will get a shell prompt, and that is about all. You won't be able to use a ramdisk, you probably won't be able to execute any useful programs.
Quoted 1 line
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 3 lines · Jari
Can anybody tell me the minimum size of the linux kernel 2.2.13 that we can
reduce? (this kernel doesn't need console, anything else ... just boot and
run my own program)
It's not so much the kernel you need to worry about, it's the root file system containing the runtime libraries that take up most of the space. Nevertheless, I have some kernel minimisation patches available at:
http://members.nbci.com/greyhams/linux/patches/2.2
Quoted 2 lines
If I want to support only ftp, what is the minimum size of ramdisk ? I think if I reduce the code of the kernel and the library libc6, 4MB is OK.
As Dan said, you won't fit a ramdisk in only 4Mb. You would need to use a (probably compressed) flash filesystem; others have done it, but is it worth the hassle given that RAM is cheaper anyway?
You can find more info about this in the HOWTO at:
http://members.nbci.com/_XMCM/greyhams/linux/PowerPC-Embedded-HOWTO-3.html#ss3.2
Regards,
Graham
--
Graham Stoney
Principal Hardware/Software Engineer
Canon Information Systems Research Australia
Ph: +61 2 9805 2909 Fax: +61 2 9805 2929
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/