Вопрос или проблема
Я испортил обновление с Ubuntu 22.04 до 24.04 на своем ноутбуке (экран заблокирован, так что я предполагаю, что обновление не завершилось). Я пытался исправить/продолжить установку с USB с живой системой, но также сделал ошибку, удалив старые образы с помощью apt auto-remove.
Теперь у меня две проблемы:
1/ Система не загружается, она зависает с ошибкой:
Kernel panic: not syncing: VFS: Unable to mount root fs on unknown-block (0,0)
2/ Обновление/апгрейд пакетов терпит неудачу на пакетах ядра/изображений
Building module:
Cleaning build area...
make -j8 KERNELRELEASE=6.8.0-41-generic -C /lib/modules/6.8.0-41-generic/build M=/var/lib/dkms/rts_bpp/1.1/build/src rts_bpp.ko...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.8.0-41-generic (x86_64)
Consult /var/lib/dkms/rts_bpp/1.1/build/make.log for more information.
dkms autoinstall on 6.8.0-41-generic/x86_64 failed for rts_bpp(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: autoinstall for kernel 6.8.0-41-generic
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.8.0-41-generic (--configure):
installed linux-image-6.8.0-41-generic package post-installation script subprocess returned error exit status 11
Errors were encountered while processing:
linux-headers-6.8.0-41-generic
linux-headers-6.8.0-31-generic
linux-image-6.8.0-41-generic
Если я выполню команду cat /var/lib/dkms/rts_bpp/1.1/build/make.log
, возникает поток предупреждений/ошибок.
DKMS make.log for rts_bpp-1.1 for kernel 6.8.0-41-generic (x86_64)
Sun Jan 5 23:33:35 CET 2025
make: Entering directory '/usr/src/linux-headers-6.8.0-41-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
CC [M] /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.o
CC [M] /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.o
CC [M] /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_transport.o
CC [M] /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_scsi.o
CC [M] /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_card.o
CC [M] /var/lib/dkms/rts_bpp/1.1/build/src/general.o
CC [M] /var/lib/dkms/rts_bpp/1.1/build/src/sd.o
CC [M] /var/lib/dkms/rts_bpp/1.1/build/src/xd.o
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:28:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h: In function ‘get_current_time’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: error: storage size of ‘tv’ isn’t known
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_transport.c:27:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h: In function ‘get_current_time’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: error: storage size of ‘tv’ isn’t known
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.c:28:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h: In function ‘get_current_time’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: error: storage size of ‘tv’ isn’t known
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_scsi.c:27:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h: In function ‘get_current_time’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: error: storage size of ‘tv’ isn’t known
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_card.c:29:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h: In function ‘get_current_time’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: error: storage size of ‘tv’ isn’t known
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/sd.c:27:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h: In function ‘get_current_time’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: error: storage size of ‘tv’ isn’t known
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/general.h:27,
from /var/lib/dkms/rts_bpp/1.1/build/src/general.c:23:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h: In function ‘get_current_time’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: error: storage size of ‘tv’ isn’t known
174 | struct timeval tv;
| ^~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:180:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
180 | do_gettimeofday(&tv);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: warning: unused variable ‘tv’ [-Wunused-variable]
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:29:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h: At top level:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h:330: warning: "SG_END" redefined
330 | #define SG_END 0x02
|
In file included from ./include/linux/dmapool.h:14,
from ./include/linux/pci.h:1654,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:37:
./include/linux/scatterlist.h:68: note: this is the location of the previous definition
68 | #define SG_END 0x02UL
|
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:180:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
180 | do_gettimeofday(&tv);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: warning: unused variable ‘tv’ [-Wunused-variable]
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_scsi.h:28,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_transport.c:28:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h: At top level:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h:330: warning: "SG_END" redefined
330 | #define SG_END 0x02
|
In file included from ./include/linux/dmapool.h:14,
from ./include/linux/pci.h:1654,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:37:
./include/linux/scatterlist.h:68: note: this is the location of the previous definition
68 | #define SG_END 0x02UL
|
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c: In function ‘proc_info’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:141:48: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
141 | SPRINTF(" Build: %s\n", __TIME__);
| ^
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c: In function ‘queuecommand_lck’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:180:12: error: ‘struct scsi_cmnd’ has no member named ‘scsi_done’
180 | srb->scsi_done = done;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:49:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c: In function ‘queuecommand’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:194:22: error: too few arguments to function ‘queuecommand_lck’
194 | static DEF_SCSI_QCMD(queuecommand)
| ^~~~~~~~~~~~
./include/scsi/scsi_host.h:517:22: note: in definition of macro ‘DEF_SCSI_QCMD’
517 | rc = func_name##_lck(cmd); \
| ^~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:158:12: note: declared here
158 | static int queuecommand_lck(struct scsi_cmnd *srb,
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:180:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
180 | do_gettimeofday(&tv);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: warning: unused variable ‘tv’ [-Wunused-variable]
174 | struct timeval tv;
| ^~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c: At top level:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:259:10: error: ‘struct scsi_host_template’ has no member named ‘proc_info’; did you mean ‘show_info’?
259 | .proc_info = proc_info,
| ^~~~~~~~~
| show_info
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_transport.h:28,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.c:29:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h: At top level:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h:330: warning: "SG_END" redefined
330 | #define SG_END 0x02
|
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:259:41: warning: initialization of ‘int’ from ‘int (*)(struct Scsi_Host *, char *, char **, off_t, int, int)’ {aka ‘int (*)(struct Scsi_Host *, char *, char **, long int, int, int)’} makes integer from pointer without a cast [-Wint-conversion]
259 | .proc_info = proc_info,
| ^~~~~~~~~
In file included from ./include/linux/dmapool.h:14,
from ./include/linux/pci.h:1654,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:37:
./include/linux/scatterlist.h:68: note: this is the location of the previous definition
68 | #define SG_END 0x02UL
|
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:259:41: note: (near initialization for ‘rtsx_host_template.can_queue’)
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:259:41: error: initializer element is not computable at load time
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:259:41: note: (near initialization for ‘rtsx_host_template.can_queue’)
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:290:10: error: ‘struct scsi_host_template’ has no member named ‘use_clustering’
290 | .use_clustering = 1,
| ^~~~~~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:180:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
180 | do_gettimeofday(&tv);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
In file included from ./include/asm-generic/bug.h:22,
from ./arch/x86/include/asm/bug.h:87,
from ./include/linux/bug.h:5,
from ./arch/x86/include/asm/paravirt.h:19,
from ./arch/x86/include/asm/irqflags.h:60,
from ./include/linux/irqflags.h:18,
from ./include/linux/spinlock.h:59,
from ./include/linux/wait.h:9,
from ./include/linux/wait_bit.h:8,
from ./include/linux/fs.h:6,
from ./include/linux/highmem.h:5,
from ./include/linux/bvec.h:10,
from ./include/linux/blk_types.h:10,
from ./include/linux/blkdev.h:9,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:23:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c: In function ‘rtsx_control_thread’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: warning: unused variable ‘tv’ [-Wunused-variable]
174 | struct timeval tv;
| ^~
./include/linux/kern_levels.h:5:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
./include/linux/printk.h:429:25: note: in definition of macro ‘printk_index_wrap’
429 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:495:25: note: in expansion of macro ‘printk’
495 | printk(KERN_ERR "Bad target number (%d:%d)\n",
| ^~~~~~
./include/linux/kern_levels.h:11:25: note: in expansion of macro ‘KERN_SOH’
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:495:32: note: in expansion of macro ‘KERN_ERR’
495 | printk(KERN_ERR "Bad target number (%d:%d)\n",
| ^~~~~~~~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_transport.h:28,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_scsi.c:28:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h: At top level:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h:330: warning: "SG_END" redefined
330 | #define SG_END 0x02
|
In file included from ./include/linux/dmapool.h:14,
from ./include/linux/pci.h:1654,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:37:
./include/linux/scatterlist.h:68: note: this is the location of the previous definition
68 | #define SG_END 0x02UL
|
./include/linux/kern_levels.h:5:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
./include/linux/printk.h:429:25: note: in definition of macro ‘printk_index_wrap’
429 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:501:25: note: in expansion of macro ‘printk’
501 | printk(KERN_ERR "Bad LUN (%d:%d)\n",
| ^~~~~~
./include/linux/kern_levels.h:11:25: note: in expansion of macro ‘KERN_SOH’
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:501:32: note: in expansion of macro ‘KERN_ERR’
501 | printk(KERN_ERR "Bad LUN (%d:%d)\n",
| ^~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:521:34: error: ‘struct scsi_cmnd’ has no member named ‘scsi_done’
521 | chip->srb->scsi_done(chip->srb);
| ^~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:180:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
180 | do_gettimeofday(&tv);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: warning: unused variable ‘tv’ [-Wunused-variable]
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_transport.h:28,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_card.c:30:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h: At top level:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h:330: warning: "SG_END" redefined
330 | #define SG_END 0x02
|
In file included from ./include/linux/dmapool.h:14,
from ./include/linux/pci.h:1654,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:37:
./include/linux/scatterlist.h:68: note: this is the location of the previous definition
68 | #define SG_END 0x02UL
|
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/xd.c:27:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h: In function ‘get_current_time’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: error: storage size of ‘tv’ isn’t known
174 | struct timeval tv;
| ^~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:180:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
180 | do_gettimeofday(&tv);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: warning: unused variable ‘tv’ [-Wunused-variable]
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_transport.h:28,
from /var/lib/dkms/rts_bpp/1.1/build/src/sd.c:28:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h: At top level:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h:330: warning: "SG_END" redefined
330 | #define SG_END 0x02
|
In file included from ./include/linux/dmapool.h:14,
from ./include/linux/pci.h:1654,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:37:
./include/linux/scatterlist.h:68: note: this is the location of the previous definition
68 | #define SG_END 0x02UL
|
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:180:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
180 | do_gettimeofday(&tv);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: warning: unused variable ‘tv’ [-Wunused-variable]
174 | struct timeval tv;
| ^~
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/rts_bpp/1.1/build/src/general.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_transport.o] Error 1
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:180:9: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
180 | do_gettimeofday(&tv);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:174:24: warning: unused variable ‘tv’ [-Wunused-variable]
174 | struct timeval tv;
| ^~
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_transport.h:28,
from /var/lib/dkms/rts_bpp/1.1/build/src/xd.c:28:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h: At top level:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.h:330: warning: "SG_END" redefined
330 | #define SG_END 0x02
|
In file included from ./include/linux/dmapool.h:14,
from ./include/linux/pci.h:1654,
from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:37:
./include/linux/scatterlist.h:68: note: this is the location of the previous definition
68 | #define SG_END 0x02UL
|
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:555:9: error: implicit declaration of function ‘complete_and_exit’ [-Werror=implicit-function-declaration]
555 | complete_and_exit(&dev->control_exit, 0);
| ^~~~~~~~~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:556:1: error: no return statement in function returning non-void [-Werror=return-type]
556 | }
| ^
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c: In function ‘rtsx_polling_thread’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:600:1: error: no return statement in function returning non-void [-Werror=return-type]
600 | }
| ^
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c: In function ‘quiesce_and_remove_host’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:740:26: error: ‘struct scsi_cmnd’ has no member named ‘scsi_done’
740 | chip->srb->scsi_done(dev->chip->srb);
| ^~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c: In function ‘rtsx_scan_thread’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:784:1: error: no return statement in function returning non-void [-Werror=return-type]
784 | }
| ^
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c: At top level:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:893:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtsx_probe’
893 | static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
| ^~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:900:50: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
900 | printk(KERN_INFO "--- %s ---\n", __TIME__);
| ^
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:1048:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtsx_remove’
1048 | static void __devexit rtsx_remove(struct pci_dev *pci)
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:1073:18: error: ‘rtsx_probe’ undeclared here (not in a function)
1073 | .probe = rtsx_probe,
| ^~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.c: In function ‘rtsx_cfg_try_lock’:
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.c:2049:33: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
2049 | if (turn < 0);
| ^~
cc1: some warnings being treated as errors
In file included from /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.h:52:
/var/lib/dkms/rts_bpp/1.1/build/src/trace.h:51:1: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
51 | do { \
| ^~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.c:2050:41: note: in expansion of macro ‘TRACE_RET’
2050 | TRACE_RET(chip, STATUS_FAIL);
| ^~~~~~~~~
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_card.o] Error 1
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_scsi.o] Error 1
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:1074:19: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
1074 | .remove = __devexit_p(rtsx_remove),
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:1074:31: error: ‘rtsx_remove’ undeclared here (not in a function); did you mean ‘rtsx_resume’?
1074 | .remove = __devexit_p(rtsx_remove),
| ^~~~~~~~~~~
| rtsx_resume
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/rts_bpp/1.1/build/src/rtsx_chip.o] Error 1
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:786:13: warning: ‘rtsx_init_options’ defined but not used [-Wunused-function]
786 | static void rtsx_init_options(struct rtsx_chip *chip)
| ^~~~~~~~~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:761:12: warning: ‘rtsx_scan_thread’ defined but not used [-Wunused-function]
761 | static int rtsx_scan_thread(void * __dev)
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:751:13: warning: ‘release_everything’ defined but not used [-Wunused-function]
751 | static void release_everything(struct rtsx_dev *dev)
| ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:715:13: warning: ‘quiesce_and_remove_host’ defined but not used [-Wunused-function]
715 | static void quiesce_and_remove_host(struct rtsx_dev *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:559:12: warning: ‘rtsx_polling_thread’ defined but not used [-Wunused-function]
559 | static int rtsx_polling_thread(void * __dev)
| ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:450:12: warning: ‘rtsx_control_thread’ defined but not used [-Wunused-function]
450 | static int rtsx_control_thread(void * __dev)
| ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rts_bpp/1.1/build/src/rtsx.c:255:34: warning: ‘rtsx_host_template’ defined but not used [-Wunused-variable]
255 | static struct scsi_host_template rtsx_host_template = {
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/rts_bpp/1.1/build/src/rtsx.o] Error 1
/var/lib/dkms/rts_bpp/1.1/build/src/sd.c: In function ‘ext_sd_send_cmd_get_rsp’:
cc1: some warnings being treated as errors
/var/lib/dkms/rts_bpp/1.1/build/src/sd.c:3665:53: warning: bitwise comparison always evaluates to true [-Wtautological-compare]
3665 | if ((ptr[3] & 0x1E) != 0x03) {
| ^~
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/rts_bpp/1.1/build/src/xd.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/rts_bpp/1.1/build/src/sd.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.8.0-41-generic/Makefile:1926: /var/lib/dkms/rts_bpp/1.1/build/src] Error 2
make: *** [Makefile:240: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.8.0-41-generic'
Не хватает ли какого-то модуля? Что я могу сделать, чтобы исправить установку ядра?
Ответ или решение
Для решения проблемы, которая возникла после неудачного обновления операционной системы Ubuntu с версии 22.04 до 24.04, вам необходимо учесть несколько аспектов, связанных с загрузкой и установкой модулей ядра. Давайте разберем возможные шаги для восстановления системы.
Анализ проблемы
-
Ошибка загрузки ядра:
- Сообщение об ошибке "Kernel panic: not syncing: VFS: Unable to mount root fs on unknown-block (0,0)" указывает на то, что система не может загрузить файловую систему. Это обычно связано с отсутствием или повреждением необходимых модулей ядра или некорректно настроенным загрузчиком.
-
Ошибки при установке модулей ядра:
- Лог отображает множество ошибок, в том числе несовместимости компиляторов и проблемы с кодом модуля
rts_bpp
. Это указывает на то, что пакетdkms
не может корректно собрать нужные модули для текущей версии ядра.
- Лог отображает множество ошибок, в том числе несовместимости компиляторов и проблемы с кодом модуля
Решение проблемы
Шаги для восстановления
-
Восстановление загрузчика и файловой системы:
-
Live USB: Загрузитесь с Live USB, чтобы иметь доступ к вашим файлам и выполнить необходимые команды для восстановления системы.
-
Проверка и исправление файловой системы: Используйте
fsck
для проверки и исправления файловой системы, если это необходимо. -
Перезагрузка Grub: Переустановите или обновите загрузчик GRUB. Это можно сделать с помощью команды:
sudo update-grub
Если обновление не помогает, попробуйте переустановить Grub:
sudo grub-install /dev/sda
-
-
Ручная установка нужных пакетов ядра:
-
Убедитесь, что у вас установлены правильные headers и образ ядра, соответствующие вашей версии Ubuntu. Перейдите к папке с файлами
/usr/src/linux-headers-<версия ядра>
и проверьте ее наличие. -
Если необходимо, установите ядро и соответствующие заголовки из репозитория:
sudo apt-get update sudo apt-get install linux-image-generic linux-headers-generic
-
-
Решение проблем с DKMS:
-
Удаление и переустановка модулей: Popробуйте удалить проблемный модуль и установить его заново:
sudo dkms remove -m rts_bpp -v 1.1 --all sudo dkms build -m rts_bpp -v 1.1 sudo dkms install -m rts_bpp -v 1.1
-
Компилятор и проверка версии: Убедитесь, что установлены все необходимые компиляторы и инструменты. Если они различаются, возможно, потребуется настройка символических ссылок на правильные версии компилятора:
sudo update-alternatives --config gcc
-
Заключение
Проблемы с загрузкой и установкой модулей ядра могут быть вызваны множеством факторов, включая несовместимость системных пакетов или повреждение файлов конфигурации. После устранения указанных выше проблем система должна быть восстановлена. Если проблемы сохраняются, возможно, вам стоит обратиться за помощью к специалистам или к поддержке Ubuntu. Старайтесь сохранять резервные копии важных данных перед выполнением системных обновлений.