#103 Build kmod backward with kernel-checksum.

Closed
opened 1 month ago by carlosgonz · 7 comments

root@libreCMC:/mnt# opkg list-installed kernel kernel - 4.14.152-1-64b01f0077 root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# rm * root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# opkg install kmod-scsi-core_4.14.152-1_mips_24kc.ipk Installing kmod-scsi-core (4.14.152-1) to root... Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-scsi-core:
  • kernel (= 4.14.152-1-490392a6e1)
  • opkg_install_cmd: Cannot install package kmod-scsi-core. root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# rm * root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# opkg install kmod-scsi-core_4.14.152-1_mips_24kc.ipk Installing kmod-scsi-core (4.14.152-1) to root... Collected errors:
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-scsi-core:
  • kernel (= 4.14.152-1-490392a6e1)
  • opkg_install_cmd: Cannot install package kmod-scsi-core. root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# rm *
root@libreCMC:/mnt# opkg list-installed kernel kernel - 4.14.152-1-64b01f007748b085d6292948baa40658 root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# rm * root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# opkg install kmod-scsi-core_4.14.152-1_mips_24kc.ipk Installing kmod-scsi-core (4.14.152-1) to root... Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-scsi-core: * kernel (= 4.14.152-1-490392a6e1ba755d7f9862e75c209c89) * opkg_install_cmd: Cannot install package kmod-scsi-core. root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# rm * root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# opkg install kmod-scsi-core_4.14.152-1_mips_24kc.ipk Installing kmod-scsi-core (4.14.152-1) to root... Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-scsi-core: * kernel (= 4.14.152-1-490392a6e1ba755d7f9862e75c209c89) * opkg_install_cmd: Cannot install package kmod-scsi-core. root@libreCMC:/mnt# ls kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk root@libreCMC:/mnt# rm *
RISCI_ATOM commented 1 month ago
Collaborator

You can't mix and match kernel modules from different kernel versions. The released RC3 images are using 4.14.151, not 4.14.152. If you are building libreCMC from the latest source, you need to select the desired modules in make menuconfig when configuring your image.

If you are looking at building images that are compatible with the package feed, you need to start with a configuration seed and checkout the appropriate tag'ed source. Building such images would look like:

1) Checkout correct sources

git checkout v1.5.0-rc3

or

download the correct version from the release page.

2) Get the correct configuration seed, in the case of v1.5.0-rc3, it is config.buildinfo

3) Move config.buildinfo to $SRC_ROOT/.config

4) Run make menuconfig to generate the rest of the configuration and add additional packages which are not dependent on additional kernel modules.

5) Build like normal : make

You can't mix and match kernel modules from different kernel versions. The released RC3 images are using 4.14.151, not 4.14.152. If you are building libreCMC from the latest source, you need to select the desired modules in `make menuconfig` when configuring your image. If you are looking at building images that are compatible with the package feed, you need to start with a configuration seed and checkout the appropriate tag'ed source. Building such images would look like: 1) Checkout correct sources `git checkout v1.5.0-rc3` or download the correct version from the release page. 2) Get the correct configuration seed, in the case of `v1.5.0-rc3`, it is [config.buildinfo](https://librecmc.org/librecmc/downloads/snapshots/v1.5.0-rc3/targets/ath79/generic/config.buildinfo) 3) Move `config.buildinfo` to `$SRC_ROOT/.config` 4) Run `make menuconfig` to generate the rest of the configuration and add additional packages which are not dependent on additional kernel modules. 5) Build like normal : `make`
carlosgonz commented 1 month ago
Poster

I build the Image from source it had kernel 4.14.152 then flashed to my WZR-600DHP. I checked some kmod, but I forgot check kmod-scsi-core and kmod-mass-storage so I tryed to check in menuconfig then make, so the packages was build but when I try to install it mark error on vermagic like this: opkg install kmod-scsi-core_4.14.152-1_mips_24kc.ipk Installing kmod-scsi-core (4.14.152-1) to root... Collected errors: satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-scsi-core: kernel (= 4.14.152-1-490392a6e1)

So I want to build that packages are missing with the same vermagic-hash: 4.14.152-1-490392a6e1)

I build the Image from source it had kernel 4.14.152 then flashed to my WZR-600DHP. I checked some kmod, but I forgot check kmod-scsi-core and kmod-mass-storage so I tryed to check in menuconfig then make, so the packages was build but when I try to install it mark error on vermagic like this: opkg install kmod-scsi-core_4.14.152-1_mips_24kc.ipk Installing kmod-scsi-core (4.14.152-1) to root... Collected errors: satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-scsi-core: kernel (= 4.14.152-1-490392a6e1) So I want to build that packages are missing with the same vermagic-hash: 4.14.152-1-490392a6e1)
carlosgonz commented 1 month ago
Poster

I do not know how to call this numbers from kernel: 490392a6e1 ? I called vermagic numbers.

I do not know how to call this numbers from kernel: 490392a6e1 ? I called vermagic numbers.
carlosgonz commented 1 month ago
Poster

I guess I can not install the missing packages: kmod-scsi-core and kmod-mass-storage because when I rebuild the packages it come with diferent vermagic-hash like: 5465465416 this not match with the first build of kernel vermagic-hash. Only same kernel version 4.14.152-1 but with this I still can not install it...

I guess I can not install the missing packages: kmod-scsi-core and kmod-mass-storage because when I rebuild the packages it come with diferent vermagic-hash like: 546546541654e546554 this not match with the first build of kernel vermagic-hash. Only same kernel version 4.14.152-1 but with this I still can not install it...
carlosgonz commented 1 month ago
Poster
There is no content yet.
carlosgonz commented 1 month ago
Poster

HI I am trying to fix this issues, but still not found a solution, I started build librecmc from source then I am learning how this work at all. so the main issues is related on linux-kenel-hash.

HI I am trying to fix this issues, but still not found a solution, I started build librecmc from source then I am learning how this work at all. so the main issues is related on linux-kenel-hash.
carlosgonz commented 1 month ago
Poster

make defconfig // will work but not worked in my case for some reason not knowing.

opkg --force-checksum install // kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk FIXED to install the modules BUT the system it not load the modules

kmodloader: 4 modules could not be probed [ 19.161407] kmodloader: - scsi_mod - 0 [ 19.165213] kmodloader: dependency not loaded scsi_mod [ 19.202078] kmodloader: - sd_mod - 1 [ 19.207906] kmodloader: dependency not loaded usb-storage [ 19.213384] kmodloader: dependency not loaded scsi_mod [ 19.236085] kmodloader: - uas - 2 [ 19.239477] kmodloader: dependency not loaded scsi_mod [ 19.244716] kmodloader: - usb-storage - 1

make defconfig // will work but not worked in my case for some reason not knowing. opkg --force-checksum install // kmod-scsi-core_4.14.152-1_mips_24kc.ipk kmod-usb-storage_4.14.152-1_mips_24kc.ipk FIXED to install the modules BUT the system it not load the modules kmodloader: 4 modules could not be probed [ 19.161407] kmodloader: - scsi_mod - 0 [ 19.165213] kmodloader: dependency not loaded scsi_mod [ 19.202078] kmodloader: - sd_mod - 1 [ 19.207906] kmodloader: dependency not loaded usb-storage [ 19.213384] kmodloader: dependency not loaded scsi_mod [ 19.236085] kmodloader: - uas - 2 [ 19.239477] kmodloader: dependency not loaded scsi_mod [ 19.244716] kmodloader: - usb-storage - 1
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.