* nftl_format with offset
@ 2001-12-08 2:10 Nikolai Vladychevski
2001-12-08 9:56 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Nikolai Vladychevski @ 2001-12-08 2:10 UTC (permalink / raw)
To: linux-mtd
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@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@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@qis1 util]# insmod nftl
Using /lib/modules/2.4.16-normal/kernel/drivers/mtd/nftl.o
[root@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@qis1 util]#
[root@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@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@qis1 util]# insmod nftl
Using /lib/modules/2.4.16-normal/kernel/drivers/mtd/nftl.o
[root@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@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@qis1 util]#
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: nftl_format with offset
2001-12-08 2:10 nftl_format with offset Nikolai Vladychevski
@ 2001-12-08 9:56 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-12-08 9:56 UTC (permalink / raw)
To: Nikolai Vladychevski; +Cc: linux-mtd
niko@isl.net.mx said:
> NFTL Media Headers at 0x0 and 0x104000 disagree.
It doesn't like the fact that you now seem to have _two_ different NFTL
headers, both claiming to use overlapping parts of the flash.
Erase the first two blocks of the flash, which contain the original, and
it should use the one at offset 0x100000 happily.
In fact, I suspect you should erase the whole device (with 'eraseall'), as
it's complaining about factory-marked bad zones which are probably _not_
actually marked as such from the factory - the normal operation of the
NFTL format can leave a sector in that state, whereas the SmartMedia format
mandates that you leave that particular byte alone.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-08 9:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-08 2:10 nftl_format with offset Nikolai Vladychevski
2001-12-08 9:56 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox