nftl_format with offset
Nikolai Vladychevski
niko at isl.net.mx
Fri Dec 7 21:10:16 EST 2001
Hello,
I got this problem, why when I :
nftl_format /dev/mtd0
i can load nftl module without problems, but when I:
nftl_format /dev/mtd0 0x100000
it gives "Could not find valid boot record" error ?
It happends because I upgraded to 2.4.16, with the lastest cvs code. What
should be wrong?
Here are the details:
[root at qis1 util]# ./nftl_format /dev/mtd0
$Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $
Phase 1. Checking and erasing Erase Zones from 0x00000000 to 0x00800000
Skipping bad zone (factory marked) #103 @ 0xce000
Skipping bad zone (factory marked) #128 @ 0x100000
Skipping bad zone (factory marked) #129 @ 0x102000
Checking Zone #1023 @ 0x7fe000
Phase 2.a Writing NFTL Media Header and Bad Unit Table
Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table
Phase 3. Writing Unit Control Information to each Erase Unit
You have new mail in /var/spool/mail/root
[root at qis1 util]# dmesg|tail -5
MTD_ioctl
_DoC_WaitReady called for out-of-line wait
MTD_ioctl
_DoC_WaitReady called for out-of-line wait
MTD_close
You have new mail in /var/spool/mail/root
[root at qis1 util]# insmod nftl
Using /lib/modules/2.4.16-normal/kernel/drivers/mtd/nftl.o
[root at qis1 util]# dmesg|tail -5
Got mutex
NFTL read request of 0x2 sectors @ 6 (req->nr_sectors == 2)
NFTL read request completed OK
end_request(1)
unknown partition table
[root at qis1 util]#
[root at qis1 util]# ./nftl_format /dev/mtd0 0x100000
$Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $
Phase 1. Checking and erasing Erase Zones from 0x00100000 to 0x00800000
Skipping bad zone (factory marked) #128 @ 0x100000
Skipping bad zone (factory marked) #129 @ 0x102000
Checking Zone #1023 @ 0x7fe000
Phase 2.a Writing NFTL Media Header and Bad Unit Table
Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table
Phase 3. Writing Unit Control Information to each Erase Unit
You have new mail in /var/spool/mail/root
[root at qis1 util]# dmesg|tail -5
MTD_ioctl
_DoC_WaitReady called for out-of-line wait
MTD_ioctl
_DoC_WaitReady called for out-of-line wait
MTD_close
[root at qis1 util]# insmod nftl
Using /lib/modules/2.4.16-normal/kernel/drivers/mtd/nftl.o
[root at qis1 util]# dmesg|tail -5
mtd->read = d00396c0, size = 8388608, erasesize = 8192
NFTL_setup
NFTL Media Headers at 0x0 and 0x104000 disagree.
Could not find valid boot record
Could not mount NFTL device
[root at qis1 util]# dmesg|tail
MTD_ioctl
_DoC_WaitReady called for out-of-line wait
MTD_close
NFTL driver: nftlcore.c $Revision: 1.85 $, nftlmount.c $Revision: 1.25 $
NFTL_notify_add for DiskOnChip Millennium
mtd->read = d00396c0, size = 8388608, erasesize = 8192
NFTL_setup
NFTL Media Headers at 0x0 and 0x104000 disagree.
Could not find valid boot record
Could not mount NFTL device
[root at qis1 util]#
More information about the linux-mtd
mailing list