how-to add kernel module for allwinner H6 build

  • Hello I'm new on this forum , so perhaps it's not the good place .

    I would like to be able to use a USB-DVD drive, but it seems that with LibreELEC-H6.arm-11.0 release, the modules aren't present (sr_mod and some others).

    So is there a way to add it by building a new release with them ?

    Are there some links to explain it ?

    Thanks you :)

  • projects/Allwinner/linux/linux.aarch64.conf already contains CONFIG_BLK_DEV_SR=y, so CD ROM support is already enabled. It's built-in instead of module, but that doesn't make any difference. What other drivers are missing for your case?

  • Some commands to try:

    Code
    lsusb
    lsusb -v
    dmesg
    journalctl -f 
    # if you unplug and replug the usb drive with journalctl -f it should show you what it thinks is happening.
  • Ok, I found the problem.

    It's when I insert a iso9660 cdom i have this output

    So i Tried a a manual mount et I have this oputput :

    Code
    busybox mount -t iso9660 /dev/sr0 /media/cdrom

    Output :

    Code
    mount: mounting /dev/sr0 on /media/cdrom failed: Invalid argument

    So perhaps the mount busybox version don't have the iso9660 fstype ?

    With a DVD it's Ok (udf fstype used ) and I can read the movie.

  • Hi, sorry for the late answer.

    Indeed it's included, but it was a mistake ...

    I tried to read an audio cd which isn't a iso9660 fs type.

    So i discovered that when i put a dvd in the reader it's the kernel that mount it with the udf fs type.

    But for an audio cd, it's kodi with a 'disc" icon where you can read or extract content.

    Making test i discovered that the problem comes from the USB3 port, sometimes the xhci-hcd driver seems not to manage correctly

    my usb-cd/dvd .

    With cubox, i solved the problem by blacklisting the driver (as a module) , but it seems to be a builtin and the blacklisting option

    has no action .

  • Yes, it's the "xhci-hcd" driver for USB3.

    Because it's seems that the driver has some problem to interact with my USB cd-DVD reader.

    I-ve got some messages like this one:

    Code
    reset high-speed USB device number 2 using xhci-hcd

    As it's a builtin module , it seems not to be easy to make it.