tl-wr1043nd-v3

Wiki: https://openwrt.org/toh/tp-link/tl-wr1043nd
Firmware Install: download
Firmware Upgrade: download
Firmware OEM Stock: download

After flashing the firmware, the router will get the ip 192.168.1.1 on the LAN ports and DHCP on the WAN.

Test the network conectivity

ping -c 4 8.8.8.8

Install necessary packages

opkg update
opkg install kmod-usb-storage block-mount
opkg install kmod-fs-ext4

Load necessary kernel modules

modprobe sd_mod
modprobe usb-storage
modprobe ext4

Format the usb as ext4

Configure the extroot

mount /dev/sda /mnt
# Copy data from /overlay partition to the USB
tar -C /overlay/ -c . -f - | tar -C /mnt/ -xf -
sync && umount /dev/sda

Configure fstab

block detect > /etc/config/fstab

Now edit the file and change it acordingly.

Show /etc/config/fstab

Enable the fstab service at startup

/etc/init.d/fstab enable

And check it

readlink -f /etc/rc.d/*fstab

Reboot

Tip

after reboot, you can go to http://192.168.1.1/cgi-bin/luci/admin/system/admin/sshkeys and add your ssh-key.