OpenWrt Forum Archive

Topic: the difference between dir-600 b1 & b2?

The content of this topic has been archived on 2 Feb 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi there.

i own a d-link dir-600(b1) router and i wanted to give openwrt a shot.
however my router, it seems, its not supported. but dir-600 b2 its supported.
i found this confusing scince both b1 and b2 seem to be more or less the same hardware and both models use the same  stock firmware. also dd-wrt provides the same firmware for both models.
my question is: its there a technical reason why b1 its not supported while b2 is? or is just that nobody tryied to use openwrt on b1?

thanks in advance

thanks for the reply.
seems like the patch you mentioned isn't merged into trunk
ill try and install openwrt with and without the patch and see if i get lucky.

rechapit79 wrote:

thanks for the reply.
seems like the patch you mentioned isn't merged into trunk
ill try and install openwrt with and without the patch and see if i get lucky.

Let us know how it went smile

paradoxmonkey wrote:

Let us know how it went smile

Not so good (it wasn't useable), but not so bad either (i could log in)
patch is pretty much mandatory cause otherwise you wont be able to connect to the router.
i tryied following the instruction for firstboot, however i needed to reboot in order to log via ssh after password was changed and the luci http was not accesible (maybe a mistake in configuration on my part)
also i wasnt able to get ip from my ISP and it seems the WIFI inteface was not detected.

i got outputs for everything i could think of:

cat /proc/cpuinfo:

system type        : Ralink RT3350   id:1 rev:2
machine            : D-Link DIR-300 revB
processor        : 0
cpu model        : MIPS 24Kc V4.12
BogoMIPS        : 212.58
wait instruction    : yes
microsecond timers    : yes
tlb_entries        : 32
extra interrupt vector    : yes
hardware watchpoint    : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
ASEs implemented    : mips16
shadow register sets    : 1
kscratch registers    : 0
core            : 0
VCED exceptions        : not available
VCEI exceptions        : not available


dmesg:

Linux version 2.6.39.2 (martin@NCC-74656) (gcc version 4.5.4 20110526 (prerelease) (Linaro GCC 4.5-2011.06-0) ) #3 Tue Jul 5 22:03:44 ART 2011
prom: fw_arg0=00000001, fw_arg1=01f5bfb0, fw_arg2=01f5c3b0, fw_arg3=00000000
env[0]: memsize=32
env[1]: initrd_start=0x00000000
env[2]: initrd_size=0x0
env[3]: flash_start=0xBF000000
env[4]: flash_size=0x400000
env[0]: memsize=32
env[1]: initrd_start=0x00000000
env[2]: initrd_size=0x0
env[3]: flash_start=0xBF000000
env[4]: flash_size=0x400000
bootconsole [early0] enabled
CPU revision is: 0001964c (MIPS 24Kc)
Ralink RT3350   id:1 rev:2 running at 320.00 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 80217fc0, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line:  board=DIR-300-revB mtdparts=physmap-flash.0:192k(u-boot)ro,64k(devdata)ro,64k(devconf)ro,832k(kernel),2944k(rootfs),3776k@0x50000(firmware) console=ttyS1,57600 rootfstype=squashfs,jffs2
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 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0004000b
Readback ErrCtl register=0004000b
Memory: 30044k/32768k available (1837k kernel code, 2724k reserved, 307k data, 152k init, 0k highmem)
SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:48
console [ttyS1] enabled, bootconsole disabled
Calibrating delay loop... 212.58 BogoMIPS (lpj=1062912)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is D-Link DIR-300 revB
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 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
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
physmap platform flash device: 00800000 at bf000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022a8
physmap-flash.0: Found an alias at 0x400000 for the chip at 0x0
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.1.
number of CFI chips: 1
6 cmdlinepart partitions found on MTD device physmap-flash.0
Creating 6 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000030000 : "u-boot"
0x000000030000-0x000000040000 : "devdata"
0x000000040000-0x000000050000 : "devconf"
0x000000050000-0x000000120000 : "kernel"
0x000000120000-0x000000400000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=370000, len=90000 
0x000000370000-0x000000400000 : "rootfs_data"
0x000000050000-0x000000400000 : "firmware"
ramips_eth: loaded
TCP westwood registered
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:4.
Freeing unused kernel memory: 152k freed
Registered led device: dir-300b:amber:status
Registered led device: dir-300b:green:status
Registered led device: dir-300b:blue:wps
JFFS2 notice: (288) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Compat-wireless backport release: compat-wireless-2011-06-23
Backport based on wireless-testing.git master-2011-06-22
cfg80211: Calling CRDA to update world regulatory domain
device eth0.1 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.1) entering forwarding state
br-lan: port 1(eth0.1) entering forwarding state
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Registered led device: rt2800pci-phy0::radio
Registered led device: rt2800pci-phy0::assoc
Registered led device: rt2800pci-phy0::quality
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ip_tables: (C) 2000-2006 Netfilter Core Team
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (471 buckets, 1884 max)
xt_time: kernel timezone is -0000
ramips-wdt: timeout value 60 must be 0 < timeout < 40


lsmod:

Module                  Size  Used by    Not tainted
nf_nat_irc               816  0 
nf_conntrack_irc        2512  1 nf_nat_irc
nf_nat_ftp               992  0 
nf_conntrack_ftp        4448  1 nf_nat_ftp
xt_HL                   1200  0 
xt_hl                    720  0 
ipt_ECN                 1280  0 
xt_CLASSIFY              496  0 
xt_time                 1472  0 
xt_tcpmss                896  0 
xt_statistic             720  0 
xt_mark                  592 26 
xt_length                608  5 
ipt_ecn                  864  0 
xt_DSCP                 1360  0 
xt_dscp                  912  0 
xt_string                688  0 
xt_layer7               8960  0 
ipt_MASQUERADE           944  1 
iptable_nat             2128  1 
nf_nat                 10048  4 nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_recent               5760  0 
xt_helper                800  0 
xt_connmark              960  2 
xt_connbytes            1296  0 
xt_conntrack            2112  0 
xt_NOTRACK               464  0 
iptable_raw              560  1 
xt_state                 624  3 
nf_conntrack_ipv4       3824  8 iptable_nat,nf_nat
nf_defrag_ipv4           624  1 nf_conntrack_ipv4
nf_conntrack           36624 15 nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,xt_layer7,ipt_MASQUERADE,iptable_nat,nf_nat,xt_helper,xt_connmark,xt_connbytes,xt_conntrack,xt_NOTRACK,xt_state,nf_conntrack_ipv4
pppoe                   7200  0 
pppox                   1152  1 pppoe
ipt_REJECT              1696  2 
xt_TCPMSS               1952  1 
ipt_LOG                 6000  0 
xt_comment               416  0 
xt_multiport            1120  5 
xt_mac                   544  0 
xt_limit                 960  1 
iptable_mangle           816  1 
iptable_filter           624  1 
ip_tables               8512  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp               1600 13 
x_tables               10080 35 xt_HL,xt_hl,ipt_ECN,xt_CLASSIFY,xt_time,xt_tcpmss,xt_statistic,xt_mark,xt_length,ipt_ecn,xt_DSCP,xt_dscp,xt_string,xt_layer7,ipt_MASQUERADE,iptable_nat,xt_recent,xt_helper,xt_connmark,xt_connbytes,xt_conntrack,xt_NOTRACK,iptable_raw,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,iptable_mangle,iptable_filter,ip_tables,xt_tcpudp
ifb                     2320  0 
tun                    11632  0 
ppp_async               6016  0 
ppp_generic            18576  3 pppoe,pppox,ppp_async
slhc                    4176  1 ppp_generic
rt2800pci               5232  0 
rt2800lib              38944  1 rt2800pci
rt2x00soc               1120  1 rt2800pci
rt2x00pci               1856  1 rt2800pci
rt2x00lib              27552  4 rt2800pci,rt2800lib,rt2x00soc,rt2x00pci
mac80211              206256  3 rt2800lib,rt2x00soc,rt2x00lib
ts_fsm                  2496  0 
ts_bm                   1360  0 
ts_kmp                  1296  0 
eeprom_93cx6            1056  0 
crc_itu_t                944  0 
crc_ccitt                944  2 ppp_async,rt2800lib
cfg80211              126448  2 rt2x00lib,mac80211
compat                   656  0 
arc4                     768  2 
aes_generic            29632  0 
crypto_algapi           9024  2 arc4,aes_generic
leds_gpio               1552  0 

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:549 errors:0 dropped:2 overruns:0 frame:0
          TX packets:372 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:40656 (39.7 KiB)  TX bytes:62073 (60.6 KiB)

eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39995 errors:0 dropped:16 overruns:0 frame:0
          TX packets:452 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2075565 (1.9 MiB)  TX bytes:94541 (92.3 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:549 errors:0 dropped:0 overruns:0 frame:0
          TX packets:377 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:42852 (41.8 KiB)  TX bytes:62303 (60.8 KiB)

eth0.2    Link encap:Ethernet  HWaddr 00:11:22:33:44:55  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39430 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2031913 (1.9 MiB)  TX bytes:30216 (29.5 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)

iwconfig:

lo        no wireless extensions.

eth0      no wireless extensions.

eth0.1    no wireless extensions.

eth0.2    no wireless extensions.

br-lan    no wireless extensions.

ifb0      no wireless extensions.

ifb1      no wireless extensions.

ps ax:

  PID USER       VSZ STAT COMMAND
    1 root      1436 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/u:0]
    6 root         0 SW   [rcu_kthread]
    7 root         0 SW<  [khelper]
    8 root         0 SW   [kworker/u:1]
   38 root         0 SW   [sync_supers]
   40 root         0 SW   [bdi-default]
   42 root         0 SW<  [kblockd]
   63 root         0 SW   [kswapd0]
  126 root         0 SW   [mtdblock0]
  131 root         0 SW   [mtdblock1]
  136 root         0 SW   [mtdblock2]
  141 root         0 SW   [mtdblock3]
  146 root         0 SW   [mtdblock4]
  151 root         0 SW   [mtdblock5]
  156 root         0 SW   [mtdblock6]
  168 root         0 SW   [kworker/0:1]
  289 root         0 SWN  [jffs2_gcd_mtd5]
  291 root         0 SW   [flush-mtd-unmap]
  304 root      1436 S    init
  308 root      1436 S    init
  336 root      1440 S    syslogd -C16
  338 root      1420 S    klogd
  352 root       788 S    /sbin/hotplug2 --override --persistent --set-worker
  463 root         0 SW<  [cfg80211]
  525 root      1432 S    udhcpc -t 0 -i eth0.2 -b -p /var/run/dhcp-eth0.2.pid
 1158 nobody     908 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/
 1176 root      1432 S    watchdog -t 5 /dev/watchdog
 1195 root      1112 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 1196 root      1184 R    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 1197 root      1440 S    -ash
 1211 root      1428 R    ps ax

once again, thanks for the help.

The problem with the wireless was expected. I think I read somewhere what the ralink sdk wireless driver only worked with an older kernel, hence why it might work on dd-wrt.

Wireless is running on my DIR-600 B2 without issues. By default wireless is disabled so you have to turn it on. As for getting an IP from your ISP you must clone the wan mac address with the one that's registered by the ISP. The mac's on ralink are hardcoded at the moment so you get something like 11:22:33:44:55:66.

(Last edited by boink on 6 Jul 2011, 10:50)

boink wrote:

Wireless is running on my DIR-600 B2 without issues. By default wireless is disabled so you have to turn it on. As for getting an IP from your ISP you must clone the wan mac address with the one that's registered by the ISP. The mac's on ralink are hardcoded at the moment so you get something like 11:22:33:44:55:66.

I thought we already had established that B2 is not the same as B1. Looking at the dmesg I see no wireless interface being detected.

If the wireless is not detected dmesg shows the following messages:
phy0 -> rt2800_init_eeprom: Error - Invalid RF chipset detected.
phy0 -> rt2x00lib_probe_dev: Error - Failed to allocate device.
I don't see this on his log so it seems to work but is disabled.

tried again with a using another build with a more complete luci interface.
i was more succesfull than the last time: was able to connect to internet via router
also i was wrong: the wifi interface is indeed detected, i was able to scan nearby APs however i wasnt able to confiure the interface as access point.
something that bugs me: all changes in the router configuration such as password and other stuff was lost after router reboot

good news:
i managed to get it working using xwrt instead of luci, the outputs for configuration were more useful to get wifi working
got pretty much everything working( wifi,dhcp, ddns,...)
however seems enabling qos causes trouble: every 3 or so minutes a warning shows up at the syslog (WARNING: at net/sched/sch_hfsc.c:1427 0x80d1e9b8() ) and eventually cpu use reaches 100%. dont know if is a kernel bug.
still, i think is safe to say openwrt works for dir-600 b1 (remember, as paradoxmonkey pointed out, that this patch must be aplied for network to work)

boink wrote:

If the wireless is not detected dmesg shows the following messages:
phy0 -> rt2800_init_eeprom: Error - Invalid RF chipset detected.
phy0 -> rt2x00lib_probe_dev: Error - Failed to allocate device.
I don't see this on his log so it seems to work but is disabled.

hello,boink
i have the same problem too,i didn't see the log,but i can see the phy0 in the sys filesystem ,can you tell me how to enable the wireless,waiting for your answer.......

Can I distinguish between B1 and B2 from the shell? This is shell output for a device that on a bottom sticker has the information

H/W Ver.: B2 F/W Ver.: 2.02
nvram get DD_BOARD
Dlink-DIR600 rev b

cat /proc/cpuinfo
system type             : Ralink SoC
processor               : 0
cpu model               : MIPS 24K V4.12
BogoMIPS                : 212.99
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        : mips16 dsp
VCED exceptions         : not available
VCEI exceptions         : not available

cat /tmp/loginprompt
DD-WRT v24-sp2 std (c) 2010 NewMedia-NET GmbH
Release: 08/07/10 (SVN revision: 14896)

The discussion might have continued from here.