Welcome! Log In Create A New Profile

Advanced

Pogoplug E-02 pre-Debian questions

Posted by cdlenfert 
Pogoplug E-02 pre-Debian questions
October 14, 2018 04:21PM
Do stock MTD values matter?
[root@Pogoplug ~]# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "root" ## guide says this should be rootfs, but root is my default, should I change?
m
td3: 05b00000 00020000 "data"

How do I save this nand dump after I run the following command?
nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0

Can I be sure I don’t have a bad block in the first 8 blocks of MTD0?
[root@Pogoplug dev]# dmesg | grep -i 'bad'
[ 1.050000] Scanning device for bad blocks
[ 1.070000] Bad eraseblock 250 at 0x01f40000
[ 1.080000] Bad eraseblock 513 at 0x04020000

I don’t have anything for mtdparts when I try to print envs, what should I restore here if anything?
fw_setenv mtdparts 'xxxxxxxxx'

Thanks for any clarifications.
Re: Pogoplug E-02 pre-Debian questions
October 14, 2018 05:06PM
cdlenfert,

> Do stock MTD values matter?
> [root@Pogoplug ~]# cat /proc/mtd
> dev: size erasesize name
> mtd0: 00100000 00020000 "u-boot"
> mtd1: 00400000 00020000 "uImage"
> mtd2: 02000000 00020000 "root" ## guide says
> this should be rootfs, but root is my default,
> should I change?
> m
td3: 05b00000 00020000 "data"

Ignore stock mtds. It is basically the same.


>
> How do I save this nand dump after I run the
> following command?

> nanddump --noecc --omitoob -l 0x80000 -f mtd0
> /dev/mtd0
>

The output file is mtd0 in the current directory.


> Can I be sure I don’t have a bad block in the
> first 8 blocks of MTD0?

> [root@Pogoplug dev]# dmesg | grep -i 'bad'
> [ 1.050000] Scanning device for bad blocks
> [ 1.070000] Bad eraseblock 250 at 0x01f40000
> [ 1.080000] Bad eraseblock 513 at 0x04020000
>

These bad blocks are OK. The first 8 blocks are eraseblock 0 to 7.


> I don’t have anything for mtdparts when I try
> to print envs, what should I restore here if
> anything?

> fw_setenv mtdparts 'xxxxxxxxx'
>

New u-boot installation will define them correctly.

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: