Yes, but the kernel compilation didn´t affect the ramdisk.gz neither generate a new one. So it´s necessary do it in the kernel and create a new file.
I can use a 32MB ramdisk, just changing the parameter bs to 32M. Worked pretty fine now. The first sequence it´s wrong. The second way runs without problems. On Tue, Mar 17, 2009 at 5:12 PM, Premi, Sanjeev <[email protected]> wrote: > > > ------------------------------ > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Marcelo > Guedes Silva > *Sent:* Tuesday, March 17, 2009 1:22 AM > *To:* [email protected] > *Subject:* New ramdisk.gz > > Hi everybody. > > Now I want to create a new ramdisk.gz . The reason is that the ramdisk.gz > in the MontaVista 5.0 was created with only 6.9 MB to file system, and 5.9 > MB of them are occupied (with main files and directories like /etc and > /sbin). I have only 1 MB free to use. > In a complex project (e.g. need codecs) will be necessary more space. So I > want to create a new ramdisk.gz with more space, with 16 MB for example. The > problem is that I had tried 2 ways and both didn´t work: > > 1) I couldn´t resize the ramdisk.gz file system. All the softwares that I > know for it expects a real device and ignores my mounted partition (fdisk, > for example). So the original ramdisk.gz will be unuseful if a need more > than 1 MB free to work. Is resize possible? > > 2) I tried create a new ext2 file in this way: > > # mke2fs /dev/ram 16384 > # mount -t ext2 /dev/ram /myramdisk_dir > # mount -t ext2 -o loop ramdisk.gz /ramdisk_dir* [The > original]* > # cd /ramdisk_dir > # cp -aR * /myramdisk_dir > # umount /ramdisk_dir > # umount /myramdisk_dir > # cd /tftpboot > # dd if=/dev/ram bs=1k count=16384 of=myramdisk > # gzip -9 myramdisk > > But when I used it to boot with myramdisk.gz, terminal said: > > EXT3-fs: Magic mismatch, very weird ! > yaffs: dev is 1048576 name is "ram0" > yaffs: Attempting MTD mount on 1.0, "ram0" > yaffs: dev is 1048576 name is "ram0" > yaffs: Attempting MTD mount on 1.0, "ram0" > XFS: bad magic number > XFS: SB validate failed > No filesystem could mount root, tried: ext3 ext2 cramfs squashfs msdos > vfat yaf > fs yaffs2 xfs > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(1,0) > > And the boot stopped. > Does someone have any idea for a ramdisk.gz with 16MB? > Did you increase the size of ramdisk that kernel is expecting? via make > menuconfig? > > Thanks. > >
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
