All of lore.kernel.org
 help / color / mirror / Atom feed
* Booting fido on sabrelite through u-boot
@ 2015-10-28 20:51 Maciej Tucholski
  2015-10-28 22:03 ` Gary Thomas
  2015-10-29 13:05 ` Gary Bisson
  0 siblings, 2 replies; 4+ messages in thread
From: Maciej Tucholski @ 2015-10-28 20:51 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]

Hi

I'm using a sabrelite board (https://boundarydevices.com/product/sabre-lite-imx6-sbc/)
I used it in the past for QNX and linux, this time I am trying to get yocto 1.8 (aka fido) running on it.

I was able to get fido to build on an Ubuntu machine, and I have the images, rootfs .dtb etc etc, however
I am not able to boot the kernel on the board.
I made several different attempts via SD card, and TFTP

What I was able to find out is that in order to boot using an SD card, the u-boot stored in SPI needs to be tweaked like so:
mw.l 0x020d8040 0x3040 && mw.l 0x020d8044 0x10000000
reset

or replaced with SPI to SD loader (https://wiki.linaro.org/Boards/MX6QSabreLite)
However no luck with either approach.
Currently I am xfering the fido zImage via tftp, and I am trying to get the bootz command to load it, but it hangs up on "Starting kernel ..."

I am not sure if I didn't build this right, or what exactly is going on, but I'm stuck and can't figure this out.

If I could get the kernel to build, then perhaps I can use the SD card, or nfs for the rootfs.

Apologizes for any missing information, I'm new to this scene, but I worked with the board and u-boot quite a bit

Maciej





[-- Attachment #2: Type: text/html, Size: 4133 bytes --]

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

* Re: Booting fido on sabrelite through u-boot
  2015-10-28 20:51 Booting fido on sabrelite through u-boot Maciej Tucholski
@ 2015-10-28 22:03 ` Gary Thomas
  2015-10-29 13:05 ` Gary Bisson
  1 sibling, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2015-10-28 22:03 UTC (permalink / raw)
  To: meta-freescale

On 2015-10-28 14:51, Maciej Tucholski wrote:
> Hi
>
> I’m using a sabrelite board (https://boundarydevices.com/product/sabre-lite-imx6-sbc/)
>
> I used it in the past for QNX and linux, this time I am trying to get yocto 1.8 (aka fido) running on it.
>
> I was able to get fido to build on an Ubuntu machine, and I have the images, rootfs .dtb etc etc, however
>
> I am not able to boot the kernel on the board.
>
> I made several different attempts via SD card, and TFTP
>
> What I was able to find out is that in order to boot using an SD card, the u-boot stored in SPI needs to be tweaked like so:
>
> mw.l 0x020d8040 0x3040 && mw.l 0x020d8044 0x10000000
>
> reset
>
> or replaced with SPI to SD loader (https://wiki.linaro.org/Boards/MX6QSabreLite)
>
> However no luck with either approach.
>
> Currently I am xfering the fido zImage via tftp, and I am trying to get the bootz command to load it, but it hangs up on “Starting kernel ...”
>
> I am not sure if I didn’t build this right, or what exactly is going on, but I’m stuck and can’t figure this out.
>
> If I could get the kernel to build, then perhaps I can use the SD card, or nfs for the rootfs.
>
> Apologizes for any missing information, I’m new to this scene, but I worked with the board and u-boot quite a bit

Most likely, the reason it hangs is because of missing bits.
Did you load the appropriate DTB image?
Did you set the boot params?

Both of these are normally set via a script loaded from the SD card
and executed as part of the boot process.

It's not clear to me why you can't just boot from the SD card?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: Booting fido on sabrelite through u-boot
  2015-10-28 20:51 Booting fido on sabrelite through u-boot Maciej Tucholski
  2015-10-28 22:03 ` Gary Thomas
@ 2015-10-29 13:05 ` Gary Bisson
  2015-10-29 20:38   ` Maciej Tucholski
  1 sibling, 1 reply; 4+ messages in thread
From: Gary Bisson @ 2015-10-29 13:05 UTC (permalink / raw)
  To: Maciej Tucholski; +Cc: meta-freescale@yoctoproject.org

Hi,

On Wed, Oct 28, 2015 at 9:51 PM, Maciej Tucholski
<mtucholski@certicom.com> wrote:
>
> Hi
>
> I’m using a sabrelite board (https://boundarydevices.com/product/sabre-lite-imx6-sbc/)
>
> I used it in the past for QNX and linux, this time I am trying to get yocto 1.8 (aka fido) running on it.
>
> I was able to get fido to build on an Ubuntu machine, and I have the images, rootfs .dtb etc etc, however
> I am not able to boot the kernel on the board.
>
> I made several different attempts via SD card, and TFTP
>
> What I was able to find out is that in order to boot using an SD card, the u-boot stored in SPI needs to be tweaked like so:
>
> mw.l 0x020d8040 0x3040 && mw.l 0x020d8044 0x10000000
> reset
>
> or replaced with SPI to SD loader (https://wiki.linaro.org/Boards/MX6QSabreLite)
>
> However no luck with either approach.

Actually the approach we recommend is to leave the U-Boot in NOR, then
it loads the kernel from any media you want (USB, MMC, SATA or even
TFTP).

Please flash the following U-Boot into NOR:
https://boundarydevices.com/compiling-latest-u-boot-for-i-mx6-2015-edition/

> Currently I am xfering the fido zImage via tftp, and I am trying to get the bootz command to load it, but it hangs up on “Starting kernel ...”
>
> I am not sure if I didn’t build this right, or what exactly is going on, but I’m stuck and can’t figure this out.

The fido branch is using a 3.14 kernel which means that it needs a
device tree blob otherwise the kernel won't boot.

But once you'll flash the U-Boot provided in the link above, you won't
have to worry about since it will load a script (6x_bootscript),
already present in the sdcard image you generated, that will take care
of loading all the necessary binaries to boot.

Regards,
Gary


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

* Re: Booting fido on sabrelite through u-boot
  2015-10-29 13:05 ` Gary Bisson
@ 2015-10-29 20:38   ` Maciej Tucholski
  0 siblings, 0 replies; 4+ messages in thread
From: Maciej Tucholski @ 2015-10-29 20:38 UTC (permalink / raw)
  To: Gary Bisson; +Cc: meta-freescale@yoctoproject.org

Thanks a lot Gary

I figured it out. 
I was building u-boot from source, and didn't realize there is a 2015 release now, mine was 2014.
Once the script launched, it loaded everything perfectly fine.

Thank you again

Maciej


-----Original Message-----
From: Gary Bisson [mailto:gary.bisson@boundarydevices.com] 
Sent: Thursday, October 29, 2015 9:06 AM
To: Maciej Tucholski
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] Booting fido on sabrelite through u-boot

Hi,

On Wed, Oct 28, 2015 at 9:51 PM, Maciej Tucholski <mtucholski@certicom.com> wrote:
>
> Hi
>
> I’m using a sabrelite board 
> (https://boundarydevices.com/product/sabre-lite-imx6-sbc/)
>
> I used it in the past for QNX and linux, this time I am trying to get yocto 1.8 (aka fido) running on it.
>
> I was able to get fido to build on an Ubuntu machine, and I have the 
> images, rootfs .dtb etc etc, however I am not able to boot the kernel on the board.
>
> I made several different attempts via SD card, and TFTP
>
> What I was able to find out is that in order to boot using an SD card, the u-boot stored in SPI needs to be tweaked like so:
>
> mw.l 0x020d8040 0x3040 && mw.l 0x020d8044 0x10000000 reset
>
> or replaced with SPI to SD loader 
> (https://wiki.linaro.org/Boards/MX6QSabreLite)
>
> However no luck with either approach.

Actually the approach we recommend is to leave the U-Boot in NOR, then it loads the kernel from any media you want (USB, MMC, SATA or even TFTP).

Please flash the following U-Boot into NOR:
https://boundarydevices.com/compiling-latest-u-boot-for-i-mx6-2015-edition/

> Currently I am xfering the fido zImage via tftp, and I am trying to get the bootz command to load it, but it hangs up on “Starting kernel ...”
>
> I am not sure if I didn’t build this right, or what exactly is going on, but I’m stuck and can’t figure this out.

The fido branch is using a 3.14 kernel which means that it needs a device tree blob otherwise the kernel won't boot.

But once you'll flash the U-Boot provided in the link above, you won't have to worry about since it will load a script (6x_bootscript), already present in the sdcard image you generated, that will take care of loading all the necessary binaries to boot.

Regards,
Gary

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

end of thread, other threads:[~2015-10-29 20:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28 20:51 Booting fido on sabrelite through u-boot Maciej Tucholski
2015-10-28 22:03 ` Gary Thomas
2015-10-29 13:05 ` Gary Bisson
2015-10-29 20:38   ` Maciej Tucholski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.