It is currently Sat Sep 30, 2023 7:13 am
All times are UTC + 8 hours

[Octoprint] multiple USB serial modules for 5.13.x kernel

Who doesn't love third-party apps? Get together and talk about them here.

Re: [Octoprint] multiple USB serial modules for 5.13.x kernel

Postby father.mande » Sun Sep 11, 2022 5:10 am

Hi,
DQ4HNyBp wrote:I tried both of these but I am still unable to connect. I also tried adding the device mapping to the config.json in the Octoprint app directory and that did not work either.



Thanks for testing ...
my problem is : all works as expected with my Ender 3 (ch431 USB serial driver) ... so I need to get some hardware to generate a ttyACM0 device ... to understand why it's not proposed in Octoprint list of device ... when no error is returned in dmesg ...

Thanks again.
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1677
Joined: Sat Sep 12, 2015 2:55 am

Re: [Octoprint] multiple USB serial modules for 5.13.x kernel

Postby DQ4HNyBp » Tue Sep 13, 2022 2:12 am

Thank you again!

And just to clarify: my Prusa printer does not generate a ttyACM0 device, it generates /dev/usbdev1.6

ttyACM0 is listed in my Octoprint app list of devices but since my printer is not mapped to it or any of the tty ones, it cannot connect.
DQ4HNyBp
 
Posts: 5
Joined: Mon Sep 05, 2022 11:04 pm

Re: [Octoprint] multiple USB serial modules for 5.13.x kernel

Postby father.mande » Tue Sep 13, 2022 5:04 am

Hi,

DQ4HNyBp wrote:Thank you again!

And just to clarify: my Prusa printer does not generate a ttyACM0 device, it generates /dev/usbdev1.6

ttyACM0 is listed in my Octoprint app list of devices but since my printer is not mapped to it or any of the tty ones, it cannot connect.


Strange is like driver not loaded ... only EHCI USB driver identify the USB printer ??? but NOT the cdc-acm driver ...

I will check, thanks for this information. I will generate the driver and see if it load or not (no trace of cdc-acm in /proc/kallsyms

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1677
Joined: Sat Sep 12, 2015 2:55 am

Re: [Octoprint] multiple USB serial modules for 5.13.x kernel

Postby beb » Mon Sep 18, 2023 8:29 pm

Hi father.mande. How do you build kernel modules for ADM? I downloaded the linux 5.13.x source, the ADM toolchain and the driver source. But how do I combine them? To build the driver it seems that I need the kernel headers. Where can I find them? Is there some documentation I am missing? It could be something very straight-forward that I am missing, because I am not experience with building kernel modules :|
beb
 
Posts: 1
Joined: Sat Sep 16, 2023 10:20 pm

Re: [Octoprint] multiple USB serial modules for 5.13.x kernel

Postby father.mande » Mon Sep 18, 2023 10:16 pm

Hi,
beb wrote:Hi father.mande. How do you build kernel modules for ADM? I downloaded the linux 5.13.x source, the ADM toolchain and the driver source. But how do I combine them? To build the driver it seems that I need the kernel headers. Where can I find them? Is there some documentation I am missing? It could be something very straight-forward that I am missing, because I am not experience with building kernel modules :|


As I know, Asustor don't provide full help and documentation on building kernel module ... (perhaps it's not true)
BUT some info exist (ex. in the developer guide (one for each kernel and sub-level sometimes) ... you can get it in dev. corner : https://developer.asustor.com/ )
generally it's :
... the kernel source with potential change done by Asustor (ex. with sub-level at .x ... not really a standard)
... the Ubuntu version to use at base (in real or virtual system)
... the cross-compiler need to generate the correct architecture modules, kernels and program (ex. for 4.2+ only x86_64 and arm64 are usable, for older arm and x86 also can be used)
... the full kernel header to download in fact kernel source (GPL source in sourceforge.net)
... the kernel config file ... also in sourceforge

... so after the scheme is as usual :
create the Ubuntu and update it, install cross-compiler, get the kernel config file and do change you want, don't forgot to verify the CONFIG_CROSS_COMPILE value in, generate modules ... then test it on real NAS.
... you can't change (easily) the modules.dep file, so use modinfo and insmod, lsmod and not modprobre for your own modules.

If you own the NAS target of your modules and don't want to provide the module for all kernels and sub-level, you can use an Ubuntu chroot to do all (with or without cross-compile) locally on NAS

For the modules itslef, you must know what you do the depends and the how-to load after boot the modules, because A.D.M. restart at boot with its initial content.

Philippe.
NB if your request is short (a special modules) don't hesitate to ask for builder in the forum, some people have lot of experience on doing this, including my small expertise when I have some free time to do it)
NB1 don't also forgot to ask to Asustor (through support) ... sometimes they have the response immediately ...
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1677
Joined: Sat Sep 12, 2015 2:55 am

Previous

Return to Developer's Corner

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 2 guests