Hello,
suddenly my Ubuntu and its Parallels Tools didnt work so i decided to reinstall the Tools again. But this ended up with errors like
modprobe: FATAL: Module prl_tg not found in directory /lib/modules/5.19.0-46-generic
Means the Kernel Module isnt present, i guess. So i tried to compile the Kernel Modules by myself. Unpack the prl_mod.tar.gz to a folder in downloads, and in it i did a make -f Makefile.kmods
This ended up in this:
awk: Kommandozeile:1: Warnung: Die Escapesequenz »\#« ist kein bekannter Operator für reguläre Ausdrücke
Will use compiler CC="cc".
Compiler version "cc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0"
cd prl_tg/Toolgate/Guest/Linux/prl_tg && make CC=cc
make[1]: Verzeichnis „/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg" wird betreten
1: /lib/modules/5.19.0-46-generic/build
2: /home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg
3: 20230629
4: 1.10.0
Start compile prl_tg...
make -C /lib/modules/5.19.0-46-generic/build M=/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg SRCROOT=/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg CC=cc modules
make[2]: Verzeichnis „/usr/src/linux-headers-5.19.0-46-generic" wird betreten
warning: the compiler differs from the one used to build the kernel
The kernel was built by: aarch64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: cc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
1: /lib/modules/5.19.0-46-generic/build
2: /home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg
3: 20230629
4: 1.10.0
CC [M] /home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o
In file included from /home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:23:
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_common.h: In function 'tg_out':
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_common.h:179:14: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
179 | port += dev->base_addr;
| ^~
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_common.h:183:24: warning: passing argument 2 of 'iowrite64' makes pointer from integer without a cast -Wint-conversion]
183 | iowrite64(val, port);
| ^~~~
| |
| long unsigned int
In file included from ./arch/arm64/include/asm/io.h:185,
from ./include/linux/io.h:13,
from ./include/linux/irq.h:20,
from ./include/asm-generic/hardirq.h:17,
from ./arch/arm64/include/asm/hardirq.h:17,
from ./include/linux/hardirq.h:11,
from ./include/linux/interrupt.h:11,
from ./include/linux/pci.h:38,
from /home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:7:
./include/asm-generic/io.h:769:64: note: expected 'volatile void *' but argument is of type 'long unsigned int'
769 | static inline void iowrite64(u64 value, volatile void __iomem *addr)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'prl_tg_initialize':
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:385:14: error: implicit declaration of function 'pci_set_dma_mask' [-Werror=implicit-function-declaration]
385 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
| ^~~~~~~~~~~~~~~~
In file included from ./include/asm-generic/bug.h:22,
from ./arch/arm64/include/asm/bug.h:26,
from ./include/linux/bug.h:5,
from ./arch/arm64/include/asm/cpufeature.h:19,
from ./arch/arm64/include/asm/hwcap.h:9,
from ./arch/arm64/include/asm/arch_timer.h:12,
from ./arch/arm64/include/asm/timex.h:8,
from ./include/linux/timex.h:67,
from ./include/linux/time32.h:13,
from ./include/linux/time.h:60,
from ./arch/arm64/include/asm/stat.h:12,
from ./include/linux/stat.h:6,
from ./include/linux/module.h:13,
from /home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:5:
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'prl_tg_probe_common':
./include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'void *' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
./include/linux/printk.h:436:25: note: in definition of macro 'printk_index_wrap'
436 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:520:9: note: in expansion of macro 'printk'
520 | printk(KERN_INFO "detected %s, base addr %08lx, IRQ %d\n",
| ^~~~~~
./include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:520:16: note: in expansion of macro 'KERN_INFO'
520 | printk(KERN_INFO "detected %s, base addr %08lx, IRQ %d\n",
| ^~~~~~~~~
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'prl_tg_init_module':
/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:646:13: warning: unused variable 'rc' [-Wunused-variable]
646 | int rc;
| ^~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:257: /home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o] Fehler 1
make[2]: *** [Makefile:1857: /home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg] Fehler 2
make[2]: Verzeichnis „/usr/src/linux-headers-5.19.0-46-generic" wird verlassen
make[1]: *** [Makefile:43: prl_tg] Fehler 2
make[1]: Verzeichnis „/home/thomas/Downloads/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg" wird verlassen
make: *** [Makefile.kmods:47: compile] Fehler 2
Running Parallels 17.1.6 on a Mac Mini M1
Kernel in Ubuntu is:
Linux ubuntu-linux-20-04-desktop 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:58 UTC 2 aarch64 aarch64 aarch64 GNU/Linux
Why i cant install the Tools?
Regards
Thomas
Click to expand...