Kerlen 2.4.13 and ramdisks
I thought the ram devices were self cleaning? I wouldn't have expected you to get a second mount out of it.
My embeded device used up to almost the max number of ram disks (18 the max? we used 14 or so?) ... and with sizes from 4Mbytes to 64Mbyte ... which is why I don't think the ramdisk subsystem is going to be your problem.
----- Original Message -----
Quoted 244 lines
From: "Chris Fowler" <[email protected]>
To: "Ian" <[email protected]>
Subject: RE: Kerlen 2.4.13 and ramdisks
Date: Tue, 19 Feb 2002 18:50:38 -0500So far so good. zlib provides the CRC funtionality. As a test after I download, decompressed, and decrypted the file, I tftd'ed it back to my development bx for analysis. Yep it was an ext2 file systemall right. Mountable too. My earlier versions was like my prototype. The only change was a version from 2.2.16 to 2.4.7 kernel. In the 2.4.X I found that if I did the following:
dd if=fs.img of=/dev/ram5
mount/dev/ram5/mnt
umount/dev/ram5
mount/dev/ram5/mntThe 2nd mount would sometimes fail and sometims succeed. If it failed and I looked at the device its as if there was no ext2 partiton at all. Only garbage.
This random failure leads me to beleive there is an issue in ramdisks
support. How many people use 3 ramdisks? I only use them in the embedded
devices.
Development box uses loop back devices.-----Original Message-----
From: Ian [mailto:[email protected]]
Sent: Tuesday, February 19, 2002 6:43 PM
To: Chris Fowler
Cc: [email protected]
Subject: RE: Kerlen 2.4.13 and ramdisksWhat about and md5sum on the two images .. flash and ftp ...?
----- Original Message -----
Quoted 6 lines
From: "Chris Fowler" <[email protected]>
To: "Ian" <[email protected]>
Subject: RE: Kerlen 2.4.13 and ramdisks
Date: Tue, 19 Feb 2002 18:36:21 -0500Yea. I had to bump it up once. The funny thing is that the package is
the
Quoted 16 lines
same size. 8mb on flash. 8mb via tftp. It just seems that by using a ramfs temp storage area cause major memory problems during initrd execution. I have my ramdisk size set to 16mb. In case I need to grow in the
future.-----Original Message-----
From: Ian [mailto:[email protected]]
Sent: Tuesday, February 19, 2002 6:34 PM
To: Chris Fowler
Cc: [email protected]
Subject: RE: Kerlen 2.4.13 and ramdisksQuoted 1 line
The only thing I can think to suggest is that you verify the max size of
the
Quoted 29 lines
ramdisks
in either your kernel config, or your kernel boot params. This will also cause you
problems if its not set correctly.----- Original Message -----
Quoted 6 lines
From: "Chris Fowler" <[email protected]>
To: "Ian" <[email protected]>
Subject: RE: Kerlen 2.4.13 and ramdisks
Date: Tue, 19 Feb 2002 17:50:58 -0500Quoted 6 lines
the image bein dd'ed is an ext2 file system image. I eliminated most my problems with
using 1 ram disk and no more. 2.2.X I used 3 ram disks. In 2.4.X Im linmited to 1.The mount comand was an example. If I used loopback, I would need to
mount
Quoted 2 lines
it rw. That would cause
problems during power failure. That is whay I take a software image, ddit
Quoted 5 lines
to memory and mount as the rootfs.
If you lost power than you would only loose contents of memory. If you failed to issue "save" for the config, you would loose working config too.Quoted 6 lines
Quoted 3 lines
My unit requires no shutdown nor supports. "restart" simply tells the kernel to toggle the reset line
on the machine no processes is killed in the restart. They just don'texist
Quoted 2 lines
anymore. I want a rootfs that
is writable and not volatile. If I loose it I do not care. It issetting
Quoted 11 lines
Quoted 11 lines
on flash as an encrytped file.
]-----Original Message-----
From: Ian [mailto:[email protected]]
Sent: Tuesday, February 19, 2002 5:41 PM
To: Chris Fowler
Cc: [email protected]
Subject: RE: Kerlen 2.4.13 and ramdisksQuoted 3 lines
Quoted 3 lines
Quoted 1 line
loopback would not allow me to write to the image while running it.
Making
loopback allows you to make modifications without dd'ing it in and outof
Quoted 3 lines
Quoted 3 lines
ramdisks (I used to use both methods for my initrd creation).
Quoted 1 line
the flash (upgrade) process more difficult. The FS is ext2 and I do
not
Quoted 9 lines
Quoted 9 lines
use
Quoted 1 line
mount.
I don't understand - you originally said;
"mount/dev/ram6fails.". but that said, I was mistaken too .. I meant the "-t" option ... Ie; mount -t ext2
/dev/ram6/tmp/flashQuoted 7 lines
Quoted 3 lines
Quoted 1 line
The only way the kernel can mount this is by me putting it in memory
first.
Quoted 1 line
The only way to do that is with initrd. It owkrs when initrd only
places
Quoted 1 line
Quoted 1 line
that data there. When I try to download the *same* data from the
network
Quoted 1 line
Quoted 1 line
and put there it craps out. I have to download the data first before
I
Quoted 4 lines
Quoted 4 lines
can
If this is the case, where you download it and try to treat it like an initrd, then
I'd be quicker to blame that process, than the ramdisk driver in2.4.x --
Quoted 6 lines
Quoted 6 lines
particularly
when you say that it works as a straight initrd process (which is only running
in ram anyway, as you know).Quoted 1 line
place it in
/dev/ram7. TO do that I mount a ram fs at a upper limitof
Quoted 5 lines
Quoted 1 line
Quoted 1 line
32mb. Download the file there then place it in
/dev/ram7. Just byusing
Quoted 3 lines
Quoted 1 line
that memory as temporary storeage I'm haing problems. I've read posts
that
Quoted 1 line
state that certain 2.4.X kernels have problems repecting the
boundaries
Quoted 6 lines
of
Quoted 5 lines
a
Quoted 1 line
ramdisk. They tend to overwrite those areas when needing memory.
In all the work we did with ramdisks, I don't think we ever dd'd the img directly
to the ramx device ... we always dd'd/dev/zeroout to the size wewanted,
Quoted 77 lines
Quoted 1 line
mke2fs'd it, then untar'd our package ... and we never had any problems
with
Quoted 20 lines
that (in high 2.2.x's and low 2.4.x's too).
Quoted 17 lines
lilo.conf:
....
root=/dev/ram7-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Ian
Sent: Tuesday, February 19, 2002 4:51 PM
To: Chris Fowler
Cc: [email protected]
Subject: Re:Kerlen 2.4.13 and ramdisksIf you have loopback support compiled in you can mount it directly
through
Quoted 4 lines
Quoted 4 lines
the loopback driver, without creating a ramdisk ...
What was the error that mount gave? You probably only need to specify the "-o" parameter ... mount doesn't usually detect fancy filesystems
...
Quoted 9 lines
Quoted 9 lines
----- Original Message -----
Quoted 6 lines
From: "Chris Fowler" <[email protected]>
To: <[email protected]>
Subject: Kerlen 2.4.13 and ramdisks
Date: Tue, 19 Feb 2002 10:33:33 -0500You guys might have ran across a ramdisk problem. I have a feeling
that
Quoted 35 lines
Quoted 21 lines
kernel 2.4.13 is
not respecting my ramdisks.Quoted 13 lines
dd if=/etc/user.img of=/dev/ram6
mount
/dev/ram6fails.Is this a problem?
Quoted 4 lines
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/Quoted 6 lines
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Well that could explain those issues. But I thought the only way to clean a ramdisk was to tell the kernel to free it.
Look up bootalloc + 2.4. You'll see where it was possible for the kernel to overwrite ram disks.
-----Original Message-----
From: Ian [mailto:[email protected]]
Sent: Tuesday, February 19, 2002 6:57 PM
To: Chris Fowler
Cc: [email protected]
Subject: RE: Kerlen 2.4.13 and ramdisks
I thought the ram devices were self cleaning? I wouldn't have expected you to get a
second mount out of it.
My embeded device used up to almost the max number of ram disks (18 the max? we
used 14 or so?) ... and with sizes from 4Mbytes to 64Mbyte ... which is why I don't think
the ramdisk subsystem is going to be your problem.
----- Original Message -----
Quoted 9 lines
From: "Chris Fowler" <[email protected]>
To: "Ian" <[email protected]>
Subject: RE: Kerlen 2.4.13 and ramdisks
Date: Tue, 19 Feb 2002 18:50:38 -0500So far so good. zlib provides the CRC funtionality. As a test after I download, decompressed, and decrypted the file, I tftd'ed it back to my development bx for analysis. Yep it was an ext2 file systemall right. Mountable too. My earlier versions was like my prototype. The only
change
Quoted 10 lines
was a version from 2.2.16 to 2.4.7 kernel. In the 2.4.X I found that if I did the following:
dd if=fs.img of=/dev/ram5
mount/dev/ram5/mnt
umount/dev/ram5
mount/dev/ram5/mntThe 2nd mount would sometimes fail and sometims succeed. If it failed and
I
Quoted 5 lines
looked at the device its as if there was no ext2 partiton at all. Only garbage.
This random failure leads me to beleive there is an issue in ramdisks
support. How many people use 3 ramdisks? I only use them in the
embedded
Quoted 16 lines
devices.
Development box uses loop back devices.-----Original Message-----
From: Ian [mailto:[email protected]]
Sent: Tuesday, February 19, 2002 6:43 PM
To: Chris Fowler
Cc: [email protected]
Subject: RE: Kerlen 2.4.13 and ramdisksWhat about and md5sum on the two images .. flash and ftp ...?
Quoted 11 lines
----- Original Message -----
Quoted 6 lines
From: "Chris Fowler" <[email protected]>
To: "Ian" <[email protected]>
Subject: RE: Kerlen 2.4.13 and ramdisks
Date: Tue, 19 Feb 2002 18:36:21 -0500Yea. I had to bump it up once. The funny thing is that the package is
the
Quoted 3 lines
same size. 8mb on flash. 8mb via tftp. It just seems that by using a ramfs temp storage area cause major memory problems during initrd execution. I have my ramdisk size set to 16mb. In case I need to grow
in
Quoted 13 lines
Quoted 13 lines
the
future.-----Original Message-----
From: Ian [mailto:[email protected]]
Sent: Tuesday, February 19, 2002 6:34 PM
To: Chris Fowler
Cc: [email protected]
Subject: RE: Kerlen 2.4.13 and ramdisks
Quoted 4 lines
Quoted 1 line
The only thing I can think to suggest is that you verify the max size of
the
Quoted 2 lines
ramdisks
in either your kernel config, or your kernel boot params. This will
also
Quoted 5 lines
Quoted 5 lines
cause you
problems if its not set correctly.
Quoted 8 lines
Quoted 8 lines
----- Original Message -----
Quoted 7 lines
From: "Chris Fowler" <[email protected]>
To: "Ian" <[email protected]>
Subject: RE: Kerlen 2.4.13 and ramdisks
Date: Tue, 19 Feb 2002 17:50:58 -0500the image bein dd'ed is an ext2 file system image. I eliminated most
my
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
problems with
using 1 ram disk and no more. 2.2.X I used 3 ram disks. In 2.4.X Im linmited to 1.The mount comand was an example. If I used loopback, I would need to
mount
Quoted 2 lines
it rw. That would cause
problems during power failure. That is whay I take a software image,
dd
Quoted 3 lines
Quoted 3 lines
it
Quoted 2 lines
to memory and mount as the rootfs.
If you lost power than you would only loose contents of memory. If
you
Quoted 21 lines
Quoted 9 lines
Quoted 6 lines
failed to issue "save" for the config, you would loose working config too.
My unit requires no shutdown nor supports. "restart" simply tells the kernel to toggle the reset line
on the machine no processes is killed in the restart. They just don'texist
Quoted 2 lines
anymore. I want a rootfs that
is writable and not volatile. If I loose it I do not care. It issetting
Quoted 11 lines
Quoted 11 lines
on flash as an encrytped file.
]-----Original Message-----
From: Ian [mailto:[email protected]]
Sent: Tuesday, February 19, 2002 5:41 PM
To: Chris Fowler
Cc: [email protected]
Subject: RE: Kerlen 2.4.13 and ramdisks
Quoted 24 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
loopback would not allow me to write to the image while running it.
Making
loopback allows you to make modifications without dd'ing it in and outof
Quoted 3 lines
Quoted 3 lines
ramdisks (I used to use both methods for my initrd creation).
Quoted 1 line
the flash (upgrade) process more difficult. The FS is ext2 and I do
not
Quoted 16 lines
Quoted 5 lines
use
Quoted 1 line
mount.
I don't understand - you originally said;
"mount/dev/ram6fails."Quoted 7 lines
. but that said, I was mistaken too .. I meant the "-t" option ... Ie; mount -t ext2
/dev/ram6/tmp/flashQuoted 1 line
The only way the kernel can mount this is by me putting it in memory
first.
Quoted 1 line
The only way to do that is with initrd. It owkrs when initrd only
places
Quoted 1 line
Quoted 1 line
that data there. When I try to download the *same* data from the
network
Quoted 1 line
Quoted 1 line
and put there it craps out. I have to download the data first
before
Quoted 5 lines
I
Quoted 4 lines
Quoted 4 lines
can
If this is the case, where you download it and try to treat it like an initrd, then
I'd be quicker to blame that process, than the ramdisk driver in
Quoted 11 lines
2.4.x --
Quoted 6 lines
Quoted 6 lines
particularly
when you say that it works as a straight initrd process (which is only running
in ram anyway, as you know).Quoted 1 line
place it in
/dev/ram7. TO do that I mount a ram fs at a upper limitof
Quoted 3 lines
Quoted 1 line
Quoted 1 line
32mb. Download the file there then place it in
/dev/ram7. Just byusing
Quoted 1 line
Quoted 1 line
that memory as temporary storeage I'm haing problems. I've read
posts
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
that
Quoted 1 line
state that certain 2.4.X kernels have problems repecting the
boundaries
Quoted 4 lines
of
Quoted 3 lines
a
Quoted 1 line
ramdisk. They tend to overwrite those areas when needing memory.
In all the work we did with ramdisks, I don't think we ever dd'd the
img
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
directly
to the ramx device ... we always dd'd/dev/zeroout to the size wewanted,
Quoted 1 line
Quoted 1 line
mke2fs'd it, then untar'd our package ... and we never had any
problems
Quoted 20 lines
Quoted 20 lines
with
Quoted 19 lines
that (in high 2.2.x's and low 2.4.x's too).
Quoted 16 lines
lilo.conf:
....
root=/dev/ram7-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Ian
Sent: Tuesday, February 19, 2002 4:51 PM
To: Chris Fowler
Cc: [email protected]
Subject: Re:Kerlen 2.4.13 and ramdisks
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
If you have loopback support compiled in you can mount it directly
through
Quoted 3 lines
Quoted 3 lines
the loopback driver, without creating a ramdisk ...
What was the error that mount gave? You probably only need to
specify
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
the "-o" parameter ... mount doesn't usually detect fancy
filesystems
Quoted 10 lines
Quoted 10 lines
...
Quoted 9 lines
Quoted 9 lines
----- Original Message -----
Quoted 6 lines
From: "Chris Fowler" <[email protected]>
To: <[email protected]>
Subject: Kerlen 2.4.13 and ramdisks
Date: Tue, 19 Feb 2002 10:33:33 -0500You guys might have ran across a ramdisk problem. I have a
feeling
Quoted 44 lines
Quoted 40 lines
that
Quoted 35 lines
Quoted 21 lines
kernel 2.4.13 is
not respecting my ramdisks.Quoted 13 lines
dd if=/etc/user.img of=/dev/ram6
mount
/dev/ram6fails.Is this a problem?
Quoted 4 lines
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/Quoted 6 lines
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/