All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Dimitrov <picmaster@mail.bg>
To: Leon Woestenberg <leon.woestenberg@gmail.com>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: linux-congatec (fido) silent after Starting kernel ...
Date: Wed, 20 May 2015 18:04:05 +0300	[thread overview]
Message-ID: <555CA265.8070803@mail.bg> (raw)
In-Reply-To: <43F0718C449F6A46B393DA2BEC8E01280C818643@post>

Hi Leon,

On 05/20/2015 05:43 PM, Peter Bergin wrote:
> Hi Leon,
>
> On 05/20/2015 04:28 PM, Leon Woestenberg wrote:
>> Hi Peter, Nikolay.
>>
>> On Tue, May 19, 2015 at 9:44 PM, Peter Bergin
>> <peter.bergin@tritech.se <mailto:peter.bergin@tritech.se>> wrote:
>>
>> Hi Leon,
>>
>> Could you check the version of your u-boot on the target? Probably
>>  you have 2009.x or something that doesn't have support for DTB. In
>>  that case you must upgrade your u-boot to 2013.xx in order to boot
>>  kernel with device-tree.
>>
>> Regards, /Peter
>>
>>
>> Peter, indeed: U-Boot 2009.08-00671-g5e573f0 QMX6Rx07 pn016103
>> (Jan 15 2014 - 14:19:05)
>>
>> Wow. It would have taken me ages to consider the boot loader
>> didn't support device tree yet.
>>
>> Thanks Nikolay for confirming a DTB is needed. In fact my boot log
>> in my email did copy the DTB, but it's hidden at the top just
>> before loading the kernel.
>>
>> I have put the .sdcard image on a uSD card for the module SD slot
>> (not the carrier board SD slot). I think the Congatec always loads
>> from SPI NOR first (where the old u-boot lives).
>>
>> Peter, what did you do to boot the u-boot from uSD card?
>>
>> Regards,
>>
>> Leon.
>>
>>
>>
>> Thanks, -- Leon
>
>
> correct that i.Mx6 boot from SPI NOR flash where u-boot is located.
>
> On my board I am using u-boot-congatec 2013.04. I prepared a uSD
> card for the module slot with one partition including both kernel
> and rootfs. Make sure that your image have kernel and dtb files
> installed or you have to add them manually.
>
> If I remember correct Congatec u-boot parameters assumes that you
> have one partition with kernel and rootfs. I don't know if the
> .sdcard image is prepared that way, it could be two partitions one
> for kernel and one for rootfs, like other reference targets like
> Nitrogen6. Either you have to change u-boot environment or prepare a
> sd card from the tar-file instead.
>
> Another thing to verify in the u-boot console is that the u-boot
> parameters fdt_file and uImage is pointing to the correct location
> for those files.

If the board boots from SPI NOR, this means that the chip OTP FUSES are
already programmed to do so. Your options to change the boot loader are:

1. Check whether your u-boot version has the "bmode" command and try to
use it to boot from sd-card (not sure how well this worked on earlier
u-boot versions though);

2. You can upload the newer u-boot in board's RAM via network,
usb-storage, or even serial console, and then you can erase the SPI
flash and program the newer u-boot.

3. If you have boot-mode micro switches on your board, you can change
boot mode to USB OTG, build newer u-boot and force the board to boot
from USB, by using this Linux tool
(https://github.com/boundarydevices/imx_usb_loader), or Freescale's
Windows MFGtool.

If #3 is not available and this is a development board, you should
change your development board... :D.

Regards,
Nikolay

PS: When writing u-boot.imx on a new sd-card or on-board SPI NOR, don't
forget to use 1k offset from the memory start, otherwise the imx6 won't
boot.


  reply	other threads:[~2015-05-20 15:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19 15:07 linux-congatec (fido) silent after Starting kernel Leon Woestenberg
2015-05-19 15:21 ` Nikolay Dimitrov
2015-05-19 19:44 ` Peter Bergin
2015-05-20 14:27   ` Leon Woestenberg
2015-05-20 14:43     ` Peter Bergin
2015-05-20 15:04       ` Nikolay Dimitrov [this message]
2015-05-20 20:27         ` Leon Woestenberg
2015-05-20 20:32           ` Otavio Salvador
2015-05-20 20:43             ` Leon Woestenberg
2015-05-20 20:47               ` Leon Woestenberg
2015-05-21 14:20                 ` Leon Woestenberg
2015-05-21 14:37                   ` Nikolay Dimitrov
  -- strict thread matches above, loose matches on Subject: below --
2015-05-22  7:29 Alejandro.de-cabo-Garcia
2015-05-26  9:52 ` Leon Woestenberg
2015-05-27  6:37   ` Alejandro.de-cabo-Garcia
2015-05-27  7:31     ` Nikolay Dimitrov

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=555CA265.8070803@mail.bg \
    --to=picmaster@mail.bg \
    --cc=leon.woestenberg@gmail.com \
    --cc=meta-freescale@yoctoproject.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 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.