Cavetas when using generic install or upgrade of OpenWRT on x86 with disk flashing:
- small root partition size (default size from
img) - conflicting or missing configs between major versions
For most x86 systems (with removable internal storage) generic install of OpenWRT means flashing img to the drive (with Rufus, dd or similar tool).
- download latest release
imgfortargets / x86 / 64from downloads.openwrt.org (and verify fingerprint) - attach HDD from the device to your PC
- flash it:
sudo dd if=./openwrt-....img of=/dev/rdisk2 bs=4m status=progress- Default:
generic-squashfs-combined-efi.img.gz→ Read-only root filesystem + overlay. Harder to utilize all storage. - Recomended:
generic-ext4-combined-efi.img.gz→ Full read-write ext4 root filesystem./is ext4 and writable from the start.
Assuming loop0 is on partition 2:
opkg update && opkg install parted blockdev lsblk- Install needed packageslosetup -a- This shows what file/device backs/dev/loop0parted -s /dev/sda resizepart 2 100%- Expand partition 2 to full diskreboot- Let the system recreate loop0 with new sizeblockdev --getsize64 /dev/loop0- Check loop device size in bytesresize2fs -f /dev/loop0- Expanded the ext4 filesystemdf -h- Verify end results
Potential issiues when doing a system upgrade with sysupgrade or when migrating /etc/config to the fresh install.
→ Upgraded system doesn't have root user customized shell installed.
Solution: Log in to the LuCi web administration and install the shell. See migration backup /etc/passwd for hint, like:
root:x:0:0:root:/root:/bin/bash
Likely issues: IPv6 routing, unconfigured WAN gateway
Use LuCi:
- Network → Interfaces → (WAN6) Edit → Advanced Settings → IPv6 source routing (Uncheck) → Apply/Save
- Uncheck Enable IPv6 in the
br-lanbridge device settings to get rid of IPv6 link local as well
Use ifconfig to show all the network devices and note which ones have IPv6 addresses. Then navigate through the graphical OpenWRT interface to Network->Interfaces, and select the Devices tab. For each device that had an IPv6 address, select "configure" for that device and uncheck "enable IPv6".
When using static public IP WAN network must be completely configured.
Use LuCi:
- Network → Interfaces → (WAN6) Edit: enter IPv4 address, IPv4 gateway (T-2:
93.103.0.1)