[törölve]
Az apt install linux-headers-generic dkms
parancs eredménye:
Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.15.0-46-generic KVERSION=5.15.0-46-generic....(bad exit status: 2)
ERROR (dkms apport): binary package for rts_pstor: 1.11 not found
Error! Bad return status for module build on kernel: 5.15.0-46-generic (x86_64)
Consult /var/lib/dkms/rts_pstor/1.11/build/make.log for more information.
...done.
Beállítás: linux-headers-generic (5.15.0.46.46) ...
Ide már egyszer eljutottam, az rts_pstor modul nem fordul le, a make parancs megáll a fenébe:
(azért make debug a parancs, mert a make defaultnál át van írva a SUBDIRS=$(PWD) M=$(shell pwd)-re)
root@glsmith-Aspire-F5-771G:/home/glsmith/rts_pstor-1.11# make debug
sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h
cp -f ./define.debug ./define.h
make -C /lib/modules/5.15.0-46-generic/build/ SUBDIRS=/home/glsmith/rts_pstor-1.11 modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-46-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop.
make[1]: *** [arch/x86/Makefile:217: archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-46-generic'
make: *** [Makefile:43: debug] Error 2
make default:
root@glsmith-Aspire-F5-771G:/home/glsmith/rts_pstor-1.11# make
sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h
cp -f ./define.release ./define.h
make -C /lib/modules/5.15.0-46-generic/build/ M=/home/glsmith/rts_pstor-1.11 modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-46-generic'
CC [M] /home/glsmith/rts_pstor-1.11/rtsx.o
In file included from /home/glsmith/rts_pstor-1.11/rtsx.c:28:
/home/glsmith/rts_pstor-1.11/rtsx.h: In function ‘get_current_time’:
/home/glsmith/rts_pstor-1.11/rtsx.h:172:24: error: storage size of ‘tv’ isn’t known
172 | struct timeval tv;
| ^~
/home/glsmith/rts_pstor-1.11/rtsx.h:178:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
178 | do_gettimeofday(&tv);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
/home/glsmith/rts_pstor-1.11/rtsx.h:172:24: warning: unused variable ‘tv’ [-Wunused-variable]
172 | struct timeval tv;
| ^~
In file included from /home/glsmith/rts_pstor-1.11/rtsx.c:29:
/home/glsmith/rts_pstor-1.11/rtsx_chip.h: At top level:
/home/glsmith/rts_pstor-1.11/rtsx_chip.h:330: warning: "SG_END" redefined
330 | #define SG_END 0x02
|
In file included from ./include/linux/blkdev.h:23,
from /home/glsmith/rts_pstor-1.11/rtsx.c:23:
./include/linux/scatterlist.h:65: note: this is the location of the previous definition
65 | #define SG_END 0x02UL
|
/home/glsmith/rts_pstor-1.11/rtsx.c:273:10: error: ‘struct scsi_host_template’ has no member named ‘use_clustering’
273 | .use_clustering = 1,
| ^~~~~~~~~~~~~~
/home/glsmith/rts_pstor-1.11/rtsx.c: In function ‘rtsx_probe’:
/home/glsmith/rts_pstor-1.11/rtsx.c:937:27: error: implicit declaration of function ‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration]
937 | dev->remap_addr = ioremap_nocache(dev->addr, pci_resource_len(pci,0));
| ^~~~~~~~~~~~~~~
| ioremap_cache
/home/glsmith/rts_pstor-1.11/rtsx.c:937:25: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
937 | dev->remap_addr = ioremap_nocache(dev->addr, pci_resource_len(pci,0));
| ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:297: /home/glsmith/rts_pstor-1.11/rtsx.o] Error 1
make[1]: *** [Makefile:1881: /home/glsmith/rts_pstor-1.11] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-46-generic'
make: *** [Makefile:39: default] Error 2
Ide meg már nem találtam segítséget. Az rts_pstor az sd kártya foglalatért felelős modul. Letiltani az eszközt nem tudom (vagy legalábbis nem találtam erre vonatkozó beállítást a BIOS-ban).