Kernel Yocto系统卡住,正在等待根设备PARTUUID

Kernel Yocto系统卡住,正在等待根设备PARTUUID,kernel,yocto,Kernel,Yocto,系统设置: 1. Generic x86-64 bit target hardware 2. Linux kernel 4.4.131 3. Yocto with core-image-base target build system 4. GRUB boot loader with booting-pcbios loader source code 5. WIC image generation to write image on storage media WKS文件生成WIC图像 # s

系统设置:

1. Generic x86-64 bit target hardware
2. Linux kernel 4.4.131
3. Yocto with core-image-base target build system
4. GRUB boot loader with booting-pcbios loader source code
5. WIC image generation to write image on storage media
WKS文件生成WIC图像

# short-description: Create an direct disk image for genericx86*
part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024
part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
#part /home --ondisk sda --fstype=ext4 --label data --align 1024 --size 3072M
#part swap --ondisk sda --size 44 --label swap1 --fstype=swap

#bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4 console=ttyS0,115200 console=tty0"
# Direct disk image without GPT
bootloader --timeout=5 --append="rootwait rootfstype=ext4 video=vesafb vga=0x318 console=ttyS0,115200n8 console=tty0"
# Direct disk image with GPT
#bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4 video=vesafb vga=0x318 console=ttyS0,115200n8 console=tty0"
通过这些设置,我能够创建WIC图像。一旦我在USB驱动器上使用DD命令写入相同的命令,我就能够从USB设备正确引导。现在,当我通过DD命令将WIC映像写入SSD驱动器时,问题出现了,此时系统停留在等待根设备PARTUUID=

我试过以下方法来正确启动

1. Provide root partition - DISK_SIGNATURE
2. Direct disk image vs live image - bootimg-pcbios inlace of bootimg-efi - Seems one step towards actual setup
3. Systemd vs old initrd
4. Use bs=1M when doing dd
5. Remove GPT option from bootloader in WKS file
6. --uuid ${DISK_SIGNATURE_UUID} - Didn’t work out, seems to be not properly configure
7. Grub-efi to systemd-efi boot loader change
8. Try with ISO image
9. Remove —-use-uuid option from rootfs - To use rootfs from /dev/sda2
10. Change kernel configuration with AUTOFS, and systemd init service manager
11. Use bs=32K and bs=8K
12. Format SSD and Use bs=512
13. Change on-disk to sdb - Will not be affect, as kernel is also part of SDA which is booting
以上所有的实验我都没有做过任何有效的实验

您可能还需要查看许多其他更改,因此请告诉我您需要的具体项目,我将与您分享更多详细信息


非常感谢您的帮助。

经过一夜的调试,我发现SATA设备驱动程序作为模块保留在内核配置中。我已经从模块改为静态,它开始工作了。
在可引导USB创建过程中,我已经遇到了类似的问题。因此,在进行任何随机尝试之前,请始终检查内核配置,以获得圆满的结局。:)

经过一夜的调试,我发现SATA设备驱动程序作为模块保留在内核配置中。我已经从模块改为静态,它开始工作了。 在可引导USB创建过程中,我已经遇到了类似的问题。因此,在进行任何随机尝试之前,请始终检查内核配置,以获得圆满的结局。:)