Support for MikroTik Groove 52Hpn

any support for mikrotik groove 52? i'm not an expert openwrt user but love it, it 's possible install openwrt on this device?

hi after long time i finaly booted the grove 52 from ram, i found an old chaos calmer edition on old openwrt forum. now wich firmware i should try to install on it?

hi, i found this recent guide! it's for the SXT 2nD r3, it has SPI NOR flash,same as the groove. the guide say;

  1. Boot openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf using a DHCP+TFTP server.
  2. Erase the "firmware" partition using the mtd command. This should
    no longer be required once this patch is merged.
  3. Use sysupgrade to install to flash. The file
    openwrt-ar71xx-mikrotik-rb-nor-flash-16M-squashfs-sysupgrade.bin
    should be used.
    so what's the right command to erase firmware partition? any help please?
cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0000e000 00010000 "routerboot"
mtd1: 00001000 00010000 "hard_config"
mtd2: 00001000 00001000 "soft_config"
mtd3: 00180000 00010000 "kernel"
mtd4: 00180000 00010000 "rootfs"
mtd5: 00ce0000 00010000 "ubifs"

so wich partition i should remove?

As a warning, following directions for a different device, even with the same chips, can easily brick your device. That you see “ubifs” and not “firmware” should be a huge red flag.

Edit:

I don't see your device listed as supported at https://openwrt.org/toh/start?dataflt[Brand*~]=Mikrotik

Perhaps it is known by a different model number, but unless there is an image for your specific device, you will probably need to port OpenWrt to it before you flash anything.

jeff i bricked the router 4 times, this is driving me crazy.

It may be that you need to port OpenWrt to the device. Each device needs a complete hardware description as even the same chips can be "wired up" differently on different boards. Even with the same consumer name, different versions may require different firmware. Sometimes even within the same version if something as simple as the manufacturer of the flash changes. Past how the board is wired, it is also how the data is stored on the flash by the manufacturer. There is no "standard" place for things like MAC addresses or cal data. Flashing the wrong image can overwrite this data, which, un less backed up, can't be recovered and is different for each individual unit produced, even among the same product name and version.

just offtopic so others people don't make the same mistake. this unit is really a joke, the radio have good tranfer power but at the same time it can't hear, so looks like the radio it 's not good balanced. also the transformer does not keep attached to the wall socket, I had to tie it to make work. don't buy this unit! sorry for the offtopic

1 Like

you should provide iw dumps from both ends so that folks here can figure out what is wrong with it. also exact model name of the device.

1 Like

ok, if you guys say what i need post and the right command terminal i'll be happy to help to support this device. side note, this could be the only one outdoor device openWRT dual band ath9k. right now i have the device at another home, tomorrow i' ll get it.

hi, how i can add this old patch at build sistem please?


--- target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
2013-12-16 18:08:51.000000000 +0000
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
2014-01-25 04:40:49.000000000 +0000
@@ -174,3 +174,49 @@
}

MIPS_MACHINE_NONAME(ATH79_MACH_RB_711GR100, "711Gr100", rb711gr100_setup);
+
+static struct gpio_led rbgroove_leds_gpio[] __initdata = {
+ {
+ .name = "rbgroove:wlan:1",
+ .gpio = 0,
+ .active_low = 0,
+ }, {
+ .name = "rbgroove:wlan:2",
+ .gpio = 1,
+ .active_low = 0,
+ }, {
+ .name = "rbgroove:wlan:3",
+ .gpio = 2,
+ .active_low = 0,
+ }
+};
+
+static void __init rbgroove_setup(void)
+{
+ const struct rb_info *info;
+
+ info = rb_init_info((void *) KSEG1ADDR(0x1f000000), 0x10000);
+ if (!info)
+ return;
+
+ rb711gr100_init_partitions(info);
+
+ ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_MII_GMAC0);
+
+ ath79_register_mdio(0, 0x0);
+
+ ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 0);
+ ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
+ ath79_eth0_data.phy_mask = BIT(0);
+
+ ath79_register_eth(0);
+ rb711gr100_wlan_init();
+
+ platform_device_register_simple("rb91x-nand", -1, NULL, 0);
+
+ ath79_register_leds_gpio(-1, ARRAY_SIZE(rbgroove_leds_gpio),
+ rbgroove_leds_gpio);
+}
+
+MIPS_MACHINE(ATH79_MACH_RB_GROOVE, "groove-52", "MikroTik 52HPn",
+ rbgroove_setup);
--- target/linux/ar71xx/patches-3.10/703-MIPS-ath79-add-RB91x-support.patch
2013-12-16 18:08:51.000000000 +0000
+++ target/linux/ar71xx/patches-3.10/703-MIPS-ath79-add-RB91x-support.patch
2014-01-25 05:02:47.000000000 +0000
@@ -5,6 +5,7 @@
ATH79_MACH_RB_493, /* Mikrotik RouterBOARD 493/493AH */
ATH79_MACH_RB_493G, /* Mikrotik RouterBOARD 493G */
+ ATH79_MACH_RB_711GR100, /* Mikrotik RouterBOARD
911/912 boards */
++ ATH79_MACH_RB_GROOVE, /* Mikrotik Groove 52HPn */
ATH79_MACH_RB_750, /* MikroTik RouterBOARD 750 */
ATH79_MACH_RB_750G_R3, /* MikroTik RouterBOARD 750GL */
ATH79_MACH_RB_751, /* MikroTik RouterBOARD 751 */

i did some progress, i'm close but some help needed. i booted it but in etc/config are missing network and wireless, i aslo compiled with luci, but luci too is missing. so the intitram have ported it to failsafe mode.
log:

================= FAILSAFE MODE active ================
special commands:
* firstboot	     reset settings to factory defaults
* mount_root	 mount root-partition with config files

after mount_root:
* passwd			 change root's password
* /etc/config		    directory with config files

for more help see:
https://openwrt.org/docs/guide-user/troubleshooting/
- failsafe_and_factory_reset
- root_password_reset
=======================================================


root@(none):~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0000e000 00010000 "routerboot"
mtd1: 00001000 00010000 "hard_config"
mtd2: 00001000 00010000 "bios"
mtd3: 0000f000 00010000 "routerboot2"
mtd4: 00001000 00001000 "soft_config"
mtd5: 00fe0000 00010000 "firmware"
root@(none):~# cat /proc/cpuinfo
system type		: Atheros AR9342 rev 3
machine			: MikroTik RouterBOARD Groove A-52HPn r2
processor		: 0
cpu model		: MIPS 74Kc V4.12
BogoMIPS		: 299.82
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]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16 dsp dsp2
Options implemented	: tlb 4kex 4k_cache prefetch mcheck ejtag llsc dc_aliases perf_cntr_intr_bit nan_legacy nan_2008 perf
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

root@(none):~# cat /proc/devices
Character devices:
  1 mem
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
 10 misc
 90 mtd
128 ptm
136 pts
254 gpiochip

Block devices:
 31 mtdblock
254 ubiblock
259 blkext
root@(none):~# cat /proc/meminfo
MemTotal:          59256 kB
MemFree:           40116 kB
MemAvailable:      51008 kB
Buffers:               0 kB
Cached:            13112 kB
SwapCached:            0 kB
Active:             3200 kB
Inactive:          11556 kB
Active(anon):       1656 kB
Inactive(anon):       12 kB
Active(file):       1544 kB
Inactive(file):    11544 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          1652 kB
Mapped:             3156 kB
Shmem:                24 kB
Slab:               2352 kB
SReclaimable:        800 kB
SUnreclaim:         1552 kB
KernelStack:         272 kB
PageTables:          264 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       29628 kB
Committed_AS:       4052 kB
VmallocTotal:    1048372 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
root@(none):~# cat /proc/iomem
00000000-03ffffff : System RAM
  00060000-00446127 : Kernel code
  00446128-00551fff : Kernel data
18020000-180200ff : serial8250.0
  18020000-1802001f : serial
18040000-180400ff : ath79-gpio
18060008-1806000f : ath79-wdt
  18060008-1806000f : ath79-wdt
18100000-1811ffff : ar934x_wmac
19000000-190001ff : mac_base
  19000000-190001ff : mdio_base
1f000000-1fffffff : ath79-spi
  1f000000-1fffffff : ath79-spi
root@(none):~# ifconfig
eth0      Link encap:Ethernet  HWaddr 6C:3B:6B:3E:03:68  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6e3b:6bff:fe3e:368/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2970 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1060 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:312483 (305.1 KiB)  TX bytes:223839 (218.5 KiB)
          Interrupt:4 

root@(none):~# dmesg
[    0.000000] Linux version 4.14.195 (xxxxxx) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11208-ce6496d796)) #0 Sun Sep 6 16:19:39 2020
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9342 rev 3
[    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] 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] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 8054f890, node_mem_map 81000020
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x47c with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: no-uart no-nand parts=1 boot_part_size=16777216 gpio=126527 HZ=300000000 mem=64M kmac=6C:3B:6B:3E:03:68 board=groove-52 board=groove-52 ver=3.33 hw_opt=00204201 boot=1 mlc=10 console=ttyS0,115200 rootfstype=squashfs noinitrd
[    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] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 56000K/65536K available (3991K kernel code, 161K rwdata, 904K rodata, 3256K init, 205K bss, 9536K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] Clocks: CPU:600.000MHz, DDR:350.000MHz, AHB:350.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000010] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.008877] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.086006] pid_max: default: 32768 minimum: 301
[    0.091495] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.099010] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109821] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.121050] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.128560] NET: Registered protocol family 16
[    0.137248] MIPS: machine is MikroTik RouterBOARD Groove A-52HPn r2
[    0.405307] clocksource: Switched to clocksource MIPS
[    0.412252] NET: Registered protocol family 2
[    0.418131] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.426130] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.433356] TCP: Hash tables configured (established 1024 bind 1024)
[    0.440765] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.447485] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.454920] NET: Registered protocol family 1
[    0.459963] PCI: CLS 0 bytes, default 32
[    2.575330] random: fast init done
[    5.181546] Crashlog allocated RAM at address 0x3f00000
[    5.189368] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    5.202166] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.208858] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.378943] io scheduler noop registered
[    5.383401] io scheduler deadline registered (default)
[    5.389618] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    5.397330] console [ttyS0] disabled
[    5.421589] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    5.431413] console [ttyS0] enabled
[    5.438989] bootconsole [early0] disabled
[    5.452427] m25p80 spi0.0: found w25q128, expected m25p80
[    5.469340] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    5.522963] Creating 6 MTD partitions on "spi0.0":
[    5.528002] 0x000000000000-0x00000000e000 : "routerboot"
[    5.559907] 0x00000000e000-0x00000000f000 : "hard_config"
[    5.592001] 0x00000000f000-0x000000010000 : "bios"
[    5.623358] 0x000000010000-0x00000001f000 : "routerboot2"
[    5.655200] 0x00000001f000-0x000000020000 : "soft_config"
[    5.687245] 0x000000020000-0x000001000000 : "firmware"
[    5.720064] libphy: Fixed MDIO Bus: probed
[    5.760554] libphy: ag71xx_mdio: probed
[    6.387280] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: gmii
[    6.396502] MikroTik RouterBOARD hardware configuration sysfs driver v0.03
[    6.404726] NET: Registered protocol family 10
[    6.415650] Segment Routing with IPv6
[    6.419553] NET: Registered protocol family 17
[    6.424200] 8021q: 802.1Q VLAN Support v1.8
[    6.456045] Freeing unused kernel memory: 3256K
[    6.460758] This architecture does not have kernel memory protection.
[    6.484623] init: Console is alive
[    6.488674] init: - watchdog -
[    6.517498] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.527429] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.545599] init: - preinit -
[    6.645954] random: procd: uninitialized urandom read (4 bytes read)
[    6.770261] eth0: link up (100Mbps/Full duplex)
[    9.961495] random: dropbearkey: uninitialized urandom read (32 bytes read)
[    9.970518] random: dropbearkey: uninitialized urandom read (32 bytes read)
[   10.800260] random: dropbearkey: uninitialized urandom read (32 bytes read)
[   44.315359] random: crng init done
[   44.318889] random: 1 urandom warning(s) missed due to ratelimiting
root@(none):~# 

any help?

i used as template

/*
 * Setup the 911L hardware (AR9344).
 */
static void __init rb911l_setup(void)
{
	const struct rb_info *info;

	info = rbspi_platform_setup();
	if (!info)
		return;

	if (!rb_has_hw_option(info, RB_HW_OPT_NO_NAND)) {
		/*
		 * Old hardware revisions might be equipped with a NAND flash
		 * chip instead of the 16MiB SPI NOR device. Those boards are
		 * not supported at the moment, so throw a warning and skip
		 * the peripheral setup to avoid messing up the data in the
		 * flash chip.
		 */
		WARN(1, "The NAND flash on this board is not supported.\n");
	} else {
		rbspi_peripherals_setup(0);
	}

	ath79_register_mdio(0, 0x0);

	ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 0);

	ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
	ath79_eth0_data.speed = SPEED_100;
	ath79_eth0_data.duplex = DUPLEX_FULL;

	ath79_register_eth(0);

	rbspi_wlan_init(0);

the only change is from eth1 to eth0

and i'm not sure about here: rbspi_wlan_init(0);

the key word that I'm using is "groove-52"

any help?

i tryed to flash a sysupgrade and it bricked, I 'll have it working back soon.

solved smashed and in the garbage.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.