MV1000W along with Other OpenWRT Routers: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 40: | Line 40: | ||
It's all fine and cool, but... What if? | It's all fine and cool, but... What if? | ||
=== The Operating System === | ===The Operating System=== | ||
This idea came about for the simple reason that the rtl8192bu Wireless Radio does NOT work with the 23.x versions of OpenWRT. But it does work with the GL Provided 19.07.8 version of OpenWRT. There are BS instructions on the OpenWRT page for this router: https://openwrt.org/toh/gl.inet/gl-mv1000<syntaxhighlight lang="text"> | This idea came about for the simple reason that the rtl8192bu Wireless Radio does NOT work with the 23.x versions of OpenWRT. But it does work with the GL Provided 19.07.8 version of OpenWRT. There are BS instructions on the OpenWRT page for this router: https://openwrt.org/toh/gl.inet/gl-mv1000<syntaxhighlight lang="text"> | ||
Increasing the root filesystem | Increasing the root filesystem | ||
| Line 67: | Line 67: | ||
First, get a microSD card (doesn't have to be huge, and can be smaller than the 'built-in' eMMC device) and insert it into the card slot. | First, get a microSD card (doesn't have to be huge, and can be smaller than the 'built-in' eMMC device) and insert it into the card slot. | ||
==== "Bulk Route" ==== | ===="Bulk Route"==== | ||
If the microSD Card is 8GB or larger, just use the DD command: <code>dd if=/dev/mmcblk0 of=/dev/mmcblk1 bs=16M conv=noerror,sync status=progress</code> | If the microSD Card is 8GB or larger, just use the DD command: <code>dd if=/dev/mmcblk0 of=/dev/mmcblk1 bs=16M conv=noerror,sync status=progress</code> | ||
| Line 74: | Line 74: | ||
Skip the rest of the items in the "Solutions (Yes...") Section | Skip the rest of the items in the "Solutions (Yes...") Section | ||
==== Prepare the microSD Card ==== | ====Prepare the microSD Card==== | ||
<code>wipefs -a /dev/mmcblk1</code> (should be /dev/mmcblk1, but double check using lsblk -f (and of course install lsblk if it isn't available, as well as for any other command noted in here that isn't available until being installed) | <code>wipefs -a /dev/mmcblk1</code> (should be /dev/mmcblk1, but double check using lsblk -f (and of course install lsblk if it isn't available, as well as for any other command noted in here that isn't available until being installed) | ||
Then use CFDISK or FDISK to create the same Partitions from | Then use CFDISK or FDISK to create the same Partitions from | ||
==== Copy the "/boot" Partition ==== | ====Copy the "/boot" Partition==== | ||
mkdir /mnt/extracted | mkdir /mnt/extracted | ||
| Line 88: | Line 88: | ||
It isn't covered here, but installing unsquashfs, mksquashfs, xz, etc. will all need to be installed using OPKG | It isn't covered here, but installing unsquashfs, mksquashfs, xz, etc. will all need to be installed using OPKG | ||
==== And finally, from the Marvell U-Boot Command Line (press gl (that's g as in Girl and L as in little) in quick succession) ==== | ====And finally, from the Marvell U-Boot Command Line (press gl (that's g as in Girl and L as in little) in quick succession)==== | ||
setenv bootargs console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 root=/dev/mmcblk1p2 rw rootwait | setenv bootargs console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 root=/dev/mmcblk1p2 rw rootwait | ||
| Line 97: | Line 97: | ||
booti 0x5000000 - 0x4ff0000 | booti 0x5000000 - 0x4ff0000 | ||
==== OK, done with the booting to the alternate boot device, now on to 'fixing up' the built in eMMC device ==== | ====OK, done with the booting to the alternate boot device, now on to 'fixing up' the built in eMMC device==== | ||
...running out of time today, so just putting the initial notes in place. | ...running out of time today, so just putting the initial notes in place. | ||
Assumes one is booted from the 'alternate boot device', IE mmcblk1, not mmcblk0. | Assumes one is booted from the 'alternate boot device', IE mmcblk1, not mmcblk0. | ||
* Get the contents of | *umount anything mounted on /dev/mmcblk0pX (happens if using DD and duplicate UUIDs are created) | ||
** mkdir /mnt/extracted | *Get the contents of /dev/mmcblk0p2 (the original /rom (what OpenWRT refers to it as, since it is a Read Only SquashFS File system), AKA (in Rocky Linux parlance), the ROOT ( / ) Partition; | ||
** unsquashfs -d /mnt/extracted /dev/mmcblk0p2 | **mkdir /mnt/extracted | ||
** mksquashfs /mnt/extracted /dev/sda2 -comp xz -noappend | **unsquashfs -d /mnt/extracted /dev/mmcblk0p2 | ||
* | **mksquashfs /mnt/extracted /dev/sda2 -comp xz -noappend | ||
*Wipe out every Partition on mmcblk0, except the first Partition (/boot in Rocky Linux parlance, containing Image (the IntraRAMFS equivalent) and .dtb file) | |||
**use CFDISK | |||
**Resize the /boot partition if desired | |||
***e2fsck -f /dev/mmcblk0p1 | |||
***resize2fs /dev/mmcblk0p1 | |||
**...then create a 6 GB (or whatever size desired) main partition | |||
**...leaving a bit less than 1GB for a Swap Partition | |||
*Copy everything from /mnt/extracted to /mnt/mmcblk0p2 (mount it first of course) | |||
**Optionally check the file system with e2fsck | |||
*Copy all the custom settings from the Overlay "Partition" | |||
**rsync -av /rom/overlay/upper/ /mnt/mmcblk0p2/ (this will overwrite all the 'stock' files with duplicate or upgraded files) | |||
*Reboot | |||
* | |||
=== Marvell U-Boot and PRINTENV === | |||
Below are the default values displayed by the printenv command from within the Marvell U-Boot Command Prompt;<syntaxhighlight lang="text"> | Below are the default values displayed by the printenv command from within the Marvell U-Boot Command Prompt;<syntaxhighlight lang="text"> | ||
args_mmc=setenv bootargs "${console} root=/dev/mmcblk0p2 rw rootwait" | args_mmc=setenv bootargs "${console} root=/dev/mmcblk0p2 rw rootwait" | ||
| Line 160: | Line 171: | ||
=== Some Bonus MMC Commands for U-Boot === | ===Some Bonus MMC Commands for U-Boot=== | ||
mmc list | mmc list | ||