public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* OneNAND: Unexpected zero blocks
@ 2007-02-15 14:20 Julianne C.
  2007-02-15 15:06 ` Adrian Hunter
  2007-02-15 23:46 ` Kyungmin Park
  0 siblings, 2 replies; 3+ messages in thread
From: Julianne C. @ 2007-02-15 14:20 UTC (permalink / raw)
  To: linux-mtd

In using the 2.6.20 kernel with onenand enabled and active we:

1) see the partitions setup in the kernel boot messages

2) can mount a partition:  mount -t jffs2 /dev/mtdblock3 /mnt

3) copy the rootfs (about 2 MB) to the new fs on /mnt

When the fs is unmounted, and remounted again, we see some files in which
two to four blocks of zeros occur (0x2000), or blocks with some
initial data filled
in 20 to 40 bytes and the rest zeros.

Is this a known problem with the onenand parts or the driver?

Where can one obtain a copy of the latest driver
   (without having to use git since we can't access git archives
behind our firewall)

(The board is a LogicPD  PXA270 with one 64 MB Samsung device - used for both
boot and OS file systems.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OneNAND: Unexpected zero blocks
  2007-02-15 14:20 OneNAND: Unexpected zero blocks Julianne C.
@ 2007-02-15 15:06 ` Adrian Hunter
  2007-02-15 23:46 ` Kyungmin Park
  1 sibling, 0 replies; 3+ messages in thread
From: Adrian Hunter @ 2007-02-15 15:06 UTC (permalink / raw)
  To: linux-mtd

ext Julianne C. wrote:
> Is this a known problem with the onenand parts or the driver?

Not one that I know of.

> Where can one obtain a copy of the latest driver
>    (without having to use git since we can't access git archives
> behind our firewall)

I guess you could grab the files from gitweb:

http://git.infradead.org/?p=users/kmpark/onenand-mtd-2.6.git

Look in the tree at drivers/mtd/onenand

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: OneNAND: Unexpected zero blocks
  2007-02-15 14:20 OneNAND: Unexpected zero blocks Julianne C.
  2007-02-15 15:06 ` Adrian Hunter
@ 2007-02-15 23:46 ` Kyungmin Park
  1 sibling, 0 replies; 3+ messages in thread
From: Kyungmin Park @ 2007-02-15 23:46 UTC (permalink / raw)
  To: 'Julianne C.', 'linux-mtd'

Hi,

> 
> 3) copy the rootfs (about 2 MB) to the new fs on /mnt
> 
> When the fs is unmounted, and remounted again, we see some 
> files in which two to four blocks of zeros occur (0x2000), or 
> blocks with some initial data filled in 20 to 40 bytes and 
> the rest zeros.

Umm, I  have no idea.

please use this script. In my board, it is passed both kernel
1. omap tree
2. onenand mtd tree

# note you have to add onenand partition to /etc/fstab
e.g., 
/dev/mtdblock4  /jffs2          jffs2   defaults                1       1

#!/bin/sh -x

DIRS="usr etc bin lib"

for dir in $DIRS; do
        echo "Testing $dir ..."
        time mount /jffs2
        rm -rf /jffs2/*
        mkdir -p /jffs2/$dir
        cp -ar /$dir/* /jffs2/$dir
        diff -Nur /$dir /jffs2/$dir
        umount /jffs2

        time mount /jffs2
        diff -Nur /$dir /jffs2/$dir
        umount /jffs2
done

Thank you,
Kyungmin Park

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-15 23:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-15 14:20 OneNAND: Unexpected zero blocks Julianne C.
2007-02-15 15:06 ` Adrian Hunter
2007-02-15 23:46 ` Kyungmin Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox