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:30] – delete gandalf | toh:globalscale:mochabin [2023/05/22 20:12] – [Hardware Highlights] 1Gbit ports danitool | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Globalscale MOCHAbin ====== | ||
| + | {{: | ||
| + | |||
| + | ===== Supported Versions ===== | ||
| + | ---- datatable ---- | ||
| + | cols : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, | ||
| + | headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data | ||
| + | align : c, | ||
| + | filter | ||
| + | filter | ||
| + | ---- | ||
| + | |||
| + | |||
| + | ===== Hardware Highlights ===== | ||
| + | ---- datatable ---- | ||
| + | cols : Model, Versions, CPU, CPU MHz, CPU Cores_numcores_, | ||
| + | header | ||
| + | align : c, | ||
| + | filter | ||
| + | filter | ||
| + | ---- | ||
| + | |||
| + | |||
| + | ===== Installation ===== | ||
| + | /* stable release */ | ||
| + | ---- 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 | ||
| + | filter | ||
| + | ---- | ||
| + | |||
| + | -> [[docs: | ||
| + | |||
| + | ==== OEM installation using the TFTP method ==== | ||
| + | |||
| + | - Copy dtb from build_dir to bin/ and run tftpserver there:< | ||
| + | $ cp ./ | ||
| + | $ in.tftpd -L -s bin/ | ||
| + | - Connect to the device UART via microUSB port and power on the device. | ||
| + | - 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: | ||
| + | * Host: < | ||
| + | * Device: < | ||
| + | - Set the ethernet device (Example for the 1G WAN):< | ||
| + | $ setenv ethact mvpp2-2</ | ||
| + | - Ping server to confirm network is working:< | ||
| + | $ ping $serverip | ||
| + | Using mvpp2-2 device | ||
| + | host 192.168.1.15 is alive</ | ||
| + | - Tftpboot the firmware:< | ||
| + | $ 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=/ | ||
| + | - 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 ===== | ||
| + | -> [[docs: | ||
| + | |||
| + | <WRAP BOX> | ||
| + | |||
| + | FIXME These are generic instructions. Update with your router' | ||
| + | |||
| + | ==== LuCI Web Upgrade Process ==== | ||
| + | |||
| + | * Browse to ''< | ||
| + | * Upload image file for sysupgrade to LuCI | ||
| + | * Wait for reboot | ||
| + | |||
| + | ==== Terminal Upgrade Process ==== | ||
| + | |||
| + | If you don't have a GUI (LuCI) available, you can alternatively upgrade via the command line. | ||
| + | There are two command line methods for upgrading: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing. | ||
| + | |||
| + | === sysupgrade === | ||
| + | |||
| + | * Login as root via SSH on 192.168.1.1, | ||
| + | |||
| + | < | ||
| + | cd /tmp | ||
| + | wget http:// | ||
| + | sysupgrade / | ||
| + | </ | ||
| + | |||
| + | === mtd === | ||
| + | |||
| + | If '' | ||
| + | |||
| + | * Login as root via SSH on 192.168.1.1, | ||
| + | |||
| + | < | ||
| + | cd /tmp | ||
| + | wget http:// | ||
| + | mtd write / | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== 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 ===== | ||
| + | -> [[docs: | ||
| + | |||
| + | ===== Failsafe mode ===== | ||
| + | -> [[docs: | ||
| + | |||
| + | ===== Basic configuration ===== | ||
| + | -> [[docs: | ||
| + | Set up your Internet connection, configure wireless, configure USB port, etc. | ||
| + | |||
| + | ===== Specific Configuration ===== | ||
| + | |||
| + | <WRAP BOX> | ||
| + | FIXME Please fill in real values for this device, then remove the EXAMPLEs | ||
| + | |||
| + | ==== Network interfaces ==== | ||
| + | The default network configuration is: | ||
| + | ^ Interface Name ^ Description | ||
| + | | br-lan | ||
| + | | vlan0 (eth0.0) | ||
| + | | vlan1 (eth0.1) | ||
| + | | wl0 | EXAMPLE WiFi | EXAMPLE Disabled | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Switch Ports (for VLANs) ==== | ||
| + | <WRAP BOX> | ||
| + | FIXME Please fill in real values for this device, then remove the EXAMPLEs | ||
| + | |||
| + | Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on. | ||
| + | ^ Port ^ Switch port ^ | ||
| + | | Internet (WAN) | EXAMPLE 4 | | ||
| + | | LAN 1 | EXAMPLE 3 | | ||
| + | | LAN 2 | EXAMPLE 2 | | ||
| + | | LAN 3 | EXAMPLE 1 | | ||
| + | | LAN 4 | EXAMPLE 0 | | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Buttons ==== | ||
| + | -> [[docs: | ||
| + | Here, we merely name the buttons, so we can use them in the above Howto. | ||
| + | |||
| + | <WRAP BOX> | ||
| + | FIXME Please fill in real values for this device, then remove the EXAMPLEs | ||
| + | |||
| + | The Globalscale MOCHAbin has the following buttons: | ||
| + | |||
| + | ^ BUTTON | ||
| + | | EXAMPLE Reset | reset | | ||
| + | | EXAMPLE Secure Easy Setup | | ||
| + | | EXAMPLE No buttons at all. | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Hardware ===== | ||
| + | ==== Info ==== | ||
| + | <WRAP BOX> | ||
| + | FIXME | ||
| + | - This table is automatically generated, **once the correct filters for Brand and Model are set.** | ||
| + | - If you see " | ||
| + | - If you still don't see a table here, or a table filled with ' | ||
| + | - If you see a table with the desired device data, everything is OK and you can delete this text and the ''< | ||
| + | - If it still doesn' | ||
| + | </ | ||
| + | |||
| + | ---- datatemplatelist dttpllist ---- | ||
| + | template: meta: | ||
| + | cols : Brand, Model, Versions, Device Type, Availability, | ||
| + | filter | ||
| + | filter | ||
| + | filter | ||
| + | ---- | ||
| + | |||
| + | ==== Photos ==== | ||
| + | // | ||
| + | **Insert photo of front of the casing** | ||
| + | |||
| + | //Back://\\ | ||
| + | {{: | ||
| + | |||
| + | ==== Opening the case ==== | ||
| + | |||
| + | //Main PCB://\\ | ||
| + | {{: | ||
| + | |||
| + | ==== Serial ==== | ||
| + | -> [[docs: | ||
| + | |||
| + | How to connect to the Serial Port of this specific device:\\ | ||
| + | * Connect the micro USB port to the computer. (The UART adapter is integrated on the board) | ||
| + | |||
| + | ^ Serial connection parameters\\ for Globalscale MOCHAbin | 115200, 8N1 | | ||
| + | |||
| + | ==== JTAG ==== | ||
| + | -> [[docs: | ||
| + | |||
| + | JTAG schematic: | ||
| + | {{: | ||
| + | |||
| + | ===== Bootloader mods ===== | ||
| + | -> [[docs: | ||
| + | |||
| + | ===== Hardware mods ===== | ||
| + | |||
| + | None so far. | ||
| + | |||
| + | |||
| + | ===== Bootlogs ===== | ||
| + | ==== OEM bootlog ==== | ||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | ==== OpenWrt bootlog ==== | ||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | ===== Notes ===== | ||
| + | //Space for additional notes, links to forum threads or other resources.// | ||
| + | |||
| + | * ... | ||
| + | |||
| + | ===== Tags ===== | ||
| + | |||
| + | [[meta: | ||
| + | {{tag> | ||