From: John Stile <john@stilen.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] booting from half of NAND, and mounting jffs on other half of NAND
Date: Fri, 01 Feb 2013 12:47:51 -0800 [thread overview]
Message-ID: <1359751671.7974.390.camel@genx> (raw)
Using uboot 2013.01, booting from NAND, I am having difficulty
understanding how partitions (areas of NAND) work.
I have written to NAND in the following layout:
0x0000000 at91bootstrap1
0x0020000 uboot1
0x0060000 uboot-env1
0x0200000 kernel1
0x0400000 rootfs1
0x8000000 at91bootstrap2
0x8020000 uboot2
0x8060000 uboot-env2
0x8200000 kernel
0x8400000 rootfs2
I hacked at91bootstrap to load into ram a uboot and an environment, and
I can stop uboot and 'env print' to see that the proper environment was
loaded.
While booted into linux on one rootfs I would like to access the other
rootfs.
I try tried to use the mtdparts parameter that describes the partitions
of NAND, but this isn't working, and I don't think I understand what it
should be.
First problem, or signs that I'm doing something wrong is my mtdparts
parameter. If I try to edit on the interactive uboot shell, the line is
too long to change, so I have to write flash for each test. That can't
be correct? Regardless of which uboot environemnt I use, this is what I
am trying to use to describe my NAND layout:
mtdparts=at91_nand:128k(bootstrap1)ro,256k(uboot1)ro,128k(env1)ro,1536K(unused),2M(linux1),124M(rootfs1),128k(bootstrap2)ro,256k(uboot2)ro,128k(env2)ro,1536k(unused2),2M(linux2),124M(rootfs2)
What should I use here?
Second problem is what to use for root=/dev/mtdblock*. I have tried
many things, but most lead to an inability to find the file system, and
since each test requires re-writing NAND flash it takes a really long
time to debug. What should I use here?
next reply other threads:[~2013-02-01 20:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-01 20:47 John Stile [this message]
2013-02-02 0:13 ` [U-Boot] booting from half of NAND, and mounting jffs on other half of NAND John Stile
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=1359751671.7974.390.camel@genx \
--to=john@stilen.com \
--cc=u-boot@lists.denx.de \
/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