mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Adam Furmanczuk <afurmanczuk@knowtrek.com>
To: barebox@lists.infradead.org
Subject: Re: set root variable for uImage? - SOLVED
Date: Thu, 04 Jul 2013 12:59:02 +0200	[thread overview]
Message-ID: <51D55576.3060900@knowtrek.com> (raw)
In-Reply-To: <20130704103919.GC516@pengutronix.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04.07.2013 12:39, Sascha Hauer wrote:
> On Thu, Jul 04, 2013 at 12:30:15PM +0200, Adam Furmanczuk wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hi Sascha, hi Alexander,
>> 
>> rootwait parameter in bootargs did not helped. I compiled barebox
>> and kernel Image from busybox. I added in busybox extra
>> defconfig parameter for the imx53 board for barebox. No extra
>> pachtes. Have sdma module in root partion in /lib directory, but
>> it never change-roots to that partition anyway.
>> 
>> With u-Boot the same bootargs are OK. My new project requires to
>> use barebox.
>> 
>> Output of devinfo global [1] and bootlog [2]
> 
> Please send these inline next time so that people digging through
> the archives can see what we are talking about.

OK, I was afraid making my message less readable. Will do that next time.

> 
>> 
>> Greetings,
>> 
>> Adam
>> 
>> 
>> [1] http://pastebin.com/yyQjtpbT
> 
>> barebox@Freescale i.MX53 LOCO:/ devinfo global resources: driver:
>> none bus: none
>> 
>> Parameters: system.reset = POR bootm.image = bootm.oftree = 
>> bootm.initrd = dhcp.rootpath = dhcp.tftp_server_name = 
>> dhcp.bootfile = dhcp.oftree_file = dhcp.vendor_id = 
>> dhcp.client_id = dhcp.user_class = dhcp.client_uuid = hostname =
>> loco user = none autoboot_timeout = 3 boot.default = net 
>> allow_color = true linux.bootargs.base = console=ttymxc0,115200 
>> linux.bootargs.dyn.ip = linux.bootargs.dyn.root =
> 
> Ok, that's the information I was looking for.
> 
> The bootm command either uses the 'bootargs' variable or if exists,
> all variables beginning with "linux.bootargs.".
> 
> So to change your bootargs do:
> 
> linux.bootargs.base="console=ttymxc0,115200 ignore_loglevel
> whatever"
> 
> You can also add new variables:
> 
> global linux.bootargs.debug="earlyprintk"
> 
> And what you are currently looking for:
> 
> global linux.bootargs.root="root=/dev/mmcblk0p3 rootwait"

Yeah! I really was looking for that. Now my environment is 100%
barebox compatible;).

As a sidenote: on other device (not MX53 QSB but Icnova SO-dimm),
flashing new barebox is not an option. I already lost one device and
try to recover by learning more openocd.

The barebox version there is September 2012. It does not have "go"
command for running newer barebox.bin and does not have "global" for
setting parameters. I should maybe restate that sidenote as a new thread?

> 
>> [2] http://pastebin.com/4PxUnm0Q
> 
>> barebox@Freescale i.MX53 LOCO:/mkdir /mnt/disk1 barebox@Freescale
>> i.MX53 LOCO:/ bootargs="root=/dev/mmcblk0p3 rootwait 
>> rootfstype=ext4" barebox@Freescale i.MX53 LOCO:/ mount
>> /dev/disk0.1 fat /mnt/disk1 barebox@Freescale i.MX53 LOCO:/ bootm
>> /mnt/disk1/uImage Image Name:   Linux-2.6.35.3 Created:
>> 2013-06-13  14:17:14 UTC OS:           Linux Architecture: ARM 
>> Type:         Kernel Image Compression:  uncompressed Data Size:
>> 2945628 Bytes = 2.8 MiB Load Address: 70008000 Entry Point:
>> 70008000
>> 
>> Loading OS U-Boot uImage '/mnt/disk1/uImage' commandline:
>> console=ttymxc0,115200 arch_number: 3273 Linux version 2.6.35.3
>> (testserver@Server6) (gcc version 4.7.3
> 
> Quite an old Kernel for a new project...

Yes, indeed. That is still default in latest buildroot defconfig.
There are of course newer kernels [3]. I even managed last year to
compile vanilla kernel 3.8.something with the provived defconfigs. Had
some USB-issues, and SDMA-module needed extra firmaware binary. USB
support was not important for our case.

I have not that much experience to embedded linux, but I learn fast ;).


>> (Buildroot 2013.05) ) #1 PREEMPT Thu Jun 13 16:17:07 CEST 2013 
>> CPU: ARMv7 Processor [412fc085] revision 5 (ARMv7), cr=10c53c7f 
>> CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction
>> cache Machine: Freescale MX53 LOCO Board Memory policy: ECC
>> disabled, Data cache writeback Built 1 zonelists in Zone order,
>> mobility grouping on.  Total pages: 250880 Kernel command line:
>> console=ttymxc0,115200

Spotted that too, and was confused :)

Thanks you very much again for solving my issue.

Greetings,

Adam

[3] https://wiki.linaro.org/Cycles/1306/Release
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlHVVXYACgkQefEEI87R1DfjXQCeIYED1WvovKVdcqzFRLpRkW8N
KosAoLzjfApPSttEx4PC0nPnmSjWH54W
=FWch
-----END PGP SIGNATURE-----

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

      reply	other threads:[~2013-07-04 10:59 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-06 16:03 how to flash barebox and set root variable? Adam Furmanczuk
2013-06-06 16:21 ` Sascha Hauer
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             ` Adam Furmanczuk [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=51D55576.3060900@knowtrek.com \
    --to=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