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:globalscale:mochabin [2022/05/03 19:13] – datatable filters adjusted tmomastoh: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://openwrt.org/meta/create_new_device_page ONLY.  */ +{{:media:globalscale:mochabin:mochabin-casing-front.jpg?nolink&180|}}
-/* DO NOT CREATE NEW DEVICEPAGES VIA COPY & PASTE! */ +
-/* USE https://openwrt.org/meta/create_new_device_page */ +
- +
-{{page>meta:infobox:construction&noheader&nofooter&noeditbtn}} +
- +
-//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.// +
- +
-<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/useful information (instead of any template that's there) **remove the instructions, as well as the ''<nowiki><WRAP></nowiki>'' that encloses it.** +
-</WRAP> +
- +
-/*****/ +
-/* How to add images ========> http://openwrt.org/meta/adding_images_to_openwrt_wiki */ +
-/*****/ +
- +
-{{media:example:genericrouter1.png?200|Generic Router}} +
- +
-<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 "fixme" tags with text on a light background (like this text) throughout this template. As you fill in the page, remove those tags so that people can judge its completeness. +
-  - When there are no more "fixme" tags left, delete this one too, along with the ''<nowiki><WRAP></nowiki>'' that encloses it. +
- +
-===== Keep the articles modular ===== +
-  * Please include only model specific information, omit bla,bla and put everything generic into separate articles +
-  * If you have no time to write certain stuff, link to [[docs:start]] +
-  * [[docs:guide-user:base-system:start]] should lead the way, do not explain this again +
-  * DO NOT provide a complete howto here! Instead //groom// the [[docs:start|general documentation]]. +
-</WRAP>+
  
 ===== Supported Versions ===== ===== Supported Versions =====
Line 45: Line 15:
 ===== Hardware Highlights ===== ===== Hardware Highlights =====
 ---- datatable ---- ---- 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_ +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,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB+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,c align   : c,c,c,c,c,c,c,c,c,c,c,c,c
 filter  : Brand=Globalscale filter  : Brand=Globalscale
Line 55: 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 63: Line 32:
 filter  : Model=MOCHAbin filter  : Model=MOCHAbin
 ---- ----
-*/ 
- 
- 
-/* 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  : Brand=Globalscale 
-filter  : Model=MOCHAbin 
----- 
- 
  
 -> [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]] -> [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]]
- 
-FIXME Please add the installation procedure here. 
- 
-==== Flash Layout ==== 
-<WRAP BOX> 
-FIXME //[[:docs:techref:flash.layout#discovery_how_to_find_out|Find out flash layout]], then add the flash layout table here (copy, paste, modify the [[docs:techref:flash.layout#partitioning_of_the_flash|example]]).// 
- 
-Please check out the article [[docs:techref:flash.layout|Flash layout]]. It contains examples and explanations that describe how to document the flash layout. 
-</WRAP> 
- 
-==== 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 ''<nowiki>http://192.168.1.1/Upgrade.asp</nowiki>'' 
-  * Upload .bin file to router 
-  * Wait for it to reboot 
-  * Telnet to 192.168.1.1 and set a root password, or browse to ''<nowiki>http://192.168.1.1</nowiki>'' if LuCI is installed. 
-</WRAP> 
  
 ==== OEM installation using the TFTP method ==== ==== OEM installation using the TFTP method ====
  
-->  [[docs:guide-user:installation:generic.flashing.tftp]] +  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/ 
-=== Specific values needed for tftp === +$ in.tftpd -L -s bin/targets/mvebu/cortexa72/</code> 
- +  Connect to the device UART via microUSB port and power on the device. 
-<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<code>$ setenv serverip 192.168.1.10</code> 
- +      * Device: <code>$ setenv ipaddr 192.168.1.15</code> 
-^ Bootloader tftp server IPv4 address  | FILL-IN   | +  - Set the ethernet device (Example for the 1G WAN):<code> 
-^ Bootloader MAC address (special)     | FILL-IN   | +$ setenv ethact mvpp2-2</code> 
-^ Firmware tftp image                  | [[:downloads|Latest OpenWrt release]] (**''NOTE:''** Name must contain //"tftp"//) | +  - Ping server to confirm network is working:<code
-^ TFTP transfer window                 | FILL-IN seconds                                | +$ ping $serverip 
-^ TFTP window start                    | approximately FILL-IN seconds after power on   | +Using mvpp2-2 device 
-^ TFTP client required IP address      | FILL-IN                                        | +host 192.168.1.15 is alive</code> 
- +  - Tftpboot the firmware:<code> 
-</WRAP>+$ 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.
  
 ===== Upgrading OpenWrt ===== ===== Upgrading OpenWrt =====
Line 170: Line 118:
  
 </WRAP> </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>
  
 ===== Debricking ===== ===== Debricking =====
Line 246: Line 271:
  
 ==== Photos ==== ==== Photos ====
-/* =====>>>>> Standard size for photos: add ?400 to the medialink                                */ 
-/* 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 */ 
- 
 //Front://\\ //Front://\\
 **Insert photo of front of the casing** **Insert photo of front of the casing**
  
 //Back://\\ //Back://\\
-**Insert photo of back of the casing** +{{:media:globalscale:mochabin:mochabin-casing-back.jpg?direct&300|}}
- +
-//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 
-</WRAP> 
  
 //Main PCB://\\ //Main PCB://\\
-**Insert photo of PCB**+{{:media:globalscale:mochabin:mochabin-pcba.jpg?direct&700|}}
  
 ==== Serial ==== ==== Serial ====
Line 276: 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> +
-FIXME //Replace EXAMPLE by real values.// +
-</WRAP>+
  
-^ Serial connection parameters\\ for Globalscale MOCHAbin @@Version@@ EXAMPLE 115200, 8N1 |+^ Serial connection parameters\\ for Globalscale MOCHAbin | 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 ===== ===== Bootloader mods =====
Line 315: Line 321:
  
 ===== Tags ===== ===== Tags =====
-<WRAP BOX> 
-FIXME //Add tags below, then remove this fixme.// 
-</WRAP> 
  
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>EXAMPLETAG}}+{{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