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 [2023/03/06 18:11] – [OEM installation using the TFTP method] danitooltoh:globalscale:mochabin [2023/05/22 20:12] – [Hardware Highlights] 1Gbit ports danitool
Line 15: Line 15:
 ===== Hardware Highlights ===== ===== Hardware Highlights =====
 ---- datatable ---- ---- datatable ----
-cols    : Model, Versions, CPU, CPU MHz, CPU Cores_numcores_, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, SATA ports_, 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, CPU Cores, Flash MB,RAM MB,WLAN Hardware,100M ports,Gbit ports,Modem,SATA ports,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 118: 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 209: Line 286:
  
 How to connect to the Serial Port of this specific device:\\ How to connect to the Serial Port of this specific device:\\
-The serial port is at the micro USB port+  * Connect the micro USB port to the computer. (The UART adapter is integrated on the board)
  
-^ 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 =====
  • Last modified: 2024/02/12 11:13
  • by 127.0.0.1