Skip to contentSkip to conversation

Kerlen 2.4.13 and ramdisks

DISCUSSION Ian 2 participants 2 messages Feb 19, 2002 Memory technology devices (MTD)

lore
Share & tools
lore

Ian

author
#0 lore raw

The only thing I can think to suggest is that you verify the max size of the 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 143 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 -0500

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 it rw. That would cause
problems during power failure. That is whay I take a software image, dd it 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.

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't exist anymore. I want a rootfs that
is writable and not volatile. If I loose it I do not care. It is setting 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 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 out of 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

use

Quoted 1 line

mount.

I don't understand - you originally said;
"mount /dev/ram6 fails."

. but that said, I was mistaken too .. I meant the "-t" option ... Ie; mount -t ext2 /dev/ram6 /tmp/flash

Quoted 1 line

The only way the kernel can mount this is by me putting it in memory

first.

Quoted 3 lines

The only way to do that is with initrd. It owkrs when initrd only places that data there. When I try to download the *same* data from the network and put there it craps out. I have to download the data first before I

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 2.4.x -- particularly
when you say that it works as a straight initrd process (which is only running
in ram anyway, as you know).

Quoted 3 lines

place it in /dev/ram7. TO do that I mount a ram fs at a upper limit of 32mb. Download the file there then place it in /dev/ram7. Just by using 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 of

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/zero out to the size we wanted, mke2fs'd it, then untar'd our package ... and we never had any problems with that (in high 2.2.x's and low 2.4.x's too).

Quoted 51 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

If you have loopback support compiled in you can mount it directly through 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 ...

----- 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 -0500

You guys might have ran across a ramdisk problem. I have a feeling that

kernel 2.4.13 is
not respecting my ramdisks.

Quoted 13 lines

dd if=/etc/user.img of=/dev/ram6

mount /dev/ram6 fails.

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/

#1 lore raw

Yea. I had to bump it up once. The funny thing is that the package is the 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 ramdisks

The only thing I can think to suggest is that you verify the max size of the 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 -0500

Quoted 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, dd

it

Quoted 8 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.

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't

exist

Quoted 24 lines

anymore. I want a rootfs that
is writable and not volatile. If I loose it I do not care. It is setting 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 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 out of 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

use

Quoted 1 line

mount.

I don't understand - you originally said;
"mount /dev/ram6 fails."

Quoted 7 lines

. but that said, I was mistaken too .. I meant the "-t" option ... Ie; mount -t ext2 /dev/ram6 /tmp/flash

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 12 lines
Quoted 1 line

and put there it craps out. I have to download the data first before I

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 2.4.x -- particularly
when you say that it works as a straight initrd process (which is only running
in ram anyway, as you know).

Quoted 2 lines

place it in /dev/ram7. TO do that I mount a ram fs at a upper limit of 32mb. Download the file there then place it in /dev/ram7. Just by

using

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

of

Quoted 6 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/zero out to the size we wanted, 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 ramdisks

If 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 -0500

You 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/ram6 fails.

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/