From: Adam Furmanczuk <afurmanczuk@knowtrek.com>
To: barebox@lists.infradead.org
Subject: Re: how to flash barebox and set root variable? - barebox is gone :(
Date: Mon, 10 Jun 2013 19:01:30 +0200 [thread overview]
Message-ID: <51B6066A.5020801@knowtrek.com> (raw)
In-Reply-To: <51B5C56C.4050801@knowtrek.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
One thing to add:
I managed to run tftpd-hpa server on my debian box and tried to update
kernel to nor0.kernel. I run:
update -t kernel -d barebox -d nor -m tftp -f barebox.bin
Which gave me output [1], obviously tftp is wrong configured. When I
mount with filesystem tftp and copy with cp I get the files.
Well I did the same with barebox, just to make sure. It also ereased
first and then complained it cannot run tftp (I had probably an
interrupt at my brain to perform that action ;) )
With barebox still in ram I tried to rescue it somehow..
So i copied barebox.bin from my tftp drive. created empty file tftp in
/env/bin and got a promising output [2], i tried to unprotect the nor
flash just to make sure.
Now where there is supposed to be barebox loading, there is nothing :)
My barebox is gone.
Thanks for comments, Greetings,
Adam
[1] barebox output update with tftp:
phy0: Link is up - 100/Full
host 192.168.10.59 is alive
cfi_protect: unprotect 0xf0100000 (size 7340032)
erasing partition /dev/nor0.kernel
[#################################################################]
flashing barebox.bin to /dev/nor0.kernel
Unknown command 'tftp' - try 'help'
[2] barebox output update with hack:
erasing partition /dev/nor0.barebox
[#################################################################]
flashing barebox.bin to /dev/nor0.barebox
cfi_protect: protect 0xf0000000 (size 917504)
> Hello Sascha,
>
>> What to do next depends on the environment you have. Please send
>> the output of 'ls -l /env'.
>
>
> that would be:
>
> drwxrwxrwx 0 . drwxrwxrwx 0 .. -rwxrwxrwx
> 1230 config drwxrwxrwx 0 bin
>
> contents of /env/bin is:
>
> -rwxrwxrwx 817 _update_help -rwxrwxrwx 447
> update_nfs -rwxrwxrwx 1362 update -rwxrwxrwx 285 mv
> -rwxrwxrwx 3445 boot -rwxrwxrwx 590 init -rwxrwxrwx
> 21 hush_hack -rwxrwxrwx 571 _boot_help -rwxrwxrwx 702
> _update
>
> and ls -l /dev prints:
>
> cr-------- 4294967295 zero crw------- 536870912 ram0 crw-------
> 11108 defaultenv crw------- 4294967295 mem crw------- 64
> phy0 crw------- 3616538624 disk0 crw------- 4193792 disk0.0
> crw------- 54525952 disk0.1 crw------- 8388608 nor0 crw-------
> 917504 self0 crw------- 131072 env0 crw------- 917504
> nor0.barebox crw------- 131072 nor0.bareboxenv crw-------
> 7340032 nor0.kernel
>
> well, have tried to make an barebox.bin start disk with the cat
> barebox.bin > /dev/sdX, but not sure how to proceed to run from
> sd-card.
>
> On a different try, I copied barebox.bin on a fat12 sd partition
> and tried to update on the mounted partion:
>
> update -t barebox -d nor -f barebox.bin
>
> but the syntax is:
>
> type update -t barebox -d <nor|nand> [-m tftp|xmodem|nfs] [-f
> imagename] to update barebox into flash
>
> "-m" does not give my disk as source, so I guess I have to get tftp
> to work..
>
>> I haven't downloaded the CD images they provide. Do you know
>> whether there are barebox sources provided on the CDs?
>
> On CD there is basically buildroot and the config files for barebox
> I have attached to this mail.
>
>
> Just to recall: my problem is that i do not know how to provide
> "root=" parameter to my barebox environemnt. I load the zImage by
> mounting partition by hand and running "bootm".
>
> Thanks for help, Greetings,
>
> Adam
>
>
>
>
>
>
>
>
>
>
> _______________________________________________ barebox mailing
> list barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlG2BmkACgkQefEEI87R1DeEcgCeJixbOwIsMm82PQcLp2AmAzW5
uDkAoNg84RmdVE/n+4T28rHavEQUXjRx
=5A2e
-----END PGP SIGNATURE-----
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2013-06-10 17:01 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 ` Adam Furmanczuk [this message]
2013-06-10 17:07 ` Re[2]: how to flash barebox and set root variable? - barebox is gone :( 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=51B6066A.5020801@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