mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Peter Kuennemann@Crane-Soft" <pkue@crane-soft.de>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: Booting PhyTec PCM043/IMX35  from USB/SD-Card
Date: Fri, 25 May 2012 11:35:36 +0200	[thread overview]
Message-ID: <4FBF5268.1040900@crane-soft.de> (raw)
In-Reply-To: <20120524195543.GB30400@pengutronix.de>


Am 24.05.2012 21:55, schrieb Sascha Hauer:
> Hi Peter,
> 
> On Wed, May 23, 2012 at 05:43:52PM +0200, Peter Kuennemann@Crane-Soft wrote:
>> Hi all.
>>
>> I am trying to setup my PCM043/IMX35 board to boot from the
>> USB MMC card but til now I do have have any clue how to manage.
>> Searching the net, did not provide any hints regard that board.
>>
>> I'ld like to have barebox to allow me to use the USB/MMC card
>> as boot device. Is there a chance to boot from SD-Card at all?
> 
> Do you want to start barebox from USB/MMC or do you only want to load
> the kernel from USB/MMC? The latter is possible, though you have to add
> support for it. See arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
> for an example how to do it. Basically for MMC you have to configure
> the iomuxer and register the device. USB might be a bit more
> complicated, you have to configure the phy correctly.
> 
> Sascba
> 
Thanks a lot for your reply, Sascha. I'ld really want to load the
Kernel from the MMC and want to have the rootfs there as well. barebox
is goint to stay in flash anyhow.
I already tried to boot the Kernel from NOR/NAND but have problems to
mount the rootfs on MMC.
I think either way should work for us, booting kernel from MMC and having
rootfs on MMC or boot kernel from flash and have rootfs on MMC.
I'll investiage the sample that you referred to but I wonder if you could
point me into right direction regarding the rootfs on MMC?

---

To have kernel in flash and rootfs on MMC i tried bootargs as:

... root=/dev/mmcblk0p1 rootfstype=ext2 rootflags=noatime rw noinitrd rootwait ..

and it boots the kernel properly from flash up to:
...
mmcblk0: mmc0:a95c SD01G 968 MiB     <== Recognized the sd card
 mmcblk0: p1                         <== and partion 1
...
1f00             256 mtdblock0 (driver?)
1f01             128 mtdblock1 (driver?)
1f02            2048 mtdblock2 (driver?)
1f03           30336 mtdblock3 (driver?)
1f04         1048576 mtdblock4 (driver?)
b300          992000 mmcblk0 driver: mmcblk
  b301          991585 mmcblk0p1                    <=== Something missing here?
No filesystem could mount root, tried:  ext2        <===
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,1) <===

The mmc does contain a ext2 filesystem with the proper rootfs copied from
the jffs2.image that I mounted under Ubuntu as loop device. The kernel has ext2 fs
support compiled in.

The rootfs on the mmc is properly accessible when booting kernel and flash footfs
on the very same platform.

Peter

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-05-25  9:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-23 15:43 Peter Kuennemann@Crane-Soft
2012-05-24 19:55 ` Sascha Hauer
2012-05-25  9:35   ` Peter Kuennemann@Crane-Soft [this message]
2012-05-31 18:27     ` Sascha Hauer
2012-05-31 19:13       ` CRANESOFT
2012-06-28  6:53       ` Peter Kuennemann@Crane-Soft
2012-06-28 10:43         ` Sascha Hauer
2012-06-28 13:36           ` Peter Kuennemann@Crane-Soft
2012-06-28 13:54             ` Sascha Hauer
2012-08-23 17:59           ` Peter
2012-08-24  8:46             ` Jan Lübbe
2012-08-27  7:45               ` Peter

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=4FBF5268.1040900@crane-soft.de \
    --to=pkue@crane-soft.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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