系统设置:
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 mediaWKS文件生成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命令向SSD驱动器写入WIC映像时,就会出现问题,系统在上等待根设备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所有以上的实验,我已经做了什么也不起作用。
还有许多其他的变化,你可能需要审查,所以让我知道具体的项目,你想要的,我将分享进一步的细节。
任何帮助都是非常感谢的。
发布于 2018-07-11 16:48:20
经过一夜调试,我发现SATA设备驱动程序在内核配置中被保留为模块。我已经从模块变成静态的,它开始工作了。类似的问题,我已经面临在可引导USB创建.因此,在任何随机尝试之前,总是检查内核配置。:)
https://stackoverflow.com/questions/51274359
复制相似问题