how to extend the initrd to a customed size ?
Hello!
I have a board of Custom 860 with 16M RAM memory,which is running the specific linux kernel mpc8xx-2.1.3 obtained from bossek.now,I desire to enlarge the size of initrd from 4M to 6M to
enable the initrd to contain the gigantic libc.so.6 with the size of morethan 4M;to do so,i have modified the line rd_size=6144 in .../drivers/block/rd.c file and the ramdisk.image has also been modified correspondly by now. But,to my puzzled,the console just displays the panic message:No init found and then reboots while running.
I am sure there is no wrong with my ramdisk.image since it can be mountted correctly with
6M size.
That is all and I 'd be very thankful with your help or suggestion.
regards
john , zhang
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
If you strip libc.so.6 it gets much smaller; my specific version went from 4115403 to 1032312 bytes.
-Frank.
Quoted 11 lines · zhangbingchen
Hello!
I have a board of Custom 860 with 16M RAM memory,which is running the specific linux kernel mpc8xx-2.1.3 obtained from bossek.now,I desire to enlarge the size of initrd from 4M to 6M to
enable the initrd to contain the gigantic libc.so.6 with the size of morethan 4M;to do so,i have modified the line rd_size=6144 in.../drivers/block/rd.cfile and the ramdisk.image has also been modified correspondly by now. But,to my puzzled,the console just displays the panic message:No init found and then reboots while running.
I am sure there is no wrong with my ramdisk.image since it can be mountted correctly with
6M size.
That is all and I 'd be very thankful with your help or suggestion.
Quoted 3 lines
regards
john , zhang
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 3 lines · zhangbingchen
mpc8xx-2.1.3 obtained from bossek.now,I desire to enlarge the size of
initrd from 4M to 6M to enable the initrd to contain the gigantic libc.so.6 with the size of morethan 4M...
I suggest you reconfigure/rebuild your glibc with:
CFLAGS="-msoft-float -Os -DNDEBUG=1"
It shouldn't be more than 1.2 M or so.
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/