From: Robin Gilks <robin.gilks@tait.co.nz>
To: linuxppc-embedded@ozlabs.org
Subject: Re: boot-time partitions and bootargs for 2.6.14
Date: Tue, 11 Oct 2005 14:17:57 +1300 [thread overview]
Message-ID: <434B12C5.2050809@tait.co.nz> (raw)
In-Reply-To: <434B03A2.8060608@rftechnology.com.au>
Dmytro Bablinyuk wrote:
>> Are you sure that your flash device name in Linux is just "0" ?
>
> I think you are right. I missed the point.
>
> => flinfo
>
> Bank # 1: Sharp 28F016SC (16 Mbit, 32 x 64K)
> Size: 8 MB in 32 Sectors
> Sector Start Addresses:
> FF800000 FF840000 FF880000 FF8C0000 FF900000
> FF940000 FF980000 FF9C0000 FFA00000 FFA40000
> FFA80000 FFAC0000 FFB00000 FFB40000 FFB80000
> FFBC0000 FFC00000 FFC40000 FFC80000 FFCC0000
> FFD00000 FFD40000 FFD80000 FFDC0000 FFE00000
> FFE40000 FFE80000 FFEC0000 FFF00000 (RO) FFF40000 (RO)
> FFF80000 FFFC0000
>
> So I have
> mtdparts=1:1024k(Linux),4096k(FS),2048k(Unused),512k(U-Boot),512()
>
> But problem remains...
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(31,1)
Are you using physmap as the means of creating the mtd devices? If so
there is a bug in many variants of the kernel that defines the map
structure as follows:
struct map_info physmap_map = {
.name = "Physically mapped flash",
.size = WINDOW_SIZE,
.buswidth = BUSWIDTH,
.phys = WINDOW_ADDR,
};
Note that the name has embedded spaces - something I've never managed to
get U-Boot to pass across on the kernel command line (I'm sure Wolfgang
will correct me if I'm wrong here!!). The '1' in your
"mtdparts=1:1024k(Linux)" should match the name of this map. In this
case the code needs to be changed to NOT have spaces in it (and perhaps
a more user friendly name) and the kernel config values for WINDOW_SIZE,
BUSWIDTH and WINDOW_ADDR set correctly. That way you'd end up with
something like:
struct map_info physmap_map = {
.name = "fred",
.size = WINDOW_SIZE,
.buswidth = BUSWIDTH,
.phys = WINDOW_ADDR,
};
and a command line something like:
mtdparts=fred:1024k(Linux),4096k(FS),2048k(Unused),512k(U-Boot),512()
I'd also suggest that you mount a known good fs using NFS (if you have
ethernet on your target) and then try manually mounting the flash fs -
that will check out its structure (endian-ness?) and the jffs2 drivers
on your target.
--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : robin.gilks@tait.co.nz
New Zealand
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
next prev parent reply other threads:[~2005-10-11 1:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-10 23:05 boot-time partitions and bootargs for 2.6.14 Dmytro Bablinyuk
2005-10-10 23:46 ` Wolfgang Denk
2005-10-11 0:04 ` Dmytro Bablinyuk
2005-10-11 0:13 ` Dmytro Bablinyuk
2005-10-11 1:17 ` Robin Gilks [this message]
2005-10-11 3:10 ` Dmytro Bablinyuk
2005-10-11 3:24 ` Robin Gilks
2005-10-11 7:01 ` Dmytro Bablinyuk
2005-10-11 7:17 ` Wolfgang Denk
2005-10-11 7:33 ` Dmytro Bablinyuk
2005-10-11 13:10 ` Vitaly Bordug
2005-10-11 7:14 ` Wolfgang Denk
2005-10-11 1:02 ` Dmytro Bablinyuk
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=434B12C5.2050809@tait.co.nz \
--to=robin.gilks@tait.co.nz \
--cc=linuxppc-embedded@ozlabs.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;
as well as URLs for NNTP newsgroup(s).