mditexts
Posts: 4
Joined: Wed Sep 23, 2020 6:25 am

USB Quirks seem not to work for me

Wed Sep 23, 2020 6:34 am

Hi, I just bought an RPi 4 to replace my previous RPi 3, which was booting from an USB SSD (Kingston A400 SSD SA400S37/120G, https://www.amazon.it/gp/product/B01N6J ... UTF8&psc=1), enclosed in an old USB case (Digitus DA71104 Box USB 2.0, https://www.amazon.it/gp/product/B01M1B ... UTF8&psc=1).

Having read that RPi4 now can boot from USB directly, I thought to perform my hardware upgrade.
It works out of the box, but I noticed that it takes seconds for the RPi4 to responds to ping requests on the network, even if it takes about 5m20s to boot and respond via ssh.

I found the article about the usb-storage.quirks solution and I tried to apply it to my case, but I was unsuccessful.
So I tried to remove the old casing and replace it with this USB-Sata converter: https://www.amazon.it/gp/product/B07Y82 ... UTF8&psc=1

The lsusb output is the following:

Code: Select all

Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
And this is my /boot/cmdline.txt:

Code: Select all

usb-storage.quirks=1a40:0101:u,2109:3431:u dwc_otg.lpm_enable=0 console=tty1 boot=PARTUUID=22b09c07-01 root=PARTUUID=22b09c07-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cgroup_enable=memory cgroup_memory=1
Still it takes more than 5m to boot.

Any suggestion is very welcome, thanks a lot.

RonR
Posts: 2836
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: USB Quirks seem not to work for me

Wed Sep 23, 2020 8:16 am

You used the ID's of hubs instead of the SATA adapter. Try:

Code: Select all

usb-storage.quirks=174c:55aa:u ...

mditexts
Posts: 4
Joined: Wed Sep 23, 2020 6:25 am

Re: USB Quirks seem not to work for me

Thu Sep 24, 2020 7:41 pm

Hi, thank you for the reply.

I tried it and still no success. BTW, I tried issuing this command:

Code: Select all

 sudo systemd-analyze blame|head
This was the output:

Code: Select all

 5min 211ms networking.service
          5.112s webmin.service
          5.102s docker.service
          3.605s NetworkManager-wait-online.service
          3.591s apt-daily.service
          3.339s dev-sda2.device
          2.425s ifupdown-pre.service
          2.231s mariadb.service
          1.606s containerd.service
          1.593s udisks2.service
That "5min 211ms networking.service" is eating up all the time...

User avatar
lpsw
Posts: 333
Joined: Thu Jun 25, 2015 4:45 pm
Location: USA

Re: USB Quirks seem not to work for me

Thu Sep 24, 2020 8:03 pm

You may be experiencing crosstalk between the on-board wifi and the USB3 to SATA cable.
An easy way to test, if you can use ethernet, is to disable wifi in config.txt.
Self-education is, I firmly believe, the only kind of education there is - Isaac Asimov

mditexts
Posts: 4
Joined: Wed Sep 23, 2020 6:25 am

Re: USB Quirks seem not to work for me

Fri Sep 25, 2020 11:59 am

Hi lpsw, thanks a lot. I tried that, but still no success. I post here the actual result and my setup:

Code: Select all

pi@BlogPi ~ $ sudo systemd-analyze blame|head
      5min 222ms networking.service
         21.092s apt-daily.service
          5.550s docker.service
          4.315s webmin.service
          2.994s dev-sda2.device
          2.638s certbot.service
          2.314s ifupdown-pre.service
          2.153s mariadb.service
          1.892s dphys-swapfile.service
          1.588s udisks2.service
pi@BlogPi ~ $ grep dtoverlay /boot/config.txt
#dtoverlay=lirc-rpi
dtoverlay=disable-wifi
dtoverlay=disable-bt
pi@BlogPi ~ $ cat /boot/cmdline.txt
usb-storage.quirks=174c:55aa:u dwc_otg.lpm_enable=0 console=tty1 boot=PARTUUID=22b09c07-01 root=PARTUUID=22b09c07-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cgroup_enable=memory cgroup_memory=1
Am I doing right?
Still it takes more than 5m with the networking.service.

mditexts
Posts: 4
Joined: Wed Sep 23, 2020 6:25 am

Re: USB Quirks seem not to work for me [SOLVED]

Mon Sep 28, 2020 11:19 am

I solved it with a solution found here: https://raspberrypi.stackexchange.com/q ... ernet-wait
Create file (with subdirs)

Code: Select all

/etc/systemd/system/networking.service.d/reduce-timeout.conf
with content:

Code: Select all

[Service]
TimeoutStartSec=1
On my Pi model B (with Minibian) this solution resolved the problem. Pi boot time reduced to 15 sec, and network works.
This worked on my Pi4 with Buster too.

Quirks didn't work at all.

Return to “Troubleshooting”