@Squonk sure, let me sum it up.
I have 5 ralink rt5350 boards but 3 of them are different. They are all boot OpenWRT (trunk) but only one of them has working USB, ethernet switch and I got WiFi working on r34270 (compat-wireless-2012-09-07) with a patch Daniel Golle sent me a few weeks back on that board.
The board I have ethernet and USB working has a 4MB FLASH (AT25DF321 (1f 47000000) (4096 Kbytes)) and 16MB RAM (M12L128168A).
The original flash layout is as follows:
# cat /proc/mtd
dev: size erasesize name
mtd0: 00400000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 0010a6aa 00010000 "Kernel"
mtd5: 002a5956 00010000 "RootFS"
mtd6: 003b0000 00010000 "Kernel_RootFS"
#
And stock firmware reports this SPI flash:
AT25DF321(1f 47000000) (4096 Kbytes)
mtd .name = raspi, .size = 0x00400000 (4M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
Creating 7 MTD partitions on "raspi":
0x00000000-0x00400000 : "ALL"
0x00000000-0x00030000 : "Bootloader"
0x00030000-0x00040000 : "Config"
0x00040000-0x00050000 : "Factory"
0x00050000-0x0015a6aa : "Kernel"
mtd: partition "Kernel" doesn't end on an erase block -- force read-only
0x0015a6aa-0x01000000 : "RootFS"
mtd: partition "RootFS" extends beyond the end of device "raspi" -- size truncated to 0x2a5956
mtd: partition "RootFS" doesn't start on an erase block boundary -- force read-only
0x00050000-0x01000000 : "Kernel_RootFS"
mtd: partition "Kernel_RootFS" extends beyond the end of device "raspi" -- size truncated to 0x3b0000
Currently I get squashfs errors on the working board, that's why I haven't been able to use it further (check this reply: https://forum.openwrt.org/viewtopic.php … 3#p186173)
With the help of PaulFertser in IRC I managed to get it working in OpenWRT using m25p32-nonjedec as flash type in my board definition. The red and blue leds I got them with your help posting the info of the polish forum (as well as working USB).
The other ralink boards I have (with serial attached) have different flash and ram chips, as well as a sightly different PCB layout. I don't have high-res pictures at the moment, I'll post them later. This is the board that doesn't have USB nor ethernet working: http://imgur.com/f86vU
To make them work, I passed the memory size as kernel parameter since it seems the bootloader reports a wrong size, freezing the kernel at boot.
USB and ethernet does not work on them atm and I haven't tried all the GPIO ports yet. Those boards also randomly reboot themselfs.
The device shows the ethernet ports but it just doesn't respond.
[ 23.120000] device eth0.1 entered promiscuous mode
[ 23.130000] device eth0 entered promiscuous mode
[ 23.160000] br-lan: port 1(eth0.1) entered forwarding state
[ 23.170000] br-lan: port 1(eth0.1) entered forwarding state
[ 25.170000] br-lan: port 1(eth0.1) entered forwarding state
root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 00:11:22:33:44:55
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1191 (1.1 KiB)
Interrupt:5
eth0.1 Link encap:Ethernet HWaddr 00:11:22:33:44:55
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0.2 Link encap:Ethernet HWaddr 00:11:22:33:44:55
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:1179 (1.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:/#
So:
- ralink board with AT25DF321 flash: USB, Ethernet and WiFi (reverting to r34270 and Daniel's patch) work, no random reboots, squashfs errors (and different PCB than the other ralinks).
- ralink boards with EN25Q64 flash: USB, Ethernet and WiFi does not work, random reboots, flash does not get recognized.
Also, check my last 2 posts regarding the flash chip.