Jump to content
XPEnology Community

DS3622xs DSM 7.1 USB support with RedPill Tinycore


Recommended Posts

Hi,

 

i already posted the question RedPill - the new loader for 6.2.4 - Discussion but i think it was not the matching topic for my question (topic is growing too fast for detailed discussion).

 

I used tinycore to install DS3622xs+ with DSM 7.1-42661 Update 1 on my N54L hardware.

 

On my prvious DSM 6 install i succesfully used zigbee usb dongles with homeassistant.

I tried two different dongles with different driver chips (FTDI and CP210x) on the new DSM 7.1 install.

 

For the FTDI based dongle the drivers are already included in the stock kernel so i just loaded them as previously done with DSM6:

 

sudo insmod /lib/modules/usbserial.ko
sudo insmod /lib/modules/ftdi_sio.ko

 

Unfortunately both tested usb dongles are not detected by the system.

 

The "dmesg" command shows no log output if the dongles are plugged in. (Not a single line related to the USB dongle, seems like no events are created)

If i plug a USB drive in the same USB port the drive i loaded and available in DSM so the USB hub and port seem to work fine in general. 

 

Here is the output of "dmesg | grep usb" after the usb dongle was replugged several times:

 

[    2.265247] <redpill/usb_boot_shim.c:229> Registering USB boot device shim
[    2.265487] <redpill/usb_boot_shim.c:194> Registered usbcore module notifier
[    2.269655] <redpill/usb_boot_shim.c:247> Successfully registered USB boot device shim
[   13.933321] usbcore: registered new interface driver usbfs
[   13.933528] usbcore: registered new interface driver hub
[   13.933736] usbcore: registered new interface driver ethub
[   13.933943] usbcore: registered new device driver usb
[   13.934137] <redpill/usb_boot_shim.c:166> usbcore registered, adding device watcher
[   13.934405] <redpill/call_protected.c:112> Got ptr ffffffffa00d7db0 for usb_register_notify
[   13.934698] <redpill/usb_boot_shim.c:127> Registered USB device notifier
[   13.972036] <redpill/usb_boot_shim.c:75> Found new device <vid=xxxx, pid=xxxx> - didn't match expected <vid=xxxx, pid=xxxx> (prev_shimmed=0)
[   13.979871] <redpill/usb_boot_shim.c:75> Found new device <vid=xxxx, pid=xxxx> - didn't match expected <vid=xxxx, pid=xxxx> (prev_shimmed=0)
[   13.988036] <redpill/usb_boot_shim.c:75> Found new device <vid=xxxx, pid=xxxx> - didn't match expected <vid=xxxx, pid=xxxx> (prev_shimmed=0)
[   14.044782] usbcore: registered new interface driver usb-storage
[   14.302061] usb 2-3: new high-speed USB device number 2 using ehci-pci
[   14.440089] usb-storage 2-3:1.0: USB Mass Storage device detected
[   14.442075] scsi host6: usb-storage 2-3:1.0
[   14.442352] <redpill/usb_boot_shim.c:91> Device <vid=xxxx, pid=xxxx> shimmed to <vid=xxxx, pid=xxxx>
[   16.494373] <redpill/bios_shim.c:215> Symbol #59 in mfgBIOS "broadwellnk_synobios" {syno_usb_prohibit_event}<ffffffffa018a470>
[   25.413853] systemd[1]: Starting Mount usb fs...
[   25.914175] usbcore: registered new interface driver usblp
[   25.931881] usbcore: registered new interface driver usbhid
[   25.932107] usbhid: USB HID core driver
[   25.973474] <redpill/bios_shim.c:215> Symbol #59 in mfgBIOS "broadwellnk_synobios" {syno_usb_prohibit_event}<ffffffffa0b59470>
[   48.955098] usbcore: registered new interface driver usbserial
[   48.998396] usbcore: registered new interface driver ftdi_sio
[   48.998620] usbserial: USB Serial support registered for FTDI USB Serial Device

 

The "lsusb" command also only shows connected USB drives. The zigbee dongles dont show up in the lsusb output:

 

|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:12.2) hub
|__usb2          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:13.2) hub
  |__2-3         f400:f400:0200 00  2.00  480MBit/s 100mA 1IF  (USB Disk 2.0 HEADER1397438310856)
|__usb3          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:16.2) hub

 

@flyride mentioned it could be related to the discontinued USB support by synology:

 

https://macandegg.com/2021/06/synology-dsm-7-0-ends-support-for-usb-devices/#:~:text=DSM 7.0%3A No more USB sticks&text=First%2C the support for external,LTE sticks%2C Bluetooth dongles anymore.

 

I still have the feeling the issue is somewhere else. I would guess synology just removed additional usb drivers and hide devices except for Usb drives from the UI but i can not really imagine they put so much effort into kernel / driver modification to fully prevent the system from detecting other USB devices.

 

Also there are manuals like: https://mariushosting.com/synology-how-to-add-usb-support-on-dsm-7/

which describes how to load the missing driver modules (same as i did above) to enable the USB support on DSM7 (and a lot of users responded it worked).

 

Can maybe someone with Tinycore and DS3622xs + DSM 7.1 test if USB devices are alow not showing in the syslog (except for USB ones) ?

Instead of Zigbee or Zwave dongles i also tried to attach a keyboard to the N54L, it is also not detected according to the syslog.

 

 

Link to comment
Share on other sites

  • 2 months later...

I'm suffering the same:

I have the most basic configuration; tinycore to install DS3622xs+ with DSM 7.1-42661 Update 1 on my N54L hardware.

I use the "dresden ConBee II" zigbee stick which is among the most used zigbee sticks around, so nothing exotic.

This Conbee has been working fine for some years on this hardware with DSM 6.2. Just after migrating to DSM7.1 it is not detected anymore.

 

I believe the issue is not about drivers but starts at plugging in the stick. There is no logfiles in the /var/log that have any new line related to usb device. Also dmesg does not show anything.

lsusb shows only the tinycore usb drive:

 lsusb
|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:12.2) hub
|__usb2          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:13.2) hub
  |__2-3         f400:f400:0110 00  2.00  480MBit/s 300mA 1IF  (Kingston DataTraveler 2.0 408D5CE57214B0806957D11E)
|__usb3          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:16.2) hub

 

So it is as if the system just not detects it being inserted.

 

I tried the following:

  • Insert a usb disk in the N54L with dsm7.1; this is registered by lsusb and dmesg shows lines about this action.
  • Inserted the Conbee stick in a real synology running DSM7.1; The lsusb command shows the Conbee stick (so even without drivers, it is detected)
  • Inserted the Conbee stick in an arpl xpenology DVA1622 with DSM7.1; It is shown by lsusb like this:

 

|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:1a.0) hub
  |__1-1         8087:0020:0000 09  2.00  480MBit/s 0mA 1IF  ( ffffffd1ffffffb2ffffffdbffffffa0) hub
    |__1-1.1     1cf1:0030:0100 02  2.01   12MBit/s 100mA 2IFs (dresden elektronik ingenieurtechnik GmbH ConBee II DE2486521)
    |__1-1.5     0409:005a:0100 09  2.00  480MBit/s 100mA 1IF  ( ffffffd1ffffffb2ffffffdbffffffa1) hub
      |__1-1.5.4 f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Kingston DataTraveler G2 001372982BA9EA51361D0147)
|__usb2          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:1d.0) hub
  |__2-1         8087:0020:0000 09  2.00  480MBit/s 0mA 1IF  ( ffffffd1ffffffb2ffffffdbffffffad) hub
    |__2-1.1     08ff:2550:1900 ff  2.00   12MBit/s 100mA 1IF  ( ffffffc6ffffffa9ffffffdaffffffb4)
    |__2-1.3     0408:1322:1203 ef  2.00  480MBit/s 168mA 2IFs (QCM USB Webcam ffffffd9ffffffb8ffffffdbffffffb9)
    |__2-1.4     1690:0741:5276 e0  2.00   12MBit/s 0mA 2IFs ( ffffffd1ffffffb2ffffffdbffffffa2)

Interesting is that it found also the built in webcam on that machine.

 

So the Conbee stick is detected in other machines with DSM7.1, both real synology and xpenology.

 

I did notice that on the N54L with dsm7.1 only usb drives are detected with lsusb. If I insert a usb wifi adapter or something else, it is not shown. Perhaps some restriction on low level that blocks all except usb drives? Maybe a bios setting I need to change?

 

I wonder if the topic starter has ever managed to fix this. @blamaster

Link to comment
Share on other sites

Ok, I found a fix and a potential workaround for this:

I successfully used the fix proposed in this French topic:

https://xpenology.com/forum/topic/18601-tuto-hp-n54l-gen7-dsm-7-et-dsm-623/

Which is translated to English here:
https://xpenology-com.translate.goog/forum/topic/18601-tuto-hp-n54l-gen7-dsm-7-et-dsm-623/page/1/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=nl#comments

 

So you need this driver: ohci-hcd.ko and DS3615XS. I used DSM 7.1 and it works great for me.

With these instructions you can complete the process: https://mariushosting.com/synology-how-to-add-usb-support-on-dsm-7/

 

The workaround I have not completely tested, but it could work:

The cause of this issue is that DSM7 does not have a driver for the HP N54L Microserver USB 1.1 ports. So you see the 480Mbit devices, but not the 12Mbit. If you connect a USB2 hub to the server and connect the 12Mbit devices like Zwave, Zigbee sticks, they should show up with lsusb.

 

Link to comment
Share on other sites

On 9/21/2022 at 9:08 PM, coolinx said:

Ok, I found a fix and a potential workaround for this:

I successfully used the fix proposed in this French topic:

https://xpenology.com/forum/topic/18601-tuto-hp-n54l-gen7-dsm-7-et-dsm-623/

Which is translated to English here:
https://xpenology-com.translate.goog/forum/topic/18601-tuto-hp-n54l-gen7-dsm-7-et-dsm-623/page/1/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=nl#comments

 

So you need this driver: ohci-hcd.ko and DS3615XS. I used DSM 7.1 and it works great for me.

With these instructions you can complete the process: https://mariushosting.com/synology-how-to-add-usb-support-on-dsm-7/

 

The workaround I have not completely tested, but it could work:

The cause of this issue is that DSM7 does not have a driver for the HP N54L Microserver USB 1.1 ports. So you see the 480Mbit devices, but not the 12Mbit. If you connect a USB2 hub to the server and connect the 12Mbit devices like Zwave, Zigbee sticks, they should show up with lsusb.

 

 

 

 

Hi coolinx, can you tell me exactly how you did it, I've been trying to get the usb sonoff zigbee on this system for two days:
DS3622xs
DSM 7.1
MS Gen8 [xeon 5c/4th]
RedPill 

and driver www.jadahl.com is offline

 

 

thx

Link to comment
Share on other sites

Hi Gianvito, This topic is addressing a very specific issue about the absence of the USB1.1 driver in DSM7 for the HP N54L, or also the N40L and N36L gen7 microserver.

For other servers like your gen8 you can follow the instructions on enabling USB support on DSM7 in general. The jadahl.com site was working for me earlier this week, so I'd give it some time...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...