Menu

Load module from HP USB-C to RJ45 Adapter G2 on initrd-pxe

2023-05-19
2023-05-24
  • Roberto León

    Roberto León - 2023-05-19

    I have Debian Server with DRBL, my problem with adapter is a device that need modules: xhci-hcd and r8152.

    I'm run this command:

    mknic-nbi -k 5.18.0-0.deb11.3-amd64 -m 'xhci-hcd xhci-pci r8152 nvme-core' -t initramfs -v
    

    But these modules are not in /tftpboot/nbi_img/initrd-pxe.5.18.0-0.deb11.3-amd64.img .

    ¿How I can include these modules on initrd for kernel boot on "HP FireFly G8" with "HP USB-C to RJ45 Adapter G2"

     
  • Steven Shiau

    Steven Shiau - 2023-05-21

    Please run drbl-bug-report and post the generated file.
    With that, it's easier for us to try to reproduce this issue.
    Thanks.

    Steven

     
    • Roberto León

      Roberto León - 2023-05-24

      The problem is fixed when unpack initrd, add modules and modify /etc/modules , pack and copy file. Example:

      cp /tftpboot/nbi_img/initrd-pxe.5.18.0-0.deb11.3-amd64.img /tmp/borrame
      cd /tmp/borrame
      file initrd-pxe.5.18.0-0.deb11.3-amd64.img
      mv initrd-pxe.5.18.0-0.deb11.3-amd64.img initrd-pxe.5.18.0-0.deb11.3-amd64.img.gz
      gunzip initrd-pxe.5.18.0-0.deb11.3-amd64.img.gz
      file initrd-pxe.5.18.0-0.deb11.3-amd64.img
      cpio -idv < ../initrd-pxe.5.18.0-0.deb11.3-amd64.img
      rm initrd-pxe.5.18.0-0.deb11.3-amd64.img
      

      Modify etc/modules :

      usbcore
      usb_common
      mii
      xhci_hcd
      xhci-pci
      r8152
      sd_mod
      crc64
      crc64_rocksoft
      crct10dif_generic
      crct10dif_common
      crc_t10dif
      crc32c_intel
      t10_pi
      sd_mod
      nvme-core
      

      Copy new modules and pack initrd:

      find . | cpio -H newc -o | gzip -9 > ../initrd.img-new
      cp /tmp/initrd.img-new /tftpboot/nbi_img/initrd-pxe.5.18.0-0.deb11.3-amd64.img
      
       
      👍
      1
  • Roberto León

    Roberto León - 2023-05-22

    Some info about the DRBL environment (PLEASE DO NOT EDIT THEM!):

    OS version: Debian 11.7
    Server arch: x86_64
    Server CPU: Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz
    Server memory size: 2029448 kB
    Server Kernel version: 5.18.0-0.deb11.3-amd64
    Installed DRBL-related packages: drbl-5.2.10-drbl1 clonezilla-5.4.6-drbl1 partclone-0.3.23-drbl-1 mkpxeinitrd-net-2.5.6-drbl1 ipxe-1.0.0+git-20190125.36a4c85-5.1 partimage-0.6.9-8 ntfsprogs-<none> gzip-1.10-4+deb11u1 bzip2-1.0.8-4 lzop-1.04-2 pigz-2.6-1 pbzip2-1.1.13-1 udpcast-20120424-2+b1 syslinux-3:6.04~git20190206.bf6db5b4+dfsg1-3+b1
    Client kernel version: 5.18.0-0.deb11.3-amd64
    Client kernel arch: x86_64
    NICs with private IP address in server: ens160 ens192
    Private IP address in server: 10.2.103.123 192.168.10.1
    Total client no: 14
    Client IP address: 192.168.10.10 192.168.10.11 192.168.10.12 192.168.10.13 192.168.10.14 192.168.10.15 192.168.10.16 192.168.10.17 192.168.10.18 192.168.10.19 192.168.10.20 192.168.10.21 192.168.10.22 192.168.10.23
    ===</none>

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.