1.12.0.x gargoyle-ispy 2020-April-29 19

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

ektus
Posts: 185
Joined: Sun Aug 11, 2013 2:26 am
Location: Germany

Re: 1.12.0.x gargoyle-ispy 2020-April-29 19

Post by ektus »

9MB free RAM are not enough to run "gpkg install"? Oh well, time to find a USB stick then, luckily the router has USB ports. The flash shouldn't be a problem, though, but I can always switch to extroot.

ektus
Posts: 185
Joined: Sun Aug 11, 2013 2:26 am
Location: Germany

Re: 1.12.0.x gargoyle-ispy 2020-April-29 19

Post by ektus »

Now if the USB stick would work :?:

I've got problems with the router not (or very unreliably) recognizing two different 16GB sticks.

Stick number one, Sandisk Cruzer Blade:

Code: Select all

Fri Jun 12 09:04:30 2020 daemon.info procd: - init complete -
Fri Jun 12 09:04:32 2020 kern.err kernel: [  152.625879] usb 1-1: device descriptor read/64, error -145
Fri Jun 12 09:04:48 2020 kern.err kernel: [  167.985961] usb 1-1: device descriptor read/64, error -145
Fri Jun 12 09:04:48 2020 kern.info kernel: [  168.245983] usb 1-1: new high-speed USB device number 4 using ehci-platform
Fri Jun 12 09:04:53 2020 kern.err kernel: [  173.426046] usb 1-1: device descriptor read/64, error -145
Fri Jun 12 09:05:08 2020 kern.err kernel: [  188.786063] usb 1-1: device descriptor read/64, error -145
Fri Jun 12 09:05:09 2020 kern.info kernel: [  188.906110] usb usb1-port1: attempt power cycle
Fri Jun 12 09:05:09 2020 kern.info kernel: [  189.386068] usb 1-1: new high-speed USB device number 5 using ehci-platform
Fri Jun 12 09:05:14 2020 kern.err kernel: [  194.489168] usb 1-1: device descriptor read/8, error -145
Fri Jun 12 09:05:19 2020 kern.err kernel: [  199.689183] usb 1-1: device descriptor read/8, error -145
Fri Jun 12 09:05:20 2020 kern.info kernel: [  199.946121] usb 1-1: new high-speed USB device number 6 using ehci-platform
Fri Jun 12 09:05:25 2020 kern.err kernel: [  205.049207] usb 1-1: device descriptor read/8, error -145
Fri Jun 12 09:05:30 2020 kern.err kernel: [  210.249234] usb 1-1: device descriptor read/8, error -145
Fri Jun 12 09:05:30 2020 kern.err kernel: [  210.366221] usb usb1-port1: unable to enumerate USB device
Stick number two, (Intenso) brand:

Code: Select all

Fri Jun 12 09:41:22 2020 user.info kernel: [    6.370709] init: - preinit -
Fri Jun 12 09:41:22 2020 kern.info kernel: [    6.874742] usb 1-1: new full-speed USB device number 2 using ehci-platform
Fri Jun 12 09:41:22 2020 kern.err kernel: [    7.149196] usb 1-1: device descriptor read/64, error -71
Fri Jun 12 09:41:22 2020 kern.debug kernel: [    7.471478] ar71xx: pll_reg 0xb8050014: 0x1a000000
Fri Jun 12 09:41:22 2020 kern.info kernel: [    7.471501] eth0: link up (1000Mbps/Full duplex)
Fri Jun 12 09:41:22 2020 kern.notice kernel: [    7.515326] random: procd: uninitialized urandom read (4 bytes read)
Fri Jun 12 09:41:22 2020 kern.err kernel: [    7.644677] usb 1-1: device descriptor read/64, error -71
Fri Jun 12 09:41:22 2020 kern.info kernel: [    7.904670] usb 1-1: new full-speed USB device number 3 using ehci-platform
Fri Jun 12 09:41:22 2020 kern.err kernel: [    8.144665] usb 1-1: device descriptor read/64, error -71
Fri Jun 12 09:41:22 2020 kern.err kernel: [    8.494686] usb 1-1: device descriptor read/64, error -71
Fri Jun 12 09:41:22 2020 kern.info kernel: [    8.614765] usb usb1-port1: attempt power cycle
Fri Jun 12 09:41:22 2020 kern.info kernel: [    9.094671] usb 1-1: new full-speed USB device number 4 using ehci-platform
Fri Jun 12 09:41:22 2020 kern.err kernel: [    9.594833] usb 1-1: device not accepting address 4, error -71
Fri Jun 12 09:41:22 2020 kern.info kernel: [    9.744677] usb 1-1: new full-speed USB device number 5 using ehci-platform
Fri Jun 12 09:41:22 2020 kern.err kernel: [   10.244664] usb 1-1: device not accepting address 5, error -71
Fri Jun 12 09:41:22 2020 kern.err kernel: [   10.250593] usb usb1-port1: unable to enumerate USB device
Fri Jun 12 09:41:22 2020 user.info kernel: [   10.882107] mount_root: loading kmods from internal overlay
Fri Jun 12 09:41:22 2020 user.info kernel: [   11.017121] kmodloader: loading kernel modules from //etc/modules-boot.d/*
Fri Jun 12 09:41:22 2020 user.info kernel: [   11.027114] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
From https://urukrama.wordpress.com/2009/01/ ... -error-71/ there is a possible solution for the "-71" error:
Finally, I found something on an old mailing list that solved the problem. All I needed to do was add the following line to /etc/modprobe.d/options:

options usbcore use_both_schemes=y
Would this be applicable for Gargoyle? Where would that option go, as modprobe.d doesn't exist?

Regards
Ektus.

ektus
Posts: 185
Joined: Sun Aug 11, 2013 2:26 am
Location: Germany

Re: 1.12.0.x gargoyle-ispy 2020-April-29 19

Post by ektus »

There is an old tickt on openwrt: https://dev.archive.openwrt.org/ticket/6779
Seems to be an ongoing problem for some and many years, without real solution :(

ektus
Posts: 185
Joined: Sun Aug 11, 2013 2:26 am
Location: Germany

Re: 1.12.0.x gargoyle-ispy 2020-April-29 19

Post by ektus »

Okay, next try with yet another device, this time a USB card reader (Delock 076030) with 4GB SD card. Working fully, both swap and plugin root. So there is some incompatibility with various USB devices, and nobody knows how to fix it. I've got my workaround, so it's going to stay that way for the next couple years (hopefully) 8-)

Do I need to enable swap somewhere in order to have it working permanently? Currently I've just issued a "swapon -a" via SSH.

Lantis
Moderator
Posts: 5630
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: 1.12.0.x gargoyle-ispy 2020-April-29 19

Post by Lantis »

Gargoyle has extroot (and swap) in the GUI.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ektus
Posts: 185
Joined: Sun Aug 11, 2013 2:26 am
Location: Germany

Re: 1.12.0.x gargoyle-ispy 2020-April-29 19

Post by ektus »

extroot and swap, yes, but only when formatting media. I did format the card (5% swap or the like, rest as ext4), but didn't go for extroot because that's inconvenient when doing updates and 8MB flash should be sufficient for the time being.
I've set plugin_root to the external device, and that's working. But the swap wasn't active until I manually issued the swapon command. I just made a reboot and swap is gone again.

I can't find a place in the UI to enable swap. Any hints?

ispyisail
Moderator
Posts: 4853
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 1.12.0.x gargoyle-ispy 2020-April-29 19

Post by ispyisail »

Image

To active you need to plug in a USB drive then format.

ektus
Posts: 185
Joined: Sun Aug 11, 2013 2:26 am
Location: Germany

Re: 1.12.0.x gargoyle-ispy 2020-April-29 19

Post by ektus »

Of course, that's what I did. Selected to format, chose 5% (or whatever) as swap, entered my password in the confirmation dialog, and got a working SD card with two partitions. But after a reboot, swap is inactive (no entry on the status page) and I have to activate it manually with "swapon -a" on the command line (either SSH or webshell).
On the "USB Storage" page, I can only see options to share the drive (after installing additional SMB/CIFS support), but no option to actually enable swap.

This is output from webshell after manually enabling swap:

Code: Select all

df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 5632      5632         0 100% /rom
tmpfs                    13804       140     13664   1% /tmp
/dev/mtdblock3             960       332       628  35% /overlay
overlayfs:/overlay         960       332       628  35% /
tmpfs                      512         0       512   0% /dev
/dev/sda1              3568124     15016   3352140   0% /tmp/usb_mount/e7dbc134-6243-4fe9-8a21-8de60ef418e7
ls -l /
drwxr-xr-x    1 root     root             0 Feb  4 18:14 bin
drwxr-xr-x    5 root     root           940 Jun 12 14:16 dev
drwxr-xr-x    1 root     root             0 Nov  5  2019 etc
drwxr-xr-x   11 root     root           531 Feb  4 18:12 lib
drwxr-xr-x    2 root     root             3 Feb  4 18:12 mnt
drwxr-xr-x    5 root     root             0 Jan  1  1970 overlay
lrwxrwxrwx    1 root     root            64 Jun 12 12:42 plugin_root -> /tmp/usb_mount/e7dbc134-6243-4fe9-8a21-8de60ef418e7//plugin_root
dr-xr-xr-x   61 root     root             0 Jan  1  1970 proc
drwxr-xr-x   16 root     root           235 Feb  4 18:12 rom
drwxr-xr-x    2 root     root             3 Feb  4 18:12 root
drwxr-xr-x    2 root     root           845 Feb  4 18:12 sbin
dr-xr-xr-x   11 root     root             0 Jan  1  1970 sys
drwxrwxrwt   20 root     root           560 Jun 12 17:21 tmp
drwxr-xr-x    1 root     root             0 May 26 23:50 usr
lrwxrwxrwx    1 root     root             3 Feb  4 18:12 var -> tmp
drwxrwxr-x    1 root     root             0 Jun 12 09:12 www
swapon -s
Filename				Type		Size	Used	Priority
/dev/sda2                               partition	193532	4	-1

Post Reply