projectacrn / acrn-hypervisor

Project ACRN hypervisor
BSD 3-Clause "New" or "Revised" License
1.12k stars 513 forks source link

An error occurred when I installed the AX99100 driver #8179

Open niuchp opened 1 year ago

niuchp commented 1 year ago

Describe the bug An error occurred when I installed the AX99100 driver: a39b71d54b2606b794b86b61a6351e2

But,It can be successfully installed on the native OS.

Platform native OS: Ubuntu20.04 ACRN: 3.0

To Reproduce

  1. Download AX99100 driver 'AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source.tar.bz2';
  2. Decompress the package;
  3. make
gvancuts commented 1 year ago

Best guess without having tried it: the CONFIG_PARPORT is not set in our ACRN kernel and that's causing the failure. Can you try to enable it and see if it makes any difference? (let us know if you need instructions on how to enable this and installing it on your system).

niuchp commented 1 year ago

Best guess without having tried it: the CONFIG_PARPORT is not set in our ACRN kernel and that's causing the failure. Can you try to enable it and see if it makes any difference? (let us know if you need instructions on how to enable this and installing it on your system).

Thanks for your help! After setting, it can be successfully compiled, but the prompt "Key was rejected by service" appears. Can you help me?


root@ubuntu-OptiPlex-3050:/home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source# make rm -f .mod.c .o .ko ..cmd .symvers make -C /lib/modules/5.10.115-acrn-service-vm-dirty/build/ M=/home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source modules make[1]: Entering directory '/usr/src/linux-headers-5.10.115-acrn-service-vm-dirty' CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100_spi.o CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100_sp.o LD [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100.o CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc.o MODPOST /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/Module.symvers WARNING: modpost: /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc: 'parport_pc_probe_port' exported twice. Previous export was in vmlinux WARNING: modpost: /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc: 'parport_pc_unregister_port' exported twice. Previous export was in vmlinux CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100.mod.o LD [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100.ko CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc.mod.o LD [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc.ko make[1]: Leaving directory '/usr/src/linux-headers-5.10.115-acrn-service-vm-dirty' gcc -pthread select_BR.c -o select_BR gcc -pthread advanced_BR.c -o advanced_BR gcc -pthread gpio_99100.c -o gpio_99100 gcc -pthread -Wall 9bit_test.c -o 9bit_test gcc -I /usr/include spi_test.c -o spi_test rm -f .mod.c .o ..cmd .symvers rm -rf .tmp_version ~ rm -rf Module.markers modules.

root@ubuntu-OptiPlex-3050:/home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source# make install rm -f .mod.c .o .ko ..cmd .symvers make -C /lib/modules/5.10.115-acrn-service-vm-dirty/build/ M=/home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source modules make[1]: Entering directory '/usr/src/linux-headers-5.10.115-acrn-service-vm-dirty' CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100_spi.o CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100_sp.o LD [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100.o CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc.o MODPOST /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/Module.symvers WARNING: modpost: /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc: 'parport_pc_probe_port' exported twice. Previous export was in vmlinux WARNING: modpost: /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc: 'parport_pc_unregister_port' exported twice. Previous export was in vmlinux CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100.mod.o LD [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/ax99100.ko CC [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc.mod.o LD [M] /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/parport_pc.ko make[1]: Leaving directory '/usr/src/linux-headers-5.10.115-acrn-service-vm-dirty' gcc -pthread select_BR.c -o select_BR gcc -pthread advanced_BR.c -o advanced_BR gcc -pthread gpio_99100.c -o gpio_99100 gcc -pthread -Wall 9bit_test.c -o 9bit_test gcc -I /usr/include spi_test.c -o spi_test rm -f .mod.c .o ..cmd .symvers rm -rf .tmp_version ~ rm -rf Module.markers modules. make -C /lib/modules/5.10.115-acrn-service-vm-dirty/build/ M=/home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source modules_install make[1]: Entering directory '/usr/src/linux-headers-5.10.115-acrn-service-vm-dirty' cat: /home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source/modules.order: No such file or directory DEPMOD 5.10.115-acrn-service-vm-dirty Warning: modules_install: missing 'System.map' file. Skipping depmod. make[1]: Leaving directory '/usr/src/linux-headers-5.10.115-acrn-service-vm-dirty' cp ax99100.ko /lib/modules/5.10.115-acrn-service-vm-dirty/kernel/drivers/tty/serial su -c "/sbin/depmod -a" modprobe ax99100 modprobe: ERROR: could not insert 'ax99100': Key was rejected by service make: *** [Makefile:56: install] Error 1 root@ubuntu-OptiPlex-3050:/home/ubuntu/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source#

root@ubuntu-OptiPlex-3050:~# lspci -vv 03:00.1 Serial controller: Asix Electronics Corporation AX99100 PCIe to Multi I/O Controller (prog-if 02 [16550]) Subsystem: Asix Electronics Corporation (Wrong ID) Serial Port Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx- Interrupt: pin B routed to IRQ 19 Region 0: I/O ports at e000 [size=8] Region 1: Memory at f7301000 (32-bit, non-prefetchable) [size=4K] Region 5: Memory at f7300000 (32-bit, non-prefetchable) [size=4K] Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+ Address: 0000000000000000 Data: 0000 Capabilities: [78] Power Management version 3 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Capabilities: [80] Express (v2) Legacy Endpoint, MSI 00 DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <1us, L1 <2us ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq- RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ MaxPayload 256 bytes, MaxReadReq 512 bytes DevSta: CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr+ TransPend- LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s, Exit Latency L0s unlimited ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp- LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+ ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 2.5GT/s (ok), Width x1 (ok) TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt- DevCap2: Completion Timeout: Not Supported, TimeoutDis-, NROPrPrP-, LTR- 10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt-, EETLPPrefix- EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit- FRS- AtomicOpsCap: 32bit- 64bit- 128bitCAS- DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled AtomicOpsCtl: ReqEn- LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1- EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest- Capabilities: [100 v1] Advanced Error Reporting UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol- CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn- MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap- HeaderLog: 00000000 00000000 00000000 00000000 Kernel modules: ax99100

gvancuts commented 1 year ago

modprobe: ERROR: could not insert 'ax99100': Key was rejected by service

Do you have secure boot enabled in your bios by any chance? If so, please try turning this off and see if it makes any difference.