Dir-300b5

From Umeå Hackerspace
Jump to: navigation, search

I want to build my own images

  • Get openwrt build env and patch for this hw by using guide here
  • Solder serial port, it has the same pinout as the older revision. [1] (I used a r-pi straight without a dongle)
  • Hit 1 at the u-boot menu to tftboot from ram. I used minicom with 57600 bps no flow control. It is handy to type Ctrl-A->f b to reboot via sysrq. This works in linux after a kernel panic but not in u-boot.

I want to test the prebuilt images

sysupgrade Openwrt-ramips-rt305x-dir-300-b5-squashfs-sysupgrade.bin

It won't boot with the serial port attached when doing a cold reboot. It is sufficient to cut the gnd wire.

Media:RT5350_Preliminary_Datasheet.pdf

flash chip Stock complete flash image, not for normal flashing. Media:Dir-300.bz2

Default telnet credentials:

Login: Alphanetworks
Password: wrgn49_dlob_dir300b5

GPIOs

These are the ID:s used in the linux installation created by openwrt and may or may not be accurate with the data sheet.

  • GPIO 0 = SW1 and SW3 (WPS)
  • GPIO 9 = PWR-LED
  • GPIO 10 = SW4 (Reset)
  • GPIO 19 = Header J1, pin 7
  • GPIO 21 = Header J1, pin 1

Todo

  • Figure out memory address for mac address (Look in target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom in openwrt trunk for examples)
  • probably do something with seama for it to boot
  • Add dir-300b5 menu item and add sensible defaults (halfway done)
  • make image web flashable from stock firmware upgrade page

Openwrt boot

Automatic boot of image at addr 0x80800000 ...                                  
## Booting image at 80800000 ...                                                
   Image Name:   MIPS OpenWrt Linux-3.7.10                                      
   Created:      2013-03-08  13:16:48 UTC                                       
   Image Type:   MIPS Linux Kernel Image (lzma compressed)                      
   Data Size:    916188 Bytes = 894.7 kB                                        
   Load Address: 80000000                                                       
   Entry Point:  80000000                                                       
   Verifying Checksum ... OK                                                    
   Uncompressing Kernel Image ... OK                                            
                                                                                
Starting kernel ...                                                             
                                                                                
[    0.000000] Linux version 3.7.10 (mikael@ronin) (gcc version 4.6.4 20121210 3
[    0.000000] bootconsole [early0] enabled                                     
[    0.000000] CPU revision is: 0001964c (MIPS 24KEc)                           
[    0.000000] Ralink RT5350 id:1 rev:3 running at 360.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 ranges:                                                     
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]                           
[    0.000000] Movable zone start for each node                                 
[    0.000000] Early memory node ranges                                         
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]                          
[    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 bys
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pa8
[    0.000000] Kernel command line:  board=MPR-A1 console=ttyS1,57600 mtdparts=2
[    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] __ex_table already sorted, skipping sort                         
[    0.000000] Writing ErrCtl register=0003ec10                                 
[    0.000000] Readback ErrCtl register=0003ec10                                
[    0.000000] Memory: 29568k/32768k available (1970k kernel code, 3200k reserv)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, N1
[    0.000000] NR_IRQS:48                                                       
[    0.000000] console [ttyS1] enabled, bootconsole disabled                    
[    0.000000] console [ttyS1] enabled, bootconsole disabled                    
[    0.010000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)          
[    0.080000] pid_max: default: 32768 minimum: 301                             
[    0.080000] Mount-cache hash table entries: 512                              
[    0.090000] NET: Registered protocol family 16                               
[    0.100000] MIPS: machine is HAME MPR-A1                                     
[    0.130000] bio: create slab <bio-0> at 0                                    
[    0.140000] Switching to clocksource MIPS                                    
[    0.150000] NET: Registered protocol family 2                                
[    0.160000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)  
[    0.180000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)         
[    0.190000] TCP: Hash tables configured (established 1024 bind 1024)         
[    0.200000] 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.230000] NET: Registered protocol family 1                                
[    0.280000] squashfs: version 4.0 (2009/01/31) Phillip Lougher               
[    0.290000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORI.
[    0.320000] msgmni has been set to 57                                        
[    0.320000] io scheduler noop registered                                     
[    0.330000] io scheduler deadline registered (default)                       
[    0.340000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled         
[    0.360000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A      
[    0.370000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A      
[    0.390000] ramips-spi ramips-spi.0: master is unqueued, this is deprecated  
[    0.410000] m25p80 spi0.0: found w25q32, expected pm25lq032                  
[    0.420000] m25p80 spi0.0: w25q32 (4096 Kbytes)                              
[    0.430000] 6 cmdlinepart partitions found on MTD device spi0.0              
[    0.440000] Creating 6 MTD partitions on "spi0.0":                           
[    0.450000] 0x000000000000-0x000000030000 : "u-boot"                         
[    0.460000] 0x000000030000-0x000000040000 : "u-boot-env"                     
[    0.480000] 0x000000040000-0x000000050000 : "factory"                        
[    0.490000] 0x000000050000-0x000000130000 : "kernel"                         
[    0.500000] 0x000000130000-0x000000400000 : "rootfs"                         
[    0.520000] mtd: partition "rootfs" set to be root filesystem                
[    0.530000] mtd: partition "rootfs_data" created automatically, ofs=2A0000,  
[    0.550000] 0x0000002a0000-0x000000400000 : "rootfs_data"                    
[    0.560000] 0x000000050000-0x000000400000 : "firmware"                       
[    0.580000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 35, 5
[    0.600000] TCP: cubic registered                                            
[    0.610000] NET: Registered protocol family 17                               
[    0.620000] 8021q: 802.1Q VLAN Support v1.8                                  
[    0.650000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. 
[    0.660000] Freeing unused kernel memory: 236k freed                         
[    5.320000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/in0
[    5.470000] Button Hotplug driver version 0.4.1                              
- preinit -                                                                     
Press the [f] key and hit [enter] to enter failsafe mode                        
- regular preinit -                                                             
jffs2 not ready yet; using ramdisk                                              
- init -                                                                        
                                                                                
Please press Enter to activate this console. [   10.130000] Compat-drivers back1
[   10.150000] Backport based on wireless-testing.git master-2013-02-22         
[   10.160000] compat.git: wireless-testing.git                                 
[   10.210000] cfg80211: Calling CRDA to update world regulatory domain         
[   10.220000] cfg80211: World regulatory domain updated:                       
[   10.230000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_ga)
[   10.250000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2)
[   10.260000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2)
[   10.280000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2)
[   10.290000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2)
[   10.310000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2)
[   10.990000] usbcore: registered new interface driver usbfs                   
[   11.000000] usbcore: registered new interface driver hub                     
[   11.010000] usbcore: registered new device driver usb                        
[   11.740000] phy0 -> rt2x00lib_request_eeprom_file: Info - Loading EEPROM dat.
[   12.050000] phy0 -> rt2x00_set_chip: Info - Chipset detected - rt: 5350, rf:.
[   12.130000] PPP generic driver version 2.4.2                                 
[   12.340000] ip_tables: (C) 2000-2006 Netfilter Core Team                     
[   12.600000] NET: Registered protocol family 24                               
[   12.630000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver       
[   13.650000] ehci-platform ehci-platform: Generic Platform EHCI Controller    
[   13.660000] ehci-platform ehci-platform: new USB bus registered, assigned bu1
[   13.710000] ehci-platform ehci-platform: irq 26, io mem 0x101c0000           
[   13.740000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00          
[   13.750000] hub 1-0:1.0: USB hub found                                       
[   13.760000] hub 1-0:1.0: 1 port detected                                     
[   13.790000] nf_conntrack version 0.5.0 (465 buckets, 1860 max)               
[   20.540000] device eth0.1 entered promiscuous mode                           
[   20.550000] device eth0 entered promiscuous mode                             
[   20.560000] br-lan: port 1(eth0.1) entered forwarding state                  
[   20.570000] br-lan: port 1(eth0.1) entered forwarding state                  
[   21.140000] ramips-wdt: timeout value 60 must be 0 < timeout <= 35, using 35 
[   22.570000] br-lan: port 1(eth0.1) entered forwarding state                  
[   31.870000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0   
[   31.910000] jffs2_build_filesystem(): unlocking the mtd device... done.      
[   31.920000] jffs2_build_filesystem(): erasing all blocks after the end marke.
[   41.380000] jffs2: notice: (836) jffs2_build_xattr_subsystem: complete build.
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
BusyBox v1.19.4 (2013-03-08 14:10:14 CET) built-in shell (ash)                  
Enter 'help' for a list of built-in commands.                                   
                                                                                
  _______                     ________        __                                
 |       |.-----.-----.-----.|  |  |  |.----.|  |_                              
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|                             
 |_______||   __|_____|__|__||________||__|  |____|                             
          |__| W I R E L E S S   F R E E D O M                                  
 -----------------------------------------------------                          
 BARRIER BREAKER (Bleeding Edge, r35902)                                        
 -----------------------------------------------------                          
  * 1/2 oz Galliano         Pour all ingredients into                           
  * 4 oz cold Coffee        an irish coffee mug filled                          
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.                             
  * 2 tsp. Creme de Cacao                                                       
 -----------------------------------------------------                          
root@OpenWrt:/# ps                                                              
  PID USER       VSZ STAT COMMAND                                               
    1 root      1508 S    init                                                  
    2 root         0 SW   [kthreadd]                                            
    3 root         0 SW   [ksoftirqd/0]                                         
    4 root         0 SW   [kworker/0:0]                                         
    5 root         0 SW<  [kworker/0:0H]                                        
    6 root         0 SW   [kworker/u:0]                                         
    7 root         0 SW<  [kworker/u:0H]                                        
    8 root         0 SW<  [khelper]                                             
    9 root         0 SW   [kworker/u:1]                                         
   57 root         0 SW   [bdi-default]                                         
   59 root         0 SW<  [kblockd]                                             
   83 root         0 SW   [kswapd0]                                             
  128 root         0 SW   [fsnotify_mark]                                       
  146 root         0 SW<  [ramips-spi]                                          
  151 root         0 SW   [mtdblock0]                                           
  156 root         0 SW   [mtdblock1]                                           
  161 root         0 SW   [mtdblock2]                                           
  166 root         0 SW   [mtdblock3]                                           
  171 root         0 SW   [mtdblock4]                                           
  176 root         0 SW   [mtdblock5]                                           
  181 root         0 SW   [mtdblock6]                                           
  194 root         0 SW<  [deferwq]                                             
  195 root         0 SW   [kworker/0:1]                                         
  382 root      1508 S    init                                                  
  385 root      1504 S    /bin/ash --login                                      
  409 root         0 SW<  [cfg80211]                                            
  421 root         0 SW   [khubd]                                               
  579 root      1512 S    /sbin/syslogd -C16                                    
  581 root      1492 S    /sbin/klogd                                           
  583 root       848 S    /sbin/hotplug2 --override --persistent --set-rules-f  
  589 root      1016 S    /sbin/procd                                           
  592 root       872 S <  ubusd                                                 
  607 root      1536 S    /sbin/netifd                                          
  658 root      1504 S    /sbin/watchdog -t 5 /dev/watchdog                     
  664 root      1504 S    udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/  
  777 root      1496 S    /usr/sbin/telnetd -l /bin/login.sh                    
  815 nobody     952 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf            
  837 root         0 SWN  [jffs2_gcd_mtd5]                                      
  888 root      1504 S    /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.ope  
  904 root      1152 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p   
  912 root      1500 R    ps                                                    
root@OpenWrt:/# reboot                                                          
root@OpenWrt:/# [  162.690000] br-lan: port 1(eth0.1) entered disabled state    
[  162.720000] device eth0.1 left promiscuous mode                              
[  162.720000] br-lan: port 1(eth0.1) entered disabled state                    
[  166.090000] Restarting system.

Stock flash

Got ARP REQUEST, return our IP                                                  
mpfd_decode: UPLOADED, upsize = 3649676                                         
SEAMA ==========================================                                
 magic      : 5ea3a417                                                         
 meta size  : 32 bytes                                                         
 meta data  : signature=wrgn49_dlob_dir300b5                                   
 meta data  :                                                                  
 image size : 0 bytes                                                          
================================================                                
SEAMA ==========================================                                
 magic      : 5ea3a417                                                         
 meta size  : 36 bytes                                                         
 meta data  : dev=/dev/mtdblock/2                                              
 meta data  : type=firmware                                                    
 meta data  :                                                                  
 meta data  :                                                                  
 image size : 3649568 bytes                                                    
 checksum   : 28292DC6FCACBC83D5F0888D41E6EDAD                                 
 digest     : 28292DC6FCACBC83D5F0888D41E6EDAD                                 
 Selected !!!                                                                  
================================================                                
Copy SEAMA with header (from 0x8010002c).                                       
raspi_erase_write: offs:50000, count:37b060                                     
raspi_erase: offs:50000 len:370000                                              
.......................................................                         
raspi_write: to:50000 len:370000                                                
.......................................................                         
........................................................raspi_erase: offs:3c0000
.                                                                               
raspi_write: to:3c0000 len:10000                                                
.                                                                               
.Done!                                                                          
Copy linux image [3649632 bytes] to Flash offset [0x00050000] ...               
                                                                               
                                                                               
U-Boot 1.1.3 (Feb 25 2011 - 14:31:26) (ALPHA)                                   
                                                                               
SVN revision: 499                                                               
Target board: WRG-N49                                                           
                                                                               
Board: Ralink APSoC DRAM:  32 MB                                                
******************************                                                  
Software System Reset Occurred                                                  
******************************                                                  
spi_wait_nsec: 42                                                               
spi device id: ef 40 16 0 0 (40160000)                                          
find flash: W25Q32BV                                                            
..============================================                                  
Ralink UBoot Version: 3.5.1.0                                                   
--------------------------------------------                                    
ASIC 5350_MP (Port5<->None)                                                     
DRAM_CONF_FROM: Boot-Strapping                                                  
DRAM_TYPE: SDRAM                                                                
DRAM_SIZE: 256 Mbits                                                            
DRAM_WIDTH: 16 bits                                                             
DRAM_TOTAL_WIDTH: 16 bits                                                       
TOTAL_MEMORY_SIZE: 32 MBytes                                                    
Flash component: SPI Flash                                                      
Date:Feb 25 2011  Time:14:31:26                                                 
============================================                                    
icache: sets:256, ways:4, linesz:32 ,total:32768                                
dcache: sets:128, ways:4, linesz:32 ,total:16384                                
## Powering down port 0 ~ 3.                                                    
                                                                                
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.                                         
  7: Load Boot Loader code then write to Flash via Serial.                     
  9: Load Boot Loader code then write to Flash via TFTP.                       
  A: Load  Runtime code then write to Flash via Serial.                        
0

Boot log

## Booting image at bc050000 ...                                                
.........................................................addr:80400000          
We have SEAMA, Image Size = 3649568                                             
Verifying Checksum ...                                                          
Uncompressing SEAMA linux.lzma ... OK   
## Transferring control to Linux (at address ff000000) ...                      
## Giving linux memsize in MB, 32                                               
                                                                               
Starting kernel ...                                                             
                                                                               
                                                                               
LINUX started...                                                                
                                                                               
THIS IS ASIC                                                                   
is_RT3052 = 0, is_RT3352 = 0                                                    
is_RT3350 = 0, is_RT5350 = 1                                                    
Linux version 2.6.33.2 (eric@localhost.localdomain) (gcc version 4.3.3 (GCC) ) 2
                                                                               
The CPU feqenuce set to 360 MHz                                                
bootconsole [early0] enabled                                                    
CPU revision is: 0001964c (MIPS 24Kc)                                           
Determined physical RAM map:                                                    
memory: 02000000 @ 00000000 (usable)                                           
Zone PFN ranges:                                                                
 DMA      0x00000000 -> 0x00001000                                             
 Normal   0x00001000 -> 0x00002000                                             
Movable zone start PFN for each node                                            
early_node_map[1] active PFN ranges                                             
   0: 0x00000000 -> 0x00002000                                                 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128       
Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock1 noinitrd         
PID hash table entries: 128 (order: -3, 512 bytes)                              
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)                   
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)                     
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.                 
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes             
Writing ErrCtl register=0003ec16                                                
Readback ErrCtl register=0003ec16                                               
Memory: 28968k/32768k available (2636k kernel code, 3800k reserved, 609k data, )
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1          
Hierarchical RCU implementation.                                                
NR_IRQS:128                                                                     
setup_irq 6                                                                     
CPU frequency 360.00 MHz                                                        
[debug] (r4k_clockevent_init line: 172)                                         
[debug] 128 aba9500 (r4k_clockevent_init line: 176)                             
[debug] (r4k_clockevent_init line: 185)                                         
[debug] irq: 5 , 800086d4 , (r4k_clockevent_init line: 195)                     
4,[debug] (r4k_clockevent_init line: 217)                                       
5,[debug] (r4k_clockevent_init line: 222)                                       
setup_irq 5                                                                     
[debug] (r4k_clockevent_init line: 228)                                         
If the above line no "setup_irq 5", mean irq for timer is not installed         
Calibrating delay loop... 239.61 BogoMIPS (lpj=479232)                          
Mount-cache hash table entries: 512                                             
NET: Registered protocol family 16                                              
bio: create slab <bio-0> at 0                                                   
cfg80211: Calling CRDA to update world regulatory domain                        
Switching to clocksource MIPS                                                   
NET: Registered protocol family 2                                               
IP route cache hash table entries: 8192 (order: 3, 32768 bytes)                 
TCP established hash table entries: 1024 (order: 1, 8192 bytes)                 
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)                        
TCP: Hash tables configured (established 1024 bind 1024)                        
TCP reno registered                                                             
UDP hash table entries: 256 (order: 0, 4096 bytes)                              
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                         
NET: Registered protocol family 1                                               
RPC: Registered udp transport module.                                           
RPC: Registered tcp transport module.                                           
RPC: Registered tcp NFSv4.1 backchannel transport module.                       
Load RT2880 Timer Module(Wdg/Soft)                                              
squashfs: version 4.0 (2009/01/31) Phillip Lougher                              
alg: No test for lzma (lzma-generic)                                            
alg: No test for stdrng (krng)                                                  
io scheduler noop registered                                                    
io scheduler cfq registered (default)                                           
Ralink gpio driver initialized                                                  
HDLC line discipline maxframe=4096                                              
N_HDLC line discipline registered.                                              
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled                        
serial8250.0: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A                    
console [ttyS1] enabled, bootconsole disabled12) is a 16550A                    
console [ttyS1] enabled, bootconsole disabled                                   
deice id : ef 40 16 0 0 (40160000)                                              
W25Q32BV(ef 40160000) (4096 Kbytes)                                             
mtd .name = raspi, .size = 0x00400000 (0M) .erasesize = 0x00000004 (0K) .numera6
seama skip the header                                                           
xxxxxxxx: squashfs filesystem found at offset 1507392, magic 73717368           
Creating 8 MTD partitions on "raspi":                                           
0x000000170060-0x0000003cb060 : "rootfs"                                        
0x000000050000-0x0000003e0000 : "upgrade"                                       
0x000000040000-0x000000050000 : "devconf"                                       
0x000000030000-0x000000040000 : "devdata"                                       
0x0000003e0000-0x000000400000 : "langpack"                                      
0x000000000000-0x000000400000 : "flash"                                         
0x000000000000-0x000000030000 : "u-boot"                                        
0x000000030000-0x000000038000 : "boot env"                                      
MAC_ADRH -- : 0x00000000                                                        
MAC_ADRL -- : 0x00000000                                                        
Ralink APSoC Ethernet Driver Initilization. v2.0  256 rx/tx descriptors allocat!
eth2: set mac address                                                           
MAC_ADRH -- : 0x0000000c                                                        
MAC_ADRL -- : 0x43288081                                                        
PROC INIT OK!                                                                   
rt3052 access driver initialization.                                            
PPP generic driver version 2.4.2                                                
PPP MPPE Compression module registered                                          
NET: Registered protocol family 24                                              
skb rate limit initialization.                                                  
GACT probability NOT on                                                         
u32 classifier                                                                  
    Actions configured                                                          
nf_conntrack version 0.5.0 (452 buckets, 1808 max)                              
nf_conntrack_rtsp v0.6.21 loading                                               
nf_conntrack_rtsp  port #0: 554                                                 
nf_conntrack_rtsp  port #1: 557                                                 
xt_time: kernel timezone is -0000                                               
nf_nat_rtsp v0.6.21 loading                                                     
BCM fast NAT: INIT                                                              
ip_tables: (C) 2000-2006 Netfilter Core Team                                    
TCP cubic registered                                                            
NET: Registered protocol family 10                                              
ip6_tables: (C) 2000-2006 Netfilter Core Team                                   
IPv6 over IPv4 tunneling driver                                                 
NET: Registered protocol family 17                                              
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>                   
All bugs added by David S. Miller <davem@redhat.com>                            
VFS: Mounted root (squashfs filesystem) readonly on device 31:1.                
Freeing unused kernel memory: 152k freed                                        
init started: BusyBox v1.14.1 (2012-10-10 12:06:47 CST)                         
starting pid 28, tty : '/etc/init.d/rcS'                                      
Algorithmics/MIPS FPU Emulator v1.5                                             
[/etc/init.d/S10init.sh]                                                        
[/etc/init.d/S15pts.sh]                                                         
mount: mounting devpts on /dev/pts failed: Device or resource busy              
[/etc/init.d/S16ipv6.sh]                                                        
[/etc/init.d/S19init.sh]                                                        
[/etc/init.d/S20init.sh]                                                        
  DEFNODE[/etc/defnodes/S10phyinf.php]                                          
  DEFNODE[/etc/defnodes/S11devdata.xml]                                         
  DEFNODE[/etc/defnodes/S12flashspeed.php]                                      
  DEFNODE[/etc/defnodes/S20device.xml]                                          
  DEFNODE[/etc/defnodes/S22timezone.php]                                        
[/etc/scripts/setdate.sh] 01/01/2000 ...                                        
Sat Jan  1 01:00:03 GMT 2000                                                    
  DEFNODE[/etc/defnodes/S30device.php]                                          
  DEFNODE[/etc/defnodes/S30device.xml]                                          
  DEFNODE[/etc/defnodes/S31diagnostic.xml]                                      
  DEFNODE[/etc/defnodes/S31locale.php]                                          
  DEFNODE[/etc/defnodes/S32layout.php]                                          
  DEFNODE[/etc/defnodes/S33wifi.php]                                            
  DEFNODE[/etc/defnodes/S40device.xml]                                          
  DEFNODE[/etc/defnodes/S90sessions.php]                                        
  DEFNODE[/etc/defnodes/S90upnpigd.php]                                         
  DEFNODE[/etc/defnodes/S90upnpwfa.php]                                         
  DEFNODE[/etc/defnodes/S91upnpigd2.php]                                        
SERVD: start service [LOGD]                                                     
[/etc/init.d/S20interfaces.sh]                                                  
eth2: set mac address                                                           
MAC_ADRH -- : 0x00002810                                                        
MAC_ADRL -- : 0x7beb80ff                                                        
                                                                               
phy_tx_ring = 0x00c00000, tx_ring = 0xa0c00000                                  
                                                                               
phy_rx_ring0 = 0x00c01000, rx_ring0 = 0xa0c01000                                
RT305x_ESW: Link Status Changed                                                 
[/etc/init.d/S45gpiod.sh]                                                       
[/etc/init.d/S50config.sh]                                                      
Factory reset time : 5 secs                                                     
[/etc/init.d/rcS] done!                                                         
SERVD: event [WANPORT.LINKDOWN] not found!                                      
[/etc/init0.d/S21layout.sh]: start ...                                          
SERVD: start service [LAYOUT]                                                   
[/etc/init0.d/S21wlan.sh]: start ...                                            
device eth2 entered promiscuous mode                                            
device eth2.0 entered promiscuous mode                                          
interface ra0 does not exist!                                                   
br0: port 1(eth2.0) entering forwarding state                                   
SERVD: start service [PHYINF.ETH-1]                                             
rt2860v2_ap: module license 'unspecified' taints kernel.                        
Disabling lock debugging due to kernel taint                                    
                                                                                
                                                                               
=== pAd = c056e000, size = 487048 ===                                           
                                                                               
<-- RTMPAllocAdapterBlock, Status=0                                             
[/etc/init0.d/S40event.sh]: start ...                                           
SERVD: event [SEALPAC.LOAD/default]                                             
SEAMA: '/dev/mtdblock/5' is not a seama file !                                  
[/etc/init0.d/S40gpioevent.sh]: start ...                                       
[/etc/init0.d/S41autowan.sh]: start ...                                         
[/etc/init0.d/S41autowanv6.sh]: start ...                                       
[/etc/init0.d/S41inf.sh]: start ...                                             
[/etc/init0.d/S42pthrough.sh]: start ...                                        
[/etc/init0.d/S65ddnsd.sh]: start ...                                           
[/etc/init0.d/S80telnetd.sh]: start ...                                         
[/etc/init0.d/rcS] done!                                                        
                                                                                
Please press Enter to activate this console. SERVD: start service [PHYINF.ETH-2]
SERVD: start service [WIFI.WLAN-1]                                              
SERVD: start service [LOGD]                                                     
SERVD: service [LOGD] is already started.                                       
SERVD: start service [BRIDGE]                                                   
BRIDGE: The device is not in the bridge mode.                                   
SERVD: start service [LAN]                                                      
SERVD: start service [WAN]                                                      
SERVD: start service [DEVICE.PASSTHROUGH]                                       
SERVD: start service [WIFI]                                                     
RX DESC a1f6e000  size = 2048                                                   
<-- RTMPAllocTxRxRingMemory, Status=0                                           
1. Phy Mode = 0                                                                 
2. Phy Mode = 0                                                                 
3. Phy Mode = 0                                                                 
RT5350_InitDesiredTSSITable : slope of TSSI is 0.7                              
Channel 1 TSSI delta=0                                                          
Channel 2 TSSI delta=0                                                          
Channel 3 TSSI delta=0                                                          
Channel 4 TSSI delta=0                                                          
Channel 5 TSSI delta=0                                                          
Channel 6 TSSI delta=0                                                          
Channel 7 TSSI delta=0                                                          
Channel 8 TSSI delta=0                                                          
Channel 9 TSSI delta=0                                                          
Channel 10 TSSI delta=0                                                         
Channel 11 TSSI delta=0                                                         
Channel 12 TSSI delta=0                                                         
Channel 13 TSSI delta=0                                                         
Channel 14 TSSI delta=0                                                         
TSSIBase(0x6E) = 18, TxPowerOFDM54 = 8                                          
EEPROM_CCK_MCS0_MCS1(0xDE) = 0x8                                                
EEPROM_CCK_MCS2_MCS3(0xDF) = 0x8                                                
RT5350_desiredTSSIOverCCK[0] = 389232                                           
RT5350_desiredTSSIOverCCK[1] = 389232                                           
RT5350_desiredTSSIOverCCK[2] = 389232                                           
RT5350_desiredTSSIOverCCK[3] = 389232                                           
EEPROM_OFDM_MCS0_MCS1(0xE0) = 0xA                                               
EEPROM_OFDM_MCS2_MCS3(0xE1) = 0x9                                               
EEPROM_OFDM_MCS4_MCS5(0xE2) = 0x9                                               
EEPROM_OFDM_MCS6_MCS7(0xE3) = 0x8                                               
RT5350_desiredTSSIOverOFDM[0] = 331296                                          
RT5350_desiredTSSIOverOFDM[1] = 331296                                          
RT5350_desiredTSSIOverOFDM[2] = 281976                                          
RT5350_desiredTSSIOverOFDM[3] = 281976                                          
RT5350_desiredTSSIOverOFDM[4] = 281976                                          
RT5350_desiredTSSIOverOFDM[5] = 281976                                          
RT5350_desiredTSSIOverOFDM[6] = 240000                                          
RT5350_desiredTSSIOverOFDM[7] = 240000                                          
EEPROM_HT_MCS0_MCS1(0xE4) = 0x8                                                 
EEPROM_HT_MCS2_MCS3(0xE5) = 0x8                                                 
EEPROM_HT_MCS4_MCS5(0xE6) = 0x8                                                 
EEPROM_HT_MCS6_MCS7(0xE7) = 0x8                                                 
MCS Set = 00 00 00 00 00                                                        
Main bssid = 28:10:7b:eb:80:fe                                                  
<==== rt28xx_init, Status=0                                                     
0x1300 = 00064380                                                               
SERVD: event [WLAN-1.UP/default]                                                
can't find port ra0 in bridge br0                                               
/proc/net/br_forward_br0: can't create                                          
device ra0 entered promiscuous mode                                             
br0: port 2(ra0) entering forwarding state                                      
SERVD: stop service [MULTICAST]                                                 
SERVD: service [MULTICAST] is already stopped.                                  
SERVD: start service [MULTICAST]                                                
SERVD: start service [IPTABLES]                                                 
Configuration file: /var/servd/hostapd-ra0.conf                                 
Cannot read /proc/net/wireless                                                  
Using interface ra0 with hwaddr 28:10:7b:eb:80:fe and ssid 'dlink'              
Network interface reset count v1.0                                              
SERVD: start service [IP6TABLES]                                                
SERVD: start service [IPTABLES]                                                 
SERVD: service [IPTABLES] is already started.                                   
SERVD: start service [IP6TABLES]                                                
SERVD: service [IP6TABLES] is already started.                                  
SERVD: start service [INET.LAN-1]                                               
[/var/servd/INET.LAN-1_start.sh]: starting LAN-1...                             
SERVD: event [LAN-1.UP/default]                                                 
[/var/servd/INET.LAN-1_start.sh]: starting LAN-1 done !!!                       
SERVD: start service [INET.LAN-2]                                               
ifsetup: (LAN-2) not active.                                                    
SERVD: service [INET.LAN-2] return error 8.                                     
SERVD: start service [INET.LAN-3]                                               
[/var/servd/INET.LAN-3_start.sh]: starting LAN-3...                             
LAN-3 a is link local interface.                                                
SERVD: event [LAN-3.UP/default]                                                 
[/var/servd/INET.LAN-3_start.sh]: starting LAN-3 done !!!                       
SERVD: start service [INET.LAN-4]                                               
#!/bin/sh                                                                       
# No inet profile!!                                                             
exit 9                                                                          
                                                                                
SERVD: start service [IPTMACCTRL]                                               
SERVD: start service [IPTURLCTRL]                                               
SERVD: start service [IPTPORTT]                                                 
SERVD: start service [IP6T.LAN-1]                                               
SERVD: start service [IP6T.LAN-2]                                               
SERVD: start service [IP6T.LAN-3]                                               
SERVD: start service [IP6T.LAN-4]                                               
SERVD: start service [IPTABLES]                                                 
SERVD: service [IPTABLES] is already started.                                   
SERVD: start service [IP6TABLES]                                                
SERVD: service [IP6TABLES] is already started.                                  
SERVD: start service [INET.WAN-1]                                               
[/var/servd/INET.WAN-1_start.sh]: starting WAN-1...                             
SERVD: event [WAN-1.UP/default]                                                 
[/var/servd/INET.WAN-1_start.sh]: starting WAN-1 done !!!                       
SERVD: start service [INET.WAN-2]                                               
ifsetup: (WAN-2) not active.                                                    
SERVD: service [INET.WAN-2] return error 8.                                     
SERVD: start service [INET.WAN-3]                                               
[/var/servd/INET.WAN-3_start.sh]: starting WAN-3...                             
WAN-3 a is link local interface.                                                
SERVD: event [WAN-3.UP/default]                                                 
[/var/servd/INET.WAN-3_start.sh]: starting WAN-3 done !!!                       
SERVD: start service [INET.WAN-4]                                               
ifsetup: (WAN-4) not active.                                                    
SERVD: service [INET.WAN-4] return error 8.                                     
SERVD: start service [INET.WAN-5]                                               
ifsetup: (WAN-5) not active.                                                    
SERVD: service [INET.WAN-5] return error 8.                                     
SERVD: start service [IPTMASQ]                                                  
/proc/sys/net/ipv4/ip_personality_sport: can't create                           
/proc/sys/net/ipv4/ip_personality_enable: can't create                          
SERVD: start service [IPTVSVR]                                                  
SERVD: start service [IPTPFWD]                                                  
SERVD: start service [IPTPORTT]                                                 
SERVD: service [IPTPORTT] is already started.                                   
SERVD: start service [IPTDMZ]                                                   
IPTDMZ: cnt= 1                                                                  
SERVD: start service [IPT.WAN-1]                                                
SERVD: start service [IP6T.WAN-1]                                               
SERVD: start service [IPT.WAN-2]                                                
SERVD: start service [IP6T.WAN-2]                                               
SERVD: start service [IPT.WAN-3]                                                
SERVD: start service [IP6T.WAN-3]                                               
SERVD: start service [IPT.WAN-4]                                                
SERVD: start service [IP6T.WAN-4]                                               
SERVD: start service [IPT.WAN-5]                                                
SERVD: service [IPT.WAN-5] return error 108.                                    
SERVD: start service [IP6T.WAN-5]                                               
SERVD: service [IP6T.WAN-5] return error 108.                                   
SERVD: stop service [IPT.LAN-1]                                                 
SERVD: service [IPT.LAN-1] is already stopped.                                  
SERVD: start service [IPT.LAN-1]                                                
/proc/fastnat/forskipsupport: can't create                                      
SERVD: stop service [IPT.LAN-2]                                                 
SERVD: service [IPT.LAN-2] is already stopped.                                  
SERVD: start service [IPT.LAN-2]                                                
/proc/fastnat/forskipsupport: can't create                                      
SERVD: stop service [IPT.LAN-3]                                                 
SERVD: service [IPT.LAN-3] is already stopped.                                  
SERVD: start service [IPT.LAN-3]                                                
SERVD: service [IPT.LAN-3] return error 108.                                    
SERVD: stop service [IPT.LAN-4]                                                 
SERVD: service [IPT.LAN-4] is already stopped.                                  
SERVD: start service [IPT.LAN-4]                                                
SERVD: service [IPT.LAN-4] return error 108.                                    
SERVD: start service [WPS]                                                      
[/etc/scripts/wps.sh] setie ...                                                 
SERVD: stop service [INFSVCS.LAN-1]                                             
SERVD: service [INFSVCS.LAN-1] is already stopped.                              
SERVD: start service [INFSVCS.LAN-1]                                            
SERVD: event [LAN-1.CONNECTED] not found!                                       
SERVD: event [INFSVCS.LAN-1.UP/default]                                         
SERVD: stop service [INFSVCS.LAN-3]                                             
SERVD: service [INFSVCS.LAN-3] is already stopped.                              
SERVD: start service [INFSVCS.LAN-3]                                            
SERVD: event [STATUS.READY/default]                                             
SERVD: event [LAN-3.CONNECTED] not found!                                       
SERVD: event [INFSVCS.LAN-3.UP] not found!                                      
SERVD: stop service [INFSVCS.WAN-1]                                             
SERVD: service [INFSVCS.WAN-1] is already stopped.                              
SERVD: start service [INFSVCS.WAN-1]                                            
SERVD: event [WAN-1.CONNECTED/default]                                          
SERVD: event [UPDATERESOLV/default]                                             
SERVD: event [INFSVCS.WAN-1.UP] not found!                                      
SERVD: event [UPNP.IGD.NOTIFY.WANIPCONN1] not found!                            
SERVD: stop service [INFSVCS.WAN-3]                                             
SERVD: service [INFSVCS.WAN-3] is already stopped.                              
SERVD: start service [INFSVCS.WAN-3]                                            
SERVD: event [WAN-3.CONNECTED] not found!                                       
SERVD: event [INFSVCS.WAN-3.UP] not found!                                      
SERVD: event [UPNP.IGD.NOTIFY.WANIPCONN1] not found!                            
SERVD: event [UPDATERESOLV/default]                                             
SERVD: start service [ENLAN]                                                    
SERVD: start service [HTTP.LAN-1]                                               
SERVD: start service [UPNP.LAN-1]                                               
SERVD: event [UPNP.ALIVE.LAN-1/default]                                         
SERVD: start service [NEAP.LAN-1]                                               
SERVD: start service [NAMERESOLV.LAN-1]                                         
SERVD: start service [DHCPS4.LAN-1]                                             
SERVD: start service [DNS4.LAN-1]                                               
SERVD: start service [ENLAN]                                                    
SERVD: service [ENLAN] is already started.                                      
SERVD: start service [HTTP.LAN-3]                                               
SERVD: start service [UPNP.LAN-3]                                               
SERVD: event [UPNP.ALIVE.LAN-3/default]                                         
SERVD: start service [NAMERESOLV.LAN-3]                                         
SERVD: stop service [LLD2]                                                      
SERVD: service [LLD2] is already stopped.                                       
SERVD: start service [LLD2]                                                     
SERVD: start service [HTTP.WAN-1]                                               
httpsetup: (WAN-1) not active.                                                  
SERVD: service [HTTP.WAN-1] return error 8.                                     
SERVD: stop service [IPTDEFCHAIN]                                               
SERVD: service [IPTDEFCHAIN] is already stopped.                                
SERVD: start service [IPTDEFCHAIN]                                              
/proc/fastnat/min_gone: can't create                                            
SERVD: stop service [ROUTE.STATIC]                                              
SERVD: service [ROUTE.STATIC] is already stopped.                               
SERVD: start service [ROUTE.STATIC]                                             
SERVD: stop service [ROUTE.DESTNET]                                             
SERVD: service [ROUTE.DESTNET] is already stopped.                              
SERVD: start service [ROUTE.DESTNET]                                            
SERVD: stop service [ROUTE.DOMAIN]                                              
SERVD: service [ROUTE.DOMAIN] is already stopped.                               
SERVD: start service [ROUTE.DOMAIN]                                             
SERVD: stop service [ROUTE.IPUNNUMBERED]                                        
SERVD: service [ROUTE.IPUNNUMBERED] is already stopped.                         
SERVD: start service [ROUTE.IPUNNUMBERED]                                       
SERVD: stop service [MULTICAST]                                                 
SERVD: start service [MULTICAST]                                                
SERVD: stop service [QOS]                                                       
SERVD: service [QOS] is already stopped.                                        
SERVD: start service [QOS]                                                      
echo QOS is disabled.                                                           
Interface is wanif=eth2.2 lanif=br0 ... OK                                      
Start QOS system ...                                                            
QOS= UPSTREAM=102400 DOWNSTREAM=102400                                          
SERVD: start service [DEVICE.TIME]                                              
NTP is disabled ...                                                             
SERVD: start service [HTTP.WAN-3]                                               
httpsetup: (WAN-3) not active.                                                  
SERVD: service [HTTP.WAN-3] return error 8.                                     
SERVD: stop service [IP6TDEFCHAIN]                                              
SERVD: service [IP6TDEFCHAIN] is already stopped.                               
SERVD: start service [IP6TDEFCHAIN]                                             
SERVD: stop service [ROUTE6.DYNAMIC]                                            
SERVD: service [ROUTE6.DYNAMIC] is already stopped.                             
SERVD: start service [ROUTE6.DYNAMIC]                                           
SERVD: stop service [ROUTE6.STATIC]                                             
SERVD: service [ROUTE6.STATIC] is already stopped.                              
SERVD: start service [ROUTE6.STATIC]                                            
SERVD: start service [DEVICE.TIME]                                              
SERVD: service [DEVICE.TIME] is already started.                                
SERVD: stop service [ROUTE.DYNAMIC]                                             
SERVD: service [ROUTE.DYNAMIC] is already stopped.                              
SERVD: start service [ROUTE.DYNAMIC]                                            
SERVD: service [ROUTE.DYNAMIC] return error 108.                                
SERVD: stop service [DNS]                                                       
SERVD: service [DNS] is already stopped.                                        
SERVD: start service [DNS]                                                      
killall: dnsmasq: no process killed                                             
SERVD: stop service [HTTP]                                                      
SERVD: service [HTTP] is already stopped.                                       
SERVD: start service [HTTP]                                                     
SERVD: event [HTTP.UP] not found!                                               
SERVD: stop service [IPT.WAN-1]                                                 
SERVD: start service [IPT.WAN-1]                                                
SERVD: stop service [IPT.WAN-3]                                                 
SERVD: start service [IPT.WAN-3]

Voltage regulator

The DIR-300b5's runs internally off 3.3 volts from a switching regulator in buck mode. While the back of the device states "5 V, 1 A" the regulator itself (IT7602M) handles input voltages between 4.7-23 V. The electrolytic input capacitors are rated at 25 V. This means that it's possible to power the DIR-300b5 from up to 23 volts and that the current is inversely proportional to the input voltage.

Measurements indicate that the current draw is roughly 400 mA at 5 V (2 W), 144.6 mA at 12 V (1.74 W) and around 85 mA at 21 V (1.79 W).

Close-up of the voltage regulator area in the DIR-300b5. The regulator (IT7602M), electrolytic capacitors (100 µF, 25 V) and various other parts are visible.