booting issue with Atmel SAMA5D31 Evaluation kit
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
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?
Thanks,
Ron
Signature · 15 lines
*ron eggler | semios | senior software engineer* 320 - 887 Great Northern Way | Vancouver, BC | V5T 4T5 T | 604 229 2044 ext 105[1] C | 778 230 9442[2] E | reggler at semios.com[3] smart farming[4] twitter[5] linkedin[6] -------- [1] tel:604%20229%202044%20ext%20105 [2] tel:778%20230%209442 [3] mailto:reggler at semios.com [4] http://www.semios.com [5] https://twitter.com/semios [6] http://www.linkedin.com/company/semiosbio-technologies-inc?goback=%2Enmp_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1&trk=company_logo
Dear Ron Eggler,
Quoted 12 lines · Ron Eggler
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
Quoted 27 lines
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
Quoted 4 lines
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.
Best regards
Andreas Bie?mann
Signature · 7 lines
*ron eggler | semios | senior software engineer* 320 - 887 Great Northern Way | Vancouver, BC | V5T 4T5 T | 604 229 2044 ext 105[1] C | 778 230 9442[2] E | reggler at semios.com[3] smart farming[4] twitter[5] linkedin[6]
Quoted 17 lines
Dear Ron Eggler,
Quoted 13 lines · Ron Eggler
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
Quoted 1 line
your env is missing an ethaddr
Yes, I know, I had set it to some bogus address but that didn't help either... How can the mac address be missing anyways, shouldn't that be fixed in sillicon?
Quoted 36 lines
Quoted 27 lines
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=serialQuoted 4 lines
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.
Quoted 6 lines
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
Thanks,
Ron
Quoted 4 lines
Best regards
Andreas Bie?mann
--------
[1] tel:604%20229%202044%20ext%20105
[2] tel:778%20230%209442
[3] mailto:reggler at semios.com
[4] http://www.semios.com
[5] https://twitter.com/semios
[6] http://www.linkedin.com/company/semiosbio-technologies-inc?goback=%2Enmp_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1&trk=company_logo
Hi Ron Eggler,
Quoted 51 lines · Ron Eggler
--
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:[email protected]>
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>Quoted 4 lines · Andreas Bie?mann
Dear Ron Eggler,
Quoted 13 lines
Quoted 11 lines · Ron Eggler
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
Quoted 11 lines
Quoted 11 lines
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:
...
...
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
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.
Quoted 2 lines
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).
Quoted 82 lines
Quoted 81 lines
Quoted 54 lines
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
Quoted 7 lines
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
Quoted 8 lines
Quoted 1 line
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.
Quoted 12 lines
Thanks,
Ron
Quoted 7 lines
Best regards
Andreas Bie?mann
Best Regards,
Bo Shen
Hi Bo,
Thanks for your reply!
Quoted 5 lines
Hi Ron Eggler,
Quoted 2 lines · Ron Eggler
--
[snip]
Quoted 34 lines
Quoted 34 lines · Andreas Bie?mann
Quoted 14 lines
Dear Ron Eggler,
Quoted 11 lines · Ron Eggler
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
Quoted 15 lines
Quoted 6 lines
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.
Quoted 7 lines
When I boot it and my variables look like this:
...
...
Warning: failed to set MAC address
your env is missing an ethaddr
Quoted 8 lines
Quoted 2 lines
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.
Yes, I confirm, my bogus address was 00:12:34:56:78:90
Quoted 68 lines
Quoted 2 lines
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).
Quoted 62 lines
Quoted 62 lines
Quoted 52 lines
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
Quoted 7 lines
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
Hi Ron,
Quoted 9 lines · Ron Eggler
Quoted 5 lines
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/ttyACMxdevice, sam-ba will access this device.I'm using Kubuntu 13.10 and I connect to the serial port with
"screen
/dev/ttyACM0115200"
I will try to make something clear.
On sama5d3xek board, there are two USB device connectors, one is J14 (on the right side, near JTAG connector) is used for console. The other is J20 (on the upper side, near USB host connector) is USB device port for sama5 SoC.
So, bootup information, include BootROM are come out from J14. When you try to flash using sam-ba, you should connect J20.
In summary, please take the following steps to re-flash:
1. power up the board.
2. connect J14 as console. (minicom, screen as you prefer)
3. combo key, to check whether BootROM come out from console.
4. connect J20, and check whether /dev/ttyACMx is accessible.
5. start sam-ba with root permission.
Quoted 11 lines
but upon power cycle, nothing comes through, i.e. the screen is just black also, the kit came with an LCD screen, that a showed a little demo app but that's gone since the key combo Andreas had suggested and the screen just stays blank so I assume that the flash got completely erased...
Any assistance to get that kit booting again is appreciated!
Thanks,
Ron
Best Regards,
Bo Shen
Hi Bo,
Okay here we have some more information! Great!
Quoted 20 lines · Bo Shen
Hi Ron,
Quoted 10 lines · Ron Eggler
Quoted 6 lines
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/ttyACMxdevice, sam-ba will access this device.I'm using Kubuntu 13.10 and I connect to the serial port with
"screen
/dev/ttyACM0115200"I will try to make something clear.
On sama5d3xek board, there are two USB device connectors, one is J14 (on the right side, near JTAG connector) is used for console. The other is J20 (on the upper side, near USB host connector) is USB device port for sama5 SoC.
Quoted 7 lines
So, bootup information, include BootROM are come out from J14. When you try to flash using sam-ba, you should connect J20.
In summary, please take the following steps to re-flash:
1. power up the board.
2. connect J14 as console. (minicom, screen as you prefer)
3. combo key, to check whether BootROM come out from console.
Upon keuy combo (hold PB4 while pressing PB1) nothing appears on console (J14)
Quoted 1 line
4. connect J20, and check whether
/dev/ttyACMxis accessible.
I connect to J20 but no /dev/ttyACMx is available
do you have any alternative suggestions for this behavior?
Thanks,
Ron
Quoted 16 lines
5. start sam-ba with root permission.
Quoted 11 lines
but upon power cycle, nothing comes through, i.e. the screen is just black also, the kit came with an LCD screen, that a showed a little demo app but that's gone since the key combo Andreas had suggested and the screen just stays blank so I assume that the flash got completely erased...
Any assistance to get that kit booting again is appreciated!
Thanks,
Ron
Best Regards,
Bo Shen
Signature · 15 lines
*ron eggler | semios | senior software engineer* 320 - 887 Great Northern Way | Vancouver, BC | V5T 4T5 T | 604 229 2044 ext 105[1] C | 778 230 9442[2] E | reggler at semios.com[3] smart farming[4] twitter[5] linkedin[6] -------- [1] tel:604%20229%202044%20ext%20105 [2] tel:778%20230%209442 [3] mailto:reggler at semios.com [4] http://www.semios.com [5] https://twitter.com/semios [6] http://www.linkedin.com/company/semiosbio-technologies-inc?goback=%2Enmp_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1&trk=company_logo
Shen
Hi Ron,
Hi Bo,
?
Okay here we have some more information! Great!
?
Quoted 20 lines · Bo Shen
Hi Ron,
Quoted 10 lines · Ron Eggler
Quoted 6 lines
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/ttyACMxdevice, sam-ba will access this device.I'm using Kubuntu 13.10 and I connect to the serial port with
"screen
/dev/ttyACM0115200"I will try to make something clear.
On sama5d3xek board, there are two USB device connectors, one is J14 (on the right side, near JTAG connector) is used for console. The other is J20 (on the upper side, near USB host connector) is USB device port for sama5 SoC.
Quoted 7 lines
So, bootup information, include BootROM are come out from J14. When you try to flash using sam-ba, you should connect J20.
In summary, please take the following steps to re-flash:
1. power up the board.
2. connect J14 as console. (minicom, screen as you prefer)
3. combo key, to check whether BootROM come out from console.
Upon keuy combo (hold PB4 while pressing PB1) nothing appears on console (J14)
I don't know why there is no output here.
Quoted 1 line
4. connect J20, and check whether
/dev/ttyACMxis accessible.
I connect to J20 but no /dev/ttyACMx is available
Can you check some devices added? before and after you plug in USB cable to see the difference. ?
do you have any alternative suggestions for this behavior?
Can you check with lsusb command, it will show something similar as following:
--->8---
Bus 002 Device 110: ID 03eb:6124 Atmel Corp. at91sam SAMBA bootlader ---8<---
??
Quoted 8 lines
5. start sam-ba with root permission.
Quoted 6 lines
but upon power cycle, nothing comes through, i.e. the screen is just black also, the kit came with an LCD screen, that a showed a little demo app but that's gone since the key combo Andreas had suggested and the screen just stays blank so I assume that the flash got completely erased...
Quoted 8 lines
Quoted 5 lines
Any assistance to get that kit booting again is appreciated!
Thanks,
Ron
Best Regards,
Bo Shen
?
Signature · 7 lines
ron eggler | semios | senior software engineer 320 - 887 Great Northern Way | Vancouver, BC | V5T 4T5 T |?604 229 2044 ext 105 C |?778 230 9442 E |?reggler at semios.com smart farming twitter?linkedin