mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* iMX6 second boot: from SDCard
@ 2016-03-01 11:18 gianluca
  2016-03-01 11:38 ` iMX6 second boot: from SDCard [SOLVED] gianluca
  0 siblings, 1 reply; 2+ messages in thread
From: gianluca @ 2016-03-01 11:18 UTC (permalink / raw)
  To: barebox

Hello everybody,
first of all, I would say a BIG thank to everybody point me out on have 
a USB-Serial Downloader working and Barebox up and running in my custom 
iMX6Q based board.

Right now I wish to know what can be done or not done to fireup the 
board from attached microSD card which is working because Barebox (from 
USB Downloader) is seeing it and find any partition scheme found on it.

If I simply write the barebox-flash-image (currently a symlink to 
image/barebox-[BOARD].img file) to a sdcard with command:

[my usb-adapter is seeing the sdcard as /dev/sdk]

dd if=barebox-flash-image of=/dev/sdk

it works, but actually I have lost all MBR partition scheme at all.

I read somewhere (https://community.freescale.com/docs/DOC-95015) that 
writing the .imx file with an offset of 1K from the beginning of the 
card it should run.

Actually it is not. :-(

Does barebox building this kinda of image? I see under the images 
folder, a file named:

start_imx6_[BOARD].pblx.imximg

but as far as I can see, this file is the same as the 
barebox-[BOARD]-imx6q.img...

The Reference Manual in the Boot Section does not explain well on HOW TO 
PREPARE a MICROSD card just to be sure the DCD and other stuff (like 
PBL) have to be written just to bootstrap from microSD/MMC...


Can anybody help me out on this?


Best Regards,
-- 
Eurek s.r.l.                          |
Electronic Engineering                | http://www.eurek.it
via Celletta 8/B, 40026 Imola, Italy  | Phone: +39-(0)542-609120
p.iva 00690621206 - c.f. 04020030377  | Fax:   +39-(0)542-609212

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: iMX6 second boot: from SDCard [SOLVED]
  2016-03-01 11:18 iMX6 second boot: from SDCard gianluca
@ 2016-03-01 11:38 ` gianluca
  0 siblings, 0 replies; 2+ messages in thread
From: gianluca @ 2016-03-01 11:38 UTC (permalink / raw)
  To: barebox

On 03/01/2016 12:18 PM, gianluca wrote:
> Hello everybody,
> first of all, I would say a BIG thank to everybody point me out on have
> a USB-Serial Downloader working and Barebox up and running in my custom
> iMX6Q based board.
>
> Right now I wish to know what can be done or not done to fireup the
> board from attached microSD card which is working because Barebox (from
> USB Downloader) is seeing it and find any partition scheme found on it.
>
> If I simply write the barebox-flash-image (currently a symlink to
> image/barebox-[BOARD].img file) to a sdcard with command:
>
> [my usb-adapter is seeing the sdcard as /dev/sdk]
>
> dd if=barebox-flash-image of=/dev/sdk
>
> it works, but actually I have lost all MBR partition scheme at all.
>
> I read somewhere (https://community.freescale.com/docs/DOC-95015) that
> writing the .imx file with an offset of 1K from the beginning of the
> card it should run.
>
> Actually it is not. :-(
>

I can answer to this by myself ;-)

The issue is to write skipping the fisrt 1024 of the sdcard (bs=512 
skip=2 and skipping the first 1k from the image itself [seek=2])

dd if=barebox-flash-image of=/dev/sdk bs=512 seek=2 skip=2

works fine.

Sorry for noise.
;-P

-- 
Eurek s.r.l.                          |
Electronic Engineering                | http://www.eurek.it
via Celletta 8/B, 40026 Imola, Italy  | Phone: +39-(0)542-609120
p.iva 00690621206 - c.f. 04020030377  | Fax:   +39-(0)542-609212

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-01 11:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-01 11:18 iMX6 second boot: from SDCard gianluca
2016-03-01 11:38 ` iMX6 second boot: from SDCard [SOLVED] gianluca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox