Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:meraki:mr24 [2018/02/20 18:51] – ↷ Links adapted because of a move operation bobafetthotmailtoh:meraki:mr24 [2020/12/20 09:24] – [Tags] danitool
Line 1: Line 1:
 ======Meraki MR24====== ======Meraki MR24======
  
-  * OpenWrt unofficial support, not yet merged upstream. Images and source can be found at [[https://github.com/riptidewave93/Openwrt-MR24]] 
-  * OpenWrt support thread is at [[https://forum.openwrt.org/viewtopic.php?id=62436]] 
-  * LEDE official support as of [[https://git.lede-project.org/?p=source.git;a=commit;h=a57d6e2d47688cfa392d6ea7f36ae6f9d84affc5]] 
  
-**Note that this board currently runs under custom device target named apm821xx, and until path forward is found for merging into mainline expect unofficial releases only!**+===== Supported Versions ===== 
 +---- datatable ---- 
 +cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, OWrt Forum Topic URL_url, Device Techdata_pageid 
 +headers : Brand, Model, Version, Current Release, OEM Info, Forum Topic, Technical Data 
 +align   : c,c,c,c,c,c,
 +filter  : Model=MR24 
 +---- 
 + 
 + 
 +===== Hardware Highlights ===== 
 +---- datatable ---- 
 +cols    : Model, Versions, CPU, CPU MHz, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, WLAN 2.4GHz, WLAN 5.0GHz, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, USB ports_ 
 +header  : Model, Version,SoC,CPU MHz,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB 
 +align   : c,c,c,c,c,c,c,c,c,c,c,c,
 +filter  : Model=MR24 
 +---- 
 + 
 + 
 +===== Installation ===== 
 +---- datatable ---- 
 +cols    : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url 
 +headers : Model, Version, Current Release, Firmware OpenWrt Install, Firmware OpenWrt Upgrade, Firmware OEM Stock 
 +align   : c,c,c 
 +filter  : Model=MR24 
 +---- 
 + 
 +==== Prerequisites ==== 
 +  * 1x Meraki MR24 
 +  * 1x UART adapter wired to the MR24 (speed is 115200). 
 +  Local computer directly wired to the LAN port of the MR24 set to 192.168.1.101/24. 
 +  A local TFTP server. 
 + 
 +==== Flashing ==== 
 +Note that older builds (17.01.4 and Older) have a different flashing method due to changes made in the image. Please ensure you are following the correct instructions for the build you are installing. 
 + 
 +=== Snapshots & Releases newer than 17.01.4 === 
 +1. Start your TFTP server. 
 + 
 +2. Power on the MR24, and interrupt u-boot. At the prompt, enter the following commands to update your boot settings: 
 + 
 +<code> 
 +setenv owrt_load ubi read \${meraki_loadaddr} kernel 
 +setenv owrt_recovery ubi read \${meraki_loadaddr} recovery\;bootm \${meraki_loadaddr} 
 +setenv owrt_bootkernel bootm \${meraki_loadaddr_kernel} - \${meraki_loadaddr_fdt} 
 +setenv owrt_bootargs setenv bootargs console=ttyS0,\${baudrate} rootfstype=squashfs mtdoops.mtddev=oops 
 +setenv owrt_boot run meraki_ubi owrt_bootargs\;run owrt_load meraki_checkpart owrt_bootkernel\;run owrt_recovery 
 +setenv bootcmd run owrt_boot 
 +setenv factory_boot_bak ${factory_boot} 
 +setenv factory_boot run meraki_ubi\;run owrt_bootargs\;run owrt_recovery 
 +saveenv 
 +</code> 
 + 
 +3. Now enter the following commands to TFTP boot the initramfs image hosted on your local computer. 
 + 
 +<code> 
 +tftpboot c00000 192.168.1.101:openwrt-apm821xx-nand-meraki_mr24-initramfs-kernel.bin; 
 +run owrt_bootargs; bootm $fileaddr; 
 +</code> 
 + 
 +4. Once OpenWrt boots and you are at a root prompt, you can Cleanup for maximum space. Find the UBI Volume ID of board-config. This is done with ''ubinfo /dev/ubi0 -N board-config''. Note that in this example, replace ''XX'' with the Volume ID for ''board-config'': 
 +<code> 
 +ubirmvol /dev/ubi0 -N part1 
 +ubirmvol /dev/ubi0 -N part2 
 +ubirmvol /dev/ubi0 -N storage 
 +dd if=/dev/ubi0_XX of=/tmp/board-config.img 
 +ubirmvol /dev/ubi0 -N board-config 
 +ubimkvol /dev/ubi0 -s 24KiB -N board-config 
 +ubiupdatevol /dev/ubi0_0 /tmp/board-config.img 
 +</code> 
 + 
 +5. Create recovery UBI partition. This will host an initramfs build so our board can have a failback image in case of a bad flash, or sysupgrade issue. You can also manually boot to recovery by holding the reset button while powering on the device. The recovery ip will always be 192.168.1.1, no matter the changes made in the 'real' system. Note you will first want to upload a copy of the initramfs image to the board (which can be done with SCP/HTTP Server). In the below tutorial note that the new partition is made to be just a bit larger than the initramfs image. You will want to do this as well. 
 + 
 +<code> 
 +ls -alh /tmp/openwrt-apm821xx-nand-meraki_mr24-initramfs-kernel.bin 
 +ubimkvol /dev/ubi0 -s 6MiB -N recovery 
 +ubiupdatevol /dev/ubi0_1 /tmp/openwrt-apm821xx-nand-meraki_mr24-initramfs-kernel.bin 
 +</code> 
 + 
 +6. Once done, you can now load up LuCI at 192.168.1.1, and use the sysupgrade option to flash the full image to the device using the sysupgrade file named ''openwrt-apm821xx-nand-meraki_mr24-squashfs-sysupgrade.tar''. From this point onany future updates/builds can just be flashed through LuCI. 
 + 
 +=== Previous Releases up to 17.01.4 === 
 +1. Start your TFTP server and rename the initramfs image to ''mr24.bin''
 + 
 +2. Power on the MR24, and interrupt u-boot. At the prompt, enter the following commands to update your boot settings: 
 + 
 +<code> 
 +setenv lede_load1 ubi read \${meraki_loadaddr} kernel 
 +setenv lede_load2 ubi read \${meraki_loadaddr} recovery 
 +setenv lede_bootkernel bootm \${meraki_loadaddr_kernel} - \${meraki_loadaddr_fdt} 
 +setenv lede_bootargs setenv bootargs console=ttyS0,\${baudrate} rootfstype=squashfs mtdoops.mtddev=oops 
 +setenv lede_boot run meraki_ubi lede_bootargs\; run lede_load1 meraki_checkpart lede_bootkernel\; run lede_load2 meraki_checkpart meraki_bootlinux 
 +setenv bootcmd run lede_boot 
 +saveenv 
 +</code> 
 + 
 +3. Now enter the following commands to TFTP boot the initramfs image hosted on your local computer. 
 + 
 +<code> 
 +setenv netloadmethod tftpboot; run lede_bootargs; run meraki_load_net meraki_checkpart meraki_bootlinux 
 +</code> 
 + 
 +4. Once OpenWrt boots and you are at root prompt, you can Cleanup for maximum space. 
 + 
 +<code> 
 +ubirmvol /dev/ubi0 -N part1 
 +ubirmvol /dev/ubi0 -N part2 
 +ubirmvol /dev/ubi0 -N storage 
 +</code> 
 + 
 +5. Create a recovery UBI partition. This will host an initramfs build so our board can have a failback image in case of a bad flash, or sysupgrade issue. Note you will first want to upload a copy of the initramfs image to the board (which can be done with SCP/HTTP Server). In the below tutorial note that the new partition is made to be just a bit larger than the initramfs image. You will want to do this as well. 
 + 
 +<code> 
 +ls -alh /tmp/openwrt-apm821xx-generic-mr24-initramfs-kernel.bin 
 +ubimkvol /dev/ubi0 -s 5MiB -N recovery 
 +ubiupdatevol /dev/ubi0_1 /tmp/openwrt-apm821xx-generic-mr24-initramfs-kernel.bin 
 +</code> 
 + 
 +6. Once done, you can now load up LuCI at 192.168.1.1, and use the sysupgrade option to flash the full image to the device using the sysupgrade file named openwrt-apm821xx-generic-mr24-squashfs-sysupgrade.tar. From this point on, any future updates/builds can just be flashed through LuCI.
  
 ===== Hardware ===== ===== Hardware =====
 ==== Info ==== ==== Info ====
-| **Architecture:**     | PowerPC 44x                                                      | +Architecture     | PowerPC 44x                                                      | 
-| **Vendor:**           | AppliedMicro                                                     | +Vendor           | AppliedMicro                                                     | 
-| **Bootloader:**       | U-Boot                                                           | +Bootloader       | U-Boot                                                           | 
-| **System-On-Chip:**   | AppliedMicro APM82181                                            | +System-On-Chip   | AppliedMicro APM82181                                            | 
-| **CPU Speed:**        | 800MHz                                                           | +CPU Speed        | 800MHz                                                           | 
-| **Flash-Chip:**       | Hynix HY27US08561A                                               | +Flash-Chip       | Hynix HY27US08561A                                               | 
-| **Flash size:**       | 32MiB                                                            | +Flash size       | 32MiB                                                            | 
-| **RAM:**              | 2x Nanya NT5TU32M16D6-AC                                         | +RAM              | 2x Nanya NT5TU32M16D6-AC                                         | 
-| **RAM Size:**         | 128MiB                                                           | +RAM Size         | 128MiB                                                           | 
-| **Wireless:**         | Atheros AR9380 5.0GHz + Atheros AR9380 2.4GHz                    | +Wireless         | Atheros AR9380 5.0GHz + Atheros AR9380 2.4GHz                    | 
-| **Switch:**           | No                                                               | +Switch           | No                                                               | 
-| **Ethernet ports:**   | 1x Gigabit Atheros AR8035                                        | +Ethernet ports   | 1x Gigabit Atheros AR8035                                        | 
-| **USB:**              | No                                                               | +USB              | No                                                               | 
-| **Serial:**           | [[docs:hardware:port.serial.cables|Yes]], [[#serial|settings]]   | +Serial           | [[docs:techref:hardware:port.serial.cables|Yes]], [[#serial|settings]]   | 
-| **JTAG:**             | [[docs:hardware:port.jtag.cables|Yes]]                           |+JTAG             | [[docs:techref:hardware:port.jtag.cables|Yes]]                           |
  
-WikiDevi Page is at [[https://wikidevi.com/wiki/Cisco_Meraki_MR24]] 
  
 ==== Serial ==== ==== Serial ====
Line 47: Line 160:
 {{:media:meraki:mr24-9.jpg?200|}} {{:media:meraki:mr24-9.jpg?200|}}
 {{:media:meraki:mr24-10.jpg?200|}} {{:media:meraki:mr24-10.jpg?200|}}
 +
 +
 ===== Flash Layout ===== ===== Flash Layout =====
 ==== Stock ==== ==== Stock ====
Line 62: Line 177:
 Note that mtd3 through mtd6 are UBI partitions emulating mtd devices. UBI partitions part1 and part2 contain the kernel, and the rootfs as an initramfs image. Note that mtd3 through mtd6 are UBI partitions emulating mtd devices. UBI partitions part1 and part2 contain the kernel, and the rootfs as an initramfs image.
  
-==== OpenWRT ====+==== OpenWrt ====
 <code> <code>
 / # cat /proc/mtd / # cat /proc/mtd
Line 71: Line 186:
 </code> </code>
  
-===== OpenWRT Installation ===== 
- 
-==== Prerequisites ==== 
-  * 1x Meraki MR24 
-  * 1x UART adapter wired to the MR24 (speed is 115200). 
-  * Local computer (Static IP of 192.168.1.101) directly wired to the LAN port. 
-  * A local TFTP server. 
- 
-==== Flashing ==== 
-Flashing instructions can be found in the Repo Readme at [[https://github.com/riptidewave93/Openwrt-MR24/blob/master/README.md#flashing]] 
      
 ===== Bootlogs ===== ===== Bootlogs =====
Line 749: Line 854:
 ===== Tags ===== ===== Tags =====
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>128RAM 32flash 2WNIC ppc44x mod router powerpc meraki mr24}}+{{tag>apm821xx APM82181 32flash 128RAM2WNIC ppc44x mod powerpc}}
  • Last modified: 2024/02/12 08:58
  • by 127.0.0.1