• euler ironic镜像驱动问题(二)


    制作了一个NeoKylin-Server-7.0-aarch64-Release-Build06.euler.的ironic 镜像但是跑不起来

     

    insmod 、lsmod命令都用不了,用losetup 和kpartx 将qcow2镜像mount后,chroot进去lsinitrd试了下

    [root@localhost#  lsinitrd  initramfs-4.19.36-vhulk1907.1.0.h002.ns7.03.aarch64.img | grep ".ko" | awk -F / '{print $NF}' | tr "
    " " "
    ahci.ko ata_generic.ko ata_piix.ko libahci.ko libata.ko loop.ko virtio_blk.ko cdrom.ko virtio_console.ko bochs-drm.ko dm-mod.ko e1000.ko 8139cp.ko mii.ko net_failover.ko virtio_net.ko iscsi_boot_sysfs.ko libiscsi.ko scsi_transport_iscsi.ko sd_mod.ko sr_mod.ko virtio_scsi.ko xhci-plat-hcd.ko virtio.ko virtio_mmio.ko virtio_pci.ko virtio_ring.ko ext4.ko fat.ko vfat.ko jbd2.ko mbcache.ko failover.ko [root@localhost NeoKylin2]# 
    [root@localhost ]# 
    
    
     
    # 将如上命令获得的ko列表拷贝到 /etc/dracut.conf 中
    add_drivers+=""
    
    rm -rf boot/initramfs-4.19.36-vhulk1907.1.0.h002.ns7.03.aarch64kdump.img
    dracut --force
    但是使用lsinitrd命令无法检查到。可使用如下方法确定这些驱动是否以build-in形式存在内核中,例如:
    
    # cat /boot/config-`uname -r` | grep CONFIG_VIRTIO | grep y

    找了一台通过iso安装os,能正常启动的物理服务器

    [root@beih boot]# ls
    config-4.19.90-2003.4.0.0036.oe1.aarch64         initramfs-4.19.90-2003.4.0.0036.oe1.aarch64kdump.img
    dtb-4.19.90-2003.4.0.0036.oe1.aarch64            loader
    efi                                              symvers-4.19.90-2003.4.0.0036.oe1.aarch64.gz
    grub2                                            System.map-4.19.90-2003.4.0.0036.oe1.aarch64
    initramfs-4.19.90-2003.4.0.0036.oe1.aarch64.img  vmlinuz-4.19.90-2003.4.0.0036.oe1.aarch64
    [root@beih boot]#  lsinitrd -k 4.19.90-2003.4.0.0036.oe1.aarch64 | grep ".ko" | awk -F / '{print $NF}' | tr "
    " " "
    sha256-arm64.ko xor-neon.ko ansi_cprng.ko anubis.ko arc4.ko async_memcpy.ko async_pq.ko async_raid6_recov.ko async_tx.ko async_xor.ko raid6test.ko authencesn.ko authenc.ko blowfish_common.ko blowfish_generic.ko camellia_generic.ko cast5_generic.ko cast6_generic.ko cast_common.ko ccm.ko chacha20_generic.ko chacha20poly1305.ko cmac.ko crc32_generic.ko cryptd.ko crypto_engine.ko crypto_simd.ko crypto_user.ko cts.ko des_generic.ko echainiv.ko fcrypt.ko khazad.ko lrw.ko lz4hc.ko lz4.ko md4.ko michael_mic.ko pcbc.ko pcrypt.ko poly1305_generic.ko rmd128.ko rmd160.ko rmd256.ko rmd320.ko salsa20_generic.ko seed.ko serpent_generic.ko sha3_generic.ko sha512_generic.ko sm4_generic.ko tcrypt.ko tea.ko tgr192.ko twofish_common.ko twofish_generic.ko vmac.ko wp512.ko xcbc.ko xor.ko xts.ko ahci.ko ahci_platform.ko ahci_seattle.ko ahci_xgene.ko ata_generic.ko ata_piix.ko libahci.ko libahci_platform.ko libata.ko brd.ko loop.ko nbd.ko null_blk.ko pktcdvd.ko rbd.ko virtio_blk.ko zram.ko cdrom.ko virtio-rng.ko virtio_console.ko clk-scpi.ko cptpf.ko cptvf.ko thunderx_zip.ko ccp-crypto.ko ccp.ko chcr.ko virtio_crypto.ko dw_dmac_core.ko dw_dmac.ko dw_dmac_pci.ko hdma.ko hdma_mgmt.ko extcon-gpio.ko arm_scpi.ko gpio-amdpt.ko gpio-xgene-sb.ko gpio-xlp.ko virtio-gpu.ko hid-appleir.ko hid-aureal.ko hid-axff.ko hid-betopff.ko hid-corsair.ko hid-dr.ko hid-elecom.ko hid-elo.ko hid-gaff.ko hid-gembird.ko hid-gfrm.ko hid-gt683r.ko hid-gyration.ko hid-holtekff.ko hid-holtek-kbd.ko hid-holtek-mouse.ko hid-icade.ko hid-keytouch.ko hid-kye.ko hid-lcpower.ko hid-led.ko hid-lenovo.ko hid-logitech-dj.ko hid-logitech-hidpp.ko hid-multitouch.ko hid-ortek.ko hid-penmount.ko hid-petalynx.ko hid-picolcd.ko hid-plantronics.ko hid-pl.ko hid-primax.ko hid-rmi.ko hid-roccat-arvo.ko hid-roccat-common.ko hid-roccat-isku.ko hid-roccat.ko hid-roccat-kone.ko hid-roccat-koneplus.ko hid-roccat-konepure.ko hid-roccat-kovaplus.ko hid-roccat-lua.ko hid-roccat-pyra.ko hid-roccat-ryos.ko hid-roccat-savu.ko hid-saitek.ko hid-samsung.ko hid-sensor-hub.ko hid-sjoy.ko hid-sony.ko hid-speedlink.ko hid-steelseries.ko hid-sunplus.ko hid-tivo.ko hid-tmff.ko hid-topseed.ko hid-twinhan.ko hid-uclogic.ko hid-waltop.ko hid-wiimote.ko hid-xinmo.ko hid-zpff.ko hid-zydacron.ko i2c-hid.ko uhid.ko wacom.ko i2c-algo-pca.ko i2c-designware-core.ko i2c-designware-platform.ko i2c-diolan-u2c.ko i2c-gpio.ko i2c-nforce2.ko i2c-parport-light.ko i2c-pca-platform.ko i2c-qup.ko i2c-simtec.ko i2c-thunderx.ko i2c-tiny-usb.ko i2c-versatile.ko i2c-xgene-slimpro.ko i2c-xlp9xx.ko ib_cm.ko ib_core.ko iw_cm.ko rdma_cm.ko ib_srp.ko ff-memless.ko rmi_core.ko altera_ps2.ko arc_ps2.ko serio_raw.ko bcache.ko dm-bio-prison.ko dm-bufio.ko dm-cache.ko dm-cache-smq.ko dm-crypt.ko dm-delay.ko dm-era.ko dm-flakey.ko dm-integrity.ko dm-log.ko dm-log-userspace.ko dm-log-writes.ko dm-mirror.ko dm-mod.ko dm-multipath.ko dm-queue-length.ko dm-raid.ko dm-region-hash.ko dm-round-robin.ko dm-service-time.ko dm-snapshot.ko dm-switch.ko dm-thin-pool.ko dm-verity.ko dm-zero.ko faulty.ko linear.ko multipath.ko dm-persistent-data.ko raid0.ko raid10.ko raid1.ko raid456.ko memstick.ko mspro_block.ko mfd-core.ko cb710.ko tifm_core.ko mmc_block.ko mmc_core.ko pwrseq_emmc.ko pwrseq_simple.ko sdio_uart.ko armmmci.ko cb710-mmc.ko cqhci.ko dw_mmc-bluefield.ko dw_mmc.ko dw_mmc-pltfm.ko mmc_spi.ko mtk-sd.ko of_mmc_spi.ko sdhci-acpi.ko sdhci-cadence.ko sdhci.ko sdhci-pci.ko sdhci-pltfm.ko sdhci-xenon-driver.ko tifm_sd.ko toshsd.ko ushc.ko via-sdmmc.ko vub300.ko mtd_blkdevs.ko mtdblock.ko mtd.ko cnic.ko cxgb4.ko qed.ko libnvdimm.ko nd_blk.ko nd_btt.ko nd_pmem.ko nvme-core.ko nvme-fabrics.ko nvme-fc.ko nvme.ko nvme-rdma.ko nvme-loop.ko nvmet-fc.ko nvmet.ko phy-hi6220-usb.ko smb347-charger.ko rtc-ab-b5ze-s3.ko rtc-abx80x.ko rtc-bq32k.ko rtc-bq4802.ko rtc-ds1286.ko rtc-ds1305.ko rtc-ds1307.ko rtc-ds1343.ko rtc-ds1347.ko rtc-ds1374.ko rtc-ds1390.ko rtc-ds1511.ko rtc-ds1553.ko rtc-ds1672.ko rtc-ds1685.ko rtc-ds1742.ko rtc-ds2404.ko rtc-ds3232.ko rtc-em3027.ko rtc-fm3130.ko rtc-isl12022.ko rtc-isl1208.ko rtc-m41t80.ko rtc-m41t93.ko rtc-m41t94.ko rtc-m48t35.ko rtc-m48t59.ko rtc-max6900.ko rtc-max6902.ko rtc-mcp795.ko rtc-msm6242.ko rtc-pcf2123.ko rtc-pcf2127.ko rtc-pcf85063.ko rtc-pcf8523.ko rtc-pcf8563.ko rtc-pcf8583.ko rtc-r9701.ko rtc-rp5c01.ko rtc-rs5c348.ko rtc-rs5c372.ko rtc-rv3029c2.ko rtc-rv8803.ko rtc-rx4581.ko rtc-rx8010.ko rtc-rx8025.ko rtc-rx8581.ko rtc-stk17ta8.ko rtc-v3020.ko rtc-x1205.ko aacraid.ko bnx2fc.ko csiostor.ko fcoe.ko libfcoe.ko hisi_sas_main.ko hisi_sas_v1_hw.ko hisi_sas_v2_hw.ko hisi_sas_v3_hw.ko hpsa.ko ipr.ko iscsi_boot_sysfs.ko libfc.ko libiscsi.ko libsas.ko lpfc.ko megaraid_sas.ko mpt3sas.ko qedf.ko qla2xxx.ko qla4xxx.ko raid_class.ko scsi_debug.ko scsi_transport_fc.ko scsi_transport_iscsi.ko scsi_transport_sas.ko scsi_transport_srp.ko sd_mod.ko smartpqi.ko sr_mod.ko virtio_scsi.ko lbc.ko his_sysctl.ko tcm_loop.ko target_core_mod.ko uio.ko hwa-hc.ko xhci-plat-hcd.ko microtek.ko adutux.ko appledisplay.ko chaoskey.ko emi26.ko emi62.ko ezusb.ko ftdi-elan.ko idmouse.ko iowarrior.ko isight_firmware.ko ldusb.ko legousbtower.ko sisusbvga.ko usb3503.ko usblcd.ko usbsevseg.ko uas.ko ums-alauda.ko ums-cypress.ko ums-datafab.ko ums-eneub6250.ko ums-freecom.ko ums-isd200.ko ums-jumpshot.ko ums-karma.ko ums-onetouch.ko ums-realtek.ko ums-sddr09.ko ums-sddr55.ko ums-usbat.ko usb-storage.ko wusbcore.ko wusb-wa.ko uwb.ko lcd.ko virtio.ko virtio_mmio.ko virtio_pci.ko virtio_ring.ko binfmt_misc.ko cachefiles.ko ceph.ko cifs.ko cramfs.ko ext4.ko fat.ko msdos.ko vfat.ko fscache.ko cuse.ko fuse.ko isofs.ko jbd2.ko mbcache.ko grace.ko nfs_acl.ko mac-celtic.ko mac-centeuro.ko mac-croatian.ko mac-cyrillic.ko mac-gaelic.ko mac-greek.ko mac-iceland.ko mac-inuit.ko mac-romanian.ko mac-roman.ko mac-turkish.ko nls_cp1250.ko nls_cp1251.ko nls_cp1255.ko nls_cp737.ko nls_cp775.ko nls_cp850.ko nls_cp852.ko nls_cp855.ko nls_cp857.ko nls_cp860.ko nls_cp861.ko nls_cp862.ko nls_cp863.ko nls_cp864.ko nls_cp865.ko nls_cp866.ko nls_cp869.ko nls_cp874.ko nls_cp932.ko nls_cp936.ko nls_cp949.ko nls_cp950.ko nls_euc-jp.ko nls_iso8859-13.ko nls_iso8859-14.ko nls_iso8859-15.ko nls_iso8859-1.ko nls_iso8859-2.ko nls_iso8859-3.ko nls_iso8859-4.ko nls_iso8859-5.ko nls_iso8859-6.ko nls_iso8859-7.ko nls_iso8859-9.ko nls_koi8-r.ko nls_koi8-ru.ko nls_koi8-u.ko nls_utf8.ko overlay.ko ramoops.ko squashfs.ko udf.ko xfs.ko crc64.ko crc7.ko crc8.ko crc-itu-t.ko libcrc32c.ko lz4_compress.ko lz4hc_compress.ko raid6_pq.ko reed_solomon.ko libceph.ko dns_resolver.ko sunrpc.ko

    后来,华为工程师指导说要ahci megaraid_sas mpt3sas scsi_transport_sas hisi_sas_main hisi_sas_v3_hw libsas这几个模块,添加RAID卡驱动

    1.        在/etc/dracut.conf添加:
    add_drivers+="ahci megaraid_sas mpt3sas scsi_transport_sas hisi_sas_main hisi_sas_v3_hw libsas"
     
    2.       执行dracut  -f               // dracut --force
    3、 lsinitrd /boot/initramfs-`uname -r`.img | grep sas 查看是否已有这些驱动

     最终系统可以跑起来了

    dracut-install
    lib/modules/5.0.0-23-generic/ 
    dracut-install: Failed to find module 'libsascrc32c'
    dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.iNIN9O/initramfs --kerneldir /lib/modules/5.0.0-23-generic/ -m ahci megaraid_sas mpt3sas scsi_transport_sas hisi_sas_main hisi_sas_v3_hw libsascrc32c
  • 相关阅读:
    Spring AOP 注解开发
    AOP的专业术语
    Java自定义注解的实现和应用
    Spring 声明式事务管理
    另一种线程安全机制:在事务管理中起到巨大作用的 ThreadLocal
    MySQL的二级索引
    数据库的范式化和反范式化
    MySQL为表字段添加索引
    mysql索引(二)----如何高效使用索引
    Alexnet网络
  • 原文地址:https://www.cnblogs.com/dream397/p/12666966.html
Copyright © 2020-2023  润新知