I'm having a problem flashing my Alfa Network R36 with OpenWRT (openwrt-ramips-rt305x-uImage.bin & openwrt-ramips-rt305x-root.squashfs) from SVN. There is an error saying "VFS: Cannot open root device "mtdblock4" or unknown-block(0,0)". I've tried to re-flash the R36 over & over getting stuck with this error.
This is the output of the step taken during the flashing:
U-Boot 1.1.3 (May 14 2012 - 14:18:32)
Board: Ralink APSoC DRAM: 32 MB
relocate_code Pointer at: 81fb0000
flash_protect ON: from 0xBF000000 to 0xBF01D423
flash_protect ON: from 0xBF030000 to 0xBF030FFF
============================================
Ralink UBoot Version: 3.3
--------------------------------------------
ASIC 3052_MP2 (Port5<->None)
DRAM component: 256 Mbits SDR
DRAM bus: 16 bit
Total memory: 32 MBytes
Flash component: NOR Flash
Date:May 14 2012 Time:14:18:32
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384
##### The CPU freq = 320 MHZ ####
SDRAM bus set to 16 bit
SDRAM size =32 Mbytes
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
9: Load Boot Loader code then write to Flash via TFTP.
You choosed 4
0
4: System Enter Boot Command Line Interface.
U-Boot 1.1.3 (May 14 2012 - 14:18:32)
RT3052 # setenv bootargs 'console=ttyS1,115200n8 root=/dev/mtdblock4 board=W502U
rootfstype=squashfs,jffs2 noinitrd'
RT3052 # saveenv
Saving Environment to Flash...
File: env_flash.c, Func: saveenv, Line: 302
copy old content: sect_addr: BF030000 env_addr: BF030000 offset: 00000000
Protect off BF030000 ... BF03FFFF
b_end =BF7FFFFF
Un-Protecting sectors 10..10 in bank 1
Un-Protected 1 sectors
Erasing Flash...
b_end =BF7FFFFF
Erase Flash from 0xbf030000 to 0xbf03ffff in Bank # 1
erase sector = 10
sect = 10,s_last = 10,erase poll = 884456
done
Erased 1 sectors
Writing to Flash... done
b_end =BF7FFFFF
Protecting sectors 10..10 in bank 1
Protected 1 sectors
RT3052 # tftp 0x80600000 openwrt-ramips-rt305x-uImage.bin
netboot_common, argc= 3
NetTxPacket = 0x81FE5640
KSEG1ADDR(NetTxPacket) = 0xA1FE5640
NetLoop,call eth_halt !
NetLoop,call eth_init !
Trying Eth0 (10/100-M)
Waitting for RX_DMA_BUSY status Start... done
Header Payload scatter function is Disable !!
ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'openwrt-ramips-rt305x-uImage.bin'.
TIMEOUT_COUNT=10,Load address: 0x80600000
Loading: Got ARP REPLY, set server/gtwy eth addr (c8:2a:14:01:85:06)
Got it
T Got ARP REQUEST, return our IP
#
first block received
################################################################
#################################################################
##################################
done
Bytes transferred = 839013 (ccd65 hex)
NetBootFileXferSize= 000ccd65
RT3052 # erase 0xbf050000 0xbf11ffff
b_end =BF7FFFFF
Erase Flash from 0xbf050000 to 0xbf11ffff in Bank # 1
erase sector = 12
sect = 12,s_last = 24,erase poll = 923626
erase sector = 13
sect = 13,s_last = 24,erase poll = 920885
erase sector = 14
*sect = 14,s_last = 24,erase poll = 907302
erase sector = 15
sect = 15,s_last = 24,erase poll = 912879
erase sector = 16
*sect = 16,s_last = 24,erase poll = 949205
erase sector = 17
sect = 17,s_last = 24,erase poll = 928922
erase sector = 18
*sect = 18,s_last = 24,erase poll = 902496
erase sector = 19
sect = 19,s_last = 24,erase poll = 938975
erase sector = 20
sect = 20,s_last = 24,erase poll = 922256
erase sector = 21
*sect = 21,s_last = 24,erase poll = 913729
erase sector = 22
sect = 22,s_last = 24,erase poll = 913854
erase sector = 23
*sect = 23,s_last = 24,erase poll = 925475
erase sector = 24
sect = 24,s_last = 24,erase poll = 930973
done
Erased 13 sectors
RT3052 # cp.b 0x80600000 0xbf050000 ccd65
Copy to Flash...
Copy 839013 byte to Flash...
addr = 0xBF0B187E ,cnt=439527
addr = 0xBF113112 ,cnt=40019 done
RT3052 # tftp 0x80600000 openwrt-ramips-rt305x-root.squashfs
netboot_common, argc= 3
KSEG1ADDR(NetTxPacket) = 0xA1FE5640
NetLoop,call eth_halt !
NetLoop,call eth_init !
Trying Eth0 (10/100-M)
ETH_STATE_ACTIVE!!
*** ERROR: `serverip' not set
RT3052 #reset
U-Boot 1.1.3 (May 14 2012 - 14:18:32)
Board: Ralink APSoC DRAM: 32 MB
relocate_code Pointer at: 81fb0000
flash_protect ON: from 0xBF000000 to 0xBF01D423
flash_protect ON: from 0xBF030000 to 0xBF030FFF
============================================
Ralink UBoot Version: 3.3
--------------------------------------------
ASIC 3052_MP2 (Port5<->None)
DRAM component: 256 Mbits SDR
DRAM bus: 16 bit
Total memory: 32 MBytes
Flash component: NOR Flash
Date:May 14 2012 Time:14:18:32
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384
##### The CPU freq = 320 MHZ ####
SDRAM bus set to 16 bit
SDRAM size =32 Mbytes
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
9: Load Boot Loader code then write to Flash via TFTP.
You choosed 4
0
4: System Enter Boot Command Line Interface.
U-Boot 1.1.3 (May 14 2012 - 14:18:32)
RT3052 # tftp 0x80600000 openwrt-ramips-rt305x-root.squashfs
netboot_common, argc= 3
NetTxPacket = 0x81FE5640
KSEG1ADDR(NetTxPacket) = 0xA1FE5640
NetLoop,call eth_halt !
NetLoop,call eth_init !
Trying Eth0 (10/100-M)
Waitting for RX_DMA_BUSY status Start... done
Header Payload scatter function is Disable !!
ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'openwrt-ramips-rt305x-root.squashfs'.
TIMEOUT_COUNT=10,Load address: 0x80600000
Loading: Got ARP REPLY, set server/gtwy eth addr (c8:2a:14:01:85:06)
Got it
T #
first block received
################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########
done
Bytes transferred = 1703936 (1a0000 hex)
NetBootFileXferSize= 001a0000
RT3052 # erase 0xbf120000 0xbf7fffff
b_end =BF7FFFFF
Erase Flash from 0xbf120000 to 0xbf7fffff in Bank # 1
erase sector = 25
sect = 25,s_last = 134,erase poll = 905793
erase sector = 26
sect = 26,s_last = 134,erase poll = 913961
erase sector = 27
*sect = 27,s_last = 134,erase poll = 914332
erase sector = 28
sect = 28,s_last = 134,erase poll = 937357
erase sector = 29
*sect = 29,s_last = 134,erase poll = 916634
erase sector = 30
sect = 30,s_last = 134,erase poll = 917960
erase sector = 31
*sect = 31,s_last = 134,erase poll = 911410
erase sector = 32
sect = 32,s_last = 134,erase poll = 905120
erase sector = 33
sect = 33,s_last = 134,erase poll = 921065
erase sector = 34
*sect = 34,s_last = 134,erase poll = 915220
erase sector = 35
sect = 35,s_last = 134,erase poll = 919786
erase sector = 36
*sect = 36,s_last = 134,erase poll = 904544
erase sector = 37
sect = 37,s_last = 134,erase poll = 907201
erase sector = 38
*sect = 38,s_last = 134,erase poll = 906665
erase sector = 39
sect = 39,s_last = 134,erase poll = 936327
erase sector = 40
sect = 40,s_last = 134,erase poll = 941321
erase sector = 41
*sect = 41,s_last = 134,erase poll = 893844
erase sector = 42
sect = 42,s_last = 134,erase poll = 911130
erase sector = 43
*sect = 43,s_last = 134,erase poll = 908383
erase sector = 44
sect = 44,s_last = 134,erase poll = 924135
erase sector = 45
*sect = 45,s_last = 134,erase poll = 935341
erase sector = 46
sect = 46,s_last = 134,erase poll = 906005
erase sector = 47
*sect = 47,s_last = 134,erase poll = 931963
erase sector = 48
sect = 48,s_last = 134,erase poll = 916189
erase sector = 49
sect = 49,s_last = 134,erase poll = 730565
erase sector = 50
*sect = 50,s_last = 134,erase poll = 759247
erase sector = 51
sect = 51,s_last = 134,erase poll = 905761
erase sector = 52
*sect = 52,s_last = 134,erase poll = 927495
erase sector = 53
sect = 53,s_last = 134,erase poll = 923289
erase sector = 54
sect = 54,s_last = 134,erase poll = 931667
erase sector = 55
*sect = 55,s_last = 134,erase poll = 894431
erase sector = 56
sect = 56,s_last = 134,erase poll = 906941
erase sector = 57
*sect = 57,s_last = 134,erase poll = 922321
erase sector = 58
sect = 58,s_last = 134,erase poll = 945511
erase sector = 59
*sect = 59,s_last = 134,erase poll = 905686
erase sector = 60
sect = 60,s_last = 134,erase poll = 905562
erase sector = 61
sect = 61,s_last = 134,erase poll = 913183
erase sector = 62
*sect = 62,s_last = 134,erase poll = 925926
erase sector = 63
sect = 63,s_last = 134,erase poll = 907480
erase sector = 64
*sect = 64,s_last = 134,erase poll = 905694
erase sector = 65
sect = 65,s_last = 134,erase poll = 935981
erase sector = 66
*sect = 66,s_last = 134,erase poll = 944697
erase sector = 67
sect = 67,s_last = 134,erase poll = 945201
erase sector = 68
*sect = 68,s_last = 134,erase poll = 943822
erase sector = 69
sect = 69,s_last = 134,erase poll = 918539
erase sector = 70
sect = 70,s_last = 134,erase poll = 934037
erase sector = 71
*sect = 71,s_last = 134,erase poll = 916747
erase sector = 72
sect = 72,s_last = 134,erase poll = 905754
erase sector = 73
*sect = 73,s_last = 134,erase poll = 905842
erase sector = 74
sect = 74,s_last = 134,erase poll = 924517
erase sector = 75
*sect = 75,s_last = 134,erase poll = 929249
erase sector = 76
sect = 76,s_last = 134,erase poll = 936047
erase sector = 77
sect = 77,s_last = 134,erase poll = 906590
erase sector = 78
*sect = 78,s_last = 134,erase poll = 922481
erase sector = 79
sect = 79,s_last = 134,erase poll = 941176
erase sector = 80
*sect = 80,s_last = 134,erase poll = 894832
erase sector = 81
sect = 81,s_last = 134,erase poll = 907660
erase sector = 82
*sect = 82,s_last = 134,erase poll = 943173
erase sector = 83
sect = 83,s_last = 134,erase poll = 913677
erase sector = 84
*sect = 84,s_last = 134,erase poll = 968274
erase sector = 85
sect = 85,s_last = 134,erase poll = 910459
erase sector = 86
sect = 86,s_last = 134,erase poll = 924996
erase sector = 87
*sect = 87,s_last = 134,erase poll = 966647
erase sector = 88
sect = 88,s_last = 134,erase poll = 912712
erase sector = 89
*sect = 89,s_last = 134,erase poll = 928316
erase sector = 90
sect = 90,s_last = 134,erase poll = 913635
erase sector = 91
*sect = 91,s_last = 134,erase poll = 923367
erase sector = 92
sect = 92,s_last = 134,erase poll = 930663
erase sector = 93
*sect = 93,s_last = 134,erase poll = 906048
erase sector = 94
sect = 94,s_last = 134,erase poll = 907363
erase sector = 95
sect = 95,s_last = 134,erase poll = 920027
erase sector = 96
*sect = 96,s_last = 134,erase poll = 906230
erase sector = 97
sect = 97,s_last = 134,erase poll = 918468
erase sector = 98
*sect = 98,s_last = 134,erase poll = 910242
erase sector = 99
sect = 99,s_last = 134,erase poll = 907736
erase sector = 100
*sect = 100,s_last = 134,erase poll = 955930
erase sector = 101
sect = 101,s_last = 134,erase poll = 917131
erase sector = 102
sect = 102,s_last = 134,erase poll = 933836
erase sector = 103
*sect = 103,s_last = 134,erase poll = 906082
erase sector = 104
sect = 104,s_last = 134,erase poll = 939863
erase sector = 105
*sect = 105,s_last = 134,erase poll = 923453
erase sector = 106
sect = 106,s_last = 134,erase poll = 895255
erase sector = 107
*sect = 107,s_last = 134,erase poll = 923853
erase sector = 108
sect = 108,s_last = 134,erase poll = 926763
erase sector = 109
*sect = 109,s_last = 134,erase poll = 906215
erase sector = 110
sect = 110,s_last = 134,erase poll = 911742
erase sector = 111
sect = 111,s_last = 134,erase poll = 937213
erase sector = 112
*sect = 112,s_last = 134,erase poll = 909709
erase sector = 113
sect = 113,s_last = 134,erase poll = 927478
erase sector = 114
*sect = 114,s_last = 134,erase poll = 918589
erase sector = 115
sect = 115,s_last = 134,erase poll = 906213
erase sector = 116
*sect = 116,s_last = 134,erase poll = 908162
erase sector = 117
sect = 117,s_last = 134,erase poll = 930556
erase sector = 118
sect = 118,s_last = 134,erase poll = 935583
erase sector = 119
*sect = 119,s_last = 134,erase poll = 917271
erase sector = 120
sect = 120,s_last = 134,erase poll = 906237
erase sector = 121
*sect = 121,s_last = 134,erase poll = 911978
erase sector = 122
sect = 122,s_last = 134,erase poll = 920181
erase sector = 123
*sect = 123,s_last = 134,erase poll = 907766
erase sector = 124
sect = 124,s_last = 134,erase poll = 945507
erase sector = 125
sect = 125,s_last = 134,erase poll = 920109
erase sector = 126
*sect = 126,s_last = 134,erase poll = 934846
erase sector = 127
sect = 127,s_last = 134,erase poll = 922319
erase sector = 128
*sect = 128,s_last = 134,erase poll = 927529
erase sector = 129
sect = 129,s_last = 134,erase poll = 895298
erase sector = 130
*sect = 130,s_last = 134,erase poll = 921419
erase sector = 131
sect = 131,s_last = 134,erase poll = 921916
erase sector = 132
*sect = 132,s_last = 134,erase poll = 942516
erase sector = 133
sect = 133,s_last = 134,erase poll = 923465
erase sector = 134
sect = 134,s_last = 134,erase poll = 917343
done
Erased 110 sectors
RT3052 # cp.b 0x80600000 0xbf120000 1a0000
Copy to Flash...
Copy 1703936 byte to Flash...
addr = 0xBF181882 ,cnt=1304446
addr = 0xBF1E3150 ,cnt=904880
addr = 0xBF244A00 ,cnt=505344
addr = 0xBF2A67E8 ,cnt=104472 done
RT3052 # reset
This is the output after rebooting the R36:
U-Boot 1.1.3 (May 14 2012 - 14:18:32)
Board: Ralink APSoC DRAM: 32 MB
relocate_code Pointer at: 81fb0000
flash_protect ON: from 0xBF000000 to 0xBF01D423
flash_protect ON: from 0xBF030000 to 0xBF030FFF
============================================
Ralink UBoot Version: 3.3
--------------------------------------------
ASIC 3052_MP2 (Port5<->None)
DRAM component: 256 Mbits SDR
DRAM bus: 16 bit
Total memory: 32 MBytes
Flash component: NOR Flash
Date:May 14 2012 Time:14:18:32
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384
##### The CPU freq = 320 MHZ ####
SDRAM bus set to 16 bit
SDRAM size =32 Mbytes
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
9: Load Boot Loader code then write to Flash via TFTP.
0
3: System Boot system code via Flash.
## Booting image at bf050000 ...
Image Name: MIPS OpenWrt Linux-3.3.8
Created: 2012-10-01 19:54:42 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 838949 Bytes = 819.3 kB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32
Starting kernel ...
[ 0.000000] Linux version 3.3.8 (user@netbox) (gcc version 4.6.3 20120201 (pr
erelease) (Linaro GCC 4.6-2012.02) ) #1 Mon Oct 1 15:54:38 AST 2012
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[ 0.000000] Ralink RT3350 id:1 rev:2 running at 320.00 MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00002000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00002000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag
es: 8128
[ 0.000000] Kernel command line: console=ttyS1,115200n8 root=/dev/mtdblock4
board=W502U rootfstype=squashfs,jffs2 noinitrd rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 byt
es
[ 0.000000] Writing ErrCtl register=0002aac9
[ 0.000000] Readback ErrCtl register=0002aac9
[ 0.000000] Memory: 29820k/32768k available (1920k kernel code, 2948k reserve
d, 327k data, 172k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, No
des=1
[ 0.000000] NR_IRQS:48
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.010000] Calibrating delay loop... 212.58 BogoMIPS (lpj=1062912)
[ 0.090000] pid_max: default: 32768 minimum: 301
[ 0.090000] Mount-cache hash table entries: 512
[ 0.100000] NET: Registered protocol family 16
[ 0.110000] MIPS: machine is ALFA Networks W502U
[ 0.110000] gpiochip_add: registered GPIOs 0 to 23 on device: RT305X-GPIO0
[ 0.120000] gpiochip_add: registered GPIOs 24 to 39 on device: RT305X-GPIO1
[ 0.120000] gpiochip_add: registered GPIOs 40 to 51 on device: RT305X-GPIO2
[ 0.150000] bio: create slab <bio-0> at 0
[ 0.160000] Switching to clocksource MIPS
[ 0.170000] NET: Registered protocol family 2
[ 0.180000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.190000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.190000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.200000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.210000] TCP reno registered
[ 0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.220000] NET: Registered protocol family 1
[ 0.270000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.280000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY
) (c) 2001-2006 Red Hat, Inc.
[ 0.290000] msgmni has been set to 58
[ 0.300000] io scheduler noop registered
[ 0.300000] io scheduler deadline registered (default)
[ 0.310000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.310000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
[ 0.320000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[ 0.330000] physmap platform flash device: 00800000 at bf000000
[ 0.340000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manuf
acturer ID 0x0000c2 Chip ID 0x0022cb
[ 0.350000] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.360000] Amd/Fujitsu Extended Query version 1.1.
[ 0.360000] number of CFI chips: 1
[ 0.380000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 40, u
sing 40
[ 0.390000] TCP cubic registered
[ 0.390000] NET: Registered protocol family 17
[ 0.400000] 8021q: 802.1Q VLAN Support v1.8
[ 0.400000] VFS: Cannot open root device "mtdblock4" or unknown-block(0,0)
[ 0.410000] Please append a correct "root=" boot option; here are the availab
le partitions:
[ 0.420000] 1f00 8192 mtdblock0 (driver?)
[ 0.430000] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
Am I missing something or doing something wrong? Can anyone help me on this?