[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Making use of the BigRamPlus?



On 2013-12-17 11:26, Geert Uytterhoeven wrote:

268435456 bytes (268 MB) copied, 148.747 s, 1.8 MB/s

As a side note:

spice:/home/ij# mkswap  /dev/mtd0
mkswap: warning: truncating swap area to 17179869184 KiB
Setting up swapspace version 1, size = 17179869180 KiB
no label, UUID=882aeff1-1835-4312-a8cd-d4b6ed4c4382
mkswap: fsync failed

17179869184 KiB are 16 777 216 megabytes - that's a lot more than 256M, so something is wrong there anyway.

So it's working. No idea why mkswap failed early.
Does mkswap expect a block device instead of character device?
Yes it does.
spice:/home/ij# ls -l /dev/mtd0
crw------- 1 root root 90, 0 Dec 17 10:04 /dev/mtd0
And this is indeed a character device.

Hmmm...

When i try to use it with modprobe mtdswap partitions=0 header=1 I get this:
[11118.260000] mtdswap: mtd0 does not have OOB
OOB = Out Of Band. That's the extra data NAND FLASH exposes, which is
used by the driver for block wear leveling.
mtdswap: "Turns an MTD device into a swap device with block wear leveling".
We don't need block wear leveling, so please use mtdblock instead.

modprobe  block2mtd block2mtd="/dev/mtd0",4096 results in:

[14573.380000] block2mtd: error: cannot open device /dev/mtd0

Although:
spice:/home/ij# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0fffffe0 00001000 "bigram"

But still:

spice:/home/ij# mkswap /dev/mtd0
mkswap: warning: truncating swap area to 17179869184 KiB

I think something is broken there...


--
Ciao...          //    Fon: 0381-2744150
.     Ingo     \X/     http://blog.windfluechter.net

gpg pubkey: http://www.juergensmann.de/ij_public_key.


Reply to: