All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Guillaume Fournier" <gfournier@brioconcept.com>
To: "'Otavio Salvador'" <otavio@ossystems.com.br>
Cc: meta-freescale@yoctoproject.org
Subject: Re: Unable to get u-boot running on i.MX6 SABRE for Smart Devices Eval Board
Date: Wed, 5 Nov 2014 16:50:58 -0500	[thread overview]
Message-ID: <003401cff942$955f1cf0$c01d56d0$@brioconcept.com> (raw)
In-Reply-To: <CAP9ODKqhNZdRLe=ZgTo66g1rjiAu=p0wmfOPui0wgNSN3-ohiA@mail.gmail.com>

>> 4) got latest u-boot: git clone 
>> https://github.com/Freescale/u-boot-fslc.git
>> 5) started a fresh shell, ran toolchain environment script, cd to 
>> u-boot-fslc
>
>Run the environment script raises an alarm... did you use:
>
>source environment-...?

Yes I ran:
source ./environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
which is located in the toolchain directory.  This sets a bunch of environment variables needed to cross-compile.

>> 6) make LDFLAGS="" CC="$CC" mx6dlsabresd_config
>> 7) make LDFLAGS="" CC="$CC" u-boot.im
>
>Please try:
>
>unset LDFLAGS
>make mx6dlsabresd_config
>make u-boot.imx

From a fresh shell, I ran the toolchain environment script, cd to u-boot-fslc and then typed:
unset LDFLAGS
make mrproper
make mx6dlsabresd_config
make u-boot.imx

Result:
arm-poky-linux-gnueabi-ld.bfd: cannot find -lgcc
make[2]: *** [examples/standalone/hello_world] Error 1
make[1]: *** [examples/standalone] Error 2
make: *** [examples] Error 2

That error is the reason I was using LDFLAGS="" CC="$CC" on the command line to build.
See : https://lists.yoctoproject.org/pipermail/yocto/2013-October/016385.html

BTW the cfimager works with decimal and hex.  I have read back the SD card using Win32DiskImager (raw reader) and I can confirm this.  Since so many people were doubtful of this cfimager, I used a VM to dd my u-boot onto the SD card as such:
dd if=u-boot.imx of=/dev/sda bs=512 seek=2

This does not solve my problem.  It behaves exactly as the cfimager.  I'm pretty sure now that SD card issues are solved.  I can write a known to work version of u-boot.imx to an SD card and the target boots up fine.

I still do not have a u-boot.imx that can boot with my eval board and this is the main issue.

Guillaume



  reply	other threads:[~2014-11-05 21:51 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05 20:43 Unable to get u-boot running on i.MX6 SABRE for Smart Devices Eval Board Guillaume Fournier
2014-11-05 21:04 ` Otavio Salvador
2014-11-05 21:50   ` Guillaume Fournier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-06 17:31 Guillaume Fournier
2014-11-06 17:47 ` Otavio Salvador
2014-11-06 17:53   ` Gary Thomas
2014-11-06 17:56     ` Otavio Salvador
2014-11-04 22:44 Guillaume Fournier
2014-11-05  0:03 ` Fabio Estevam
2014-11-05 14:38   ` Guillaume Fournier
2014-11-05 14:52     ` Wally Yeh
2014-11-05 15:24       ` Guillaume Fournier
2014-11-05 14:56     ` Daiane Angolini
2014-11-05 15:37       ` Guillaume Fournier
2014-11-05 15:45         ` Otavio Salvador
2014-11-05 16:05           ` Guillaume Fournier
2014-11-05 15:42     ` Otavio Salvador
2014-11-05 15:50       ` Guillaume Fournier
2014-11-05 15:54         ` Otavio Salvador
2014-11-05 15:59           ` Wally Yeh
2014-11-05 16:15           ` Guillaume Fournier
2014-11-05 16:21             ` Gary Thomas
2014-11-05 16:40               ` Otavio Salvador
2014-11-05 16:41               ` Guillaume Fournier
2014-11-05  0:23 ` Eric Bénard
2014-11-05 14:51   ` Guillaume Fournier
2014-11-05 17:25     ` Eric Bénard

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='003401cff942$955f1cf0$c01d56d0$@brioconcept.com' \
    --to=gfournier@brioconcept.com \
    --cc=meta-freescale@yoctoproject.org \
    --cc=otavio@ossystems.com.br \
    /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.