Skip to content

Commit

Permalink
Added experimental DS923+ model, added new extensions handler functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pocopico committed Nov 22, 2022
1 parent 4fdf47e commit 857973e
Show file tree
Hide file tree
Showing 618 changed files with 1,660 additions and 10 deletions.
32 changes: 32 additions & 0 deletions custom_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,38 @@
"redpill-misc": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/rpext-index.json"
}
]
},
{
"id": "ds923p-7.1.1-42962",
"platform_version": "ds923p-7.1.1-42962",
"user_config_json": "ds923p_user_config-test.json",
"docker_base_image": "debian:8-slim",
"redpill_lkm_make_target": "dev-v7",
"compile_with": "toolkit_dev",
"downloads": {
"kernel": {
"url": "https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/denverton-source/linux-4.4.x.txz/download",
"sha256": "d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1be"
},
"toolkit_dev": {
"url": "https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.denverton-7.0.dev.txz/download",
"sha256": "6dc6818bad28daff4b3b8d27b5e12d0565b65ee60ac17e55c36d913462079f57"
}
},
"redpill_lkm": {
"source_url": "https://github.com/pocopico/redpill-lkm.git",
"branch": "master"
},
"redpill_load": {
"source_url": "https://github.com/pocopico/redpill-load.git",
"branch": "develop"
},
"add_extensions": [
{
"redpill-misc": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/rpext-index.json",
"dtbpatch": "https://github.com/pocopico/rp-ext/raw/main/dtbpatch/rpext-index.json"
}
]
}
]
}
Binary file added partfiles/p1/EFI/BOOT/BOOTX64.EFI
Binary file not shown.
19 changes: 19 additions & 0 deletions partfiles/p1/EFI/BOOT/SynoBootLoader.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
serial --unit=1 --speed=115200
terminal serial
default 1
timeout 3
verbose
hiddenmenu
fallback 0

title SYNOLOGY_1
root (hd0,0)
kernel /zImage root=/dev/md0
initrd /rd.gz

title SYNOLOGY_2
root (hd0,1)
cksum /grub_cksum.syno
vender /vender show
kernel /zImage root=/dev/md0
initrd /rd.gz
Empty file.
5 changes: 5 additions & 0 deletions partfiles/p1/GRUB_VER
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MODEL="DS923+"
PLATFORM="R1000"
GRUB_PROJECT="grub-2.x"
GRUB_VERSION="1"
DSM_VERSION="42962"
100 changes: 100 additions & 0 deletions partfiles/p1/boot/grub/grub.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
#
# ### !!! 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="3"
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="3"
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 DS923+ 7.1.1-42962 (USB, Verbose)' {
savedefault
search --set=root --fs-uuid 6234-C863 --hint hd0,msdos3
echo Loading Linux...
linux /zImage-dsm earlyprintk syno_hw_version=DS923+ console=ttyS0,115200n8 netif_num=1 synoboot2 pid=0xa4a5 earlycon=uart8250,io,0x3f8,115200n8 mac1=00113240AA40 sn=2030SBRJZMK5B SMBusHddDynamicPower=1 vid=0x0525 elevator=elevator loglevel=15 DiskIdxMap=0A00 vender_format_version=2 log_buf_len=32M root=/dev/md0 SataPortMap=58 syno_ttyS1=serial,0x2f8 syno_ttyS0=serial,0x3f8
echo Loading initramfs...
initrd /initrd-dsm /custom.gz
echo Starting kernel with USB boot
}

menuentry 'RedPill DS923+ 7.1.1-42962 (SATA, Verbose)' {
savedefault
search --set=root --fs-uuid 6234-C863 --hint hd0,msdos3
echo Loading Linux...
linux /zImage-dsm earlyprintk syno_hw_version=DS923+ console=ttyS0,115200n8 netif_num=1 synoboot2 pid=0xa4a5 earlycon=uart8250,io,0x3f8,115200n8 synoboot_satadom=2 mac1=00113240AA40 sn=2030SBRJZMK5B SMBusHddDynamicPower=1 vid=0x0525 elevator=elevator loglevel=15 DiskIdxMap=0A00 vender_format_version=2 log_buf_len=32M root=/dev/md0 SataPortMap=58 syno_ttyS1=serial,0x2f8 syno_ttyS0=serial,0x3f8
echo Loading initramfs...
initrd /initrd-dsm /custom.gz
echo Starting kernel with SATA boot
echo WARNING: SATA boot support on this platform is experimental!
}


menuentry 'Tiny Core Image Build' {
savedefault
search --set=root --fs-uuid 6234-C863 --hint hd0,msdos3
echo Loading Linux...
linux /vmlinuz64 loglevel=3 cde waitusb=5 vga=791
echo Loading initramfs...
initrd /corepure64.gz
echo Booting TinyCore for loader creation
}
menuentry 'Tiny Core Friend' {
savedefault
search --set=root --fs-uuid 6234-C863 --hint hd0,msdos3
echo Loading Linux...
linux /bzImage-friend loglevel=3 waitusb=5 vga=791 net.ifnames=0 biosdevname=0
echo Loading initramfs...
initrd /initrd-friend
echo Booting TinyCore Friend
}
4 changes: 4 additions & 0 deletions partfiles/p1/boot/grub/grubenv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# GRUB Environment Block
# WARNING: Do not edit this file by tools other than grub-editenv!!!
saved_entry=Tiny Core Image Build
################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
Binary file added partfiles/p1/boot/grub/i386-pc/acpi.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/adler32.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/affs.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/afs.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/afsplitter.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/ahci.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/all_video.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/aout.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/archelp.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/at_keyboard.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/ata.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/backtrace.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/bfs.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/biosdisk.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/bitmap.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/bitmap_scale.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/blocklist.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/boot.img
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/boot.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/bsd.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/bswap_test.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/btrfs.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/bufio.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cat.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cbfs.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cbls.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cbmemc.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cbtable.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cbtime.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/chain.mod
Binary file not shown.
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cmosdump.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cmostest.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cmp.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cmp_test.mod
Binary file not shown.
202 changes: 202 additions & 0 deletions partfiles/p1/boot/grub/i386-pc/command.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
*acpi: acpi
*all_functional_test: functional_test
*background_image: gfxterm_background
*cat: cat
*cpuid: cpuid
*crc: hashsum
*cryptomount: cryptodisk
*drivemap: drivemap
*echo: echo
*extract_syslinux_entries_configfile: syslinuxcfg
*extract_syslinux_entries_source: syslinuxcfg
*file: file
*functional_test: functional_test
*gettext: gettext
*halt: halt
*hashsum: hashsum
*hdparm: hdparm
*hello: hello
*help: help
*hexdump: hexdump
*inb: iorw
*inl: iorw
*inw: iorw
*keystatus: keystatus
*kfreebsd: bsd
*knetbsd: bsd
*kopenbsd: bsd
*list_env: loadenv
*load_env: loadenv
*loopback: loopback
*ls: ls
*lsacpi: lsacpi
*lspci: lspci
*md5sum: hashsum
*menuentry: normal
*pcidump: pcidump
*plan9: plan9
*probe: probe
*rdmsr: rdmsr
*read_byte: memrw
*read_dword: memrw
*read_word: memrw
*regexp: regexp
*save_env: loadenv
*search: search
*sendkey: sendkey
*serial: serial
*setpci: setpci
*sha1sum: hashsum
*sha256sum: hashsum
*sha512sum: hashsum
*sleep: sleep
*smbios: smbios
*submenu: normal
*syslinux_configfile: syslinuxcfg
*syslinux_source: syslinuxcfg
*terminfo: terminfo
*test_blockarg: test_blockarg
*testspeed: testspeed
*tr: tr
*trust: pgp
*verify_detached: pgp
*xnu_splash: xnu
*zfskey: zfscrypt
.: configfile
[: test
authenticate: normal
background_color: gfxterm_background
backtrace: backtrace
badram: mmap
blocklist: blocklist
boot: boot
break: normal
cat: minicmd
cbmemc: cbmemc
chainloader: chain
clear: normal
cmosclean: cmostest
cmosdump: cmosdump
cmosset: cmostest
cmostest: cmostest
cmp: cmp
configfile: configfile
continue: normal
coreboot_boottime: cbtime
cutmem: mmap
date: date
distrust: pgp
dump: minicmd
efiemu_loadcore: efiemu
efiemu_prepare: efiemu
efiemu_unload: efiemu
eval: eval
exit: minicmd
export: normal
extract_entries_configfile: configfile
extract_entries_source: configfile
extract_legacy_entries_configfile: legacycfg
extract_legacy_entries_source: legacycfg
false: true
freedos: freedos
gdbstub: gdb
gdbstub_break: gdb
gdbstub_stop: gdb
gptsync: gptsync
help: minicmd
hexdump_random: random
initrd16: linux16
initrd: linux
keymap: keylayouts
kfreebsd_loadenv: bsd
kfreebsd_module: bsd
kfreebsd_module_elf: bsd
knetbsd_module: bsd
knetbsd_module_elf: bsd
kopenbsd_ramdisk: bsd
legacy_check_password: legacycfg
legacy_configfile: legacycfg
legacy_initrd: legacycfg
legacy_initrd_nounzip: legacycfg
legacy_kernel: legacycfg
legacy_password: legacycfg
legacy_source: legacycfg
linux16: linux16
linux: linux
list_trusted: pgp
loadfont: font
lsapm: lsapm
lscoreboot: cbls
lsfonts: font
lsmmap: lsmmap
lsmod: minicmd
macppcbless: macbless
mactelbless: macbless
module2: multiboot2
module: multiboot
multiboot2: multiboot2
multiboot: multiboot
nativedisk: nativedisk
net_add_addr: net
net_add_dns: net
net_add_route: net
net_bootp: net
net_del_addr: net
net_del_dns: net
net_del_route: net
net_dhcp: net
net_get_dhcp_option: net
net_ipv6_autoconf: net
net_ls_addr: net
net_ls_cards: net
net_ls_dns: net
net_ls_routes: net
net_nslookup: net
normal: normal
normal_exit: normal
ntldr: ntldr
outb: iorw
outl: iorw
outw: iorw
parttool: parttool
password: password
password_pbkdf2: password_pbkdf2
play: play
pxechainloader: pxechain
read: read
reboot: reboot
return: normal
rmmod: minicmd
search.file: search_fs_file
search.fs_label: search_label
search.fs_uuid: search_fs_uuid
setparams: normal
shift: normal
source: configfile
terminal_input: terminal
terminal_output: terminal
test: test
testload: testload
time: time
true: true
truecrypt: truecrypt
usb: usbtest
vbeinfo: videoinfo
vbetest: videotest
videoinfo: videoinfo
videotest: videotest
write_byte: memrw
write_dword: memrw
write_word: memrw
wrmsr: wrmsr
xnu_devprop_load: xnu
xnu_kernel64: xnu
xnu_kernel: xnu
xnu_kext: xnu
xnu_kextdir: xnu
xnu_mkext: xnu
xnu_ramdisk: xnu
xnu_resume: xnu
xnu_uuid: xnu_uuid
zfs-bootfs: zfsinfo
zfsinfo: zfsinfo
Binary file added partfiles/p1/boot/grub/i386-pc/configfile.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/core.img
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cpio.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cpio_be.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/cpuid.mod
Binary file not shown.
Binary file added partfiles/p1/boot/grub/i386-pc/crc64.mod
Binary file not shown.
Loading

0 comments on commit 857973e

Please sign in to comment.