Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:globalscale:mochabin [2022/03/03 15:33] – Created from the form at meta:create_new_device_page gandalf | toh:globalscale:mochabin [2023/05/22 20:12] – [Hardware Highlights] 1Gbit ports danitool | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Globalscale MOCHAbin ====== | ====== Globalscale MOCHAbin ====== | ||
| - | /* This template is intended to be used via https:// | + | {{:media:globalscale:mochabin:mochabin-casing-front.jpg?nolink& |
| - | /* DO NOT CREATE NEW DEVICEPAGES VIA COPY & PASTE! */ | + | |
| - | /* USE https:// | + | |
| - | + | ||
| - | {{page> | + | |
| - | + | ||
| - | //Write a short, relevant description of the device. Include a technical overview, but avoid marketing buzzwords/ | + | |
| - | + | ||
| - | <WRAP BOX> | + | |
| - | FIXME Any text with a light background (like this one) provides instructions for creating the Details Page. When you have filled in correct/ | + | |
| - | </ | + | |
| - | + | ||
| - | /*****/ | + | |
| - | /* How to add images ========> | + | |
| - | /*****/ | + | |
| - | + | ||
| - | {{media:example: | + | |
| - | + | ||
| - | <WRAP BOX> | + | |
| - | FIXME | + | |
| - | ===== Getting started with a new Device Page ===== | + | |
| - | - This is an empty template that suggests the information that should be present on a well-constructed Device Page. This means, that **you have to fill it with life and information.** | + | |
| - | - There are several " | + | |
| - | - When there are no more " | + | |
| - | + | ||
| - | ===== Keep the articles modular ===== | + | |
| - | * Please include only model specific information, | + | |
| - | * If you have no time to write certain stuff, link to [[docs: | + | |
| - | * [[docs: | + | |
| - | * DO NOT provide a complete howto here! Instead //groom// the [[docs: | + | |
| - | </ | + | |
| ===== Supported Versions ===== | ===== Supported Versions ===== | ||
| - | |||
| - | <WRAP BOX> | ||
| - | FIXME | ||
| - | - The tables below are automatically generated, **once the correct filters for Brand and Model are set.** | ||
| - | - If the tables below show information for ''< | ||
| - | - If the tables below contain " | ||
| - | - the dataentry page for Globalscale MOCHAbin | ||
| - | - filters are not set correctly. Most common reason for " | ||
| - | - If the tables still contain " | ||
| - | </ | ||
| - | |||
| ---- datatable ---- | ---- datatable ---- | ||
| cols : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, | cols : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, | ||
| Line 51: | Line 10: | ||
| filter | filter | ||
| filter | filter | ||
| - | filter | ||
| ---- | ---- | ||
| - | /* If no unsupported functions known, comment out the following datatable or delete it. */ | ||
| - | ---- datatable ---- | ||
| - | cols : Unsupported Functions_unsupporteds | ||
| - | filter | ||
| - | filter | ||
| - | filter | ||
| - | ---- | ||
| - | |||
| - | ===== Experimental Versions ===== | ||
| - | |||
| - | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
| - | |||
| - | //None at this time.// | ||
| ===== Hardware Highlights ===== | ===== Hardware Highlights ===== | ||
| ---- datatable ---- | ---- datatable ---- | ||
| - | cols : Model, Versions, CPU, CPU MHz, Flash MB_mbflashs, | + | cols : Model, Versions, CPU, CPU MHz, CPU Cores_numcores_, Flash MB_mbflashs, |
| - | header | + | header |
| align : c, | align : c, | ||
| filter | filter | ||
| filter | filter | ||
| - | filter | ||
| ---- | ---- | ||
| Line 86: | Line 25: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| /* stable release */ | /* stable release */ | ||
| - | /* uncomment once stable release is available | ||
| ---- datatable ---- | ---- datatable ---- | ||
| cols : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url | cols : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url | ||
| Line 93: | Line 31: | ||
| filter | filter | ||
| filter | filter | ||
| - | filter | ||
| ---- | ---- | ||
| - | */ | ||
| - | |||
| - | |||
| - | /* snapshot */ | ||
| - | /* delete once stable release is available */ | ||
| - | ---- datatable ---- | ||
| - | cols : Model, Versions, Supported Current Rel, Firmware OpenWrt snapshot Install URL_url, Firmware OpenWrt snapshot Upgrade URL_url, Firmware OEM Stock URL_url | ||
| - | headers : Model, Version, Current Release, Firmware OpenWrt snapshot Install, Firmware OpenWrt snapshot Upgrade, Firmware OEM Stock | ||
| - | align : c,c,c | ||
| - | filter | ||
| - | filter | ||
| - | filter | ||
| - | ---- | ||
| - | |||
| -> [[docs: | -> [[docs: | ||
| - | |||
| - | FIXME Please add the installation procedure here. | ||
| - | |||
| - | ==== Flash Layout ==== | ||
| - | <WRAP BOX> | ||
| - | FIXME // | ||
| - | |||
| - | Please check out the article [[docs: | ||
| - | </ | ||
| - | |||
| - | ==== OEM easy installation ==== | ||
| - | |||
| - | <WRAP BOX> | ||
| - | FIXME //The instructions below are for Broadcom devices and only serve as an example.// | ||
| - | **//Remove / modify them if they do not apply to this particular device!//** | ||
| - | |||
| - | This section deals with | ||
| - | * How you install OpenWrt from a device freshly opened | ||
| - | * The steps required such as reset to factory defaults if the device has already been configured | ||
| - | |||
| - | **Note:** Reset router to factory defaults if it has been previously configured. | ||
| - | * Browse to ''< | ||
| - | * Upload .bin file to router | ||
| - | * Wait for it to reboot | ||
| - | * Telnet to 192.168.1.1 and set a root password, or browse to ''< | ||
| - | </ | ||
| ==== OEM installation using the TFTP method ==== | ==== OEM installation using the TFTP method ==== | ||
| - | -> | + | |
| - | + | $ cp ./ | |
| - | === Specific values needed | + | $ in.tftpd -L -s bin/ |
| - | + | | |
| - | <WRAP BOX> | + | - Power on the device and hit any key to stop the autoboot. |
| - | + | - Set serverip (host IP) and ipaddr (any free IP address on the same subnet), e.g: | |
| - | FIXME Enter values for "FILL-IN" below | + | * Host: < |
| - | + | * Device: < | |
| - | ^ Bootloader tftp server IPv4 address | + | - Set the ethernet device (Example |
| - | ^ Bootloader MAC address (special) | + | $ setenv ethact mvpp2-2</ |
| - | ^ Firmware tftp image | [[:downloads|Latest OpenWrt release]] (**'' | + | - Ping server to confirm network is working:<code> |
| - | ^ TFTP transfer window | + | $ ping $serverip |
| - | ^ TFTP window start | approximately FILL-IN seconds after power on | | + | Using mvpp2-2 device |
| - | ^ TFTP client required IP address | + | host 192.168.1.15 is alive</ |
| - | + | - Tftpboot the firmware:< | |
| - | </WRAP> | + | $ tftpboot $kernel_addr_r openwrt-mvebu-cortexa72-globalscale_mochabin-initramfs-kernel.bin |
| + | $ tftpboot $fdt_addr_r image-armada-7040-mochabin.dtb</ | ||
| + | - Boot the image: | ||
| + | $ booti $kernel_addr_r - $fdt_addr_r</ | ||
| + | - Once the initramfs is booted, transfer openwrt-mvebu-cortexa72-globalscale_mochabin-squashfs-sdcard.img.gz to /tmp dir on the device. | ||
| + | - Gunzip and dd the image:< | ||
| + | $ gunzip | ||
| + | $ dd if=/tmp/openwrt-mvebu-cortexa72-globalscale_mochabin-squashfs-sdcard.img of=/ | ||
| + | - Reboot the device. | ||
| + | - Hit any key to stop the autoboot. | ||
| + | - Reset U-boot env and set the bootcmd:< | ||
| + | $ env default -a | ||
| + | $ setenv bootcmd 'load mmc 0 ${loadaddr} boot.scr && source ${loadaddr}' | ||
| + | - Optionally I would advise to edit the console env variable to remove earlycon as that causes the kernel to never use the driver for the serial console. Earlycon should be used only for debugging before the kernel can configure the console and will otherwise cause various issues with the console.< | ||
| + | $ setenv console ' | ||
| + | - Save and reset< | ||
| + | $ saveenv | ||
| + | $ reset</ | ||
| + | - OpenWrt should boot from eMMC now. | ||
| ===== Upgrading OpenWrt ===== | ===== Upgrading OpenWrt ===== | ||
| Line 203: | Line 118: | ||
| </ | </ | ||
| + | |||
| + | ===== Expanding the eMMC partition ==== | ||
| + | |||
| + | Check your partitions, especially for partition /dev/loop0 having filesystem type f2fs: | ||
| + | |||
| + | < | ||
| + | root@OpenWrt: | ||
| + | Filesystem | ||
| + | / | ||
| + | tmpfs tmpfs | ||
| + | / | ||
| + | overlayfs:/ | ||
| + | tmpfs tmpfs | ||
| + | </ | ||
| + | |||
| + | Install the following packages: | ||
| + | < | ||
| + | opkg update | ||
| + | opkg install losetup e2fsprogs resize2fs block-mount kmod-fs-f2fs f2fs-tools cfdisk kmod-fs-ext4 parted rsync | ||
| + | </ | ||
| + | |||
| + | Confirm, that the device /dev/loop0 is located on the 2nd partition of mmcblk0 by checking the back file column: | ||
| + | < | ||
| + | root@OpenWrt: | ||
| + | NAME | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | Resize the partition mmcblk0p2 by using cfdsik: | ||
| + | < | ||
| + | root@OpenWrt: | ||
| + | </ | ||
| + | |||
| + | Steps for resizing: | ||
| + | - Chose the 2nd partition, | ||
| + | - Move the cursor to resize, | ||
| + | - Enter the final size you want, default is 14.7GB. | ||
| + | - Confirm the change by the menu entry " | ||
| + | |||
| + | Set variables, that are used later: | ||
| + | < | ||
| + | LOOP=" | ||
| + | ROOT=" | ||
| + | OFFS=" | ||
| + | </ | ||
| + | |||
| + | Check the variables withe echo command: | ||
| + | < | ||
| + | root@OpenWrt: | ||
| + | 3604480 /dev/loop0 / | ||
| + | </ | ||
| + | |||
| + | The loop device setup: | ||
| + | < | ||
| + | LOOP=" | ||
| + | losetup -o ${OFFS} ${LOOP} ${ROOT} | ||
| + | </ | ||
| + | |||
| + | Finalize the partition resize: | ||
| + | < | ||
| + | fsck.f2fs -f ${LOOP} | ||
| + | mount ${LOOP} /mnt | ||
| + | umount ${LOOP} | ||
| + | resize.f2fs ${LOOP} | ||
| + | reboot | ||
| + | </ | ||
| + | |||
| + | After reboot, you can confirm the full partition size on SSH and LuCi: | ||
| + | < | ||
| + | root@OpenWrt: | ||
| + | Filesystem | ||
| + | / | ||
| + | tmpfs tmpfs | ||
| + | / | ||
| + | overlayfs:/ | ||
| + | tmpfs tmpfs | ||
| + | </ | ||
| ===== Debricking ===== | ===== Debricking ===== | ||
| Line 279: | Line 271: | ||
| ==== Photos ==== | ==== Photos ==== | ||
| - | /* =====>>>>> | ||
| - | /* When uploading photos, **name them** intelligently. Nobody knows what 20100930_000602.jpg is! */ | ||
| - | /* e.g. {{: | ||
| - | /* Thanks, your wiki administration - Oct. 2015 */ | ||
| - | |||
| // | // | ||
| **Insert photo of front of the casing** | **Insert photo of front of the casing** | ||
| //Back://\\ | //Back://\\ | ||
| - | **Insert photo of back of the casing** | + | {{:media: |
| - | + | ||
| - | //Backside label://\\ | + | |
| - | **Insert photo of backside label** | + | |
| ==== Opening the case ==== | ==== Opening the case ==== | ||
| - | |||
| - | **Note:** This will void your warranty! | ||
| - | |||
| - | <WRAP BOX> | ||
| - | FIXME //Describe what needs to be done to open the device, e.g. remove rubber feet, adhesive labels, screws, ...// | ||
| - | * To remove the cover and open the device, do a/b/c | ||
| - | </ | ||
| //Main PCB://\\ | //Main PCB://\\ | ||
| - | **Insert photo of PCB** | + | {{: |
| ==== Serial ==== | ==== Serial ==== | ||
| Line 309: | Line 286: | ||
| How to connect to the Serial Port of this specific device:\\ | How to connect to the Serial Port of this specific device:\\ | ||
| - | **Insert photo of PCB with markings for serial | + | |
| - | + | ||
| - | <WRAP BOX> | + | |
| - | FIXME //Replace EXAMPLE by real values.// | + | |
| - | </ | + | |
| - | ^ Serial connection parameters\\ for Globalscale MOCHAbin | + | ^ Serial connection parameters\\ for Globalscale MOCHAbin | 115200, 8N1 | |
| ==== JTAG ==== | ==== JTAG ==== | ||
| -> [[docs: | -> [[docs: | ||
| - | How to connect to the JTAG Port of this specific device:\\ | + | JTAG schematic:\\ |
| - | **Insert photo of PCB with markings for JTAG port** | + | {{: |
| ===== Bootloader mods ===== | ===== Bootloader mods ===== | ||
| Line 348: | Line 321: | ||
| ===== Tags ===== | ===== Tags ===== | ||
| - | <WRAP BOX> | ||
| - | FIXME //Add tags below, then remove this fixme.// | ||
| - | </ | ||
| [[meta: | [[meta: | ||
| - | {{tag>EXAMPLETAG}} | + | {{tag>mvebu armada7040 8192NAND 4096RAM 6port gigabitethernet 2USB USB3.0 0wnic sfp sfp_plus sata3 MiniPCIexpress m.2 1sim poe rtc}} |