3. Make Root File System
McDebian 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...
Root File System
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.12)
wget --user=mcdebian --password=mcdebian123 http://www.protechs-online.com/downloads/McDebian/rootfs/mcdebian-stretch-router-wrt-1900-1200-3200-32x-kernel_4_19_12-base.gz
Website access for firmware:
- Username: "mcdebian"
- Password: "mcdebian123"
Warning the below instructions will delete all contents of the USB drive!
Create USB Drive\Key
- Make a directory "/mnt/usbkey" since all my instructions use this directory to mount the USB drive.
- 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.
If the drive shows as mounted on a folder like in the example above "/mnt/usbkey" unmount it before proceeding
- 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:
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-stretch-router-WRT-1900-1200-3200-32x-Kernel_4_19_12-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.
- 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.