public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bo Shen <voice.shen@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] booting issue with Atmel SAMA5D31 Evaluation kit
Date: Mon, 16 Dec 2013 10:36:29 +0800	[thread overview]
Message-ID: <52AE672D.5000303@atmel.com> (raw)
In-Reply-To: <5255814.JzdsI0iOhD@regdesktophome>

Hi Ron Eggler,

On 12/14/2013 05:15 AM, Ron Eggler wrote:
> --
>
> ron eggler | semios | senior software engineer
>
> 320 - 887 Great Northern Way | Vancouver, BC | V5T 4T5
>
> T | 604 229 2044 ext 105 <tel:604%20229%202044%20ext%20105>
>
> C | 778 230 9442 <tel:778%20230%209442>
>
> E |reggler at semios.com <mailto:reggler@semios.com>
>
> smart farming <http://www.semios.com>
>
> twitter <https://twitter.com/semios>linkedin
> <http://www.linkedin.com/company/semiosbio-technologies-inc?goback=%2Enmp_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1&trk=company_logo>
>
>
> On December 13, 2013 11:57:29 AM Andreas Bie?mann wrote:
>
>  > Dear Ron Eggler,
>
>  >
>
>  > On 12/12/2013 10:22 PM, Ron Eggler wrote:
>
>  > > Hi,
>
>  > >
>
>  > > I got a SAMA5D31 evaluation kit here, it came with some default
>
>  > > application. I started reading through the getting started guide and
>
>  > > immediately tried to load my own image - MISTAKE!
>
>  > > I started playing around with u-boot trying to get an image from my
> tftp
>
>  > > server loaded but now i realize, that I can't get it to hook up to my
>
>  > > LAN. Bad! Because it won't even let me boot the original application
>
>  > > anymore.
>
>  > > When I boot it and my variables look like this:
>
>  > > ...
>
>  > > ...
>
>  > > Warning: failed to set MAC address
>
>  >
>
>  > your env is missing an ethaddr
>
> Yes, I know, I had set it to some bogus address but that didn't help
> either...

Please check whether the bogus address is a valid address, that means, 
the addr[0] bit 0 can not be 1.
For example: 3c:3f:35:28:44:61
the addr[0] is 3c, and (0x3c & 0x01) is zero, then consider it as a 
bogus valid address.

> How can the mac address be missing anyways, shouldn't that be fixed in
> sillicon?

The MAC address can not be come with silicon. You should set it for your 
product (need buy from IEEE).

>  >
>
>  > > Hit any key to stop autoboot: 0
>
>  > > macb0: PHY present at 0
>
>  > > macb0: Starting autonegotiation...
>
>  > > macb0: Autonegotiation timed out (status=0x7849)
>
>  > > macb0: link down (status: 0x7849)
>
>  > > macb0: PHY present at 0
>
>  > > macb0: Starting autonegotiation...
>
>  > > macb0: Autonegotiation timed out (status=0x7849)
>
>  > > macb0: link down (status: 0x7849)
>
>  > > Wrong Image Format for bootm command
>
>  > > ERROR: can't get kernel image!
>
>  > > U-Boot> printenv
>
>  > > baudrate=115200
>
>  > > bootargs=console=ttyS0,115200 ip=${ipaddr} root=/dev/nfs rw
>
>  > > nfsroot=${serverip}:/full/path/to/rfs
>
>  > > bootcmd=tftp;tftp 21000000 sama5d3x_ek.dtbbootm 22000000 - 21000000
>
>  > > bootdelay=1
>
>  > > bootfile=uImage-3.6-ts-armv7l
>
>  > > ethact=macb0
>
>  > > ipaddr=192.168.1.122
>
>  > > loadaddr=22000000
>
>  > > serverip=192.168.1.121
>
>  > > stderr=serial
>
>  > > stdin=serial
>
>  > > stdout=serial
>
>  > >
>
>  > > Environment size: 367/131067 bytes
>
>  > > U-Boot>
>
>  > >
>
>  > > What can I do to at least get it to boot the default program again?
>
>  >
>
>  > Dunno from the given information, maybe it is the missing ethaddr. I can
>
>  > confirm that loading data via tftp is working on my d34 device. I think
>
>  > Bo has an d31 handy and could help you.
>
>  >
>
>  > To get the original code onto your device you could use the sam-ba
>
>  > application. It's working on Win and Linux, unfortunately not on OS X.
>
>  > Just plug the provided USB cable into the J20 on your baseboard (not the
>
>  > J-Link!), switch J9 correclty (I think open it), push and hold PB4 and
>
>  > push/release PB1, after that sequence startup sam-ba, choose the correct
>
>  > interface and the 'at91sama5d3x-ek' board.
>
> I did the key combo when the usb was plugged in and now, not even uboot
> boots up anymore, it seems to be completely blank now. When I launch
> sam-ba as root (on Linux), I can only select Exit, nothing else is
> enabled. "Select the connection" seems to be enabled but is empty,
> nothing there to choose. Also dmesg doesn't show me anything on powert
> reset... what else can I do from here? :o

First, please check the console output, it should be BootROM.
Second, which Linux distribution you are using? If use ubuntu 12.04, you 
can see a /dev/ttyACMx device, sam-ba will access this device.

> Thanks,
>
> Ron
>
>  >
>
>  > Best regards
>
>  >
>
>  > Andreas Bie?mann
>

Best Regards,
Bo Shen

  reply	other threads:[~2013-12-16  2:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-12 21:22 [U-Boot] booting issue with Atmel SAMA5D31 Evaluation kit Ron Eggler
2013-12-13 10:57 ` Andreas Bießmann
2013-12-13 21:15   ` Ron Eggler
2013-12-16  2:36     ` Bo Shen [this message]
2013-12-16  3:19       ` Ron Eggler
2013-12-16  3:42         ` Bo Shen
2013-12-15 20:17           ` Ron Eggler
2013-12-16  5:44             ` Shen, Voice

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=52AE672D.5000303@atmel.com \
    --to=voice.shen@atmel.com \
    --cc=u-boot@lists.denx.de \
    /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