Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
toh:globalscale:mochabin [2021/10/05 16:17] – Created from the form at meta:create_new_device_page gandalftoh:globalscale:mochabin [2023/05/22 20:12] – [Hardware Highlights] 1Gbit ports danitool
Line 1: Line 1:
 ====== Globalscale MOCHAbin ====== ====== Globalscale MOCHAbin ======
-~~NOTOC~~ 
  
-/* This template is intended to be used via https://openwrt.org/meta/create_new_device_page */+{{:media:globalscale:mochabin:mochabin-casing-front.jpg?nolink&180|}}
  
-{{page>meta:infobox:construction&noheader&nofooter&noeditbtn}}+===== Supported Versions ===== 
 +---- datatable ---- 
 +cols    Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid 
 +headers Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data 
 +align   : c,c,c,c,c,c,
 +filter  : Brand=Globalscale 
 +filter  : Model=MOCHAbin 
 +----
  
-//Write a short, relevant description of the device. Include a technical overview, but avoid marketing buzzwords/useless stuff. Two to four sentences is about right. A picture is good, too. Edit the page to see how to add pictures.// 
  
-/*****/ +===== Hardware Highlights ===== 
-/* How to add images ========> https://openwrt.org/meta/adding_images_to_openwrt_wiki */ +---- datatable ---- 
-/*****/+cols    Model, Versions, CPU, CPU MHz, CPU Cores_numcores_, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, Ethernet 100M ports_, Ethernet 1Gbit ports_, Modem, SATA ports_, USB ports_ 
 +header  : Model, Version,SoC,CPU MHz, CPU Cores, Flash MB,RAM MB,WLAN Hardware,100M ports,1Gbit ports,Modem,SATA ports,USB 
 +align   : c,c,c,c,c,c,c,c,c,c,c,c,
 +filter  : Brand=Globalscale 
 +filter  : Model=MOCHAbin 
 +----
  
-{{ media:example:genericrouter1.png?200|Generic Router}} 
  
 +===== 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  : Brand=Globalscale
 +filter  : Model=MOCHAbin
 +----
  
-===== OpenWrt support =====+-> [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]]
  
-<color red>**Not supported.**</color>+==== OEM installation using the TFTP method ====
  
 +  - Copy dtb from build_dir to bin/ and run tftpserver there:<code>
 +$ cp ./build_dir/target-aarch64_cortex-a72_musl/linux-mvebu_cortexa72/image-armada-7040-mochabin.dtb bin/targets/mvebu/cortexa72/
 +$ in.tftpd -L -s bin/targets/mvebu/cortexa72/</code>
 +  - 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: <code>$ setenv serverip 192.168.1.10</code>
 +      * Device: <code>$ setenv ipaddr 192.168.1.15</code>
 +  - Set the ethernet device (Example for the 1G WAN):<code>
 +$ setenv ethact mvpp2-2</code>
 +  - Ping server to confirm network is working:<code>
 +$ ping $serverip
 +Using mvpp2-2 device
 +host 192.168.1.15 is alive</code>
 +  - Tftpboot the firmware:<code>
 +$ tftpboot $kernel_addr_r openwrt-mvebu-cortexa72-globalscale_mochabin-initramfs-kernel.bin
 +$ tftpboot $fdt_addr_r image-armada-7040-mochabin.dtb</code>
 +  - Boot the image: <code>
 +$ booti $kernel_addr_r - $fdt_addr_r</code>
 +  - 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:<code>
 +$ gunzip /tmp/openwrt-mvebu-cortexa72-globalscale_mochabin-squashfs-sdcard.img.gz
 +$ dd if=/tmp/openwrt-mvebu-cortexa72-globalscale_mochabin-squashfs-sdcard.img of=/dev/mmcblk0 && sync</code>
 +  - Reboot the device.
 +  - Hit any key to stop the autoboot.
 +  - Reset U-boot env and set the bootcmd:<code>
 +$ env default -a
 +$ setenv bootcmd 'load mmc 0 ${loadaddr} boot.scr && source ${loadaddr}'</code>
 +  - 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.<code>
 +$ setenv console 'console=ttyS0,115200'</code>
 +  - Save and reset<code>
 +$ saveenv
 +$ reset</code>
 +  - OpenWrt should boot from eMMC now.
  
-/*** if info available: uncomment and fill in +===== Upgrading OpenWrt ===== 
-===== Supporting activities ===== +->  [[docs:guide-user:installation:generic.sysupgrade]]
-//Describe if there are any ongoing activities that might lead to OpenWrt support.//+
  
-  * OpenWrt forum thread: (add link) +<WRAP BOX>
-***/+
  
 +FIXME These are generic instructions. Update with your router's specifics.
  
-/*** if info available: uncomment and fill in +==== LuCI Web Upgrade Process ====
-===== Experimental firmware =====+
  
-//List experimental firmware download links here.//+  * Browse to ''<nowiki>http://192.168.1.1/cgi-bin/luci/mini/system/upgrade/</nowiki>'' LuCI Upgrade URL 
 +  * Upload image file for sysupgrade to LuCI 
 +  * Wait for reboot
  
-//None at this time.//+==== Terminal Upgrade Process ====
  
-  * External image (add link) +If you don't have a GUI (LuCIavailable, you can alternatively upgrade via the command line
-  * trunk image (add link) +There are two command line methods for upgrading:
-  * ..+
-***/+
  
 +  * ''sysupgrade''
 +  * ''mtd''
  
-===== Hardware highlights ===== +Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.
-^ CPU                        ^ Ram      ^ Flash   ^ Network     ^ WLAN   ^ USB      ^ Serial   ^ JTag   ^ +
-| EXAMPLE RT3052 @ 384 MHz    64 MiB  |  8 MiB  |  4x 10/100  |  bgn    1x 2.0  |   Yes    |   ?    |+
  
 +=== sysupgrade ===
  
-/*** if info available: uncomment and fill in +  Login as root via SSH on 192.168.1.1, then enter the following commands:
-===== Installation ===== +
-  - → [[:downloads|Obtain firmware]] +
-  - → [[docs:guide-user:installation:generic.flashing|Install OpenWrt]] +
-  - → [[:downloads|Latest OpenWrt release]]+
  
-==== Installing OpenWrt ==== +<code> 
-***/+cd /tmp 
 +wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc 
 +sysupgrade /tmp/xxx.abc 
 +</code>
  
 +=== mtd ===
 +
 +If ''sysupgrade'' does not support this router, use ''mtd''.
 +
 +  * Login as root via SSH on 192.168.1.1, then enter the following commands:
 +
 +<code>
 +cd /tmp
 +wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
 +mtd write /tmp/xxx.abc linux && reboot
 +</code>
 +
 +</WRAP>
 +
 +===== Expanding the eMMC partition ====
 +
 +Check your partitions, especially for partition /dev/loop0 having filesystem type f2fs:
 +
 +<code>
 +root@OpenWrt:~# df -Th
 +Filesystem           Type            Size      Used Available Use% Mounted on
 +/dev/root            squashfs        3.5M      3.5M         0 100% /rom
 +tmpfs                tmpfs           3.9G      1.1M      3.9G   0% /tmp
 +/dev/loop0           f2fs           98.8M     61.5M     37.3M   62% /overlay
 +overlayfs:/overlay   overlay        98.8M     61.5M     37.3M   62% /
 +tmpfs                tmpfs         512.0K            512.0K   0% /dev
 +</code>
 +
 +Install the following packages:
 +<code>
 +opkg update
 +opkg install losetup e2fsprogs resize2fs block-mount kmod-fs-f2fs f2fs-tools cfdisk kmod-fs-ext4 parted rsync
 +</code>
 +
 +Confirm, that the device /dev/loop0 is located on the 2nd partition of mmcblk0 by checking the back file column:
 +<code>
 +root@OpenWrt:~# losetup
 +NAME       SIZELIMIT  OFFSET AUTOCLEAR RO BACK-FILE  DIO LOG-SEC
 +/dev/loop0         0 3604480          0 /mmcblk0p2       512
 +</code>
 +
 +Resize the partition mmcblk0p2 by using cfdsik:
 +<code>
 +root@OpenWrt:~# cfdisk /dev/mmcblk0
 +</code>
 +
 +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 "Write".
 +
 +Set variables, that are used later:
 +<code>
 +LOOP="$(losetup -n -O NAME | sort | sed -n -e "1p")"
 +ROOT="$(losetup -n -O BACK-FILE ${LOOP} | sed -e "s|^|/dev|")"
 +OFFS="$(losetup -n -O OFFSET ${LOOP})"
 +</code>
 +
 +Check the variables withe echo command:
 +<code>
 +root@OpenWrt:~# echo ${OFFS} ${LOOP} ${ROOT}
 +3604480 /dev/loop0 /dev/mmcblk0p2
 +</code>
 +
 +The loop device setup:
 +<code>
 +LOOP="$(losetup -f)"
 +losetup -o ${OFFS} ${LOOP} ${ROOT}
 +</code>
 +
 +Finalize the partition resize:
 +<code>
 +fsck.f2fs -f ${LOOP}  #and go for default options if given any
 +mount ${LOOP} /mnt
 +umount ${LOOP}
 +resize.f2fs ${LOOP}
 +reboot
 +</code>
 +
 +After reboot, you can confirm the full partition size on SSH and LuCi:
 +<code>
 +root@OpenWrt:~# df -Th
 +Filesystem           Type            Size      Used Available Use% Mounted on
 +/dev/root            squashfs        3.5M      3.5M         0 100% /rom
 +tmpfs                tmpfs           3.9G    240.0K      3.9G   0% /tmp
 +/dev/loop0           f2fs           14.7G    609.8M     14.1G   4% /overlay
 +overlayfs:/overlay   overlay        14.7G    609.8M     14.1G   4% /
 +tmpfs                tmpfs         512.0K            512.0K   0% /dev
 +</code>
  
-/*** if info available: uncomment and fill in 
 ===== Debricking ===== ===== Debricking =====
 -> [[docs:guide-user:troubleshooting:generic.debrick]] -> [[docs:guide-user:troubleshooting:generic.debrick]]
-***/ 
- 
  
-/*** if info available: uncomment and fill in 
 ===== Failsafe mode ===== ===== Failsafe mode =====
 -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]] -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]]
-***/ 
  
- 
-/*** if info available: uncomment and fill in 
 ===== Basic configuration ===== ===== Basic configuration =====
-After flashing, proceed with [[docs:guide-user:base-system:start|Basic configuration]]Set up your Internet connection, configure wireless, configure USB port, etc. +-> [[docs:guide-user:base-system:start|Basic configuration]] After flashing, proceed with this.\\ 
-***/+Set up your Internet connection, configure wireless, configure USB port, etc.
  
 +===== Specific Configuration =====
  
-/*** if info available: uncomment and fill in +<WRAP BOX> 
-===== Specific configuration ===== +FIXME Please fill in real values for this device, then remove the EXAMPLEs
- +
-<WRAP BOX 600px+
-FIXME Please fill in real values for this device, then remove the EXAMPLEs and the WRAP that encloses this text.+
  
 ==== Network interfaces ==== ==== Network interfaces ====
Line 87: Line 218:
 | vlan1 (eth0.1)   | EXAMPLE WAN port             | EXAMPLE DHCP             | | vlan1 (eth0.1)   | EXAMPLE WAN port             | EXAMPLE DHCP             |
 | wl0              | EXAMPLE WiFi                 | EXAMPLE Disabled         | | wl0              | EXAMPLE WiFi                 | EXAMPLE Disabled         |
 +
 </WRAP> </WRAP>
-***/ 
  
 +==== 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     |
 +
 +</WRAP>
  
-/*** if info available: uncomment and fill in 
 ==== Buttons ==== ==== Buttons ====
 -> [[docs:guide-user:hardware:hardware.button]] on howto use and configure the hardware button(s). -> [[docs:guide-user:hardware:hardware.button]] on howto use and configure the hardware button(s).
 Here, we merely name the buttons, so we can use them in the above Howto. Here, we merely name the buttons, so we can use them in the above Howto.
  
-<WRAP BOX 600px+<WRAP BOX> 
-FIXME Please fill in real values for this device, then remove the EXAMPLEs and the WRAP that encloses this text.+FIXME Please fill in real values for this device, then remove the EXAMPLEs
  
 The Globalscale MOCHAbin has the following buttons: The Globalscale MOCHAbin has the following buttons:
Line 105: Line 248:
 | EXAMPLE Secure Easy Setup    |   ses   | | EXAMPLE Secure Easy Setup    |   ses   |
 | EXAMPLE No buttons at all.      -    | | EXAMPLE No buttons at all.      -    |
 +
 </WRAP> </WRAP>
-***/ 
- 
  
 ===== Hardware ===== ===== Hardware =====
 ==== Info ==== ==== Info ====
-^ Architecture     | EXAMPLE MIPS                             | 
-^ Vendor           | EXAMPLE Ralink                           | 
-^ Bootloader       | EXAMPLE U-Boot                           | 
-^ System-On-Chip   | EXAMPLE Ralink RT3052 - MIPS 24K V4.12   | 
-^ CPU/Speed        | EXAMPLE 451 MHz                          | 
-^ Flash-Chip       | EXAMPLE unkown                           | 
-^ Flash size       | EXAMPLE 8 MiB                            | 
-^ RAM              | EXAMPLE 64 MiB                           | 
-^ Wireless         | EXAMPLE RT2860v2 2.4GHz 802.11bgn        | 
-^ Ethernet         | EXAMPLE 10/100 Mbit/s w/ vlan support    | 
-^ Switch           | EXAMPLE Qualcomm Atheros QCA8337         | 
-^ USB              | EXAMPLE 1x 2.0                           | 
-^ Serial           | EXAMPLE [[#Serial|Yes]]                  | 
-^ JTAG             | EXAMPLE [[#JTAG|Not populated]]          | 
- 
- 
-/*** if info available: uncomment and fill in 
-==== Flash Layout ==== 
 <WRAP BOX> <WRAP BOX>
-FIXME //[[:docs:techref:flash.layout#discovery_how_to_find_out|Find out flash layout]]then add the flash layout table here (copy, pastemodify the [[docs:techref:flash.layout#partitioning_of_squashfs-images|example]]).// +FIXME 
- +  - This table is automatically generated, **once the correct filters for Brand and Model are set.** 
-Please check out the article [[docs:techref:flash.layout|Flash layout]]. It contains examples and explanations that describe how to document the flash layout.+  - If you see "Nothing." instead of a tableplease **edit this section and adjust the filters with the proper Brand and Model.** Just try, it's easy. 
 +  - If you still don't see a table here, or a table filled with '¿': [[toh:start|Is there already a Techdata page available]] for Globalscale MOCHAbin ? If not[[meta:create_new_dataentry_page|Create one]]. 
 +  - If you see a table with the desired device data, everything is OK and you can delete this text and the ''<nowiki><WRAP></nowiki>'' that encloses it. 
 +  - If it still doesn't work: Don't panic, calm down, take a deep breath and [[:contact|contact a wiki admin]] (tmomas) for help.
 </WRAP> </WRAP>
-***/ 
  
 +---- datatemplatelist dttpllist ----
 +template: meta:template_datatemplatelist
 +cols    : Brand, Model, Versions, Device Type, Availability, Supported Since Commit_git, Supported since Rel, Supported current Rel, Unsupported, Bootloader, CPU, Target, CPU MHz, Flash MBs, RAM MB, Switch, Ethernet 100M ports_, Ethernet Gbit ports_, Comments network ports_, Modem, VLAN, WLAN 2.4GHz, WLAN 5.0GHz, WLAN Hardwares, WLAN Comments_, Detachable Antennas_, USB ports_, SATA ports_, Comments USB SATA ports_, Serial, JTAG, LED count, Button count, Power supply, Device Techdata_pageid, Forum topic URL_url, wikidevi URL_url, OEM Device Homepage URL_url, Firmware OEM Stock URL_url, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Comments_
 +filter  : Brand=Globalscale
 +filter  : Model=MOCHAbin
 +filter  : Versions=
 +----
  
 ==== Photos ==== ==== Photos ====
-/* =====>>>>> Standard size for photos: add ?400 to the medialink                                */ +//Front://\\
-/* When uploading photos, **name them** intelligently. Nobody knows what 20100930_000602.jpg is! */ +
-/* e.g. {{:media:yourbrand:yourbrand_yourmodel_front.jpg?400|}}                                  */ +
-/* Thanks, your wiki administration - Oct. 2015 */ +
 **Insert photo of front of the casing** **Insert photo of front of the casing**
  
-**Insert photo of back of the casing** +//Back://\\ 
- +{{:media:globalscale:mochabin:mochabin-casing-back.jpg?direct&300|}}
-**Insert photo of backside label** +
- +
-**Insert photo of PCB**+
  
 ==== Opening the case ==== ==== Opening the case ====
  
-<WRAP BOX> +//Main PCB://\\ 
-FIXME //Describe what needs to be done to open the device, e.g. remove rubber feet, adhesive labels, screws, ...// +{{:media:globalscale:mochabin:mochabin-pcba.jpg?direct&700|}}
-</WRAP>+
  
 ==== Serial ==== ==== Serial ====
Line 161: 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 port**+  Connect the micro USB port to the computer. (The UART adapter is integrated on the board)
  
-<WRAP BOX> +^ Serial connection parameters\\ for Globalscale MOCHAbin | 115200, 8N1 |
-FIXME //Replace EXAMPLE by real values.// +
-</WRAP> +
- +
-^ Serial connection parameters\\ for Globalscale MOCHAbin @@Version@@ EXAMPLE 115200, 8N1 |+
  
 ==== JTAG ==== ==== JTAG ====
 -> [[docs:techref:hardware:port.jtag]] general information about the JTAG port, JTAG cable, etc. -> [[docs:techref:hardware:port.jtag]] general information about the JTAG port, JTAG cable, etc.
  
-How to connect to the JTAG Port of this specific device:\\ +JTAG schematic:\\ 
-**Insert photo of PCB with markings for JTAG port**+{{:media:globalscale:mochabin:mochabin-jtag.png?direct&400|}} 
 + 
 +===== Bootloader mods ===== 
 +-> [[docs:techref:bootloader]] 
 + 
 +===== Hardware mods ===== 
 + 
 +None so far. 
  
 ===== Bootlogs ===== ===== Bootlogs =====
Line 187: Line 316:
  
 ===== Notes ===== ===== Notes =====
 +//Space for additional notes, links to forum threads or other resources.//
 +
 +  * ...
  
 ===== Tags ===== ===== Tags =====
 +
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>EXAMPLETAG unsupported}}+{{tag>mvebu armada7040 8192NAND 4096RAM 6port gigabitethernet 2USB USB3.0 0wnic sfp sfp_plus sata3 MiniPCIexpress m.2 1sim poe rtc}}
  • Last modified: 2024/02/12 11:13
  • by 127.0.0.1