Add support for booting from SATA and saving last booted entry

This commit is contained in:
The Thor Group 1970-01-01 00:00:00 +00:00
parent bb549a2abc
commit ded0ac6375
No known key found for this signature in database
GPG Key ID: DD003477088FDBA0
4 changed files with 48 additions and 6 deletions

View File

@ -64,19 +64,36 @@
"earlycon": "uart8250,io,0x3f8,115200n8"
},
"menu_entries": {
"RedPill DS3615xs v6.2.4-25556 (Verbose)": {
"RedPill DS3615xs v6.2.4-25556 (USB, Verbose)": {
"options": [
"savedefault",
"set root=(hd0,msdos1)",
"echo Loading Linux...",
"linux /zImage @@@CMDLINE@@@",
"echo Loading initramfs...",
"initrd /rd.gz",
"echo Starting kernel"
"echo Starting kernel with USB boot"
],
"cmdline": {
"earlyprintk": null,
"loglevel": 15
}
},
"RedPill DS3615xs v6.2.4-25556 (SATA, Verbose)": {
"options": [
"savedefault",
"set root=(hd0,msdos1)",
"echo Loading Linux...",
"linux /zImage @@@CMDLINE@@@",
"echo Loading initramfs...",
"initrd /rd.gz",
"echo Starting kernel with SATA boot"
],
"cmdline": {
"earlyprintk": null,
"loglevel": 15,
"synoboot_satadom": 1
}
}
}
},

View File

@ -64,19 +64,34 @@
"earlycon": "uart8250,io,0x3f8,115200n8"
},
"menu_entries": {
"RedPill DS3615xs v7.0-41222 Beta (Verbose)": {
"RedPill DS3615xs v7.0-41222 Beta (USB, Verbose)": {
"options": [
"set root=(hd0,msdos1)",
"echo Loading Linux...",
"linux /zImage @@@CMDLINE@@@",
"echo Loading initramfs...",
"initrd /rd.gz",
"echo Starting kernel"
"echo Starting kernel with USB boot"
],
"cmdline": {
"earlyprintk": null,
"loglevel": 15
}
},
"RedPill DS3615xs v7.0-41222 Beta (SATA, Verbose)": {
"options": [
"set root=(hd0,msdos1)",
"echo Loading Linux...",
"linux /zImage @@@CMDLINE@@@",
"echo Loading initramfs...",
"initrd /rd.gz",
"echo Starting kernel with SATA boot"
],
"cmdline": {
"earlyprintk": null,
"loglevel": 15,
"synoboot_satadom": 1
}
}
}
},

View File

@ -69,8 +69,9 @@
},
"menu_entries": {
"RedPill DS918+ v6.2.4-25556 (Verbose)": {
"RedPill DS918+ v6.2.4-25556 (USB, Verbose)": {
"options": [
"savedefault",
"set root=(hd0,msdos1)",
"echo Loading Linux...",
"linux /zImage @@@CMDLINE@@@",

View File

@ -1,8 +1,17 @@
# GRUB 2 config file
set default="0"
set timeout="5"
set timeout_style="menu"
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="${saved_entry}"
function savedefault {
saved_entry="${chosen}"
save_env saved_entry
}
if serial --port=0x3F8 --speed=115200;then
set has_serial=true
terminal_input --append serial