Build Google Coral Module

Got a feature request? Great! Post your ideas here!

Moderator: Lillian.W@AST

yabaikai
Posts: 16
youtube meble na wymiar Warszawa
Joined: Fri Jul 08, 2022 11:39 am

Build Google Coral Module

Post by yabaikai »

Could I ask a kind developer with the kernel source to build me a module for a Google Coral USB stick? It's a little over my head... Makefile and all can be found here https://github.com/google/gasket-driver.
User avatar
father.mande
Posts: 1794
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Build Google Coral Module

Post by father.mande »

Hi,
yabaikai wrote:Could I ask a kind developer with the kernel source to build me a module for a Google Coral USB stick? It's a little over my head... Makefile and all can be found here https://github.com/google/gasket-driver.
Not a problem to try BUT, please indicate architecture ? gasket (github version) works only with x86_64 & arm64
and indicate kernel level (uname -a) ? 2 kernels available for x86_64 and 2 for arm64 ...

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1794
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Build Google Coral Module

Post by father.mande »

Hi,

I had an hour to spare ... so I have just compile gasket modules (and apex) ... not tested it's your job ...
ONLY for :
kernel 5.13.x ADM 4.1 x86_64
kernel 5.4.x ADM 4.0 x86_64
kernel 4.9.119 ADM 4.1 arm64 (AS11 and AS33 series)

How-to
get the file
extract (tar xzf ... ) create gasket_delivery folder
load module (then integrate in your start_up script) select folder for your kernel use insmod gasket.ko first then apex.ko
... take care normally an udev rule is apply to change access right to 666 to device created ... do it when USB is plugged

file : https://www.father-mande.ovh/files/gasket_delivery.tgz

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
yabaikai
Posts: 16
Joined: Fri Jul 08, 2022 11:39 am

Re: Build Google Coral Module

Post by yabaikai »

Thank you so much Philippe! I used the module you compiled for 5.13.x as I'm using ADM 4.1 on my AS6602T, but get an error, "insmod: can't insert 'gasket.ko': invalid parameter".

May I please trouble you for some advice?
User avatar
father.mande
Posts: 1794
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Build Google Coral Module

Post by father.mande »

Hi,
yabaikai wrote:Thank you so much Philippe! I used the module you compiled for 5.13.x as I'm using ADM 4.1 on my AS6602T, but get an error, "insmod: can't insert 'gasket.ko': invalid parameter".

May I please trouble you for some advice?
Hum! ... i have only tested on 5.4.x, I will run a test BUT F.Y.I. I compile using last Asustor delivery ADM 4.1.0.RLQ1 (head -n 5 /etc/nas.conf | grep Version)
GPL source had been modified compare to 4.1.0.RKM1 (and I don't use this "old" version) ... check please.

I will try tomorrow ... because I am not in my labs and my Asustor (I can used for test) are schedule to shutdown at 10 P.M.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
yabaikai
Posts: 16
Joined: Fri Jul 08, 2022 11:39 am

Re: Build Google Coral Module

Post by yabaikai »

I confirm I as well am on 4.1.0.RLQ1
User avatar
father.mande
Posts: 1794
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Build Google Coral Module

Post by father.mande »

hi,

Tested on AS5202T ADM 4.1.0.RLQ1
... with same error as you
... after investigate it's the level of built-in pci module ... that are not coherent with gasket requirement ...
... ... this module is include in the kernel, so I can't change it

... I will recreate module with previous kernel 5.13.x ... to eliminate a problem with patch include in RLQ1

in second hand, I will try to see if previous version (of git source) exist ... so if I can try to generate previous version of the modules.

Please, wait, I don't have time before P.M. Paris French hour.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1794
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Build Google Coral Module

Post by father.mande »

Hi,

Bad news ...
I have build module using kernel source BEFORE 4.1.0.RLQ1 with kernel 5.13.x
... the error is not the same ... with RLQ1 it's linked to pci built-in module version
... with before RLQ1 ... PCI don't generate error but linked to namespaces (task_active_pid_ns)

I have tested again in 4.0.x kernel 5.4.0 and all works as expected and also on arm64 (AS33 series ... and it's OK

It seems that an incoherency symbol version exist between kernel provide by Asustor and GPL source tree provide also by Asustor ... a fatal deadlock

I will try to retrieve oldest version to test ... but it's just 0.01% luck of win ...

I suggest you do a support request ... seems that Asustor will provide some complement modules in next release ... so perhaps iy can add your request.

So sorry.
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
yabaikai
Posts: 16
Joined: Fri Jul 08, 2022 11:39 am

Re: Build Google Coral Module

Post by yabaikai »

Don't be sorry, I greatly appreciate your assistance! I will open a support request and cross my fingers.
yabaikai
Posts: 16
Joined: Fri Jul 08, 2022 11:39 am

Re: Build Google Coral Module

Post by yabaikai »

Philippe, could I please trouble you to try and build this module for me once more, now that there's a new kernel version?
Post Reply

Return to “Feature Requests”