From charlesreid1

Revision as of 14:25, 23 January 2018 by Admin (talk | contribs) (→‎insmod)

New guide to installing everything from scratch on the Widy.

steps

Get version 2 of firmware here: https://wiki.openwrt.org/toh/tp-link/tl-mr3040#version_2x

Use Chaos Calmer: https://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/openwrt-15.05-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin

Do not use Barrier Breaker, it has kernel problems with usb /scsi kernel modules.

Flash router with firmware image (if already running OpenWrt, go to web console and pick System > Flash Firmware, if using built-in admin panel then do System Tools > Firmwware Upgrade).

Connect Widy to internet. Either connect ethernet cable, or use web control panel to connect to a wifi network as a client.

And... we can install kmod-usb-storage, but we run out of space before we can install kmod-fs-ext4.

That means we're stuck with Barrier Breaker, and if we can't get Barrier Breaker's kernel modules working, this entire venture is all... worthless.

opkg config

Maybe this is the problem?

/etc/opkg.conf config file seems to be on chaos calmer even though I re-flashed with barrier breaker image.

dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
options check_signature 1

barrier breaker:

src/gz barrier_breaker_packages http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/packages
src/gz barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base
src/gz barrier_breaker_luci http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/luci
src/gz barrier_breaker_management http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/management
src/gz barrier_breaker_routing http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/routing
src/gz barrier_breaker_telephony http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/telephony

chaos calmer:

src/gz chaos_calmer_base http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/luci
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing
src/gz chaos_calmer_telephony http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/telephony
src/gz chaos_calmer_management http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management

Nope. That wasn't the problem.

insmod

Via this thread: https://dev.openwrt.org/ticket/19351

Tried the following commands:

root@dropbear:~# insmod scsi_mod
root@dropbear:~# insmod sd_mod

Then removed and installed:

root@dropbear:~# opkg install kmod-usb-storage
Package kmod-usb-storage (3.10.49-1) installed in root is up to date.
root@dropbear:~# opkg remove kmod-usb-storage
Removing package kmod-usb-storage from root...
root@dropbear:~# opkg install kmod-usb-storage
Installing kmod-usb-storage (3.10.49-1) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/kmod-usb-storage_3.10.49-1_ar71xx.ipk.
Configuring kmod-usb-storage.

That seemed to work okay.

Next came ext4:

root@dropbear:~# opkg install kmod-fs-ext4
Installing kmod-fs-ext4 (3.10.49-1) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/kmod-fs-ext4_3.10.49-1_ar71xx.ipk.
Installing kmod-lib-crc16 (3.10.49-1) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/kmod-lib-crc16_3.10.49-1_ar71xx.ipk.
Installing kmod-crypto-hash (3.10.49-1) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/kmod-crypto-hash_3.10.49-1_ar71xx.ipk.
Configuring kmod-crypto-hash.
Configuring kmod-lib-crc16.
Configuring kmod-fs-ext4.
kmod: failed to insert /lib/modules/3.10.49/ext4.ko
root@dropbear:~# insmod ext4
kmod: failed to insert /lib/modules/3.10.49/ext4.ko

Uh oh. Try removing/re-installing:

root@dropbear:~# opkg remove kmod-fs-ext4
Removing package kmod-fs-ext4 from root...
root@dropbear:~# opkg install kmod-fs-ext4
Installing kmod-fs-ext4 (3.10.49-1) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/kmod-fs-ext4_3.10.49-1_ar71xx.ipk.
Configuring kmod-fs-ext4.
kmod: module is already loaded - mbcache
kmod: module is already loaded - jbd2
kmod: failed to insert /lib/modules/3.10.49/ext4.ko

No luck. Keep pressing forward...

Install block-mount:

root@dropbear:~# opkg install block-mount
Installing block-mount (2014-06-22-e0430f5c62f367e5a8e02755412977b02c3fc45e) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/block-mount_2014-06-22-e0430f5c62f367e5a8e02755412977b02c3fc45e_ar71xx.ipk.
Configuring block-mount.

Note that this post (https://www.loganmarchione.com/2014/10/openwrt-with-openvpn-client-on-tp-link-tl-mr3020/) states that the kernel plugin failures may be solved by plugging in the flash drive and rebooting the router.