Hi Vijay,
Thanks for your help! I created the ramdisk using the
following steps:
1. Recompiled the kernel to allow the ramdisk to be
greater than 4MB. Set it to 10MB instead.
2. dd if=/dev/zero of=/dev/ram bs=1k count=10240
3. mke2fs -vm0 /dev/ram 10240
4. mount -o loop -t ext2 ramdisk /mnt/new-ramdisk
5. mount -o loop -t ext2 ramdisk_old /mnt/old-ramdisk
6. copied all stuff from the old-ramdisk directory to
the new-ramdisk directory
7. umount /mnt/new-ramdisk
8. cat ramdisk | gzip -v9 > ramdisk.gz
However, after downloading the ramdisk to the Assabet
using angelboot, I got the following error messages
upon starting Minicom.
...
...
VFS: Mounted root (ext2 filesystem)
Freeing init memory: 64K
attempt to access beyond end of device
01:00: rw=0, want=8205, limit=8192
EXT2-fs error (device ramdisk(1,0)): ext2_read_inode:
unable to read inode block - inode=1324, block=8204
attempt to access beyond end of device
01:00: rw=0, want=8220, limit=8192
EXT2-fs error (device ramdisk(1,0)): ext2_read_inode:
unable to read inode block - inode=1461, block=8192
INIT: version 2.74 booting
INIT: No inittab file found INIT: Can't open
(/etc/ioctl.save, O_WRONGLY): Input/output error
...
...
Here's the angelboot configuration i'm using:
base 0xc0008000
entry 0xc0008000
r0 0x00000000
r1 0x00000019
device /dev/ttyS0
options "9600 8N1"
baud 115200
otherfile ramdisk.gz
otherbase 0xc0800000
Any idea why I'm getting these errors? Would greatly
appreciate any comments/remarks!
Regards,
Supriyo
--- Vijay Kishan <[EMAIL PROTECTED]> wrote: > You
cannot increase the space in the current
> ramdisk. you can a ramdisk
> that is bigger in size and then load it.
> here is how you do it
>
> mkdir /mnt/old-ramdisk
> mkdir /mnt/new-ramdisk
> gunzip old-ramdisk.gz
> dd if=/dev/zero of=new-ramdisk
> bs=<size-of-new-ramdisk> count=1
> mkfs.<fs-u-need> new-ramdisk
> mount -o loop old-ramdisk /mnt/old-ramdisk
> mount -o loop new-ramdisk /mnt/new-ramdisk
> [now you can run mc or some explorer and copy the
> contents of
> old-ramdisk + your files into new ramdisk]
> umount /mnt/old-ramdisk
> umount /mnt/new-ramdisk
> gzip -9 new-ramdisk
>
> now you have a brand new ramdisk :)
> hope this helps
>
> -regards
> -kishan
>
> Supriyo Chatterjea wrote:
>
> > Hi,
> >
> > I'm currently using the ramdisk from
> >
> ftp://ftp.netwinder.org/users/n/nico/ramdisk_img.gz
> to
> > load demo programs to the Assabet board.
> >
> > However, I notice that it gets filled up as soon
> as I
> > place a few demo files in it.
> >
> > Is there any way of increasing the size of the
> > ramdisk?
> >
> > Or do I need to use something else instead of the
> > ramdisk?
> >
> > Thanks,
> > Supriyo
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Mail - Free email you can access from
> anywhere!
> > http://mail.yahoo.com.sg/
> >
> > _______________________________________________
> >
>
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
> > Please visit the above address for information on
> this list.
> >
> >
>
>
>
> _______________________________________________
>
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
> Please visit the above address for information on
> this list.
__________________________________________________
Do You Yahoo!?
Yahoo! Mail � Free email you can access from anywhere!
http://mail.yahoo.com.sg/
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.