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:mx60 [2018/04/03 11:49] – Datatables added tmomastoh:meraki:mx60 [2022/09/18 01:21] – IP 192.168.1.2 is not used in the flashing procedure, references removed lleachii
Line 18: Line 18:
 ---- ----
  
 +===== 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=MX60
 +----
 +
 +-> [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]]
 +
 +==== Prerequisites ====
 +  * 1x Meraki MX60/MX60W
 +  * 1x UART adapter wired to the MX60/MX60W (speed is 115200 baud and Hardware Flow Control off).
 +  * Local computer (Static IP of 192.168.1.101) directly wired to the WAN port.
 +  * A local TFTP server.
 +
 +==== Flashing ====
 +
 +Note that older builds (e.g. 17.01, 18.06 and 21.02) 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. Instructions for the previous version can be found in the Repo Readme at [[https://github.com/riptidewave93/LEDE-MX60/blob/master/README.md#flashing]]
 +
 +=== OpenWrt 22.03.0 and above ===
 +
 +1. Download the current meraki_mx60-initramfs-kernel.bin from [[https://downloads.openwrt.org/releases/22.03.0/targets/apm821xx/nand/]]. Then put the file into your TFTP server root directory and rename it to buck.bin
 +
 +2. Start your TFTP server on the local computer (at 192.168.1.101) and connect the MX60(W) to the WAN Port.
 +
 +3. Power on the MX60(W), and interrupt u-boot (accessible on the serial console). At the prompt, enter the following commands to update your boot settings:
 +
 +<code>
 +setenv owrt_load1 ubi read \${meraki_loadaddr} kernel
 +setenv owrt_load2 ubi read \${meraki_loadaddr} recovery
 +setenv lede_bootkernel bootm \${meraki_loadaddr_kernel} - \${meraki_loadaddr_fdt}
 +setenv owrt_bootkernel bootm \${meraki_loadaddr}
 +setenv owrt_bootargs setenv bootargs console=ttyS0,\${baudrate} rootfstype=squashfs mtdoops.mtddev=oops
 +setenv owrt_boot run meraki_ubi owrt_bootargs\; run owrt_load1 meraki_checkpart lede_bootkernel\; run owrt_load2 owrt_bootkernel
 +setenv owrt510_boot run meraki_ubi owrt_bootargs\; run owrt_load1 owrt_bootkernel\; run owrt_load2 owrt_bootkernel
 +setenv bootcmd run owrt510_boot
 +saveenv
 +</code>
 +
 +
 +**<color #ed1c24>Note</color>**: You won't be able to use older OpenWrt releases without switching the bootcmd back to owrt_boot (see: [[commit>?p=openwrt/openwrt.git;a=commit;h=8a042450d8fd4e2916fb0e87d65bbbd7e3a97130]]) using the following:
 +
 +<code>
 +setenv bootcmd run owrt_boot
 +saveenv
 +</code>
 +
 +
 +4. Now enter the following commands to TFTP boot the initramfs image hosted on your local computer.
 +
 +<code>
 +setenv ipaddr 192.168.1.1
 +setenv bootargs console=ttyS0,$baudrate mtdoops.mtddev=oops;
 +tftpboot $meraki_loadaddr buck.bin;
 +bootm $fileaddr
 +</code>
 +
 +5. Once OpenWrt boots and you are at a 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>
 +
 +6. Create a optional 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_mx60-initramfs-kernel.bin
 +ubimkvol /dev/ubi0 -s 10MiB -N recovery
 +# This will create a new ubi volume. Make sure to replace the ubi0_X with the right volume number
 +ubiupdatevol /dev/ubi0_X /tmp/openwrt-apm821xx-nand-meraki_mx60-initramfs-kernel.bin
 +</code>
 +
 +7.You will want to upload a copy of the squashfs-sysupgrade.bin image to the board (which can be done with SCP/HTTP Server). Once done, you can now use the sysupgrade option to flash the full image to the device using the sysupgrade file named ''openwrt-apm821xx-nand-meraki_mx60-squashfs-sysupgrade.tar''. Then, once you are running a full OpenWRT version (not snapshot) load up LuCI at 192.168.1.1, andFrom this point on, any future updates/builds can just be flashed through LuCI.
 +
 +<code>
 +# Be sure to replace the FILENAME with the correct squashfs-sysupgrade.bin image that you have loaded via SCP/HTTP
 +sysupgrade /tmp/FILENAME
 +</code>
 ===== 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:**       | Samsung K9K8G08U0D                                               | +Flash-Chip       | Samsung K9K8G08U0D                                               | 
-| **Flash size:**       | 1GiB                                                             | +Flash size       | 1GiB                                                             | 
-| **RAM:**              | 4x Nanya NT5TU128M8GE-AC                                         | +RAM              | 4x Nanya NT5TU128M8GE-AC                                         | 
-| **RAM Size:**         | 512MiB                                                           | +RAM Size         | 512MiB                                                           | 
-| **Wireless:**         | MX60 = None - MX60W = Atheros AR9380? (Assumed)                  | +Wireless         | MX60 = None - MX60W = Atheros AR9380? (Assumed)                  | 
-| **Switch:**           | Atheros AR8327-BL1A                                              | +Switch           | Atheros AR8327-BL1A                                              | 
-| **Ethernet ports:**   | 5x 1Gb ports on switch                                           | +Ethernet ports   | 5x 1Gb ports on switch                                           | 
-| **USB:**              | 1x External USB 2.0                                              | +USB              | 1x External USB 2.0                                              | 
-| **Serial:**           | [[docs:techref:hardware:port.serial.cables|Yes]], [[#serial|settings]]   | +Serial           | [[docs:techref:hardware:port.serial.cables|Yes]], [[#serial|settings]]   | 
-| **JTAG:**             | [[docs:techref:hardware:port.jtag.cables|Yes]]                           |+JTAG             | [[docs:techref:hardware:port.jtag.cables|Yes]]                           |
  
 ==== Serial ==== ==== Serial ====
Line 77: Line 156:
 </code> </code>
  
-===== OpenWrt Installation ===== 
- 
-==== Prerequisites ==== 
-  * 1x Meraki MX60/MX60W 
-  * 1x UART adapter wired to the MX60/MX60W (speed is 115200). 
-  * Local computer (Static IP of 192.168.1.101) directly wired to the WAN port. 
-  * A local TFTP server. 
- 
-==== Flashing ==== 
-Flashing instructions can be found in the Repo Readme at [[https://github.com/riptidewave93/LEDE-MX60/blob/master/README.md#flashing]] 
      
 ===== Bootlogs ===== ===== Bootlogs =====
Line 373: Line 442:
 ===== Tags ===== ===== Tags =====
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>512RAM 1024flash 1WNIC ppc44x mod router powerpc}}+{{tag>apm821xx APM82181 1024flash 512RAM 1WNIC ppc44x mod powerpc}}
  • Last modified: 2024/02/12 08:58
  • by 127.0.0.1