mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Adam Furmanczuk <afurmanczuk@knowtrek.com>
Cc: barebox@lists.infradead.org
Subject: Re: how to flash barebox and set root variable?
Date: Thu, 6 Jun 2013 18:21:20 +0200	[thread overview]
Message-ID: <20130606162120.GA32299@pengutronix.de> (raw)
In-Reply-To: <51B0B2D6.3030407@knowtrek.com>

On Thu, Jun 06, 2013 at 06:03:34PM +0200, Adam Furmanczuk wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> I am quite new to barebox. Before I had little bit experience in u-Boot.
> 
> My Barebox version is: barebox 2012.03.0-00162-g3f84abc-dirty (Sep 24
> 2012 - 10:51:42)
> 
> I can mount a Linaro freescale mx53 sd-card setup. I think it has one
> Fat8 partion, because Fat32 and Fat16 are not recognized by my barebox
> version.
> 
> When I boot the uImage, it complains about not setting the "root="
> parameter, when I give it as an argument it does not work.
> 
> In my u-Boot setup all I need to do was write:
> 
> setenv bootcmd "fatload mmc 0:2 0x70800000 uImage;bootm"
> setenv bootargs "console=tty0 console=ttymxc0,115200n8
> root=/dev/mmcblk0p3 rootfstype=ext4 rootwait ro"
> 
> Maybe this is a version isuue? I managed to build the latest kernel
> what is the procedure to "flash" the new barebox.bin? Can I use the cp
> command for this, or do I need to flash it via OCD? If so what are
> good tools in linux to achieve that task?
> 
> OK a lot of questions. Most probably already answered, but had not
> found google.

What board do you have? Is it one supported by barebox or do you have
your own patches?

Generally with i.MX5 you can write the image (barebox.bin in this old
version, barebox-flash-image in more recent versions) directly to a
MMC/SD card, under Linux with:

cat barebox.bin > /dev/sdx

or under barebox:

tftp barebox.bin /dev/mci0

Generally you also always start barebox 2nd stage. So if you have an
older barebox (Or U-Boot) on your board you can:

tftp barebox.bin /dev/ram0
go /dev/ram0

(Similar with U-Boot: tftp $loadaddr barebox.bin; go $loadaddr)

This way you can test barebox without any risk.

What to do next depends on the environment you have. Please send the
output of 'ls -l /env'.

Using a more recent version of barebox probably is a good idea. We
gained a lot of interesting features in the last year.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

  reply	other threads:[~2013-06-06 16:21 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-06 16:03 Adam Furmanczuk
2013-06-06 16:21 ` Sascha Hauer [this message]
2013-06-07  5:08   ` Adam Furmanczuk
2013-06-07 10:55     ` Sascha Hauer
2013-06-10 12:24   ` Adam Furmanczuk
2013-06-10 17:01     ` how to flash barebox and set root variable? - barebox is gone :( Adam Furmanczuk
2013-06-10 17:07       ` Re[2]: " Alexander Shiyan
2013-06-10 17:23         ` Adam Furmanczuk
2013-06-10 17:29           ` Sascha Hauer
2013-06-11  8:10             ` Adam Furmanczuk
2013-06-12  6:12             ` Adam Furmanczuk
2013-06-12  7:19               ` Adam Furmanczuk
2013-06-12  8:07                 ` Sascha Hauer
2013-06-12  8:22                   ` Adam Furmanczuk
2013-06-12  8:48                     ` Sascha Hauer
2013-06-12  9:02                       ` Adam Furmanczuk
2013-06-12 15:54                         ` Sascha Hauer
2013-06-12 16:01                           ` Re[2]: " Alexander Shiyan
2013-06-12 16:14                             ` Adam Furmanczuk
2013-07-03 13:32 ` set root variable for uImage? Adam Furmanczuk
2013-07-03 15:21 ` Adam Furmanczuk
2013-07-03 16:58   ` Sascha Hauer
2013-07-03 18:30     ` Adam Furmanczuk
2013-07-03 18:42       ` Re[2]: " Alexander Shiyan
2013-07-03 20:26       ` Sascha Hauer
2013-07-04 10:30         ` Adam Furmanczuk
2013-07-04 10:39           ` Sascha Hauer
2013-07-04 10:59             ` set root variable for uImage? - SOLVED Adam Furmanczuk

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=20130606162120.GA32299@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=afurmanczuk@knowtrek.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