From: Nishanth Menon <menon.nishanth@gmail.com>
To: "Luís Vitório Cargnini" <lvcargnini@ieee.org>
Cc: OMAP <Linux-omap-open-source@linux.omap.com>
Subject: Re: Fwd: Problems loading ffs image
Date: Tue, 19 Sep 2006 20:09:09 -0500 [thread overview]
Message-ID: <451094B5.3020904@gmail.com> (raw)
In-Reply-To: <ae36f8040609191412l48652267udcc193d8b8c953e4@mail.gmail.com>
Assumption: mtd-utils
ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.0.0.tar.gz was used to
create the mkfs.jffs2
>cfi_cmdset_0001: Erase suspend on write enabled
>0x00020000-0x00040000 : "params"
Cmdset1+sectorsize=128K looks like a strataflash
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000:
> 0x9d8d instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004:
> 0x0b59 instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008:
> 0x4f8f instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c:
> 0xd159 instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010:
> 0xe226 instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014:
> 0x9318 instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018:
> 0x030a instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c:
> 0xb702 instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020:
> 0x7044 instead
> VFS: Mounted root (jffs2 filesystem).
> Freeing init memory: 116K
> Warning: unable to open an initial console.
as karthik said: check ur inittab and console device settings esp since
ur using udev now a days..
> I'm using the mkfs.jffs2 of mtd-utils 1.00 as i said before.
> the command to create image is:
> mkfs.jffs2 -p -l -e 0x20000 -n -v -r ilfs/ -o instramed.jffs2
>
<snip>
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024:
> 0x6d97 instead
> Further such events for this erase block will not be printed
Try something simpler.
mkfs.jffs2 -d root_folder -o rootfs_image.jffs2 -e 0x20000
and flash rootfs_image.jffs2 to flash using the following command
(assuming you downloaded to memory at 0x80000000(if this is not the
address of SDRAM memory, change it) and have erased the flash from
0x04240000 to 0x06240000)
cp.b 0x80000000 0x04240000 (size of the filesystem)
> On 9/19/06, Woodruff, Richard <r-woodruff2@ti.com> wrote:
>> You boot command doesn't look right...
>> bootcmd=0x00100000 0x10000000 142b34;bootm
>>
yup. the bootargs also look good, but the bootcmd is faulty.
>>
>> Can you even read reasonable data in your flash device when the kernel
>> is on the way up? It could be as simple as your memory timings are
>> wrong given your boot speed and they simply are read up incorrectly.
This cannot be true as the CFI probe did work.. so guess the strata
flash is active.
OK just in case nothing worked, as an last ditch alternate strategy, in
case you do have ethernet working:
boot out of NFS. have the filesystem you would like to have in the flash
visible in the NFS filesystem.
Now, with the mtd-utils, do the following:
./flash_eraseall -j /dev/mtd/3
mount -t jffs2 /dev/mtdblock/3 /mnt
cd /mnt
cp -rvf <theflashfilesystemdirectory/*> .
ls -al
it should now look like
usr bin lib include tmp dev
etc..
if ur filesystem looks good (i'd use a filesystem that boots off NFS for
this so a good checkpoint if your filesystem has console and others will
be that), next:
cd
umount /mnt
cat /dev/mtd/3>anewImage.jffs2
you can now use the anewImage.jffs2
happy hunting..
Regards,
Nishanth Menon
next prev parent reply other threads:[~2006-09-20 1:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-19 20:42 Fwd: Problems loading ffs image Woodruff, Richard
2006-09-19 21:12 ` Luís Vitório Cargnini
2006-09-20 1:09 ` Nishanth Menon [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-09-19 22:03 karthik
2006-09-19 21:21 Woodruff, Richard
2006-09-19 21:39 ` Kipisz, Steven
2006-09-15 17:22 Luís Vitório Cargnini
[not found] ` <ae36f8040609181359u40b0862cyfd380e33192d1a6d@mail.gmail.com>
2006-09-18 21:00 ` Fwd: " Luís Vitório Cargnini
2006-09-19 1:08 ` Nishanth Menon
[not found] ` <ae36f8040609182146w2c81f262n308421935165dc07@mail.gmail.com>
[not found] ` <450FCC8F.5050600@gmail.com>
2006-09-19 20:31 ` Luís Vitório Cargnini
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=451094B5.3020904@gmail.com \
--to=menon.nishanth@gmail.com \
--cc=Linux-omap-open-source@linux.omap.com \
--cc=lvcargnini@ieee.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox