The new OpenWRT-Custom-Images are ready!

Posted by Matthias 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
The new OpenWRT-Custom-Images are ready!
June 07, 2013 11:48AM
Hey guys!

I was talking about a ages ago, but nothing happend.
Now I'm done with it and provide you three new images for your routers:

TP-Link TL-MR3020
TP-Link TL-MR3040
TP-Link WR703N

They are based on the current AttitudeAdjustment stable release. As usual, all needed kernel-modules are included to get USB Access.

There are three differences between the old and the new images:

1. I removed nano to save firmware space.
2. I added a custom repository - eh what?
3. The MR3040 UI should accept this image (my first MR3040 image was refused be TPLink ui)

I'm going to explain that later ... maybe winking smiley

I tested the MR3020 firmware successfully.

BTW: The image is now based on the ImageBuilder-System. Your OpenWRT stays nearly 100% compatible to the packages in the AA-release folder smiling smiley

FAQ:
Do you need to upgrade?
No.
Why should I use this image?
Normally, you are fine with OpenWRT stock image. The point is, that if you encounter problems- at this image the USB drivers are built in... this helped me in a few cases. Even the OpenWRT UI is not installed, which saves a few KB for installing more awesome software winking smiley
Where are the sources for building this stuff?
It is located at github-> [github.com]
Currently, it is not well documented, but it works quite nice.
I need another image, can you provide it?
Sure, which model?

Another Question?

Regards Matthias


This is only my signature.



Edited 1 time(s). Last edit at 06/07/2013 11:49AM by Matthias.
Re: The new OpenWRT-Custom-Images are ready!
June 07, 2013 11:51AM
One additional information:

The current path for the custom-images

Language: PHP
http://stable.openwrt.piratebox.de/ar71xx/

will be deleted on 30th July.

That will cause your piratebox not be (re)installed with the old image.



Edited 2 time(s). Last edit at 09/10/2013 06:27PM by Matthias.
Re: The new OpenWRT-Custom-Images are ready!
June 10, 2013 09:14PM
I had successfull install this new firmware on my MR3020.

Thank you smileys with beer

I also do a clean install with a new usb key.
I had notice that we have to do opkg install piratebox now, correct ?

Before, I had installed kmod-usb-ohci and kmod-usb-uhci, wich are not installed, but do you confirm that it was not necessary ?

Anyway, I have much space on root now !
Before :
# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  320.0K    240.0K     80.0K  75% /

After :
# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    1.0M    244.0K    780.0K  24% /

Thanks again.
Re: The new OpenWRT-Custom-Images are ready!
June 11, 2013 04:35AM
yes, USB stuff is already installed on the custom image.

And yes, I created a small custom repository which result is to run only

opkg install piratebox

is needed if u use my image smiling smiley

regards Matthias
Re: The new OpenWRT-Custom-Images are ready!
June 17, 2013 11:01AM
FYI everyone,

The update works great and are easy to install smiling smiley

Thanks Matthias for your work.

PF
Hi,
do you plan to compile images for brcm63xx models ?
Re: The new OpenWRT-Custom-Images are ready!
July 03, 2013 01:12PM
currently not planned yet.
Do you have a specific model you are looking for?
Re: The new OpenWRT-Custom-Images are ready!
July 03, 2013 03:52PM
the CPU power is very low, .. don't know how it would perform.

You don't need to have the custom image.. it only makes a few things easier. It seems that the old Backfire release is only working, or am I wrong?
Haven't tested attitude adjustement 12.09 release.
I tried backfire 10.03.01 precompiled image by danitool : [files.myopera.com]
But I have an error message on installing :

2013-07-02 15:34:09 (403 KB/s) - `/mnt/usb/piratebox_ws_0.6_img.tar.gz' saved [159598/159598]
/etc/init.d/piratebox: ERROR: unable to mount ext image
/etc/init.d/piratebox: ERROR: unable to mount ext image
Something went wrong during package install on ext
Loading defaults
Loading synflood protection
Adding custom chains
Loading zones
Loading forwardings
Loading redirects
Loading rules
Loading includes
Optimizing conntrack
Loading interfaces
Terminated
Configuration file: /var/run/hostapd-phy0.conf
Using interface wlan0 with hwaddr 00:19:7e:69:30:9d and ssid 'PirateBox - Share Freely'
/etc/init.d/piratebox: ERROR: unable to mount ext image
PirateBox wireless SSID: PirateBox - Share Freely
PirateBox DNS and hostname: piratebox.lan
hostname with unique suffix is: YCA3smpz.piratebox.lan
PirateBox LAN IP address: 192.168.1.1
PirateBox shared directory: /mnt/usb/PirateBox/Shared
Re: The new OpenWRT-Custom-Images are ready!
July 04, 2013 05:33AM
maybe an issue regarding the ext version...or something like that.

dmesg | tail -n 20

output would be useful
root@OpenWrt:~# dmesg | tail -n 20
hub 1-0:1.0: 1 port detected
uhci_hcd: Unknown symbol debugfs_remove
usb 1-1: new full speed USB device using bcm63xx_ohci and address 2
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
sd 0:0:0:0: [sda] 4014080 512-byte logical blocks: (2.05 GB/1.91 Gicool smiley
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb-storage: device scan complete
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
Re: The new OpenWRT-Custom-Images are ready!
July 04, 2013 06:46AM
was this output right after the boot or the try installing?

If it was only after a reboot... please run

 mkdir -p /mnt/ext
 mount -o umask=0,noatime,rw  /mnt/usb/PirateBox/OpenWRT.img /mnt/ext

and then dmesg output again. We have to find out where the problem during mount is
root@OpenWrt:/# mount -o umask=0,noatime,rw /mnt/usb/PirateBox/OpenWRT.img /mnt/ext
mount: unknown filesystem type 'ext3'

what is your packets list on a fresh backfire install ?

root@OpenWrt:/# opkg list-installed
base-files - 43.33-r30365
busybox - 1.15.3-3.4
crda - 1.1.1-1
dnsmasq - 2.55-6.1
dropbear - 0.53.1-5
etherwake - 1.09-3
firewall - 2-34.9
gpioctl - 1.0-1
hotplug2 - 1.0-beta-3
iptables - 1.4.6-3.1
iptables-mod-conntrack - 1.4.6-3.1
iptables-mod-nat - 1.4.6-3.1
iw - 0.9.22-2
kernel - 2.6.32.27-1
kmod-b43 - 2.6.32.27+2011-12-01-1
kmod-cfg80211 - 2.6.32.27+2011-12-01-1
kmod-crc-ccitt - 2.6.32.27-1
kmod-crypto-aes - 2.6.32.27-1
kmod-crypto-arc4 - 2.6.32.27-1
kmod-crypto-core - 2.6.32.27-1
kmod-fs-vfat - 2.6.32.27-1
kmod-ipt-conntrack - 2.6.32.27-1
kmod-ipt-core - 2.6.32.27-1
kmod-ipt-nat - 2.6.32.27-1
kmod-mac80211 - 2.6.32.27+2011-12-01-1
kmod-nls-base - 2.6.32.27-1
kmod-nls-cp437 - 2.6.32.27-1
kmod-nls-iso8859-1 - 2.6.32.27-1
kmod-nls-utf8 - 2.6.32.27-1
kmod-ppp - 2.6.32.27-1
kmod-pppoe - 2.6.32.27-1
kmod-scsi-core - 2.6.32.27-1
kmod-usb-core - 2.6.32.27-1
kmod-usb-ohci - 2.6.32.27-1
kmod-usb-storage - 2.6.32.27-1
libblkid - 1.41.11-1
libc - 0.9.30.1-43.33
libgcc - 4.3.3+cs-43.33
libip4tc - 1.4.6-3.1
libiwinfo - 18.2
libiwinfo-lua - 18.2
liblua - 5.1.4-7
libncurses - 5.7-2
libnl-tiny - 0.1-1
libuci - 12012009.7-4
libuci-lua - 12012009.7-4
libuuid - 1.41.11-1
libxtables - 1.4.6-3.1
lua - 5.1.4-7
luci - 0.10+svn8244-1
luci-app-firewall - 0.10+svn8244-1
luci-app-wol - 0.10+svn8244-1
luci-i18n-english - 0.10+svn8244-1
luci-lib-core - 0.10+svn8244-1
luci-lib-ipkg - 0.10+svn8244-1
luci-lib-lmo - 0.10+svn8244-1
luci-lib-nixio - 0.10+svn8244-1
luci-lib-sys - 0.10+svn8244-1
luci-lib-web - 0.10+svn8244-1
luci-mod-admin-core - 0.10+svn8244-1
luci-mod-admin-full - 0.10+svn8244-1
luci-proto-core - 0.10+svn8244-1
luci-proto-ppp - 0.10+svn8244-1
luci-sgi-cgi - 0.10+svn8244-1
luci-theme-base - 0.10+svn8244-1
luci-theme-openwrt - 0.10+svn8244-1
mount-utils - 2.13.0.1-4
mtd - 13
nano - 2.2.6-1
opkg - 576-2
ppp - 2.4.4-16.1
ppp-mod-pppoe - 2.4.4-16.1
uci - 12012009.7-4
udevtrigger - 106-1
uhttpd - 28
wget-nossl - 1.13.4-1
wireless-tools - 29-4
wpad-mini - 20111103-3
Re: The new OpenWRT-Custom-Images are ready!
July 04, 2013 08:15AM
Well, in fact you are simply missing ext3 /ext4 package.. that was the reason why your installation failed.

You can see the needed packages in the Makefile for the custom images quite well:

[github.com]
After installing the makefile needed packages I got a new error :

root@OpenWrt:/tmp# mount -o umask=0,noatime,rw /mnt/usb/PirateBox/OpenWRT.img /mnt/ext
mount: /mnt/usb/PirateBox/OpenWRT.img is not a block device (maybe try `-o loop'?)

Is it cause I have errors on installing packages ?

root@OpenWrt:/tmp# opkg install kmod-usb2 kmod-usb-storage kmod-fs-vfat kmod-nls
-cp437 kmod-nls-cp850 kmod-nls-iso8859-1 kmod-nls-iso8859-15 kmod-fs-ext4 block-
mount kmod-loop losetup kmod-batman-adv wireless-tools kmod-lib-crc16 kmod-nls-u
tf8 kmod-ip6tables kmod-ipt-nat kmod-ipv6 zlib hostapd-mini iw swap-utils ppp p
pp-mod-pppoe
Package kmod-usb2 (2.6.32.27-1) installed in root is up to date.
Package kmod-usb-storage (2.6.32.27-1) installed in root is up to date.
Package kmod-fs-vfat (2.6.32.27-1) installed in root is up to date.
Package kmod-nls-cp437 (2.6.32.27-1) installed in root is up to date.
Package kmod-nls-cp850 (2.6.32.27-1) installed in root is up to date.
Package kmod-nls-iso8859-1 (2.6.32.27-1) installed in root is up to date.
Package kmod-nls-iso8859-15 (2.6.32.27-1) installed in root is up to date.
Package kmod-fs-ext4 (2.6.32.27-1) installed in root is up to date.
Package block-mount (0.1.0-2.2) installed in root is up to date.
Package kmod-loop (2.6.32.27-1) installed in root is up to date.
Package losetup (2.13.0.1-4) installed in root is up to date.
Package kmod-batman-adv (2.6.32.27+2011.2.0-1) installed in root is up to date.
Package wireless-tools (29-4) installed in root is up to date.
Unknown package 'kmod-lib-crc16'.
Package kmod-nls-utf8 (2.6.32.27-1) installed in root is up to date.
Package kmod-ip6tables (2.6.32.27-1) installed in root is up to date.
Package kmod-ipt-nat (2.6.32.27-1) installed in root is up to date.
Package kmod-ipv6 (2.6.32.27-1) installed in root is up to date.
Package zlib (1.2.3-5) installed in root is up to date.
Installing hostapd-mini (20111103-2) to root...
Downloading [downloads.openwrt.org].
Package iw (0.9.22-2) installed in root is up to date.
Installing swap-utils (2.13.0.1-4) to root...
Downloading [downloads.openwrt.org].
Package ppp (2.4.4-16.1) installed in root is up to date.
Package ppp-mod-pppoe (2.4.4-16.1) installed in root is up to date.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-lib-crc16.
* check_data_file_clashes: Package hostapd-mini wants to install file /lib/wifi/hostapd.sh
But that file is already provided by package * wpad-mini
* check_data_file_clashes: Package hostapd-mini wants to install file /usr/sbin/hostapd
But that file is already provided by package * wpad-mini
* opkg_install_cmd: Cannot install package hostapd-mini.
* check_data_file_clashes: Package swap-utils wants to install file /sbin/swapoff
But that file is already provided by package * busybox
* check_data_file_clashes: Package swap-utils wants to install file /sbin/swapon
But that file is already provided by package * busybox
* check_data_file_clashes: Package swap-utils wants to install file /sbin/mkswap
But that file is already provided by package * busybox
* opkg_install_cmd: Cannot install package swap-utils.



root@OpenWrt:/tmp# opkg list-installed
base-files - 43.33-r30365
block-mount - 0.1.0-2.2
busybox - 1.15.3-3.4
crda - 1.1.1-1
dnsmasq - 2.55-6.1
dropbear - 0.53.1-5
e2fsprogs - 1.41.11-1
etherwake - 1.09-3
firewall - 2-34.9
gpioctl - 1.0-1
hotplug2 - 1.0-beta-3
iptables - 1.4.6-3.1
iptables-mod-conntrack - 1.4.6-3.1
iptables-mod-nat - 1.4.6-3.1
iw - 0.9.22-2
kernel - 2.6.32.27-1
kmod-b43 - 2.6.32.27+2011-12-01-1
kmod-batman-adv - 2.6.32.27+2011.2.0-1
kmod-cfg80211 - 2.6.32.27+2011-12-01-1
kmod-crc-ccitt - 2.6.32.27-1
kmod-crc16 - 2.6.32.27-1
kmod-crypto-aes - 2.6.32.27-1
kmod-crypto-arc4 - 2.6.32.27-1
kmod-crypto-core - 2.6.32.27-1
kmod-fs-ext3 - 2.6.32.27-1
kmod-fs-ext4 - 2.6.32.27-1
kmod-fs-mbcache - 2.6.32.27-1
kmod-fs-vfat - 2.6.32.27-1
kmod-ip6tables - 2.6.32.27-1
kmod-ipt-conntrack - 2.6.32.27-1
kmod-ipt-core - 2.6.32.27-1
kmod-ipt-nat - 2.6.32.27-1
kmod-ipv6 - 2.6.32.27-1
kmod-loop - 2.6.32.27-1
kmod-mac80211 - 2.6.32.27+2011-12-01-1
kmod-nls-base - 2.6.32.27-1
kmod-nls-cp437 - 2.6.32.27-1
kmod-nls-cp850 - 2.6.32.27-1
kmod-nls-iso8859-1 - 2.6.32.27-1
kmod-nls-iso8859-15 - 2.6.32.27-1
kmod-nls-utf8 - 2.6.32.27-1
kmod-ppp - 2.6.32.27-1
kmod-pppoe - 2.6.32.27-1
kmod-scsi-core - 2.6.32.27-1
kmod-usb-core - 2.6.32.27-1
kmod-usb-ohci - 2.6.32.27-1
kmod-usb-storage - 2.6.32.27-1
kmod-usb-uhci - 2.6.32.27-1
kmod-usb2 - 2.6.32.27-1
libblkid - 1.41.11-1
libc - 0.9.30.1-43.33
libext2fs - 1.41.11-1
libgcc - 4.3.3+cs-43.33
libip4tc - 1.4.6-3.1
libiwinfo - 18.2
libiwinfo-lua - 18.2
liblua - 5.1.4-7
libncurses - 5.7-2
libnl-tiny - 0.1-1
libpthread - 0.9.30.1-43.32
librt - 0.9.30.1-43.32
libuci - 12012009.7-4
libuci-lua - 12012009.7-4
libuuid - 1.41.11-1
libxtables - 1.4.6-3.1
losetup - 2.13.0.1-4
lua - 5.1.4-7
luci - 0.10+svn8244-1
luci-app-firewall - 0.10+svn8244-1
luci-app-wol - 0.10+svn8244-1
luci-i18n-english - 0.10+svn8244-1
luci-lib-core - 0.10+svn8244-1
luci-lib-ipkg - 0.10+svn8244-1
luci-lib-lmo - 0.10+svn8244-1
luci-lib-nixio - 0.10+svn8244-1
luci-lib-sys - 0.10+svn8244-1
luci-lib-web - 0.10+svn8244-1
luci-mod-admin-core - 0.10+svn8244-1
luci-mod-admin-full - 0.10+svn8244-1
luci-proto-core - 0.10+svn8244-1
luci-proto-ppp - 0.10+svn8244-1
luci-sgi-cgi - 0.10+svn8244-1
luci-theme-base - 0.10+svn8244-1
luci-theme-openwrt - 0.10+svn8244-1
mount-utils - 2.13.0.1-4
mtd - 13
nano - 2.2.6-1
opkg - 576-2
ppp - 2.4.4-16.1
ppp-mod-pppoe - 2.4.4-16.1
uci - 12012009.7-4
udevtrigger - 106-1
uhttpd - 28
wget-nossl - 1.13.4-1
wireless-tools - 29-4
wpad-mini - 20111103-3
zlib - 1.2.3-5
The Firmware Upgrade gave the error:

"Error code: 18005
Upgrade unsuccessfully because the version of the upgraded file was incorrect. Please check the file name."

Steps taken:
- Downloaded [stable.openwrt.piratebox.de]
- Firmware Upgrade - Choose File - ar71xx_AA/openwrt-ar71xx-generic-tl-mr3040-v1-squashfs-factory.bin
- Upgrade - gave the above error

Hardware TL-MR3040
Firmware Version: 3.14.4 Build 121017 Rel.62268n
Hardware Version: MR3040 v2 00000000

Regards
C.
Re: TL-MR3040 - firmware upgrade error
July 14, 2013 08:08AM
>Hardware TL-MR3040
>Firmware Version: 3.14.4 Build 121017 Rel.62268n
>Hardware Version: MR3040 v2 00000000

Currently only MR3040 v1 is supported. OpenWRT community nor I had the chance to get a v2 version into the hands to enable support.



Edited 1 time(s). Last edit at 07/14/2013 08:57AM by Matthias.
Re: The new OpenWRT-Custom-Images are ready!
September 14, 2013 12:35PM
I'd like to take advantage of the new mr3020 image for extra space, how do I go about installing it from an existing piratebox.

Can I use
sysupgrade -v image.bin

cheers
Re: The new OpenWRT-Custom-Images are ready!
September 15, 2013 03:20PM
yes you should be able to use it like that.
Only take care that it does NOT backup&recover the current configuration.
Re: The new OpenWRT-Custom-Images are ready!
September 16, 2013 11:29AM
Thanks it worked. And with the extra space I installed minidlna smiling smiley

root@Kzqd8sNV:/#  df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    1.0M    296.0K    728.0K  29% /

Thanks again!
Re: The new OpenWRT-Custom-Images are ready!
October 24, 2013 05:35AM
I've only recently found out about the piratebox, and it seems like an intresting idea! Unfortunatly I don't have any of the openwrt-compatible routers here to try it out on however I do have an unused sheevaplug. Was wondering if it was possible to get piratebox along with debian 7 to work on the sheevaplug.
Re: The new OpenWRT-Custom-Images are ready!
October 24, 2013 05:49AM
yes it is possible, if you have a WiFi USB stick which can run in ap mode
ive got a mr3040 v2 managed to install openwrt on it and now trying to use extroot, im a complete newbie to linux and openwrt etc so those failing is driving me nuts...


root@OpenWrt:~# opkg install kmod-usb-storage
Installing kmod-usb-storage (3.10.17-1) to root...
Downloading [downloads.openwrt.org].
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-storage:
* kernel (= 3.10.17-1-7ae4a648401f2216d6aff57f5ed43a60) * kernel (= 3.10.17-1-7ae4a648401f2216d6aff57f5ed43a60) *
* opkg_install_cmd: Cannot install package kmod-usb-storage.
root@OpenWrt:~#



root@OpenWrt:~# opkg install kmod-fs-ext4
Installing kmod-fs-ext4 (3.10.17-1) to root...
Downloading [downloads.openwrt.org].
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-ext4:
* kernel (= 3.10.17-1-7ae4a648401f2216d6aff57f5ed43a60) * kernel (= 3.10.17-1-7ae4a648401f2216d6aff57f5ed43a60) *
* opkg_install_cmd: Cannot install package kmod-fs-ext4.
root@OpenWrt:~#




openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory



can anyone help with where i go from here? kmod-blockmount worked fine, as near as i can see, this is like installing driver packs and its saying not compatible.... sad smiley
Re: mr3040 v2 - kmod-usb-storage and kmod-fs-ext4 sad smiley
October 31, 2013 05:47PM
where did you download the image file? what was the URL?
was the trunk version from a few days ago...but just found this one on your forums

[stable.openwrt.piratebox.de]

which says has usb built in...but i dont only plan on running piratebox, trying to do a all in one box...and i dont know how to upgrade from one openwrt to another...what command would i need to show u which version im running currently?


thanks in advance smiling smiley and anything i get working will share lol
Re: mr3040 v2 - kmod-usb-storage and kmod-fs-ext4 sad smiley
November 01, 2013 04:24PM
Hi,
I (started to) collect the informations about things like that here: [piratebox.aod-rpg.de]

good luck
Matthias
that other image i found on your forum plus another forum of yours with wget to tmp and mdt fixed it smiling smiley had to set up network again but im further ahead now smiling smiley usb and lan and wifi working smiling smiley my next trick is trying to make it so piratebox runs when i put one usb in and any other settings when i put different one in smiling smiley THANK YOU FOR AN AWESOME FORUM!! grinning smiley
I'm also having the same problem. Can you guys help im new at Linux.
Re: mr3040 v2 - kmod-usb-storage and kmod-fs-ext4 sad smiley
May 03, 2014 09:53PM
Mike Wrote:
-------------------------------------------------------
> I'm also having the same problem. Can you guys
> help im new at Linux.


Two different setup with using two usb sticks?
No it is not possible.