From: Grant Erickson <gerickson@nuovations.com>
To: "Manfred jun. Schlägl" <manfred.schlaegl@gmx.at>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Writing JFFS2 to Samsung K9F1208U0B NAND on AMCC PPC405EX/r Kilauea/Haleakala
Date: Fri, 29 Feb 2008 10:55:34 -0800 [thread overview]
Message-ID: <C3ED9526.DB2F%gerickson@nuovations.com> (raw)
In-Reply-To: <1204275029.3408.31.camel@lisa.alm.archives.at>
On 2/29/08 12:50 AM, Manfred jun. Schlägl wrote:
> Am Donnerstag, den 28.02.2008, 16:30 -0800 schrieb Grant Erickson:
>> I am attempting to create and write a JFFS2 file system to the Samsung
>> K9F1208U0B NAND part on an AMCC PPC405EXr "Haleakala" board and seem to be
>> running into a hurdle or two.
>>
>> Given the Samsung K9F1208U0B's 16 KiB erase block and 512 B page sizes, I
>> invoked mkfs.jffs2 with:
>>
>> % mkfs.jffs2 -n -b -s 512 -e 16 KiB -d /export/haleakala -o haleakala.img
>
>> I then erase the device with 'flash_eraseall' using the '-j' option:
>>
>> # flash_eraseall -j /dev/mtd9
>> Erasing 16 Kibyte @ 3f94000 -- 99 % complete. Cleanmarker written at
>> 3f94000.
>>
>> However, when I attempt to lay down the file system image with nandwrite
>> (again, using the '-j' option), I get a driver error:
>>
>> # nandwrite -j /dev/mtd9 haleakala.img
>> MEMSETOOBSEL: Inappropriate ioctl for device
>>
>> Eliding the '-j' option, I get errors about page alignment:
>>
>> # nandwrite /dev/mtd9 haleakala.img
>> Input file is not page aligned
>> Data was only partially written due to error: Success
> You have to pad(-p) your image, so that it's size is a multiple of page
> size
> % mkfs.jffs2 -n -b -s 512 -p 512 -e 16 KiB -d /export/haleakala -o
> haleakala.img
>
> Then you should be able to write it with:
> % nandwrite /dev/mtd9 haleakala.img
>
> greetings
> manfred
Manfred:
Danke schön. Your suggestion of adding padding ('-p 512') along with
Andrey's suggestion to remove the deprecated '-j' options to flash_eraseall
and nandwrite did the trick:
# mount -t jffs2 /dev/mtdblock9 /import/
# df -h
Filesystem Size Used Available Use% Mounted on
...
/dev/mtdblock9 63.6M 14.4M 49.2M 23% /import
Regards,
Grant
next prev parent reply other threads:[~2008-02-29 18:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-29 0:30 Writing JFFS2 to Samsung K9F1208U0B NAND on AMCC PPC405EX/r Kilauea/Haleakala Grant Erickson
2008-02-29 8:50 ` Schlägl Manfred jun.
2008-02-29 18:55 ` Grant Erickson [this message]
2008-02-29 14:17 ` Josh Boyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C3ED9526.DB2F%gerickson@nuovations.com \
--to=gerickson@nuovations.com \
--cc=linux-mtd@lists.infradead.org \
--cc=manfred.schlaegl@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.