コード: 全て選択
root 0# sfs_load -q -u /mnt/home/s15pup32/kernel_sources-5.15.178-kernel-kit.sfs 
sfs_load: debug: PUPHOME=/mnt/home;
sfs_load: debug: SFSMODE=y, DESTPART=sda2, DESTDIR=/mnt/home;
sfs_load: debug: LOOP=/dev/loop13: [2050]:17 /initrd/mnt/dev_save/s15pup32/kernel_sources-5.15.178-kernel-kit.sfs
sfs_load: debug: /dev/loop13;/initrd/mnt/dev_save/s15pup32/kernel_sources-5.15.178-kernel-kit.sfs;
sfs_load: debug: mount point is /initrd/pup_ro12;
sfs_load: cleanwhite /initrd/pup_ro12
sfs_load: debug: busybox mount -t aufs -o remount,del:/initrd/pup_ro12 unionfs /
sfs_load: --custom 'kernel_sources-5.15.178-kernel-kit.sfs' はアンロードされました。
sfs_load: debug: 'kernel_sources-5.15.178-kernel-kit.sfs' はアンロードされました。
sfs_load: debug: EXIT=Quit
sfs_load: --stop
root 0# rm -rf /usr/src/linux/
root 0# sfs_load -q /mnt/home/s15pup32/kernel_sources-5.15.178-kernel-kit.sfs
sfs_load: debug: PUPHOME=/mnt/home;
sfs_load: debug: SFSMODE=y, DESTPART=sda2, DESTDIR=/mnt/home;
sfs_load: debug: TFREE=1032700
sfs_load: debug: RFREE=2061896
sfs_load: debug: FILEISAT=home;
sfs_load: debug: '/mnt/home/s15pup32/kernel_sources-5.15.178-kernel-kit.sfs'(/dev/loop13) is mounted on '/initrd/pup_ro12'.
sfs_load: cleanwhite /initrd/pup_ro12
sfs_load: --custom 'kernel_sources-5.15.178-kernel-kit.sfs' は無事ロードされました。
アンロードするまではこのファイルを削除したり移動したりしないでください。
sfs_load: debug: 'kernel_sources-5.15.178-kernel-kit.sfs' は無事ロードされました。
アンロードするまではこのファイルを削除したり移動したりしないでください。
sfs_load: debug: EXIT=Quit
sfs_load: --stop
root 0# cd /usr/src/linux
linux 0# file /usr/src/linux/scripts/basic/fixdep /usr/src/linux/scripts/mod/modpost
/usr/src/linux/scripts/basic/fixdep: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=b61ff949162cb69128ad0ee069c6f9b2034eefc1, not stripped
/usr/src/linux/scripts/mod/modpost:  ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=35383259a401dac5323f62d898d8a7f442c721c1, not stripped
linux 0# make modules_prepare
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
*
* Restart config...
*
*
* GCC plugins
*
GCC plugins (GCC_PLUGINS) [Y/n/?] (NEW) Y
  Compute the cyclomatic complexity of a function (GCC_PLUGIN_CYC_COMPLEXITY) [N/y/?] (NEW) N
  Generate some entropy during boot and runtime (GCC_PLUGIN_LATENT_ENTROPY) [N/y/?] (NEW) N
  Randomize layout of sensitive kernel structures (GCC_PLUGIN_RANDSTRUCT) [N/y/?] (NEW) N
*
* Memory initialization
*
Initialize kernel stack variables at function entry
> 1. no automatic stack variable initialization (weakest) (INIT_STACK_NONE)
  2. zero-init structs marked for userspace (weak) (GCC_PLUGIN_STRUCTLEAK_USER) (NEW)
  3. zero-init structs passed by reference (strong) (GCC_PLUGIN_STRUCTLEAK_BYREF) (NEW)
  4. zero-init everything passed by reference (very strong) (GCC_PLUGIN_STRUCTLEAK_BYREF_ALL) (NEW)
choice[1-4?]: 1
Poison kernel stack before returning from syscalls (GCC_PLUGIN_STACKLEAK) [N/y/?] (NEW) N
Enable heap memory zeroing on allocation by default (INIT_ON_ALLOC_DEFAULT_ON) [Y/n/?] y
Enable heap memory zeroing on free by default (INIT_ON_FREE_DEFAULT_ON) [N/y/?] n
Enable register zeroing on function exit (ZERO_CALL_USED_REGS) [N/y/?] (NEW) n
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/sign-file
  HOSTCC  scripts/extract-cert
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  CC      kernel/bounds.s
  CC      arch/x86/kernel/asm-offsets.s
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  LDS     scripts/module.lds
linux 0# file /usr/src/linux/scripts/basic/fixdep /usr/src/linux/scripts/mod/modpost
/usr/src/linux/scripts/basic/fixdep: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, with debug_info, not stripped
/usr/src/linux/scripts/mod/modpost:  ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, with debug_info, not stripped再びドライバーを再コンパイルするとmodprobeから読み込めるようになりました。ありがとうございます。