-
Notifications
You must be signed in to change notification settings - Fork 14
3. Make Root File System
The root file system has to be put onto a USB Drive and connected to the WRT router. This in theory will greatly increase the life span of the router since the firmware only reads from the router's nand flash once during boot and never writes to nand flash. The root file system USB Drive must be connected to the USB 2.0 port.
My instructions assume you are familiar with and have available a Linux distro like Debian, Ubuntu, Yocto, etc...
WRT1900AC V1 (McDebian 4.4.16)
wget --user=mcdebian --password=mcdebian123 http://www.protechs-online.com/downloads/McDebian/rootfs/mcdebian-router-WRT-1900-1200-Kernel_4_4_16-base.gz
WRT1200AC, WRT1900AC V1\V2, WRT1900ACS, WRT3200ACM and WRT32X (McDebian 4.19.91)
wget --user=mcdebian --password=mcdebian123 http://www.protechs-online.com/downloads/McDebian/rootfs/mcdebian-buster-router-wrt-1900-1200-3200-32x-kernel_4_19_91-base.gz
Website access for firmware:
- Username: "mcdebian"
- Password: "mcdebian123"
- Make a directory "/mnt/usbkey" since all my instructions use this directory to mount the USB drive.
mkdir /mnt/usbkey
- Make a directory "/root/McDebian/McDebian-rootfs-baselines", put the McDebian rootfs and rootfs update files (*.gz) into it.
mkdir /root/McDebian
mkdir /root/McDebian-rootfs-baselines
- Use lsblk to find out where the USB drive was mounted to when plugged in.
lsblk
If the drive shows as mounted on a folder like in the example above "/mnt/usbkey" unmount it before proceeding
umount /mnt/usbkey
- Format the USB drive partition ext4 and then mount the USB drive.
mkfs.ext4 /dev/sdb1
mount /dev/sdb1 /mnt/usbkey
- Extract the root files system to the USB drive with command:
WRT1900AC V1
tar zxf /root/McDebian/McDebian-rootfs-baselines/mcdebian-router-WRT-1900-1200-Kernel_4_4_16-base.gz -C /mnt/usbkey
WRT1200AC, WRT1900AC V1\V2, WRT1900ACS, WRT3200ACM and WRT32X
tar zxf /root/McDebian/McDebian-rootfs-baselines/mcdebian-buster-router-wrt-1900-1200-3200-32x-kernel_4_19_91-base.gz -C /mnt/usbkey
- Unmount the USB Drive. Keep in mind that the dismount could take awhile because a lot of files were added to the USB drive.
umount /mnt/usbkey
- Plug the USB Drive into the router and power up the router. If you can't connect to the router after the initial power on this is due to udev discovering and mapping interfaces. A power cycle (off and on) will be required to complete the initial McDebian implementation on the router.