OpenWrt Forum Archive

Topic: routerboard RB433GL console

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

hello

I can't get console running on my RB433GL

- there is no output from original loader
- anyway netboot button works, so I can run self prepared openwrt image
- console output works, but it does not accept any char

it's probably disabled somewhere deep in cpu, but documentation for AR1761 is not public available

Q1 anyone knows how to enable it in kernel code?
Q2 is there any open sourced loader for this CPU?

best regards

Q3 is no-uart interpreded somewhere?
this is added by routerboot

here is my command line:

[    0.000000] Kernel command line:  GPIO_RESET=yes no-uart gpio=2867 HZ=4000000
00 mem=128M kmac=00:0C:42:BE:9E:E6 board=433GL boot=0 mlc=2 rootfstype=yaffs noi
nitrd console=ttyS0,115200n8 ip=:::::eth0


Q5 why 'bootconsole disabled' is displayed twice?

[    4.100000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    4.120000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    4.130000] console [ttyS0] enabled, bootconsole disabled
[    4.130000] console [ttyS0] enabled, bootconsole disabled

uhh.. found it!

I just need to setup GPIO9 as input

               __raw_writel(__raw_readl(gpio_base + AR71XX_GPIO_REG_OE) & ~(1 << 9),
                     gpio_base + AR71XX_GPIO_REG_OE);
                //GPIO 10 as output
                __raw_writel(__raw_readl(gpio_base + AR71XX_GPIO_REG_OE) | (1 << 10),
                     gpio_base + AR71XX_GPIO_REG_OE);

I am having the same problem with RB 411GL
Please tell me how to insert the code you have described into my boot image

here it the output from TTL serial soldered to RB 411GL board

[    0.000000] Linux version 3.8.12 (john@UbubtuQuad) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2012.12 r36713) ) #1 Sat May 25 07:31
:46 EDT 2013
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7161 rev 2
[    0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  GPIO_RESET=yes no-uart boot_part_size=4194304 gpio=2355 HZ=340000000 mem=64M kmac=D4:CA:6D:55:92:
EB board=411G boot=0 mlc=3 rootfstype=yaffs noinitrd
[    0.000000] MIPS: no machine found for id '411G', supported machines:
[    0.000000] id                       name
[    0.000000] Generic                  Generic AR71XX/AR724X/AR913X based board
[    0.000000] ALFA-AP96                ALFA Network AP96
[    0.000000] ALFA-NX                  ALFA Network N2/N5
[    0.000000] ALL0258N                 Allnet ALL0258N
[    0.000000] ALL0315N                 Allnet ALL0315N
[    0.000000] AP113                    Atheros AP113
[    0.000000] AP121-MINI               Atheros AP121-MINI
[    0.000000] AP121                    Atheros AP121 reference board
[    0.000000] AP132                    Atheros AP132 reference board
[    0.000000] AP135-020                Atheros AP135-020 reference board
[    0.000000] AP136-020                Atheros AP136-020 reference board
[    0.000000] AP136-010                Atheros AP136-010 reference board
[    0.000000] AP81                     Atheros AP81 reference board
[    0.000000] AP83                     Atheros AP83
[    0.000000] AP96                     Atheros AP96
[    0.000000] AW-NR580                 AzureWave AW-NR580
[    0.000000] CAP4200AG                Senao CAP4200AG
[    0.000000] DB120                    Atheros DB120 reference board
[    0.000000] DIR-615-E4               D-Link DIR-615 rev. E4
[    0.000000] DIR-600-A1               D-Link DIR-600 rev. A1
[    0.000000] DIR-615-C1               D-Link DIR-615 rev. C1
[    0.000000] DIR-825-B1               D-Link DIR-825 rev. B1
[    0.000000] DIR-835-A1               D-Link DIR-835 rev. A1
[    0.000000] DIR-825-C1               D-Link DIR-825 rev. C1
[    0.000000] EW-DORIN-ROUTER          EmbWir-Dorin-Router
[    0.000000] EW-DORIN                 EmbWir-Dorin
[    0.000000] ALL0305                  Allnet ALL0305
[    0.000000] EAP7660D                 Senao EAP7660D
[    0.000000] JA76PF2                  jjPlus JA76PF2
[    0.000000] JA76PF                   jjPlus JA76PF
[    0.000000] JWAP003                  jjPlus JWAP003
[    0.000000] HORNET-UB                ALFA NETWORKS Hornet-UB
[    0.000000] MR600v2                  OpenMesh MR600v2
[    0.000000] MR600                    OpenMesh MR600
[    0.000000] MZK-W04NU                Planex MZK-W04NU
[    0.000000] MZK-W300NH               Planex MZK-W300NH
[    0.000000] NBG460N                  Zyxel NBG460N/550N/550NH
[    0.000000] OM2P-HS                  OpenMesh OM2P HS
[    0.000000] OM2P-LC                  OpenMesh OM2P LC
[    0.000000] OM2P                     OpenMesh OM2P
[    0.000000] PB42                     Atheros PB42
[    0.000000] PB44                     Atheros PB44 reference board
[    0.000000] PB92                     Atheros PB92
[    0.000000] 493G                     MikroTik RouterBOARD 493G
[    0.000000] 493                      MikroTik RouterBOARD 493/AH
[    0.000000] 450G                     MikroTik RouterBOARD 450G
[    0.000000] 450                      MikroTik RouterBOARD 450
[    0.000000] 435G                     MikroTik RouterBOARD 435G
[    0.000000] 433U                     MikroTik RouterBOARD 433UAH
[    0.000000] 433                      MikroTik RouterBOARD 433/AH
[    0.000000] 411U                     MikroTik RouterBOARD 411U
[    0.000000] 411                      MikroTik RouterBOARD 411/A/AH
[    0.000000] 751g                     MikroTik RouterBOARD 751G
[    0.000000] 751                      MikroTik RouterBOARD 751
[    0.000000] 750Gr3                   MikroTik RouterBOARD 750GL
[    0.000000] 750i                     MikroTik RouterBOARD 750
[    0.000000] 951G                     MikroTik RouterBOARD 951G-2HnD
[    0.000000] 2011G                    MikroTik RouterBOARD 2011UAS-2HnD
[    0.000000] 2011L                    MikroTik RouterBOARD 2011L
[    0.000000] RW2458N                  Redwave RW2458N
[    0.000000] TEW-632BRP               TRENDnet TEW-632BRP
[    0.000000] TEW-673GRU               TRENDnet TEW-673GRU
[    0.000000] TEW-712BR                TRENDnet TEW-712BR
[    0.000000] TL-MR3040                TP-LINK TL-MR3040
[    0.000000] TL-MR11U                 TP-LINK TL-MR11U
[    0.000000] TL-MR3020                TP-LINK TL-MR3020
[    0.000000] TL-WR841N-v7             TP-LINK TL-WR841N/ND v7
[    0.000000] TL-MR3420                TP-LINK TL-MR3420
[    0.000000] TL-MR3220                TP-LINK TL-MR3220
[    0.000000] TL-WA7510N               TP-LINK TL-WA7510N v1
[    0.000000] TL-WA901ND               TP-LINK TL-WA901ND
[    0.000000] TL-WA901ND-v2            TP-LINK TL-WA901ND v2
[    0.000000] TL-WDR3500               TP-LINK TL-WDR3500
[    0.000000] TL-WDR4300               TP-LINK TL-WDR3600/4300/4310
[    0.000000] TL-WR741ND               TP-LINK TL-WR741ND
[    0.000000] TL-MR3220-v2             TP-LINK TL-MR3220 v2
[    0.000000] TL-WR741ND-v4            TP-LINK TL-WR741ND v4
[    0.000000] TL-WR841N-v1.5           TP-LINK TL-WR841N v1
[    0.000000] TL-MR3420-v2             TP-LINK TL-MR3420 v2
[    0.000000] TL-WR841N-v8             TP-LINK TL-WR841N/ND v8
[    0.000000] TL-WR941ND               TP-LINK TL-WR941ND
[    0.000000] TL-WR1041N-v2            TP-LINK TL-WR1041N v2
[    0.000000] TL-WR1043ND              TP-LINK TL-WR1043ND
[    0.000000] TL-WR2543N               TP-LINK TL-WR2543N/ND
[    0.000000] TL-WR703N                TP-LINK TL-WR703N v1
[    0.000000] TL-WR720N-v3             TP-LINK TL-WR720N v3
[    0.000000] UBNT-LS-SR71             Ubiquiti LS-SR71
[    0.000000] UBNT-LSX                 Ubiquiti LSX
[    0.000000] UBNT-RSPRO               Ubiquiti RouterStation Pro
[    0.000000] UBNT-RS                  Ubiquiti RouterStation
[    0.000000] UAP-PRO                  Ubiquiti UniFi AP Pro
[    0.000000] UBNT-U20                 Ubiquiti UniFiAP Outdoor
[    0.000000] UBNT-UF                  Ubiquiti UniFi
[    0.000000] UBNT-AR                  Ubiquiti AirRouter
[    0.000000] UBNT-NM                  Ubiquiti Nanostation M
[    0.000000] UBNT-RM                  Ubiquiti Rocket M
[    0.000000] UBNT-BM                  Ubiquiti Bullet M
[    0.000000] UBNT-XM                  Ubiquiti Networks XM (rev 1.0) board
[    0.000000] WHR-HP-GN                Buffalo WHR-HP-GN
[    0.000000] WHR-G301N                Buffalo WHR-G301N
[    0.000000] WHR-HP-G300N             Buffalo WHR-HP-G300N
[    0.000000] WLAE-AG300N              Buffalo WLAE-AG300N
[    0.000000] WNDAP360                 Netgear WNDAP360
[    0.000000] WNDR3700                 NETGEAR WNDR3700/WNDR3800/WNDRMAC
[    0.000000] WNDR4300                 NETGEAR WNDR4300
[    0.000000] WNR2000                  NETGEAR WNR2000
[    0.000000] WNR2000V3                NETGEAR WNR2000 V3
[    0.000000] WP543                    Compex WP543
[    0.000000] WPE72                    Compex WPE72
[    0.000000] WRT160NL                 Linksys WRT160NL
[    0.000000] WRT400N                  Linksys WRT400N
[    0.000000] WZR-HP-G300NH            Buffalo WZR-HP-G300NH
[    0.000000] WZR-HP-G300NH2           Buffalo WZR-HP-G300NH2
[    0.000000] WZR-HP-AG300H            Buffalo WZR-HP-AG300H/WZR-600DHP
[    0.000000] WZR-HP-G450H             Buffalo WZR-HP-G450H
[    0.000000] ZCN-1523H-5              Zcomax ZCN-1523H-5
[    0.000000] ZCN-1523H-2              Zcomax ZCN-1523H-2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 58268k/65536k available (2164k kernel code, 7268k reserved, 605k data, 3308k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 512
[    0.070000] NET: Registered protocol family 16
[    0.070000] MIPS: machine is Generic AR71XX/AR724X/AR913X based board
[    0.080000] bio: create slab <bio-0> at 0
[    0.090000] Switching to clocksource MIPS
[    0.100000] NET: Registered protocol family 2
[    0.100000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.100000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.110000] TCP: Hash tables configured (established 512 bind 512)
[    0.110000] TCP: reno registered
[    0.120000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.120000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.130000] NET: Registered protocol family 1
[    3.880000] msgmni has been set to 113
[    3.880000] io scheduler noop registered
[    3.890000] io scheduler deadline registered (default)
[    3.890000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
~    3.920000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A

Console and code on RB411GL should not be a problem.
You have to add new arch named '411G' by some copy-paste-replace for example from '411' architecture.

Anyway there is more hardcore with 'L' boards.
No one have a schematics (or description) showing how NAND is connected to CPU's GPIOs.

If you need more details, please ask.

Best regards.

Thanks for your help.
I had tried serial console before but had discovered Mikrotik has disabled it. When you posted that it in fact did work with a OpenWRT boot image I decided to give it another try.

I'll need to do some more reading to find what areas I need to change.

I'll compile another image and give it a try.

(Last edited by christineedadrink on 25 May 2013, 21:01)

Can you direct me to instructions on how to add this arch to get it to boot?
I assume this is a manual edit of one of the config files. I can't find this option in make menuconfig.
Which file needs to be edited and where is it located? Thanks for any help.

It's not only configuration, you have to write some new code.

First of all look into mach-rb4xx.c and add new arch for example:
MIPS_MACHINE(ATH79_MACH_RB_411G, "411G", "MikroTik RouterBOARD 411G",
             rb411g_setup);

Then write a new rb411g_setup function (for start just copy rb411_setup)

Before compilation this file is located in target/linux/ar71xx/files/arch/mips/ath79 dir.
During compilation copies of this file are used.

To define ATH79_MACH_RB_411G you have to create new version of arch/mips/ath79/machtypes.h
by creating new 610-MIPS-ath79-openwrt-machines.patch

You may also need to modify some scripts
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/etc/diag.sh

Hope, don't forgot something.

Everything should work expect NAND.

Good luck.

Ah.... those small letters makes big differences in microtics boards.
RB411G ethernet is not like in RB411, you have probably enable it in different way.

Thanks so much for the direction!
I'm out of work so I'll have some time to tinker and see what happens.

I have also bought 433GL and it seems like a mistake for now. I can't get console working and my default netboot image seems not to boot. I thought it was same sa 433 and 435G ...

Small letters at the end of board name makes big differences. Different switch chipsets are often used. Also all *L versions have NAND connected is some magic way to GPIOs.

seems so. But 435G was very good investment.. works like a charm when image is generated for 433x.. So I thought 433GL wouldn't bw much different..

Does anyone have working openwrt on it?

Is anyone able to get 411GL flashed (not just netboot) with openwrt ? Could someone please answer these questions. I don't have the board yet. Decision to buy or not depends on whether it can be successfully used with openwrt

1) What GigE chip does it use and is the driver included in openwrt ?

2) Where to solder TTL serial  ? I have been staring at the board image quite a while and can't find any header or pin holes

Appreciate if someone can post detailed instructions of serial soldering and openwrt changes needed if any.

Found the TTL pins (3v3, GND, TX, RX) under miniPCI card.  Now, if someone could post instructions to flash OpenWRT on this, that would be great

The discussion might have continued from here.