mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Peter <sailingsmoky@googlemail.com>
To: barebox@lists.infradead.org
Subject: Re: Booting PhyTec PCM043/IMX35  from USB/SD-Card
Date: Mon, 27 Aug 2012 09:45:11 +0200	[thread overview]
Message-ID: <503B2587.2090809@crane-soft.de> (raw)
In-Reply-To: <1345797986.3519.4.camel@coredoba.hi.pengutronix.de>

Am 24.08.2012 10:46, schrieb Jan Lübbe:

Jan, thanks very much for pointing me into the right direction

> Hi!
> 
> On Thu, 2012-08-23 at 19:59 +0200, Peter wrote:
>> I am able to boot the kernel from NOR flash and use the mmc as rootfs. However
>> I did not yet find a way to boot the kernel from the MMC. I set up the MMC
>> with 255 heads, 63 sectors/track, 245 cylinders and formated partition 1 as
>> VFAT and made it bootable. I then copied uImage to it. Partition 2 contains
>> the rootfs which can be used when booting the kernel from flash.
>>
>> Barebox /env/config contains: (besides others)
>> ...
>>  kernel_loc=disk
>>  rootfs_loc=disk
>>  rootfs_type=ext2
>>  rootfs_part_linux_dev=mmcblk0p2
>>  kernel_part=disk0.0
>> ...
>>
>> Trying to boot results in:
>> booting kernel from /dev/disk0.0
>>
>> and then followed by the barebox prompt.
> 
> You're using the old default-env which does not support uImage on FAT
> (only a kernel directly in a partition). Either switch to default-env-2
> and mount the FAT ('mount /dev/disk0.0 fat /mnt') before loading the
> kernel from /mnt/uImage.
> Otherwise for the old default-env take a look at
> <1345472428-17417-13-git-send-email-jlu@pengutronix.de>. Note that for
> that to work, the FAT must be mounted by the board code or you need to
> setup an automount.


After implementing all required driver and support into barebox, it turns
out that I also need to increase it's partition size to 512K. I then was
able to use the existing environment and changed the boot script as follows

elif [ x$kernel_loc = xdisk ]; then
     kdev="/dev/$kernel_part"
+    mkdir /boot
+    mount $kdev fat /boot
+    kdev=/boot/UIMAGE

Many thanks, Peter


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

      reply	other threads:[~2012-08-27  7:45 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
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 [this message]

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=503B2587.2090809@crane-soft.de \
    --to=sailingsmoky@googlemail.com \
    --cc=barebox@lists.infradead.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