All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Ethernet problem with u-boot for APF27
@ 2017-09-28  7:31 Vincent P
  2017-09-28 13:00 ` Fabio Estevam
  0 siblings, 1 reply; 3+ messages in thread
From: Vincent P @ 2017-09-28  7:31 UTC (permalink / raw)
  To: u-boot

Hello everybody,

I have an APF27 and I have a problem with ethernet. I first did all the run
update correctly through a working tftp server (run update_uboot, run
update_dtb, run update_kernel and run update_rootfs). Then, when I restarted
the board, it was impossible to obtain files from tftp server. I can ping
from my computer to my virtual machin but not from my board to my virtual
machin. When I print the environement (printenv), the first line indicates:
addipargs=setenv bootargs ${bootargs}
p=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0:off

Moreover, the led on the swith and on the board for ethernet is not turned
on.
When I try run update_dtb for example, I have the following message:
FEC: Autonegotiation timeout
Using FEC device
TFTP from server 192.168.1.38; our IP address is 192.168.1.246
Filename 'apf27.dtb'.
Load address: 0xa000000
Loading: *
ARP Retry count exceeded; starting again

I tried with three different APF27 board that were working previously.
Therefore, it seems that it is a problem of the u-boot or a configuration
done later that turns off ethernet.

Does someone have any idea to solve this problem?
Thanks
Vincent



--
Sent from: http://u-boot.10912.n7.nabble.com/

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

* [U-Boot] Ethernet problem with u-boot for APF27
  2017-09-28  7:31 [U-Boot] Ethernet problem with u-boot for APF27 Vincent P
@ 2017-09-28 13:00 ` Fabio Estevam
  0 siblings, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2017-09-28 13:00 UTC (permalink / raw)
  To: u-boot

Adding the APF27 maintainers.


On Thu, Sep 28, 2017 at 4:31 AM, Vincent P <vparatte@digger.ch> wrote:
> Hello everybody,
>
> I have an APF27 and I have a problem with ethernet. I first did all the run
> update correctly through a working tftp server (run update_uboot, run
> update_dtb, run update_kernel and run update_rootfs). Then, when I restarted
> the board, it was impossible to obtain files from tftp server. I can ping
> from my computer to my virtual machin but not from my board to my virtual
> machin. When I print the environement (printenv), the first line indicates:
> addipargs=setenv bootargs ${bootargs}
> p=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0:off
>
> Moreover, the led on the swith and on the board for ethernet is not turned
> on.
> When I try run update_dtb for example, I have the following message:
> FEC: Autonegotiation timeout
> Using FEC device
> TFTP from server 192.168.1.38; our IP address is 192.168.1.246
> Filename 'apf27.dtb'.
> Load address: 0xa000000
> Loading: *
> ARP Retry count exceeded; starting again
>
> I tried with three different APF27 board that were working previously.
> Therefore, it seems that it is a problem of the u-boot or a configuration
> done later that turns off ethernet.
>
> Does someone have any idea to solve this problem?
> Thanks
> Vincent

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

* [U-Boot] Ethernet problem with u-boot for APF27
@ 2017-09-29 11:21 Vincent Paratte
  0 siblings, 0 replies; 3+ messages in thread
From: Vincent Paratte @ 2017-09-29 11:21 UTC (permalink / raw)
  To: u-boot


Hello,  
  
Thank you for your answers. I found a solution. The problem came from the environment variables. I just used the wrong argument with the command "setenv". Know I have "eth0:on" everywhere and I reach to do all the run update again.  
  
Vincent  

> Hi Vincent,  
>   
> Which U-Boot version do you use?  
> Do you have any boot message related to the ethernet FEC device?  
>   
> You could check your environment variables and validate them with a ping.  
> If you suspect your environment variables are corrupted you can reset them with the command:  
>   
> env default -f -a; saveenv  
>   
> then set them again manually and try to ping a device on the network.  
>   
> A ping 127.0.0.1 should also work to test the local loop.  
>   
> Regards,  
> Eric
  
  

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

end of thread, other threads:[~2017-09-29 11:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-28  7:31 [U-Boot] Ethernet problem with u-boot for APF27 Vincent P
2017-09-28 13:00 ` Fabio Estevam
2017-09-29 11:21 Vincent Paratte

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.