OpenWrt Forum Archive

Topic: Cisco Meraki MR12 Ethernet

The content of this topic has been archived between 25 Mar 2018 and 6 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Hmm, either I've had too much to drink or I've missed something.  Missing the images needed from bin, been a while since I built this.  Remind me what targets I need to get the bins needed please... smile

I'm on IRC btw.

edit - also my builds were flagged as "generic" and not "MR12" as I was expecting.  Guess it's not read something along the way.

edit edit - tell a lie I've got openwrt-ar71xx-generic-mr12-initramfs-uImage.bin but mr12-kernel.bin and mr12-rootfs.bin are missing....

(Last edited by wooyah on 17 Oct 2014, 22:03)

wooyah wrote:

Hmm, either I've had too much to drink or I've missed something.  Missing the images needed from bin, been a while since I built this.  Remind me what targets I need to get the bins needed please... smile

I'm on IRC btw.

edit - also my builds were flagged as "generic" and not "MR12" as I was expecting.  Guess it's not read something along the way.

edit edit - tell a lie I've got openwrt-ar71xx-generic-mr12-initramfs-uImage.bin but mr12-kernel.bin and mr12-rootfs.bin are missing....

Don't see you on IRC (freenode channel #mr12). And in kernel_menuconfig, did you make sure to select MR12? its not by default. and in menuconfig, make sure to only select the MR12

Ah I was in #openwrt, now in #mr12 on freenode.

Yep, I had all the others ticked.  I'll untick and rebuild.  Two secs.

Built and net booted your image last night in the end, only tested eth0 before I crashed out but works nicely.

Going to do another build with some packages and do a flash at some point over the weekend, then see what sort of performance I can get out of it. big_smile

Moved the builds on a little since the weekend.  Have managed to get a full build of Bleeding Edge with your patches, and an r42865 build loaded full of packages.

How's the sysupgrade stuff going?

wooyah wrote:

Moved the builds on a little since the weekend.  Have managed to get a full build of Bleeding Edge with your patches, and an r42865 build loaded full of packages.

How's the sysupgrade stuff going?

Been busy and have had no time to touch it. Before anything, I need to find out what the $magic_long value stands for in the upgrade script.

Disk/volume magic number?

https://github.com/openwrt-mirror/openw … latform.sh

Lines 110-118.

alfa_check_image() {
local magic_long="$(get_magic_long "$1")"
local fw_part_size=$(mtd_get_part_size firmware)
case "$magic_long" in
"27051956")
[ "$fw_part_size" != "16318464" ] && {
echo "Invalid image magic \"$magic_long\" for $fw_part_size bytes"
return 1
}
;;
"68737173")
[ "$fw_part_size" != "7929856" ] && {
echo "Invalid image magic \"$magic_long\" for $fw_part_size bytes"
return 1
}
;;
esac
return 0
}

(Last edited by wooyah on 21 Oct 2014, 13:09)

Took a leap tonight and committed a build to flash.

Currently running r43006 with your patches, all good. Flash commands were spot on. smile

Wifi performance wise seeing 66mb down when close to the AP.

Everything else I've tried works, will test with PoE tomorrow then get around to looking at the sysupgrade stuff.

wooyah wrote:

Took a leap tonight and committed a build to flash.

Currently running r43006 with your patches, all good. Flash commands were spot on. smile

Wifi performance wise seeing 66mb down when close to the AP.

Everything else I've tried works, will test with PoE tomorrow then get around to looking at the sysupgrade stuff.

I can confirm PoE works as I have been using it since day one. Also working on sysupgrade, and I believe I have it working. Will test and then do another push to the repo. I also brought it up to the latest branch release.

EDIT: Sysupgrade works, merged to repo as well as pushed a new release with this feature. Yay for no longer needing TFTP to flash the unit! smile https://github.com/riptidewave93/Openwrt-MR12/releases

(Last edited by riptide_wave on 24 Oct 2014, 04:21)

Superb, well done!

What was the deal with it in the end?  Will get another build going now and report back later.

wooyah wrote:

Superb, well done!

What was the deal with it in the end?  Will get another build going now and report back later.

Just setting the proper image type.

I also did some big changes to the image today. I completely changed the flash layout to use all of the extra/empty space cisco was using for their failover image, as well as brought up kernel 3.14. For this release due to the flash changes, you will have to re-flash using u-boot and the commands on the github. Like always, source is at https://github.com/riptidewave93/Openwrt-MR12 and releases are at https://github.com/riptidewave93/Openwrt-MR12/releases

So, we went from this:

0x00000000-0x00040000 : "u-boot"        256k
0x00040000-0x00080000 : "u-boot-env"    256k
0x00080000-0x00680000 : "rootfs"        6144k
0x00680000-0x00780000 : "kernel"        1024k
0x00780000-0x007c0000 : "nvram"         256k
0x007c0000-0x01000000 : "art"           8448k
0x00080000-0x00780000 : "firmware"      7168k

to this:

0x00000000-0x00040000 : "u-boot"        256k
0x00040000-0x00080000 : "u-boot-env"    256k
0x00080000-0x00da0000 : "rootfs"        13440k
0x00da0000-0x00fe0000 : "kernel"        2304k
0x00fe0000-0x01000000 : "art"           128k
0x00080000-0x00fe0000 : "firmware"      15744k

Enjoy all of that extra space wink

EDIT: sysupgrade is broke ATM (my bad), lookout for version 0.61A shortly.
EDIT2: 0.61A is out, go flash that and enjoy!
EDIT3: 0.7A is out, fixes some WiFi issues.

(Last edited by riptide_wave on 26 Nov 2014, 04:45)

Hi,

Is there a more detailed guide on how to do this? My MR12 will expire soon and I would like to use it after that period.

DieterKoblenz wrote:

Hi,

Is there a more detailed guide on how to do this? My MR12 will expire soon and I would like to use it after that period.

The Wiki has a good guide at http://wiki.openwrt.org/toh/meraki/mr12. Only difference is use the flashing commands on the github as the image has changed sizes since the initial port. Commands are at https://github.com/riptidewave93/Openwrt-MR12 and the release is at https://github.com/riptidewave93/Openwrt-MR12/releases

Thanks riptide_wave, I found it and tried it however I get the following error:

Load address: 0x81000000
Loading: T
Retry count exceeded; run boot command

I'm getting this when running the tftpboot command. I'm guessing my tftp server isn't setup right or anything. Is there someone who could give me some direction on how to do this on a windows 8 pc.

You can always try using http://tftpd32.jounin.net/ as the tftp server.

Just upload all of the files from https://github.com/riptidewave93/Openwr … -R0.7A.zip into the root dir, set the IP address if your computer to 192.168.1.101, then run the install commands from u-boot vi uart.

tftpboot 0x80010000 openwrt-ar71xx-generic-mr12-kernel.bin
erase 0x9fda0000 +0x240000;cp.b 0x80010000 0x9fda0000 0x240000
tftpboot 0x80010000 openwrt-ar71xx-generic-mr12-rootfs-squashfs.bin
erase 0x9f080000 +0xD20000;cp.b 0x80010000 0x9f080000 0xD20000
setenv bootcmd bootm 0x9fda0000; saveenv; boot

If the first tftpboot command fails, then check the tftp server log to see if the router is able to access the server or not.

Thanks,

I have all the files and tried 3 different tftp servers including tftpd32. The following steps I tried:
- utp meraki - pc (pc solid ip 192.168.1.101)
- utp meraki - pc (dhcp server from tftpd32, works meraki gets ip does not find tftp file)
- with a switch in between (both solid ip and dhcp, which gives meraki ip)

In the log nothing appears..

Hi there all,

I managed to load openwrt-ar71xx-generic-mr12-initramfs-uImage.bin via serial ymodem (yload then mboot). Pity I can't find a way to save it somewhere on the machine so I don't have to load it every boot (and lose my settings).

Don't think I can load the other files via ymodem and flash them...

Or can I use the upgrade facility on the mr12 once I booted it?

(Last edited by DieterKoblenz on 5 Dec 2014, 20:59)

DieterKoblenz wrote:

Hi there all,

I managed to load openwrt-ar71xx-generic-mr12-initramfs-uImage.bin via serial ymodem (yload then mboot). Pity I can't find a way to save it somewhere on the machine so I don't have to load it every boot (and lose my settings).

Don't think I can load the other files via ymodem and flash them...

Or can I use the upgrade facility on the mr12 once I booted it?

If you are able to tftp boot the image, you can then do the sysupgrade, but I recommend you first change the bootloader settings first to map to the kernel location otherwise the device will fail to boot.

setenv bootcmd bootm 0x9fda0000; saveenv; boot
DieterKoblenz wrote:

Hi there all,

I managed to load openwrt-ar71xx-generic-mr12-initramfs-uImage.bin via serial ymodem (yload then mboot). Pity I can't find a way to save it somewhere on the machine so I don't have to load it every boot (and lose my settings).

Don't think I can load the other files via ymodem and flash them...

Or can I use the upgrade facility on the mr12 once I booted it?

Hi Mate,

I had the same issue.
Windows was blocking the program in firewall because it was 'public network'

Hit Windows key -> Search for-> Firewall -> Allow program Through Windows Firewall -> Find 'TFTP Server' -> tick public

Presjar wrote:
DieterKoblenz wrote:

...

Hi Mate,

I had the same issue.
Windows was blocking the program in firewall because it was 'public network'

Hit Windows key -> Search for-> Firewall -> Allow program Through Windows Firewall -> Find 'TFTP Server' -> tick public

You saved my day! It was indeed the TFTP port where I had to tick private (I am on a private network, for some reason public was already ticked.)

ar7240> setenv bootcmd bootm 0x9fda0000; saveenv; boot
Saving Environment to Flash...
Protect off 9F040000 ... 9F04FFFF
Un-Protecting sectors 4..4 in bank 1
Un-Protected 1 sectors
Erasing Flash...Erase Flash from 0x9f040000 to 0x9f04ffff in Bank # 1
First 0x4 last 0x4 sector size 0x10000                                                       4
Erased 1 sectors
Writing to Flash... write addr: 9f040000
done
Protecting sectors 4..4 in bank 1
Protected 1 sectors
## Booting image at 9fda0000 ...
Bad Magic Number
ar7240> tftpboot 192.168.178.101 openwrt-ar71xx-generic-mr12-initramfs-uImage.bin; bootm
Trying eth0
dup 1 speed 100
Using eth0 device
TFTP from server 192.168.178.101; our IP address is 192.168.178.41
Filename 'openwrt-ar71xx-generic-mr12-initramfs-uImage.bin'.
Load address: 0x192
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################################
done
Bytes transferred = 3194998 (30c076 hex)
## Booting image at 00000192 ...

After this nothing comes to the serial console. Did I mess up somewhere?

The combination

tftpboot 192.168.178.101 openwrt-ar71xx-generic-mr12-initramfs-uImage.bin

setenv bootcmd bootm 0x9fda0000; saveenv; boot

Bootm

Did work smile

Anyone know if work has started on the MR18? I have one here i'd love to reflash smile

dave2318 wrote:

Anyone know if work has started on the MR18? I have one here i'd love to reflash smile

Slowly working on finding a way into the MR18. Bootloaders locked, and if it takes a Cisco OTA, you are locked out of console sad