HW:TP-LINK TL-WR340G
Original 2MB flash and 16M RAM. Modified to 16/64MB.
It is an generic AR9331 board. Bootloader compiled for target WR740N v4, openwrt for WR741ND v4.
Bootloader modified from git Nov 8 2014.
Issue: When an ethernet cable is connected to the wan or lan switch port, the bootloader fails to uncompress image or freezes completely.
*********************************************
* U-Boot 1.1.4 (Nov 9 2014, 18:23:34) *
*********************************************
AP121 (AR9331) U-Boot for TL-WR74xN/D v4
DRAM: 64 MB DDR 16-bit
FLASH: Winbond W25Q128 (16 MB)
CLOCKS: 400/400/200/33 MHz (CPU/RAM/AHB/SPI)
LED on during eth initialization...
Hit any key to stop autobooting: 0
Booting image at: 0x9F020000
Image name: OpenWrt r43220
Image type: MIPS Linux Kernel Image (lzma compressed)
Data size: 1057588 Bytes = 1 MB
Load address: 0x80060000
Entry point: 0x80060000
Uncompressing kernel image...
Sometimes this is appended:
Uncompressing kernel image... ## Error: LZMA error num: 1
## Error: failed to execute 'bootcmd'!
HTTP server is starting for firmware update...
Link down: eth0
Link down: eth1
Link down: eth0
Ethernet mode (duplex/speed): 1/1000 Mbps
HTTP server is starting at IP: 192.168.1.1
HTTP server is ready!
But if the boot process with the connected cable is interrupted by the terminal (1x enter) and then the command "boot" is run, everything is OK.
uboot> boot
Booting image at: 0x9F020000
Image name: OpenWrt r43220
Image type: MIPS Linux Kernel Image (lzma compressed)
Data size: 1057588 Bytes = 1 MB
Load address: 0x80060000
Entry point: 0x80060000
Uncompressing kernel image... OK!
Starting kernel...
[ 0.000000] Linux version 3.10.58 ......
Normal boot without any eth connected:
*********************************************
* U-Boot 1.1.4 (Nov 9 2014, 18:23:34) *
*********************************************
AP121 (AR9331) U-Boot for TL-WR74xN/D v4
DRAM: 64 MB DDR 16-bit
FLASH: Winbond W25Q128 (16 MB)
CLOCKS: 400/400/200/33 MHz (CPU/RAM/AHB/SPI)
LED on during eth initialization...
Hit any key to stop autobooting: 0
Booting image at: 0x9F020000
Image name: OpenWrt r43220
Image type: MIPS Linux Kernel Image (lzma compressed)
Data size: 1057588 Bytes = 1 MB
Load address: 0x80060000
Entry point: 0x80060000
Uncompressing kernel image... OK!
Starting kernel...
[ 0.000000] Linux version 3.10.58
After the linux boots, connecting eth does not have any effect, everything works. First I thought some hardware issue but if the boot command loads the image, it seems to be some SW initialization related.