# # ### !!! WARNING - READ ME !!! ### # # DO NOT edit this file. This file has been generated automatically by the loader generator. # If you were asked to use a pre-made image and asked by someone to edit this file DO NOT do it. The only # supported method of obtaining the loader image is generating it using the loader generator provided. # terminal_output console if serial --unit=0 --speed=115200; then terminal_input --append serial_com0 terminal_output --append serial_com0 fi set default="0" set timeout="5" set timeout_style="menu" if [ -s $prefix/grubenv ]; then load_env --file $prefix/grubenv --skip-sig set has_env="1" if [ -n "${saved_entry}" ]; then set default="${saved_entry}" fi else set has_env="0" echo "WARN: failed to load env. Default choice will NOT be saved!" fi function savedefault { saved_entry="${chosen}" save_env --file $prefix/grubenv saved_entry } insmod usb_keyboard insmod part_msdos insmod ext2 insmod fat insmod linux insmod gzio set gfxmode=auto insmod vbe insmod vga # UEFI insmod efi_gop insmod efi_uga insmod font if loadfont ${prefix}/unicode.pf2 then insmod gfxterm set gfxmode=auto set gfxpayload=keep terminal_output gfxterm fi menuentry 'RedPill DS918+ v7.0.1-42218 (USB, Verbose)' { savedefault set root=(hd0,msdos1) echo Loading Linux... linux /zImage HddHotplug=0 withefi console=ttyS0,115200n8 netif_num=2 syno_hdd_detect=0 syno_port_thaw=1 vender_format_version=2 mac2=00123456 earlyprintk mac1=00123456 syno_hdd_powerup_seq=1 pid=0x88AA log_buf_len=32M syno_hw_version=DS918+ vid=0x88AA earlycon=uart8250,io,0x3f8,115200n8 sn=00123456 elevator=elevator root=/dev/md0 loglevel=15 echo Loading initramfs... initrd /rd.gz /custom.gz echo Starting kernel with USB boot } menuentry 'RedPill DS918+ v7.0.1-42218 (SATA, Verbose)' { savedefault set root=(hd0,msdos1) echo Loading Linux... linux /zImage HddHotplug=0 withefi console=ttyS0,115200n8 synoboot_satadom=2 netif_num=2 syno_hdd_detect=0 syno_port_thaw=1 vender_format_version=2 mac2=00123456 earlyprintk mac1=00123456 syno_hdd_powerup_seq=1 pid=0x0001 log_buf_len=32M syno_hw_version=DS918+ vid=0x46f4 earlycon=uart8250,io,0x3f8,115200n8 sn=00123456 elevator=elevator root=/dev/md0 loglevel=15 echo Loading initramfs... initrd /rd.gz /custom.gz echo Starting kernel with SATA boot echo WARNING: SATA boot support on this platform is experimental! }
谢谢你的檔, 我只修改了vid、pid、etif_num=1,已试了都是一样,不知道为什麽不能,網卡已改了i219lm,我主板有4個sata,我外置了一個4口SATA卡,但我沒有修改SataPortMap= SasIdxMap= DiskIdxMap=這3個參數. 我试了装PVE 不用物理机做法, 是可以的,但是要PVE直读硬盘有点麻烦,我不想这样,都是希望可以搅好物理机做法。