[Avila] GW2348-4 howto extend ramdisk size to 16M? (snapgear)

gw at lunstad.com gw at lunstad.com
Tue Jun 20 10:07:59 EDT 2006


We switched to a 16M boot/RAM disk. We did the below, but wrt (3) we had
to upgrade our genext2fs. With that we also needed to modify the makefile
to specify a 16M fs and change the dev.txt file to support the new format
expected by the new genext2fs. I could post (or privately email) the newly
formatted dev.txt file (there are actually 2, one for 2.4 and one for 2.6
kernels, but we use 2.6 so I don't have a 2.4 version) if it would help.
It also contains patches to avoid security violations with the creation of
the device fs. This would have to wait til tomorrow, though, as I am out
of the office today.

hth,

Andrew

>
> You could try the following:
>
> 1. In the "Block Devices" section of your kernel parameters, I would
> recommend changing the Default RAM sized to your requirements.
>
>  <*> RAM disk support
>  (16384)   Default RAM disk size
>  [*]   Initial RAM disk (initrd) support
>
> 2. Then modify the initrd kernel parameter in the "General Setup" section
>
> console=ttyS0,115200 root=/dev/ram0 initrd=0x00800000,16M
> mem=64M at 0x00000000
>
> 3. You probably also need to change the way you build your ramdisk
> filesystem as well. I haven't used the snapgear toolchain for my
> rootfs.gz,
> I use buildroot, but the concept should be the same. In the initial
> creation
> of the filesytem
>
> dd if=/dev/zero of=rootfs bs=1k count=16384
>
> 4. If you're storing the new filesystem on fis, you may need to
> re-organise
> the layout of your flash to hold the bigger rootfs.gz if it's too big for
> the existing 'partitions'.
>
> I haven't tested this, but I hope this helps point you in the right
> direction, at least. :)
>
> Cheers,
> Dave.
>
>
> -----Original Message-----
> From: huchijwk at naver.com [mailto:huchijwk at naver.com]
> Sent: 20 June 2006 01:30
> To: avila at lists.unixstudios.net
> Subject: [Avila] GW2348-4 howto extend ramdisk size to 16M? (snapgear)
>
>
> hi there
>
> is it possible?
> then how to do?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avila-unsubscribe at lists.unixstudios.net
> For additional commands, e-mail: avila-help at lists.unixstudios.net
>
>





More information about the Avila mailing list