Go Down

Topic: Is it possible to recover if ethernet doesn't work and no Linux or failsafe? (Read 9538 times) previous topic - next topic

TickTock

OK.  New Yun arrived today.  Plugged it in and tried the tftp procedure.  Worked first try (see below) but I stopped short of committing it to the flash - learned my lesson.  Going to request an RMA on the first and send it back.  Key take-away : if it ain't broke, don't fix it.

Code: [Select]
U-Boot 1.1.4-gd995931a-dirty (Aug  7 2013 - 16:16:04)

Arduino Yun (ar9331) U-boot

DRAM:  64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 142k for U-Boot at: 83fdc000
Reserving 192k for malloc() at: 83fac000
Reserving 44 Bytes for Board Info at: 83fabfd4
Reserving 36 Bytes for Global Data at: 83fabfb0
Reserving 128k for boot params() at: 83f8bfb0
Stack Pointer at: 83f8bf98
Now running in RAM - U-Boot at: 83fdc000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16777216, sector count = 256
Flash: 16 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot:  4  3  2  1  0
ar7240> setenv serverip 192.168.0.37;

ar7240> setenv ipaddr 192.168.0.42;

ar7240> tftp 0x80060000 openwrt-ar71xx-generic-yun-16M-kernel.bin;

dup 1 speed 100
Using eth0 device
TFTP from server 192.168.0.37; our IP address is 192.168.0.42
Filename 'openwrt-ar71xx-generic-yun-16M-kernel.bin'.
Load address: 0x80060000
Loading: *#################################################################
#################################################################
#################################################################
#################################################
done
Bytes transferred = 1245184 (130000 hex)
ar7240>

federicofissore

Once you set the IP on your PC, were you still able to access internet? If not, there is a routing problem and that's why the yun cannot access the pc (and viceversa)

TickTock

Never had any problems accessing the internet.  Irrelevant, though,  at this point now that I've proven that the Yun was the problem (if it was a router or other external problem, the new Yun wouldn't work either).

sonnyyu


PCWorxLA


sonnyyu

@TickTock

safely  play with uboot, you need hardware support..


Few reasons for people to change uboot or modify it:

1. Put 2*16 MiB flash memory by select CS pins of them to make which one active, Now you could have dual boot Yun.
2. Upgrade 16 MiB flash memory to 32 MiB Flash, now we have double space.
3. Change Uboot for new function such like httpd which allow update firmware via browser.
4. Change CPU AR9331 clock speed, OverClocking or UnderClocking.
5. Change Mac address of network interface.

The list could be very long and could be  a lot of fun to change uboot...




Plan D: (Experiment)

Very similar like Plan B, but without solder and desolder.



+

in Circuit Flash Programmer

TickTock

Thanks Sonyyyu, I may play with that at some time but I have enough project on my list for now :-).  The distributor agreed to replace my Yun so I am just going to avoid updating unless I absolutely have to (or they release a safer update method).


linanw

Guys, I have just fixed the issue by done two things:
1. Fully stoped Windows Firewall manually.
2. Use a Ethernet adapter for LAN connection in separate USB port from the other USB port to connect Arduino Yun. I use to a Ethernet adapter which build with USB ports and the Arduino Yun USB connected to the port on the adapter, which has caused file transfer failed in the middle.

And followed exactly same steps from: https://www.arduino.cc/en/Tutorial/YunUBootReflash

Below is my terminal output for reference.

eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:11:40:01
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot:  4  0
ar7240>

ar7240> setenv serverip 192.168.33.1; setenv ipaddr 192.168.33.12; tftp 0x80060000 openwrt-ar71xx-generic-linino-u-boot.bin;

dup 1 speed 100
Using eth0 device
TFTP from server 192.168.33.1; our IP address is 192.168.33.12
Filename 'openwrt-ar71xx-generic-linino-u-boot.bin'.
Load address: 0x80060000
Loading: *############
done
Bytes transferred = 55727 (d9af hex)
ar7240>

Go Up