OpenWrt Forum Archive

Topic: OpenWrt on RB493G

The content of this topic has been archived between 23 Apr 2018 and 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I have been trying to deploy OpenWrt for RB493GAH (AR7161 + 2x AR8316, 9xEth). I compiled latest trunk (r25819) with modified some files:

$ svn diff
Index: target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c
===================================================================
--- target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c    (revision 25819)
+++ target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c    (working copy)
@@ -341,3 +341,30 @@
 
 MIPS_MACHINE(AR71XX_MACH_RB_493, "493", "MikroTik RouterBOARD 493/AH",
          rb493_setup);
+
+static void __init rb493g_setup(void)
+{
+    rb4xx_generic_setup();
+
+    spi_register_board_info(rb4xx_microsd_info,
+                ARRAY_SIZE(rb4xx_microsd_info));
+
+
+    ar71xx_add_device_mdio(0x3fffffe0);
+
+    ar71xx_init_mac(ar71xx_eth0_data.mac_addr, ar71xx_mac_base, 1);
+    ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
+    ar71xx_eth0_data.phy_mask = BIT(0);
+
+    ar71xx_init_mac(ar71xx_eth1_data.mac_addr, ar71xx_mac_base, 0);
+    ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
+    ar71xx_eth1_data.phy_mask = BIT(4);
+
+    ar71xx_add_device_eth(1);
+    ar71xx_add_device_eth(0);
+
+    ar71xx_pci_init(ARRAY_SIZE(rb4xx_pci_irqs), rb4xx_pci_irqs);
+}
+
+MIPS_MACHINE(AR71XX_MACH_RB_493G, "493G", "MikroTik RouterBOARD 493G/AH",
+         rb493g_setup);
Index: target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h
===================================================================
--- target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h    (revision 25819)
+++ target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h    (working copy)
@@ -31,6 +31,7 @@
     AR71XX_MACH_RB_450,    /* MikroTik RouterBOARD 450 */
     AR71XX_MACH_RB_450G,    /* MikroTik RouterBOARD 450G */
     AR71XX_MACH_RB_493,    /* Mikrotik RouterBOARD 493/493AH */
+    AR71XX_MACH_RB_493G,    /* Mikrotik RouterBOARD 493G/493GAH */
     AR71XX_MACH_RB_750,    /* MikroTik RouterBOARD 750 */
     AR71XX_MACH_PB42,    /* Atheros PB42 */
     AR71XX_MACH_PB44,    /* Atheros PB44 */

How values can be used in ar71xx_eth?_data.phy_mask, ar71xx_add_device_mdio?

When I boot from network the switch driver is attached only on eth1 and this device work well. Device eth0 dosn't work:-(

root@OpenWrt:/# dmesg
...
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: connected to PHY at ag71xx-mdio:04 [uid=004dd041, driver=Atheros AR8216/AR8316]
eth1: Atheros AG71xx at 0xb9000000, irq 4
eth1: AR8316 switch driver attached.
eth1: connected to PHY at ag71xx-mdio:00 [uid=004dd041, driver=Atheros AR8216/AR8316]
...

Do you have any idea?

I have the same issue. Please let me know if you find an answer.

I have received a RB493G and started working on it. As soon as I verified the NAND is working as it should I'll push it to OpenWrt. In the mean time, feel free to play with my github branch, or locally apply these three commits.

Both switches and the leds are working, the reset button is not (haven't found out yet how to get its state). I haven't tested the card reader yet (I don't have a card wink, nor have I tested whether the NAND works correctly with OpenWrt (there are reports of writes not working).

Edit: In case you are interested in the switch/port mapping (don't expect any sanity there):

              Eth9  Eth8  Eth7  Eth6  Eth5  Eth4  Eth3  Eth2
              [1/1] [1/3] [1/4] [1/2] [0/1] [0/4] [0/3] [0/2]
Eth1/PoE [1/5]

Edit 2: Just flashed it with wget2nand and ... it works. So writing to NAND seems to be working fine. I'll test USB (somehow missed it), then I'll probably commit it in the next few days.

(Last edited by KanjiMonster on 9 Oct 2011, 20:41)

In case anybody cares, RB493G support is now in trunk. I won't add the reset button, since it shares a GPIO line with the MDIO bus of the second AR8316, and this setup isn't really supported in Linux, so it would need a hack. And since the reset button is (IMO) not really good reachable, I decided to not bother.

Sweet!  Thank you!

Is VLAN fully functional on the RB493G? It appears this router if fully up and running with the exception of the reset button. Is that true? I'm getting ready to drop some serious coin on the router, 2 mini-pci radios, MicroSD card, case, 4 antennas, 4 antenna leads, power supply and the USB power injector and want to make sure it runs OpenWrt as well as my RouterStation Pro. Wow, after typing all that out I'm going to have to reconsider this upgrade wink

I love the specs of this router: Lots of RAM and NAND, 9 Gigabit Ethernet ports, 3 mini-pci slots, MicroSD card slot, USB 2.0 port.

(Last edited by robrob on 1 Nov 2011, 17:27)

robrob wrote:

Is VLAN fully functional on the RB493G? It appears this router if fully up and running with the exception of the reset button. Is that true? I'm getting ready to drop some serious coin on the router, 2 mini-pci radios, MicroSD card, case, 4 antennas, 4 antenna leads, power supply and the USB power injector and want to make sure it runs OpenWrt as well as my RouterStation Pro. Wow, after typing all that out I'm going to have to reconsider this upgrade wink

I love the specs of this router: Lots of RAM and NAND, 9 Gigabit Ethernet ports, 3 mini-pci slots, MicroSD card slot, USB 2.0 port.

Edit: Yes, VLAN works as good as on the RB450G or on the RS Pro.

Note the caveats: the switches are separate and only connected through the CPU (so you have to actively bridge them), and the NAND isn't working for some (it looks like the ST Micro NAND isn't properly driven by linux/has timing issues - Samsungs NANDs work fine). And the USB is unpowered, so you have to use something with external power (be it a powered hub).

KM

Thanks Kanji.

Hi,
I have in RB495G installed openWRT and I can't save file or directory on nand memory. When I after reboot file or directory which i make missing. Please help.

Bad eraseblock 673 at 0x000005420000
Bad eraseblock 802 at 0x000006440000
Bad eraseblock 806 at 0x0000064c0000
Bad eraseblock 812 at 0x000006580000
Bad eraseblock 814 at 0x0000065c0000
Bad eraseblock 856 at 0x000006b00000
Bad eraseblock 943 at 0x0000075e0000
Bad eraseblock 945 at 0x000007620000
Bad eraseblock 952 at 0x000007700000
Bad eraseblock 954 at 0x000007740000
Bad eraseblock 966 at 0x0000078c0000
Creating 3 MTD partitions on "NAND01GW3B2CN6":
0x000000000000-0x000000040000 : "booter"
0x000000040000-0x000000400000 : "kernel"
0x000000400000-0x000008000000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "NAND01GW3B2CN6"
GPIO Bitbanged MDIO: probed
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: AR8316 switch driver attached.
ar8316: Using port 4 as switch port
eth1: Atheros AG71xx at 0xb9000000, irq 4
eth1: AR8316 switch driver attached.
ar8316: Using port 4 as switch port
Atheros AR71xx hardware watchdog driver version 0.1.0
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>
yaffs: dev is 32505862 name is "mtdblock6" ro
yaffs: passed flags ""
VFS: Mounted root (yaffs filesystem) readonly on device 31:6.
Freeing unused kernel memory: 188k freed
Button Hotplug driver version 0.4.1
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
eth0: link up (1000Mbps/Full duplex)
- regular preinit -
- init -
eth0: link down
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 8
NET: Registered protocol family 20
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR71xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
nf_conntrack version 0.5.0 (4012 buckets, 16048 max)
ath_hal: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, XR)
ath_pci: trunk
wlan: trunk
wlan: mac acl policy registered
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ar71xx-ohci ar71xx-ohci: Atheros AR71xx built-in OHCI controller
ar71xx-ohci ar71xx-ohci: new USB bus registered, assigned bus number 2
ar71xx-ohci ar71xx-ohci: irq 14, io mem 0x1c000000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver sierra
sierra: v.1.7.40:USB Driver for Sierra Wireless USB modems
usbcore: registered new interface driver sierra_net
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
usbcore: registered new interface driver cxacru
usbcore: registered new interface driver speedtch
[ueagle-atm] driver ueagle 1.4 loaded
usbcore: registered new interface driver ueagle-atm
cm109: Keymap for Komunikate KIP1000 phone loaded
usbcore: registered new interface driver cm109
cm109: CM109 phone driver: 20080805 (C) Alfred E. Heggestad
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver yealink
yealink: yld-20051230:Yealink phone driver
fuse init (API version 7.16)
nand_erase_nand: attempt to erase a bad block at page 0x00002000

Please press Enter to activate this console. device eth0 entered promiscuous mode
eth1: link up (1000Mbps/Full duplex)
device eth1.1 entered promiscuous mode
device eth1 entered promiscuous mode
br-lan: port 2(eth1.1) entering forwarding state
br-lan: port 2(eth1.1) entering forwarding state
eth0: link up (1000Mbps/Full duplex)
br-lan: port 1(eth0) entering forwarding state
br-lan: port 1(eth0) entering forwarding state



BusyBox v1.19.3 (2011-11-15 14:15:58 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
 ATTITUDE ADJUSTMENT (bleeding edge, r29152) ----------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/# a
arping    ash       ath_info  athchans  athkey    athstats  awk
root@OpenWrt:/# a
arping    ash       ath_info  athchans  athkey    athstats  awk
root@OpenWrt:/#
80211stats         find               mesg               strings
[                  firstboot          mkdir              swconfig
[[                 free               mkfifo             switch_root
arping             fw                 mknod              sync
ash                grep               mktemp             sysctl
ath_info           gunzip             mount              syslogd
athchans           gzip               mount_root         sysupgrade
athkey             halt               mtd                tail
athstats           head               mv                 tar
awk                hexdump            nc                 tee
basename           hostapd            netmsg             telnet
brctl              hostid             netstat            telnetd
bunzip2            hotplug-call       nice               test
busybox            hotplug2           nslookup           time
bzcat              hwclock            ntpd               top
cat                id                 opkg               touch
chgrp              ifconfig           passwd             tr
chmod              ifdown             pgrep              traceroute
chown              ifup               pidof              true
chroot             init               ping               uci
clear              insmod             ping6              udevtrigger
cmp                ipcalc.sh          pivot_root         udhcpc
cp                 iptables           pkill              umount
crond              iptables-restore   poweroff           uname
crontab            iptables-save      pppd               uniq
cut                iwconfig           printf             uptime
date               iwlist             ps                 vconfig
dbclient           iwpriv             pwd                vi
dd                 kill               reboot             watchdog
df                 killall            reset              wc
dirname            klogd              rm                 wget
dmesg              led.sh             rmdir              wget2nand
dnsmasq            less               rmmod              which
dropbear           ln                 route              wifi
dropbearkey        lock               scp                wlanconfig
du                 logger             sed                wpa_supplicant
echo               login.sh           seq                wpad
egrep              logread            sh                 xargs
env                ls                 sleep              yes
expr               lsmod              sort               zcat
false              madwifi_multi      ssh
fgrep              md5sum             start-stop-daemon
root@OpenWrt:/# ls
bin         lib         overlay     root        tmp         www
dev         lost+found  proc        sbin        usr
etc         mnt         rom         sys         var
root@OpenWrt:/# led.sh
root@OpenWrt:/# led.sh
root@OpenWrt:/# led.sh
root@OpenWrt:/# led.sh
root@OpenWrt:/# led.sh
root@OpenWrt:/# led.sh
root@OpenWrt:/# top
Mem: 11236K used, 245576K free, 0K shrd, 0K buff, 4536K cached
CPU:   0% usr   0% sys   0% nic 100% idle   0% io   0% irq   0% sirq
Load average: 0.05 0.05 0.05 1/32 1341
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
  535     1 root     S     1492   1%   0% /bin/ash --login
  589     1 root     S     1484   1%   0% /sbin/syslogd -C16
 1207     1 root     S     1484   1%   0% /sbin/udhcpc -t 0 -i eth1.2 -b -p /va
    1     0 root     S     1480   1%   0% init
 1288     1 root     S     1476   1%   0% /usr/sbin/ntpd -n -p 0.openwrt.pool.n
 1284     1 root     S     1476   1%   0% /sbin/watchdog -t 5 /dev/watchdog
 1341   535 root     R     1472   1%   0% top
  591     1 root     S     1464   1%   0% /sbin/klogd
 1312     1 root     S     1136   0%   0% /usr/sbin/dropbear -P /var/run/dropbe
 1274     1 nobody   S      928   0%   0% /usr/sbin/dnsmasq -K -D -y -Z -b -E -
  593     1 root     S      800   0%   0% /sbin/hotplug2 --override --persisten
    6     2 root     SW       0   0%   0% [rcu_kthread]
    5     2 root     SW       0   0%   0% [kworker/u:0]
  235     2 root     SW       0   0%   0% [kworker/0:1]
   62     2 root     SW       0   0%   0% [sync_supers]
    2     0 root     SW       0   0%   0% [kthreadd]
    3     2 root     SW       0   0%   0% [ksoftirqd/0]
  198     2 root     SW       0   0%   0% [mtdblock5]
    7     2 root     SW<      0   0%   0% [khelper]
^X^C8     2 root     SW       0   0%   0% [kworker/u:1]
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# cat /dev/mtd
mtd0       mtd1ro     mtd3       mtd4ro     mtd6       mtdblock1  mtdblock4
mtd0ro     mtd2       mtd3ro     mtd5       mtd6ro     mtdblock2  mtdblock5
mtd1       mtd2ro     mtd4       mtd5ro     mtdblock0  mtdblock3  mtdblock6
root@OpenWrt:/# cat /dev/mtd
mtd0       mtd1ro     mtd3       mtd4ro     mtd6       mtdblock1  mtdblock4
mtd0ro     mtd2       mtd3ro     mtd5       mtd6ro     mtdblock2  mtdblock5
mtd1       mtd2ro     mtd4       mtd5ro     mtdblock0  mtdblock3  mtdblock6
root@OpenWrt:/# cat /dev/mtd
cat: can't open '/dev/mtd': No such file or directory
root@OpenWrt:/# cat /dev/mtd
mtd0       mtd1ro     mtd3       mtd4ro     mtd6       mtdblock1  mtdblock4
mtd0ro     mtd2       mtd3ro     mtd5       mtd6ro     mtdblock2  mtdblock5
mtd1       mtd2ro     mtd4       mtd5ro     mtdblock0  mtdblock3  mtdblock6
root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0000b000 00001000 "routerboot"
mtd1: 00001000 00001000 "hard_config"
mtd2: 00002000 00001000 "bios"
mtd3: 00001000 00001000 "soft_config"
mtd4: 00040000 00020000 "booter"
mtd5: 003c0000 00020000 "kernel"
mtd6: 07c00000 00020000 "rootfs"
root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type yaffs (rw,noatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=128408k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
root@OpenWrt:/#
KanjiMonster wrote:

In case anybody cares, RB493G support is now in trunk.

There is no Wiki page for the RB493G in the Table of Hardware.

Can you set up a Wiki page for OpenWRT-beginners, please?

Thanx,

Renne

renne wrote:

There is no Wiki page for the RB493G in the Table of Hardware.

Now, there is a Wiki-article for the RB493G! wink

I am trying to get a serial console to my newly acquired RB493G,but so far unsuccessful. Would be great to get some confirmation on what I have done so far to help me track down what I need to do. Disclaimer: I have not set up a serial console before. So here it goes:

Checked which port the serial uses (needed a trip in motherboard's bios to get it going):

$ dmesg|grep tty
[    0.000000] console [tty0] enabled
[    1.380983] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.464579] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[10345.017177] cdc_acm 2-6:1.1: ttyACM0: USB ACM device

Installed minicom and set it up according to the wiki:
http://ubuntuone.com/2wo2hjZlEavBMt4CpbRImH

Acquired a null-modem cable (or at least a colleague of mine claimed it was a null-modem cable) and a gender changer (female-female). Connected cable to router and PC, started minicom, plugged in power cord to the router. Lights and beeps from the router, but no change in the minicom window. Also tried starting minicom shortly after powering the router, but only the welcome screen of minicom.

So is there something obvious I am not doing here? On the hardware side, I would like to test on one more PC, and I am also thinking about obtaining another cable, or somehow try to confirm that it indeed is a null-modem cable (I will try to check the wiring).

(Last edited by Del on 26 Dec 2012, 12:15)

Del wrote:

I am trying to get a serial console to my newly acquired RB493G,but so far unsuccessful.
Installed minicom and set it up according to the wiki:
http://ubuntuone.com/2wo2hjZlEavBMt4CpbRImH

Looks good. :-)

Del wrote:

Acquired a null-modem cable (or at least a colleague of mine claimed it was a null-modem cable) and a gender changer (female-female).

You probably have a extension cable which is wired 1:1. If you add the gender changer, it's still 1:1. Null-modem cables are crossed and have a female connector on both sides.
Have a look at Wikipedia. Do you have a continuity tester?

I use a Hama Data Transfer Cable, USB-A Plug - 9-pin D-Socket, 1.95 m.

Finally, ended up with the USB-cable from Amazon, and I have serial console smile

Also got netboot working, but the openwrt-ar71xx-nand-vmlinux-initramfs.elf image linked from the wiki does not work, it does not support 493G. I built my own image from trunk, and it works nicely. However, running wget2nand fails. Wget2nand attempts to
download the file openwrt-ar71xx-nand-vmlinux-lzma.elf, but this file does not exist (not in any of the openwrt downloads, nor among the files I built). How did you get about this?

Edit: There is a file  openwrt-ar71xx-nand-vmlinux-initramfs-lzma.elf, will that one do the trick?

(Last edited by Del on 8 Jan 2013, 10:42)

Seems like I am slowly approaching a solution, one more obstacle left.

Found the relevant changeset for wget2nand:
https://dev.openwrt.org/changeset/34366
so it seems a namechange for the vmlinux file took place right after 12.09-RC1 was released. Fair enough, I changed the filename back in the wget2nand script only to find out that my RB493G contains a new flash chip from Toshiba. This flash chip is unfortunately not supported by the kernel following 12.09-RC1, it gave me a kernel panic. Knowing the issues earlier from https://dev.openwrt.org/ticket/10272 I figured it was natural to start testing with the kernel in trunk to see if support for the Toshiba nand is already in the kernel. Now for some reason the nand images are nowhere to be found in trunk: http://downloads.openwrt.org/snapshots/trunk/ar71xx/ so off to compile some new images. I included some extra software in the build, only to find out that it made my initramfs image to big to fit the kernel partition on the nand, there really is little headroom. After a more minimal compile I let the file openwrt-ar71xx-nand-vmlinux-initramfs-lzma.elf play the role of the kernel, and copied it over to the kernel partition. Unpacked the openwrt-ar71xx-nand-rootfs.tar.gz file to the rootfs partition (just like the wget2nand script does). Now it actually boots fine (no error messages related to the Toshiba nand), but it does not mount the root partition during boot, so I end up with no storage space for opkg to do it's magic. A simple

cat /proc/mounts

does not list any root partition. Nothing (not even the system ssh key, it provides a new one every boot) is remembered between reboots.

Would be great to some activity beisdes my own in this thread smile

BTW, I did a bit of wiki-editing too: http://wiki.openwrt.org/toh/mikrotik/rb493g

(Last edited by Del on 8 Jan 2013, 17:58)

Can you try to do a netboot with initramfs of 12.09-beta2 and run

wget2nand http://downloads.openwrt.org/attitude_adjustment/12.09-beta2/ar71xx/nand/

on your RB493G?

If it fails, try to format the NAND via the bootloader of the RB493G and try again, please.

Thanks for keeping me company smile

Just got to the bottom of it. I had to disable the ramfs option in make menuconfig, then it exposed the jffs2 and squashfs images (which is of no use), but it also built the kernel file openwrt-ar71xx-nand-vmlinux-lzma.elf. I just copied it over to the kernel partition on the RB493G, and that did the trick. It mounts the root filesystem fine, and I am already up and running with the net, persistent through reboots. Have to admit I scratched my head more than once today ;-p Really feels good though.

Now I need to figure out why I only have 2.4GHz radio, I thought it also had 5GHz (it's http://routerboard.com/R52Hn )

Did you have a look at the wiki?

BTW, as mentioned, I have to use trunk. Even RC1 doesn't support the Toshiba nand on my board.

(Last edited by Del on 8 Jan 2013, 22:45)

Del wrote:

Have to admit I scratched my head more than once today ;-p Really feels good though.

Routerboards are quite complicated to handle, but 9x 1000Base-T + 3x Mini-PCI ... wink

Del wrote:

Now I need to figure out why I only have 2.4GHz radio, I thought it also had 5GHz (it's http://routerboard.com/R52Hn )

Seems to be like my R52nM with 2 dBm more transmit power. If I remind well I prefered the R52nM over the R52Hn because of less power consumption. But even with the 2.4 GHz antennas my Nexus 4 can connect with OpenWrt @ 5 GHz. In which country do you live btw. which country did you select for WLAN?

Del wrote:

Did you have a look at the wiki?

Gets better with your help! smile

Del wrote:

BTW, as mentioned, I have to use trunk. Even RC1 doesn't support the Toshiba nand on my board.

It seems Mikrotik switches nand vendors every quarter. And it seems there is no revision number on the PCB sad
Maybe you can add the model number of your Toshiba nand chip to the 'Flash-Chip'-line in the hardware info table of the Wiki.

renne wrote:

Routerboards are quite complicated to handle, but 9x 1000Base-T + 3x Mini-PCI ... wink

Indeed, I now have three ports free. The hardware is quite capable too. It is more snappy than my old router (identical CPU, so storage and/or memory is better, not sure I am up to benchmarking that just yet, need a little break now).

renne wrote:

Seems to be like my R52nM with 2 dBm more transmit power. If I remind well I prefered the R52nM over the R52Hn because of less power consumption. But even with the 2.4 GHz antennas my Nexus 4 can connect with OpenWrt @ 5 GHz. In which country do you live btw. which country did you select for WLAN?

I live in Norway, it is currently set for US, no different from my previous router where both radios worked fine. There really is no trace of the second radio on this thing, guess I will have to figure out how ath9k advertise the radios.

renne wrote:

It seems Mikrotik switches nand vendors every quarter. And it seems there is no revision number on the PCB sad
Maybe you can add the model number of your Toshiba nand chip to the 'Flash-Chip'-line in the hardware info table of the Wiki.

I added both of the other known chips.

Already replaced my old router, now I need to get the configuration finished. First up is setting up a guest network. I made a user-friendly walk-through of it on the wiki, it is one of those cases where I find CLI less efficient:
http://wiki.openwrt.org/doc/recipes/gue … binterface

I also plan to get openvpn server up and running, but it seems the Luci functionality is broken and the package removed. Not sure how to allocate the time to learn lua, learn the ways of luci, and then get the openvpn part up to speed again. Life really is too short.

Bah, just figured out the radio. There is of course only one radio, but I am free to choose from both 2.4GHz and 5GHz when I set the channel for a wireless network. I can create multiple networks, but they will use the same radio.

Del wrote:

The hardware is quite capable too. It is more snappy than my old router (identical CPU, so storage and/or memory is better, not sure I am up to benchmarking that just yet, need a little break now).

I was really impressed by the 30 MByte/s Samba speed.

Del wrote:

I live in Norway, it is currently set for US, no different from my previous router where both radios worked fine. There really is no trace of the second radio on this thing, guess I will have to figure out how ath9k advertise the radios.

You should use the setting for Norway as there are a channel tables based on national regulations to avoid interference with other systems (like weather-, flight- or military radar). Unfortunately the Linux kernel isn't capable to handle 5500 - 5700 MHz, yet.
For dual-band you need a second card and another two antennas.

Del wrote:

I added both of the other known chips. First up is setting up a guest network. I made a user-friendly walk-through of it on the wiki, it is one of those cases where I find CLI less efficient:
http://wiki.openwrt.org/doc/recipes/gue … binterface

Great! smile

Del wrote:

I also plan to get openvpn server up and running, but it seems the Luci functionality is broken and the package removed.

Ouch - OpenVPN is on my todo list, too.

(Last edited by renne on 9 Jan 2013, 13:21)

OpenVPN is a rather critical functionality for a router. We can of course set it up the standard CLI way, but lacking a user friendly route will shut out a whole lot of users.

30MBytes/s is really impressive. Is that from a USB attached disk? It could very well be the harddrive that poses a limit. I will try to find some time to do some benching of it. Sharing a ramdisk over samba should provide good numbers (and this baby  has a lot of ram).

Del wrote:

OpenVPN is a rather critical functionality for a router. We can of course set it up the standard CLI way, but lacking a user friendly route will shut out a whole lot of users.

Which means writing tickets to get it fixed until final release. Did you try the SD-card-reader?