diff --git a/.github/workflows/buildroot.yml b/.github/workflows/buildroot.yml new file mode 100644 index 000000000..2a0425c94 --- /dev/null +++ b/.github/workflows/buildroot.yml @@ -0,0 +1,48 @@ +name: buildroot + +on: + workflow_dispatch: + inputs: + git-address: + description: 'git-address' + required: true + default: 'https://github.com/buildroot/buildroot.git' + branches-tags: + description: 'branches-tags' + required: true + default: '2022.02' + board: + description: 'board' + required: true + default: 'syno' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Clone source code + run: | + git clone ${{github.event.inputs.git-address}} /opt/buildroot + cd /opt/buildroot + - name: Install packages + run: | + sudo apt-get update + sudo apt-get install -y libelf-dev + - name: Bulid + run: | + mkdir /opt/firmware + cd /opt/buildroot + git checkout ${{github.event.inputs.branches-tags}} + git pull origin ${{github.event.inputs.branches-tags}} + cp -rf /home/runner/work/redpill-load/redpill-load/buildroot/* . + chmod 777 board/syno/rootfs-overlay/root/*.sh + echo '---start make---' + make ${{github.event.inputs.board}}_defconfig + make + cp -r /opt/buildroot/output/images /opt/firmware + - name: Upload buildroot-${{github.event.inputs.branches-tags}}-${{github.event.inputs.board}} + uses: actions/upload-artifact@v3 + with: + name: buildroot-${{github.event.inputs.branches-tags}}-${{github.event.inputs.board}} + path: /opt/firmware diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml new file mode 100644 index 000000000..f30fbbba1 --- /dev/null +++ b/.github/workflows/make.yml @@ -0,0 +1,118 @@ +name: Make kernel bs patch + +on: + workflow_dispatch: + inputs: + pat-address: + description: 'Pat file URL' + required: true + default: 'https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS918%2B_42218.pat' + toolchain: + description: 'DSM toolchain URL for repack zImage' + required: true + default: 'https://sourceforge.net/projects/dsgpl/files/Tool%20Chain/DSM%207.0.0%20Tool%20Chains/Intel%20x86%20Linux%204.4.180%20%28Apollolake%29/apollolake-gcc750_glibc226_x86_64-GPL.txz' + linux-src: + description: 'Linux kernel source URL for repack zImage' + required: true + default: 'https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.180.tar.xz' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Bulid + id: bulid-bsp + run: | + patfile=$(basename ${{github.event.inputs.pat-address}} | while read; do echo -e ${REPLY//%/\\x}; done) + echo "::set-output name=patfile::$patfile" + # install bsdiff + sudo apt-get install -y bsdiff + + #ls -al $GITHUB_WORKSPACE/ + mkdir /opt/build + mkdir /opt/dist + cd /opt/build + curl -L ${{github.event.inputs.pat-address}} -o ds.pat + curl -L ${{github.event.inputs.toolchain}} -o toolchain.txz + curl -L ${{github.event.inputs.linux-src}} -o linux.tar.xz + mkdir pat + tar xf ds.pat -C pat + # is update_pack + if [ ! -f "pat/zImage" ]; then + cd pat + ar x $(ls flashupdate*) + tar xf data.tar.xz + cd .. + fi + mkdir toolchain + tar xf toolchain.txz -C toolchain + mkdir linux-src + tar xf linux.tar.xz --strip-components 1 -C linux-src + + # extract vmlinux + ./linux-src/scripts/extract-vmlinux pat/zImage > vmlinux + # sha256 + sha256sum ds.pat >> checksum.sha256 + sha256sum pat/zImage >> checksum.sha256 + sha256sum pat/rd.gz >> checksum.sha256 + sha256sum vmlinux >> checksum.sha256 + # patch vmlinux + # vmlinux_mod.bin + curl -L https://github.com/jumkey/dsm-research/raw/master/tools/common.php -o common.php + curl -L https://github.com/jumkey/dsm-research/raw/master/tools/patch-ramdisk-check.php -o patch-ramdisk-check.php + curl -L https://github.com/jumkey/dsm-research/raw/master/tools/patch-boot_params-check.php -o patch-boot_params-check.php + php patch-boot_params-check.php vmlinux vmlinux-mod + php patch-ramdisk-check.php vmlinux-mod vmlinux_mod.bin + + git clone https://github.com/kiler129/recreate-zImage.git + chmod +x recreate-zImage/rebuild_kernel.sh + cd linux-src + # ---------- make zImage_mod + # Make file more anonymous + export KBUILD_BUILD_TIMESTAMP="1970/1/1 00:00:00" + export KBUILD_BUILD_USER="root" + export KBUILD_BUILD_HOST="localhost" + export KBUILD_BUILD_VERSION=0 + + export ARCH=x86_64 + export CROSS_COMPILE=/opt/build/toolchain/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- + #make olddefconfig + make defconfig + # change to lzma + sed -i 's/CONFIG_KERNEL_GZIP=y/# CONFIG_KERNEL_GZIP is not set/' .config + sed -i 's/# CONFIG_KERNEL_LZMA is not set/CONFIG_KERNEL_LZMA=y/' .config + << see_below + make clean + sed -i 's/bzImage: vmlinux/bzImage: /' arch/x86/Makefile + make vmlinux -j4 || true # make some *.o inspire by UnknowO + cp ../vmlinux_mod.bin vmlinux # vmlinux_mod.bin is already stripped of debugging and comments, strippe again should be ok + make bzImage + sed -i 's/bzImage: /bzImage: vmlinux/' arch/x86/Makefile + cp arch/x86/boot/bzImage ../zImage_mod + make clean + see_below + # for DS3615xs + #sed -i 's/ -std=gnu89$/ -std=gnu89 $(call cc-option,-fno-PIE)/' Makefile + sed -i 's/ ld -/ ${CROSS_COMPILE}ld -/' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/(ld -/(${CROSS_COMPILE}ld -/' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ gcc / ${CROSS_COMPILE}gcc /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ nm / ${CROSS_COMPILE}nm /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ objcopy / ${CROSS_COMPILE}objcopy /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/(objdump /(${CROSS_COMPILE}objdump /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ readelf / ${CROSS_COMPILE}readelf /' ../recreate-zImage/rebuild_kernel.sh + ../recreate-zImage/rebuild_kernel.sh $PWD/../linux-src ../vmlinux_mod.bin ../zImage_mod + # ---------- + cd .. + bsdiff pat/zImage zImage_mod diff.bsp + + echo '---copy file---' + cp vmlinux /opt/dist + cp vmlinux_mod.bin /opt/dist + cp diff.bsp /opt/dist + cp checksum.sha256 /opt/dist + echo '---END---' + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: kernel bs patch for ${{ steps.bulid-bsp.outputs.patfile }} + path: /opt/dist diff --git a/.github/workflows/make2.yml b/.github/workflows/make2.yml new file mode 100644 index 000000000..7248c8129 --- /dev/null +++ b/.github/workflows/make2.yml @@ -0,0 +1,139 @@ +name: Make kernel bs patch 71 + +on: + workflow_dispatch: + inputs: + pat-address: + description: 'Pat file URL' + required: true + default: 'https://cndl.synology.cn/download/DSM/release/7.0.1/42218/DSM_DS3622xs+_42218.pat' + toolchain: + description: 'DSM toolchain URL for repack zImage' + required: true + default: 'https://downloads.sourceforge.net/project/dsgpl/Tool%20Chain/DSM%207.0.0%20Tool%20Chains/Intel%20x86%20Linux%204.4.180%20%28Broadwellnk%29/broadwellnk-gcc750_glibc226_x86_64-GPL.txz' + + linux-src: + description: 'Linux kernel source URL for repack zImage' + required: true + default: 'https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.180.tar.xz' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Bulid + id: bulid-bsp + env: + ACTIONS_STEP_DEBUG: true + run: | + patfile=$(basename ${{github.event.inputs.pat-address}} | while read; do echo -e ${REPLY//%/\\x}; done) + echo "::set-output name=patfile::$patfile" + # install bsdiff + sudo apt-get install -y bsdiff cpio xz-utils + + #ls -al $GITHUB_WORKSPACE/ + mkdir /opt/build + mkdir /opt/dist + cd /opt/build + curl -L ${{github.event.inputs.pat-address}} -o ds.pat + curl -L ${{github.event.inputs.toolchain}} -o toolchain.txz + curl -L ${{github.event.inputs.linux-src}} -o linux.tar.xz + + # download old pat for syno_extract_system_patch # thanks for jumkey's idea. + mkdir synoesp + curl --location https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat --output oldpat.tar.gz + + tar -C./synoesp/ -xf oldpat.tar.gz rd.gz + cd synoesp + xz -dc < rd.gz >rd 2>/dev/null || echo "extract rd.gz" + echo "finish" + cpio -idm &1 || echo "extract rd" + mkdir extract && cd extract + cp ../usr/lib/libcurl.so.4 ../usr/lib/libmbedcrypto.so.5 ../usr/lib/libmbedtls.so.13 ../usr/lib/libmbedx509.so.1 ../usr/lib/libmsgpackc.so.2 ../usr/lib/libsodium.so ../usr/lib/libsynocodesign-ng-virtual-junior-wins.so.7 ../usr/syno/bin/scemd ./ + ln -s scemd syno_extract_system_patch + cd ../.. + mkdir pat + #tar xf ds.pat -C pat + ls -lh ./ + sudo LD_LIBRARY_PATH=synoesp/extract synoesp/extract/syno_extract_system_patch ds.pat pat || echo "extract latest pat" + echo "test4" + # is update_pack + if [ ! -f "pat/zImage" ]; then + cd pat + ar x $(ls flashupdate*) + tar xf data.tar.xz + cd .. + fi + echo "test5" + mkdir toolchain + tar xf toolchain.txz -C toolchain + mkdir linux-src + tar xf linux.tar.xz --strip-components 1 -C linux-src + + # extract vmlinux + ./linux-src/scripts/extract-vmlinux pat/zImage > vmlinux + # sha256 + sha256sum ds.pat >> checksum.sha256 + sha256sum pat/zImage >> checksum.sha256 + sha256sum pat/rd.gz >> checksum.sha256 + sha256sum vmlinux >> checksum.sha256 + # patch vmlinux + # vmlinux_mod.bin + curl -L https://github.com/jumkey/dsm-research/raw/master/tools/common.php -o common.php + curl -L https://github.com/jumkey/dsm-research/raw/master/tools/patch-ramdisk-check.php -o patch-ramdisk-check.php + curl -L https://github.com/jumkey/dsm-research/raw/master/tools/patch-boot_params-check.php -o patch-boot_params-check.php + php patch-boot_params-check.php vmlinux vmlinux-mod + php patch-ramdisk-check.php vmlinux-mod vmlinux_mod.bin + + git clone https://github.com/kiler129/recreate-zImage.git + chmod +x recreate-zImage/rebuild_kernel.sh + cd linux-src + # ---------- make zImage_mod + # Make file more anonymous + export KBUILD_BUILD_TIMESTAMP="1970/1/1 00:00:00" + export KBUILD_BUILD_USER="root" + export KBUILD_BUILD_HOST="localhost" + export KBUILD_BUILD_VERSION=0 + + export ARCH=x86_64 + export CROSS_COMPILE=/opt/build/toolchain/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- + #make olddefconfig + make defconfig + # change to lzma + sed -i 's/CONFIG_KERNEL_GZIP=y/# CONFIG_KERNEL_GZIP is not set/' .config + sed -i 's/# CONFIG_KERNEL_LZMA is not set/CONFIG_KERNEL_LZMA=y/' .config + << see_below + make clean + sed -i 's/bzImage: vmlinux/bzImage: /' arch/x86/Makefile + make vmlinux -j4 || true # make some *.o inspire by UnknowO + cp ../vmlinux_mod.bin vmlinux # vmlinux_mod.bin is already stripped of debugging and comments, strippe again should be ok + make bzImage + sed -i 's/bzImage: /bzImage: vmlinux/' arch/x86/Makefile + cp arch/x86/boot/bzImage ../zImage_mod + make clean + see_below + # for DS3615xs + #sed -i 's/ -std=gnu89$/ -std=gnu89 $(call cc-option,-fno-PIE)/' Makefile + sed -i 's/ ld -/ ${CROSS_COMPILE}ld -/' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/(ld -/(${CROSS_COMPILE}ld -/' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ gcc / ${CROSS_COMPILE}gcc /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ nm / ${CROSS_COMPILE}nm /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ objcopy / ${CROSS_COMPILE}objcopy /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/(objdump /(${CROSS_COMPILE}objdump /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ readelf / ${CROSS_COMPILE}readelf /' ../recreate-zImage/rebuild_kernel.sh + ../recreate-zImage/rebuild_kernel.sh $PWD/../linux-src ../vmlinux_mod.bin ../zImage_mod + # ---------- + cd .. + bsdiff pat/zImage zImage_mod diff.bsp + + echo '---copy file---' + cp vmlinux /opt/dist + cp vmlinux_mod.bin /opt/dist + cp diff.bsp /opt/dist + cp checksum.sha256 /opt/dist + echo '---END---' + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: kernel bs patch for ${{ steps.bulid-bsp.outputs.patfile }} + path: /opt/dist \ No newline at end of file diff --git a/.github/workflows/make3.yml b/.github/workflows/make3.yml new file mode 100644 index 000000000..f87601445 --- /dev/null +++ b/.github/workflows/make3.yml @@ -0,0 +1,149 @@ +name: Make kernel bs patch for 7.1 using fb kpatch + +on: + workflow_dispatch: + inputs: + pat-address: + description: 'Pat file URL' + required: true + default: 'https://cndl.synology.cn/download/DSM/release/7.0.1/42218/DSM_DS3622xs+_42218.pat' + toolchain: + description: 'DSM toolchain URL for repack zImage' + required: true + default: 'https://downloads.sourceforge.net/project/dsgpl/Tool%20Chain/DSM%207.0.0%20Tool%20Chains/Intel%20x86%20Linux%204.4.180%20%28Broadwellnk%29/broadwellnk-gcc750_glibc226_x86_64-GPL.txz' + + linux-src: + description: 'Linux kernel source URL for repack zImage' + required: true + default: 'https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.180.tar.xz' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Bulid + id: bulid-bsp + env: + ACTIONS_STEP_DEBUG: true + run: | + patfile=$(basename ${{github.event.inputs.pat-address}} | while read; do echo -e ${REPLY//%/\\x}; done) + echo "::set-output name=patfile::$patfile" + # install bsdiff + sudo apt-get install -y bsdiff cpio xz-utils + + #ls -al $GITHUB_WORKSPACE/ + mkdir /opt/build + mkdir /opt/dist + cd /opt/build + curl --insecure -L ${{github.event.inputs.pat-address}} -o ds.pat + curl --insecure -L ${{github.event.inputs.toolchain}} -o toolchain.txz + curl --insecure -L ${{github.event.inputs.linux-src}} -o linux.tar.xz + + # download old pat for syno_extract_system_patch # thanks for jumkey's idea. + mkdir synoesp + curl --insecure --location https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat --output oldpat.tar.gz + + tar -C./synoesp/ -xf oldpat.tar.gz rd.gz + cd synoesp + xz -dc < rd.gz >rd 2>/dev/null || echo "extract rd.gz" + echo "finish" + cpio -idm &1 || echo "extract rd" + mkdir extract && cd extract + cp ../usr/lib/libcurl.so.4 ../usr/lib/libmbedcrypto.so.5 ../usr/lib/libmbedtls.so.13 ../usr/lib/libmbedx509.so.1 ../usr/lib/libmsgpackc.so.2 ../usr/lib/libsodium.so ../usr/lib/libsynocodesign-ng-virtual-junior-wins.so.7 ../usr/syno/bin/scemd ./ + ln -s scemd syno_extract_system_patch + cd ../.. + mkdir pat + #tar xf ds.pat -C pat + ls -lh ./ + sudo LD_LIBRARY_PATH=synoesp/extract synoesp/extract/syno_extract_system_patch ds.pat pat || echo "extract latest pat" + echo "test4" + # is update_pack + if [ ! -f "pat/zImage" ]; then + cd pat + ar x $(ls flashupdate*) + tar xf data.tar.xz + cd .. + fi + echo "test5" + mkdir toolchain + tar xf toolchain.txz -C toolchain + mkdir linux-src + tar xf linux.tar.xz --strip-components 1 -C linux-src + + # extract vmlinux + ./linux-src/scripts/extract-vmlinux pat/zImage > vmlinux + # sha256 + sha256sum ds.pat >> checksum.sha256 + sha256sum pat/zImage >> checksum.sha256 + sha256sum pat/rd.gz >> checksum.sha256 + sha256sum vmlinux >> checksum.sha256 + # patch vmlinux + # vmlinux_mod.bin + #curl -L https://github.com/jumkey/dsm-research/raw/master/tools/common.php -o common.php + #curl -L https://github.com/jumkey/dsm-research/raw/master/tools/patch-ramdisk-check.php -o patch-ramdisk-check.php + #curl -L https://github.com/jumkey/dsm-research/raw/master/tools/patch-boot_params-check.php -o patch-boot_params-check.php + #php patch-boot_params-check.php vmlinux vmlinux-mod + #php patch-ramdisk-check.php vmlinux-mod vmlinux_mod.bin + # New fabio patching method + echo "Patching Kernel" + curl --insecure -L https://github.com/pocopico/tinycore-redpill/raw/main/tools/bzImage-to-vmlinux.sh -o bzImage-to-vmlinux.sh + curl --insecure -L https://github.com/pocopico/tinycore-redpill/raw/main/tools/kpatch -o kpatch + curl --insecure -L https://github.com/pocopico/tinycore-redpill/raw/main/tools/vmlinux-to-bzImage.sh -o vmlinux-to-bzImage.sh + + chmod +x kpatch + ./kpatch vmlinux vmlinux_mod.bin + #vmlinux-to-bzImage.sh vmlinux-mod bzImage + + git clone https://github.com/kiler129/recreate-zImage.git + chmod +x recreate-zImage/rebuild_kernel.sh + cd linux-src + # ---------- make zImage_mod + # Make file more anonymous + export KBUILD_BUILD_TIMESTAMP="1970/1/1 00:00:00" + export KBUILD_BUILD_USER="root" + export KBUILD_BUILD_HOST="localhost" + export KBUILD_BUILD_VERSION=0 + + export ARCH=x86_64 + export CROSS_COMPILE=/opt/build/toolchain/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- + #make olddefconfig + make defconfig + # change to lzma + sed -i 's/CONFIG_KERNEL_GZIP=y/# CONFIG_KERNEL_GZIP is not set/' .config + sed -i 's/# CONFIG_KERNEL_LZMA is not set/CONFIG_KERNEL_LZMA=y/' .config + << see_below + make clean + sed -i 's/bzImage: vmlinux/bzImage: /' arch/x86/Makefile + make vmlinux -j4 || true # make some *.o inspire by UnknowO + cp ../vmlinux_mod.bin vmlinux # vmlinux_mod.bin is already stripped of debugging and comments, strippe again should be ok + make bzImage + sed -i 's/bzImage: /bzImage: vmlinux/' arch/x86/Makefile + cp arch/x86/boot/bzImage ../zImage_mod + make clean + see_below + # for DS3615xs + #sed -i 's/ -std=gnu89$/ -std=gnu89 $(call cc-option,-fno-PIE)/' Makefile + sed -i 's/ ld -/ ${CROSS_COMPILE}ld -/' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/(ld -/(${CROSS_COMPILE}ld -/' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ gcc / ${CROSS_COMPILE}gcc /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ nm / ${CROSS_COMPILE}nm /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ objcopy / ${CROSS_COMPILE}objcopy /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/(objdump /(${CROSS_COMPILE}objdump /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ readelf / ${CROSS_COMPILE}readelf /' ../recreate-zImage/rebuild_kernel.sh + ../recreate-zImage/rebuild_kernel.sh $PWD/../linux-src ../vmlinux_mod.bin ../zImage_mod + # ---------- + cd .. + bsdiff pat/zImage zImage_mod diff.bsp + sha256sum /opt/build/diff.bsp >> checksum.sha256 + + echo '---copy file---' + cp vmlinux /opt/dist + cp vmlinux_mod.bin /opt/dist + cp diff.bsp /opt/dist + cp checksum.sha256 /opt/dist + echo '---END---' + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: kernel bs fb patch for ${{ steps.bulid-bsp.outputs.patfile }} + path: /opt/dist \ No newline at end of file diff --git a/.github/workflows/make5.yml b/.github/workflows/make5.yml new file mode 100644 index 000000000..cf4bc67b5 --- /dev/null +++ b/.github/workflows/make5.yml @@ -0,0 +1,150 @@ +name: Make kernel bs patch for 7.1 Linux 5 using fabio kpatch + +on: + workflow_dispatch: + inputs: + pat-address: + description: 'Pat file URL' + required: true + default: 'https://global.download.synology.com/download/DSM/release/7.1.1/42962/DSM_SA6400_42962.pat' + toolchain: + description: 'DSM toolchain URL for repack zImage' + required: true + default: 'https://global.download.synology.com/download/ToolChain/toolchain/7.1-42661/AMD%20x86%20Linux%20Linux%205.10.55%20%28epyc7002%29/epyc7002-gcc850_glibc226_x86_64-GPL.txz' + + linux-src: + description: 'Linux kernel source URL for repack zImage' + required: true + default: 'https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.55.tar.xz' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Bulid + id: bulid-bsp + env: + ACTIONS_STEP_DEBUG: true + run: | + patfile=$(basename ${{github.event.inputs.pat-address}} | while read; do echo -e ${REPLY//%/\\x}; done) + echo "::set-output name=patfile::$patfile" + # install bsdiff + sudo apt-get install -y bsdiff cpio xz-utils + #ls -al $GITHUB_WORKSPACE/ + mkdir /opt/build + mkdir /opt/dist + cd /opt/build + curl --insecure -L ${{github.event.inputs.pat-address}} -o ds.pat + curl --insecure -L ${{github.event.inputs.toolchain}} -o toolchain.txz + curl --insecure -L ${{github.event.inputs.linux-src}} -o linux.tar.xz + + # download old pat for syno_extract_system_patch # thanks for jumkey's idea. + mkdir synoesp + curl --insecure --location https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat --output oldpat.tar.gz + tar -C./synoesp/ -xf oldpat.tar.gz rd.gz + cd synoesp + xz -dc < rd.gz >rd 2>/dev/null || echo "extract rd.gz" + echo "finish" + cpio -idm &1 || echo "extract rd" + mkdir extract && cd extract + cp ../usr/lib/libcurl.so.4 ../usr/lib/libmbedcrypto.so.5 ../usr/lib/libmbedtls.so.13 ../usr/lib/libmbedx509.so.1 ../usr/lib/libmsgpackc.so.2 ../usr/lib/libsodium.so ../usr/lib/libsynocodesign-ng-virtual-junior-wins.so.7 ../usr/syno/bin/scemd ./ + ln -s scemd syno_extract_system_patch + cd ../.. + mkdir pat + #tar xf ds.pat -C pat + ls -lh ./ + sudo LD_LIBRARY_PATH=synoesp/extract synoesp/extract/syno_extract_system_patch ds.pat pat || echo "extract latest pat" + echo "test4" + # is update_pack + if [ ! -f "pat/zImage" ]; then + cd pat + ar x $(ls flashupdate*) + tar xf data.tar.xz + cd .. + fi + echo "test5" + mkdir toolchain + tar xf toolchain.txz -C toolchain + mkdir linux-src + tar xf linux.tar.xz --strip-components 1 -C linux-src + # extract vmlinux + ./linux-src/scripts/extract-vmlinux pat/zImage > vmlinux + # sha256 + sha256sum ds.pat >> checksum.sha256 + sha256sum pat/zImage >> checksum.sha256 + sha256sum pat/rd.gz >> checksum.sha256 + sha256sum vmlinux >> checksum.sha256 + cat checksum.sha256 + # patch vmlinux + # vmlinux_mod.bin + #curl -L https://github.com/jumkey/dsm-research/raw/master/tools/common.php -o common.php + #curl -L https://github.com/jumkey/dsm-research/raw/master/tools/patch-ramdisk-check.php -o patch-ramdisk-check.php + #curl -L https://github.com/jumkey/dsm-research/raw/master/tools/patch-boot_params-check.php -o patch-boot_params-check.php + #php patch-boot_params-check.php vmlinux vmlinux-mod + #php patch-ramdisk-check.php vmlinux-mod vmlinux_mod.bin + # New fabio patching method + echo "Patching Kernel" + curl --insecure -L https://github.com/pocopico/tinycore-redpill/raw/main/tools/bzImage-to-vmlinux.sh -o bzImage-to-vmlinux.sh + curl --insecure -L https://github.com/pocopico/tinycore-redpill/raw/main/tools/kpatch -o kpatch + curl --insecure -L https://github.com/pocopico/tinycore-redpill/raw/main/tools/vmlinux-to-bzImage.sh -o vmlinux-to-bzImage.sh + + chmod 777 kpatch + chmod 777 bzImage-to-vmlinux.sh + chmod 777 vmlinux-to-bzImage.sh + + echo "Current path `pwd`" + + ls -ltr + + ./kpatch /opt/build/vmlinux /opt/build/vmlinux-mod + #vmlinux-to-bzImage.sh vmlinux-mod bzImage + git clone https://github.com/kiler129/recreate-zImage.git + chmod +x recreate-zImage/rebuild_kernel.sh + cd linux-src + # ---------- make zImage_mod + # Make file more anonymous + export KBUILD_BUILD_TIMESTAMP="1970/1/1 00:00:00" + export KBUILD_BUILD_USER="root" + export KBUILD_BUILD_HOST="localhost" + export KBUILD_BUILD_VERSION=0 + export ARCH=x86_64 + export CROSS_COMPILE=/opt/build/toolchain/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- + #make olddefconfig + make defconfig + # change to lzma + sed -i 's/CONFIG_KERNEL_GZIP=y/# CONFIG_KERNEL_GZIP is not set/' .config + sed -i 's/# CONFIG_KERNEL_LZMA is not set/CONFIG_KERNEL_LZMA=y/' .config + << see_below + make clean + sed -i 's/bzImage: vmlinux/bzImage: /' arch/x86/Makefile + make vmlinux -j4 || true # make some *.o inspire by UnknowO + cp ../vmlinux_mod.bin vmlinux # vmlinux_mod.bin is already stripped of debugging and comments, strippe again should be ok + make bzImage + sed -i 's/bzImage: /bzImage: vmlinux/' arch/x86/Makefile + cp arch/x86/boot/bzImage ../zImage_mod + make clean + see_below + # for DS3615xs + #sed -i 's/ -std=gnu89$/ -std=gnu89 $(call cc-option,-fno-PIE)/' Makefile + sed -i 's/ ld -/ ${CROSS_COMPILE}ld -/' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/(ld -/(${CROSS_COMPILE}ld -/' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ gcc / ${CROSS_COMPILE}gcc /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ nm / ${CROSS_COMPILE}nm /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ objcopy / ${CROSS_COMPILE}objcopy /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/(objdump /(${CROSS_COMPILE}objdump /' ../recreate-zImage/rebuild_kernel.sh + sed -i 's/ readelf / ${CROSS_COMPILE}readelf /' ../recreate-zImage/rebuild_kernel.sh + ../recreate-zImage/rebuild_kernel.sh $PWD/../linux-src ../vmlinux_mod.bin ../zImage_mod + # ---------- + cd .. + bsdiff pat/zImage zImage_mod diff.bsp + echo '---copy file---' + cp vmlinux /opt/dist + cp vmlinux_mod.bin /opt/dist + cp diff.bsp /opt/dist + cp checksum.sha256 /opt/dist + echo '---END---' + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: kernel bs patch for ${{ steps.bulid-bsp.outputs.patfile }} + path: /opt/dist diff --git a/build-loader.sh b/build-loader.sh index 6fa616840..f87bc9b22 100755 --- a/build-loader.sh +++ b/build-loader.sh @@ -12,6 +12,7 @@ cd "${BASH_SOURCE%/*}/" || exit 1 ######################################################################################################################## ##### CONFIGURATION YOU CAN OVERRIDE USING ENVIRONMENT ################################################################# +BRP_JUN_MOD=${BRP_JUN_MOD:-0} # whether you want to use jun's mod BRP_DEBUG=${BRP_DEBUG:-0} # whether you want to see debug messages BRP_CACHE_DIR=${BRP_CACHE_DIR:-"$PWD/cache"} # cache directory where stuff is downloaded & unpacked BRP_USER_CFG=${BRP_USER_CFG:-"$PWD/user_config.json"} @@ -257,6 +258,7 @@ fi readonly BRP_RD_FILE=${BRP_UPAT_DIR}/$(brp_json_get_field "${BRP_REL_CONFIG_JSON}" 'files.ramdisk.name') # original ramdisk file readonly BRP_URD_DIR="${BRP_BUILD_DIR}/rd-${BRP_REL_OS_ID}-unpacked" # folder with unpacked ramdisk contents readonly BRP_RD_REPACK="${BRP_BUILD_DIR}/rd-patched-${BRP_REL_OS_ID}.gz" # repacked ramdisk file +readonly BRP_JUN_PATCH="${BRP_USER_DIR}/jun.patch" # jun.patch #rm -rf build/testing/rd-* # for debugging ramdisk routines; also comment-out rm of BRP_URD_DIR #rm "${BRP_RD_REPACK}" # for testing @@ -272,6 +274,15 @@ if [ ! -f "${BRP_RD_REPACK}" ]; then # do we even need to unpack-modify-repack t pr_info "Found unpacked ramdisk at \"%s\" - skipping unpacking" "${BRP_URD_DIR}" fi + if [ "${BRP_JUN_MOD}" -eq 1 ]; then + pushd ${BRP_URD_DIR} + git init + git add -A + git commit -m "import ramdisk" + git tag baseline + popd + fi + # Applies all static .patch files to the ramdisk brp_apply_text_patches \ "${BRP_URD_DIR}" \ @@ -317,16 +328,30 @@ if [ ! -f "${BRP_RD_REPACK}" ]; then # do we even need to unpack-modify-repack t || pr_crit "Failed to move mfgBIOS LKM" fi + if [ "${BRP_JUN_MOD}" -eq 1 ]; then + git -C ${BRP_URD_DIR} diff baseline > ${BRP_JUN_PATCH} + pushd ${BRP_URD_DIR} + # rm .git + "${RM_PATH}" -rf .git + popd + fi + # Finally, we can finish ramdisk modifications with repacking it readonly BRP_RD_COMPRESSED=$(brp_json_get_field "${BRP_REL_CONFIG_JSON}" "extra.compress_rd") - pr_process "Repacking ramdisk to %s" "${BRP_RD_REPACK}" - if [ "${BRP_RD_COMPRESSED}" == "true" ]; then - brp_pack_zrd "${BRP_RD_REPACK}" "${BRP_URD_DIR}" - elif [ "${BRP_RD_COMPRESSED}" == "false" ]; then - brp_pack_cpiord "${BRP_RD_REPACK}" "${BRP_URD_DIR}" + if [ "${BRP_JUN_MOD}" -eq 1 ]; then + cp ${BRP_RD_FILE} ${BRP_RD_REPACK} else - pr_crit "Invalid value for platform extra.compress_rd (expected bool, got \"%s\")" "${BRP_RD_COMPRESSED}" + pr_process "Repacking ramdisk to %s" "${BRP_RD_REPACK}" + if [ "${BRP_RD_COMPRESSED}" == "true" ]; then + brp_pack_zrd "${BRP_RD_REPACK}" "${BRP_URD_DIR}" + # add fake 64byte sign + dd if=/dev/zero of=${BRP_RD_REPACK} bs=$((3-(($(stat --format=%s ${BRP_RD_REPACK})+3)&0x03)+64)) count=1 conv=notrunc oflag=append + elif [ "${BRP_RD_COMPRESSED}" == "false" ]; then + brp_pack_cpiord "${BRP_RD_REPACK}" "${BRP_URD_DIR}" + else + pr_crit "Invalid value for platform extra.compress_rd (expected bool, got \"%s\")" "${BRP_RD_COMPRESSED}" + fi fi pr_process_ok @@ -384,13 +409,28 @@ if [[ "${BRP_DEV_DISABLE_EXTS}" -ne 1 ]]; then pr_process_ok fi -pr_process "Packing custom ramdisk layer to %s" "${BRP_CUSTOM_RD_PATH}" -if [ "${BRP_RD_COMPRESSED}" == "true" ]; then +if [ "${BRP_JUN_MOD}" -eq 1 ]; then + brp_mkdir "${BRP_CUSTOM_DIR}/usr/bin" + brp_mkdir "${BRP_CUSTOM_DIR}/etc" + "${CP_PATH}" --recursive --dereference "${BRP_COMMON_CFG_BASE}/jun/init" "${BRP_CUSTOM_DIR}/init" + "${CP_PATH}" --recursive --dereference "${BRP_COMMON_CFG_BASE}/jun/usr/bin/patch" "${BRP_CUSTOM_DIR}/usr/bin/patch" + "${CP_PATH}" --recursive --dereference "${BRP_JUN_PATCH}" "${BRP_CUSTOM_DIR}/etc/jun.patch" + + pr_process "Packing custom ramdisk layer to %s" "${BRP_CUSTOM_RD_PATH}" brp_pack_zrd "${BRP_CUSTOM_RD_PATH}" "${BRP_CUSTOM_DIR}" -elif [ "${BRP_RD_COMPRESSED}" == "false" ]; then - brp_pack_cpiord "${BRP_CUSTOM_RD_PATH}" "${BRP_CUSTOM_DIR}" + # add fake 64byte sign + dd if=/dev/zero of=${BRP_CUSTOM_RD_PATH} bs=$((3-(($(stat --format=%s ${BRP_RD_REPACK})+3)&0x03)+64)) count=1 conv=notrunc oflag=append else - pr_crit "Invalid value for platform extra.compress_rd (expected bool, got \"%s\")" "${BRP_RD_COMPRESSED}" + pr_process "Packing custom ramdisk layer to %s" "${BRP_CUSTOM_RD_PATH}" + if [ "${BRP_RD_COMPRESSED}" == "true" ]; then + brp_pack_zrd "${BRP_CUSTOM_RD_PATH}" "${BRP_CUSTOM_DIR}" + # add fake 64byte sign + dd if=/dev/zero of=${BRP_CUSTOM_RD_PATH} bs=$((3-(($(stat --format=%s ${BRP_RD_REPACK})+3)&0x03)+64)) count=1 conv=notrunc oflag=append + elif [ "${BRP_RD_COMPRESSED}" == "false" ]; then + brp_pack_cpiord "${BRP_CUSTOM_RD_PATH}" "${BRP_CUSTOM_DIR}" + else + pr_crit "Invalid value for platform extra.compress_rd (expected bool, got \"%s\")" "${BRP_RD_COMPRESSED}" + fi fi pr_process_ok diff --git a/buildpat/buildpat-918p-7.1-42621.sh b/buildpat/buildpat-918p-7.1-42621.sh new file mode 100644 index 000000000..7b88d3b03 --- /dev/null +++ b/buildpat/buildpat-918p-7.1-42621.sh @@ -0,0 +1,21 @@ +curl -L https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS918%2B_42621.pat -o ds.pat +mkdir synoesp +curl --location https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat --output oldpat.tar.gz +tar -C./synoesp/ -xf oldpat.tar.gz rd.gz +cd synoesp +xz -dc < rd.gz >rd 2>/dev/null || echo "extract rd.gz" +echo "finish" +cpio -idm &1 || echo "extract rd" +mkdir extract && cd extract +cp ../usr/lib/libcurl.so.4 ../usr/lib/libmbedcrypto.so.5 ../usr/lib/libmbedtls.so.13 ../usr/lib/libmbedx509.so.1 ../usr/lib/libmsgpackc.so.2 ../usr/lib/libsodium.so ../usr/lib/libsynocodesign-ng-virtual-junior-wins.so.7 ../usr/syno/bin/scemd ./ +ln -s scemd syno_extract_system_patch +cd ../.. +mkdir pat +#tar xf ds.pat -C pat +ls -lh ./ +sudo LD_LIBRARY_PATH=synoesp/extract synoesp/extract/syno_extract_system_patch ds.pat pat || echo "extract latest pat" +cd pat +tar -czvf archive.tar.gz ./ +mv archive.tar.gz ../ds918p_42621.pat +cd ../ +rm -r ds.pat oldpat.tar.gz pat synoesp diff --git a/buildpat/buildpat-920p-7.1-42621.sh b/buildpat/buildpat-920p-7.1-42621.sh new file mode 100644 index 000000000..560d86f54 --- /dev/null +++ b/buildpat/buildpat-920p-7.1-42621.sh @@ -0,0 +1,21 @@ +curl -L https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS920%2B_42621.pat -o ds.pat +mkdir synoesp +curl --location https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat --output oldpat.tar.gz +tar -C./synoesp/ -xf oldpat.tar.gz rd.gz +cd synoesp +xz -dc < rd.gz >rd 2>/dev/null || echo "extract rd.gz" +echo "finish" +cpio -idm &1 || echo "extract rd" +mkdir extract && cd extract +cp ../usr/lib/libcurl.so.4 ../usr/lib/libmbedcrypto.so.5 ../usr/lib/libmbedtls.so.13 ../usr/lib/libmbedx509.so.1 ../usr/lib/libmsgpackc.so.2 ../usr/lib/libsodium.so ../usr/lib/libsynocodesign-ng-virtual-junior-wins.so.7 ../usr/syno/bin/scemd ./ +ln -s scemd syno_extract_system_patch +cd ../.. +mkdir pat +#tar xf ds.pat -C pat +ls -lh ./ +sudo LD_LIBRARY_PATH=synoesp/extract synoesp/extract/syno_extract_system_patch ds.pat pat || echo "extract latest pat" +cd pat +tar -czvf archive.tar.gz ./ +mv archive.tar.gz ../ds920p_42621.pat +cd ../ +rm -r ds.pat oldpat.tar.gz pat synoesp diff --git a/buildroot/README.md b/buildroot/README.md new file mode 100644 index 000000000..8e5748c14 --- /dev/null +++ b/buildroot/README.md @@ -0,0 +1,13 @@ +# Build + +```shell +git clone git://git.buildroot.net/buildroot +cd buildroot +# copy custom files +make syno_defconfig +make +# get bzImage rootfs.cpio.lzma +ls output/images +``` + +[see .github/workflows/buildroot.yml](../.github/workflows/buildroot.yml) \ No newline at end of file diff --git a/buildroot/board/syno/rootfs-overlay/etc/inittab b/buildroot/board/syno/rootfs-overlay/etc/inittab new file mode 100644 index 000000000..a0fbc84d8 --- /dev/null +++ b/buildroot/board/syno/rootfs-overlay/etc/inittab @@ -0,0 +1,42 @@ +# /etc/inittab +# +# Copyright (C) 2001 Erik Andersen +# +# Note: BusyBox init doesn't support runlevels. The runlevels field is +# completely ignored by BusyBox init. If you want runlevels, use +# sysvinit. +# +# Format for each entry: ::: +# +# id == tty to run on, or empty for /dev/console +# runlevels == ignored +# action == one of sysinit, respawn, askfirst, wait, and once +# process == program to run + +# Startup the system +::sysinit:/bin/mount -t proc proc /proc +::sysinit:/bin/mount -o remount,rw / +::sysinit:/bin/mkdir -p /dev/pts /dev/shm +::sysinit:/bin/mount -a +::sysinit:/bin/mkdir -p /run/lock/subsys +::sysinit:/sbin/swapon -a +null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd +null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin +null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout +null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr +::sysinit:/bin/hostname -F /etc/hostname +# now run any rc scripts +::sysinit:/etc/init.d/rcS + +::once:/bin/sh /root/init.sh + +# Put a getty on the serial port +#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL + +# Stuff to do for the 3-finger salute +#::ctrlaltdel:/sbin/reboot + +# Stuff to do before rebooting +::shutdown:/etc/init.d/rcK +::shutdown:/sbin/swapoff -a +::shutdown:/bin/umount -a -r diff --git a/buildroot/board/syno/rootfs-overlay/root/bzImage-to-vmlinux.sh b/buildroot/board/syno/rootfs-overlay/root/bzImage-to-vmlinux.sh new file mode 100755 index 000000000..b2096a6cf --- /dev/null +++ b/buildroot/board/syno/rootfs-overlay/root/bzImage-to-vmlinux.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +read_u8() { + dd if=$1 bs=1 skip=$(( $2 )) count=1 2>/dev/null | od -An -tu1 | grep -Eo '[0-9]+' +} +read_u32() { + dd if=$1 bs=1 skip=$(( $2 )) count=4 2>/dev/null | od -An -tu4 | grep -Eo '[0-9]+' +} + +set -x +setup_size=$(read_u8 $1 0x1f1) +payload_offset=$(read_u32 $1 0x248) +payload_length=$(read_u32 $1 0x24c) +inner_pos=$(( ($setup_size + 1) * 512 )) + +tail -c+$(( $inner_pos + 1 )) $1 | tail -c+$(( $payload_offset + 1 )) | head -c $(( $payload_length )) | head -c $(($payload_length - 4)) | unlzma > $2 diff --git a/buildroot/board/syno/rootfs-overlay/root/common.php b/buildroot/board/syno/rootfs-overlay/root/common.php new file mode 100644 index 000000000..a604484a1 --- /dev/null +++ b/buildroot/board/syno/rootfs-overlay/root/common.php @@ -0,0 +1,244 @@ + $num) { + if ($num === null) { + $searchSeq[] = null; + } elseif (is_array($num) && count($num) == 2 && is_int($num[0]) && is_int($num[1]) && $num[0] >= 0 && + $num[0] <= 255 && $num[1] >= 0 && $num[1] <= 255 && $num[0] < $num[1]) { + $searchSeq[] = $num; //Leave them as numeric + } elseif (is_int($num) && $num >= 0 && $num <= 255) { + $searchSeq[] = chr($num); + } else { + perr("Found invalid search sequence at index $idx", true); + } + } + + //$pos denotes start position but it's also used to mark where start of a potential pattern match was found + fseek($fp, $pos); + do { //This loop is optimized for speed + $buf = fread($fp, $bufLen); + if (!isset($buf[$bufLen-1])) { + break; //Not enough data = no match + } + + $successfulLoops = 0; + foreach ($searchSeq as $byteIdx => $seekByte) { + if ($seekByte === null) { //any character + ++$successfulLoops; + continue; + } + + //element in the array can be a range [(int)from,(int)to] or a literal SINGLE byte + //if isset finds a second element it will mean for us that it's an array of 2 elements (as we don't expect + //a string longer than a single byte) + if (isset($seekByte[1])) { + $curByteNum = ord($buf[$byteIdx]); + if ($curByteNum < $seekByte[0] || $curByteNum > $seekByte[1]) { + break; + } + } elseif($buf[$byteIdx] !== $seekByte) { //If the byte doesn't match literally we know it's not a match + break; + } + + ++$successfulLoops; + } + if ($successfulLoops === $bufLen) { + return $pos; + } + + fseek($fp, ++$pos); + $maxToCheck--; + } while (!feof($fp) && $maxToCheck != 0); + + return -1; +} + +/** + * @return resource + */ +function getFileMemMapped(string $path) +{ + $fp = fopen('php://memory', 'r+'); + fwrite($fp, file_get_contents($path)); //poor man's mmap :D + + return $fp; +} + +function saveStreamToFile($fp, string $path) +{ + perr("Saving stream to $path ...\n"); + + $fp2 = fopen($path, 'w'); + fseek($fp, 0); + while (!feof($fp)) { + fwrite($fp2, fread($fp, 8192)); + } + fclose($fp2); + + perr("DONE!\n"); +} + +/** + * Do not call this in time-sensitive code... + */ +function readAt($fp, int $pos, int $len) +{ + fseek($fp, $pos); + return fread($fp, $len); +} diff --git a/buildroot/board/syno/rootfs-overlay/root/init.sh b/buildroot/board/syno/rootfs-overlay/root/init.sh new file mode 100755 index 000000000..6b7acf5e6 --- /dev/null +++ b/buildroot/board/syno/rootfs-overlay/root/init.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +cd $(dirname $0) +mkdir /temp1 +mkdir /temp2 +# TODO sdb? +usbfs=$(fdisk -l /dev/sd* | grep '128 MB' | awk '{print $2}' | awk -F ':' '{print $1}') +wait_time=30 +time_counter=0 +while [ "${usbfs}" = "" ] && [ $time_counter -lt $wait_time ]; do + sleep 1 + usbfs=$(fdisk -l /dev/sd* | grep '128 MB' | awk '{print $2}' | awk -F ':' '{print $1}') + echo "Still waiting for boot device (waited $((time_counter=time_counter+1)) of ${wait_time} seconds)" +done +mount ${usbfs}1 /temp1 +mount ${usbfs}2 /temp2 + +sh bzImage-to-vmlinux.sh /temp2/zImage vmlinux + +php patch-boot_params-check.php vmlinux vmlinux-mod +rm vmlinux +php patch-ramdisk-check.php vmlinux-mod vmlinux.bin +rm vmlinux-mod + +mkdir "ramdisk" ; cd "ramdisk" + +unlzma < /temp2/rd.gz | cpio -idmuv + +unlzma < /temp1/custom.gz | cpio -idmuv + +# make any modifications and recompress \/ +find . 2>/dev/null | cpio -o -H newc -R root:root | xz -9 --format=lzma > ../rd.gz + +cd .. + +# add fake sign +dd if=/dev/zero of=rd.gz bs=68 count=1 conv=notrunc oflag=append + +rm -rf ramdisk +umount /temp1 +umount /temp2 + +kexec -d --args-linux ./vmlinux.bin --type=elf-x86_64 --reuse-cmdline --initrd=./rd.gz +kexec -d -e diff --git a/buildroot/board/syno/rootfs-overlay/root/patch-boot_params-check.php b/buildroot/board/syno/rootfs-overlay/root/patch-boot_params-check.php new file mode 100644 index 000000000..4d14ee32b --- /dev/null +++ b/buildroot/board/syno/rootfs-overlay/root/patch-boot_params-check.php @@ -0,0 +1,140 @@ + 3) { + perr("Usage: " . $argv[0] . " []\n", true); +} + +$file = getArgFilePath(1); +perr("\nGenerating patch for $file\n"); + +//The function will reside in init code part. We don't care we may potentially search beyond as we expect it to be found +$codeAddr = getELFSectionAddr($file, '.init.text', 3); + +//Finding a function boundary is non-trivial really as patters can vary, we can have multiple exit points, and in CISC +// there are many things which may match e.g. "PUSH EBP". Implementing even a rough disassembler is pointless. +//However, we can certainly cheat here as we know with CDECL a non-empty function will always contain one or more +// PUSH (0x41) R12-R15 (0x54-57) sequences. Then we can search like a 1K forward for these characteristic LOCK OR. +const PUSH_R12_R15_SEQ = [0x41, [0x54, 0x57]]; +const PUSH_R12_R15_SEQ_LEN = 2; +const LOCK_OR_LOOK_AHEAD = 1024; +const LOCK_OR_PTR_SEQs = [ + [0xF0, 0x80, null, null, null, null, null, 0x01], + [0xF0, 0x80, null, null, null, null, null, 0x02], + [0xF0, 0x80, null, null, null, null, null, 0x04], + [0xF0, 0x80, null, null, null, null, null, 0x08], +]; +const LOCK_OR_PTR_SEQs_NUM = 4; //how many sequences we are expecting +const LOCK_OR_PTR_SEQ_LEN = 8; //length of a single sequence + +$fp = getFileMemMapped($file); //Read the whole file to memory to make fseet/fread much faster +$pos = $codeAddr; //Start from where code starts +$orsPos = null; //When matched it will contain our resulting file offsets to LOCK(); OR BYTE PTR [rip+...],0x calls +perr("Looking for f() candidates...\n"); +do { + $find = findSequenceWithWildcard($fp, PUSH_R12_R15_SEQ, $pos, -1); + if ($find === -1) { + break; //no more "functions" left + } + + perr("\rAnalyzing f() candidate @ " . decTo32bUFhex($pos)); + + //we found something looking like PUSH R12-R15, now find the ORs + $orsPos = []; //file offsets where LOCK() calls should start + $orsPosNum = 0; //Number of LOCK(); OR ptr sequences found + $seqPos = $pos; + foreach (LOCK_OR_PTR_SEQs as $idx => $seq) { + $find = findSequenceWithWildcard($fp, $seq, $seqPos, LOCK_OR_LOOK_AHEAD); + if ($find === -1) { + break; //Seq not found - there's no point to look further + } + + $orsPos[] = $find; + ++$orsPosNum; + $seqPos = $find + LOCK_OR_PTR_SEQ_LEN; //Next search will start after the current sequence code + } + + //We can always move forward by the function token length (obvious) but if we couldn't find any LOCK-OR tokens + // we can skip the whole look ahead distance. We CANNOT do that if we found even a single token because the next one + // might have been just after the look ahead distance + if ($orsPosNum !== LOCK_OR_PTR_SEQs_NUM) { + $pos += PUSH_R12_R15_SEQ_LEN; + if ($orsPosNum === 0) { + $pos += LOCK_OR_LOOK_AHEAD; + } + continue; //Continue the main search loop to find next function candidate + } + + //We found LOCK(); OR ptr sequences so we can print some logs and collect ptrs (as this is quite expensive) + $seqPtrsDist = []; + perr("\n[?] Found possible f() @ " . decTo32bUFhex($pos) . "\n"); + $ptrOffset = null; + $equalJumps = 0; + foreach (LOCK_OR_PTR_SEQs as $idx => $seq) { + //data will have the following bytes: + // [0-LOCK()] [1-OR()] [2-BYTE-PTR] [3-OFFS-b3] [4-OFFS-b2] [5-OFFS-b1] [6-OFFS-b1] [7-NUMBER] + $seqData = readAt($fp, $orsPos[$idx], LOCK_OR_PTR_SEQ_LEN); + $newPtrOffset = //how far it "jumps" + $orsPos[$idx] + + (unpack('V', $seqData[3] . $seqData[4] . $seqData[5] . $seqData[6])[1]); //u32 bit LE + + if($ptrOffset === null) { + $ptrOffset = $newPtrOffset; //Save the first one to compare in the next loop + ++$equalJumps; + } elseif ($ptrOffset === $newPtrOffset) { + ++$equalJumps; + } + + perr( + "\t[+] Found LOCK-OR#$idx sequence @ " . decTo32bUFhex($orsPos[$idx]) . " => " . + rawToUFhex($seqData) . " [RIP+(dec)$newPtrOffset]\n" + ); + } + if ($equalJumps !== 4) { + perr("\t[-] LOCK-OR PTR offset mismatch - $equalJumps/" . LOCK_OR_PTR_SEQs_NUM . " matched\n"); + //If the pointer checking failed we can at least move beyond the last LOCK-OR found as we know there's no valid + // sequence of LOCK-ORs there + $pos = $orsPos[3]; + continue; + } + + perr("\t[+] All $equalJumps LOCK-OR PTR offsets equal - match found!\n"); + break; +} while(!feof($fp)); + +if ($orsPos === null) { //There's a small chance no candidates with LOCK ORs were found + perr("Failed to find matching sequences", true); +} + +//Patch offsets +foreach ($orsPos as $seqFileOffset) { + //The offset will point at LOCK(), we need to change the OR (0x80 0x0d) to AND (0x80 0x25) so the two bytes after + $seqFileOffset = $seqFileOffset+2; + + perr("Patching OR to AND @ file offset (dec)$seqFileOffset\n"); + fseek($fp, $seqFileOffset); + fwrite($fp, "\x25"); //0x0d is OR, 0x25 is AND +} + +if (!isset($argv[2])) { + perr("No output file specified - discarding data\n"); + exit; +} + +saveStreamToFile($fp, $argv[2]); +fclose($fp); diff --git a/buildroot/board/syno/rootfs-overlay/root/patch-ramdisk-check.php b/buildroot/board/syno/rootfs-overlay/root/patch-ramdisk-check.php new file mode 100644 index 000000000..cc8f160bf --- /dev/null +++ b/buildroot/board/syno/rootfs-overlay/root/patch-ramdisk-check.php @@ -0,0 +1,84 @@ + 3) { + perr("Usage: " . $argv[0] . " []\n", true); +} + +$file = getArgFilePath(1); +perr("\nGenerating patch for $file\n"); + +//Strings (e.g. error for printk()) reside in .rodata - start searching there to save time +$rodataAddr = getELFSectionAddr($file, '.rodata', 2); + +//Locate the precise location of "ramdisk error" string +$rdErrAddr = getELFStringLoc($file, '3ramdisk corrupt'); + + +//offsets will be 32 bit in ASM and in LE +$errPrintAddr = $rodataAddr + $rdErrAddr; +$errPrintCAddrLEH = decTo32bLEhex($errPrintAddr - 1); //Somehow rodata contains off-by-one sometimes... +$errPrintAddrLEH = decTo32bLEhex($errPrintAddr); +perr("LE arg addr: " . $errPrintCAddrLEH . "\n"); + +$fp = getFileMemMapped($file); //Read the whole file to memory to make fseet/fread much faster + +//Find the printk() call argument +$printkPos = findSequence($fp, hex2raw($errPrintCAddrLEH), 0, DIR_FWD, -1); +if ($printkPos === -1) { + perr("printk pos not found!\n", true); +} +perr("Found printk arg @ " . decTo32bUFhex($printkPos) . "\n"); + +//double check if it's a MOV reg,VAL (where reg is EAX/ECX/EDX/EBX/ESP/EBP/ESI/EDI) +fseek($fp, $printkPos - 3); +$instr = fread($fp, 3); +if (strncmp($instr, "\x48\xc7", 2) !== 0) { + perr("Expected MOV=>reg before printk error, got " . bin2hex($instr) . "\n", true); +} +$dstReg = ord($instr[2]); +if ($dstReg < 192 || $dstReg > 199) { + perr("Expected MOV w/reg operand [C0-C7], got " . bin2hex($instr[2]) . "\n", true); +} +$movPos = $printkPos - 3; +perr("Found printk MOV @ " . decTo32bUFhex($movPos) . "\n"); + +//now we should seek a reasonable amount (say, up to 32 bytes) for a sequence of CALL x => TEST EAX,EAX => JZ +$testPos = findSequence($fp, "\x85\xc0", $movPos, DIR_RWD, 32); +if ($testPos === -1) { + perr("Failed to find TEST eax,eax\n", true); +} + +$jzPos = $testPos + 2; +fseek($fp, $jzPos); +$jz = fread($fp, 2); +if ($jz[0] !== "\x74") { + perr("Failed to find JZ\n", true); +} + +$jzp = "\xEB" . $jz[1]; +perr('OK - patching ' . bin2hex($jz) . " (JZ) to " . bin2hex($jzp) . " (JMP) @ $jzPos\n"); +fseek($fp, $jzPos); //we should be here already +perr("Patched " . fwrite($fp, $jzp) . " bytes in memory\n"); + +if (!isset($argv[2])) { + perr("No output file specified - discarding data\n"); + exit; +} + +if (!isset($argv[2])) { + perr("No output file specified - discarding data\n"); + exit; +} + +saveStreamToFile($fp, $argv[2]); +fclose($fp); diff --git a/buildroot/configs/syno_defconfig b/buildroot/configs/syno_defconfig new file mode 100644 index 000000000..65f1814da --- /dev/null +++ b/buildroot/configs/syno_defconfig @@ -0,0 +1,24 @@ +BR2_x86_64=y +BR2_STATIC_LIBS=y +BR2_TARGET_ROOTFS_CPIO=y +BR2_TARGET_ROOTFS_CPIO_LZMA=y +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TOOLCHAIN_BUILDROOT_WCHAR=y +BR2_USE_WCHAR=y +BR2_PACKAGE_PHP=y +BR2_PACKAGE_PHP_SAPI_CLI=y +BR2_PACKAGE_BINUTILS=y +BR2_PACKAGE_BINUTILS_TARGET=y +BR2_PACKAGE_XZ=y +BR2_PACKAGE_CPIO=y +BR2_PACKAGE_KEXEC=y +BR2_PACKAGE_KEXEC_ZLIB=y + +# +# Kernel +# +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_DEFCONFIG="x86_64" +BR2_LINUX_KERNEL_LZMA=y + +BR2_ROOTFS_OVERLAY="board/syno/rootfs-overlay" diff --git a/bundled-exts.json b/bundled-exts.json index 0e0a6be78..95ee25f4d 100644 --- a/bundled-exts.json +++ b/bundled-exts.json @@ -1,4 +1,3 @@ { - "thethorgroup.virtio": "https://raw.githubusercontent.com/RedPill-TTG/redpill-virtio/master/rpext-index.json", - "thethorgroup.boot-wait": "https://raw.githubusercontent.com/RedPill-TTG/redpill-boot-wait/master/rpext-index.json" + "redpill.bootwait": "https://github.com/pocopico/rp-ext/raw/main/redpill-boot-wait/rpext-index.json" } diff --git a/config/DS1621+/7.0.1-42218/config.json b/config/DS1621+/7.0.1-42218/config.json new file mode 100644 index 000000000..e47b575c9 --- /dev/null +++ b/config/DS1621+/7.0.1-42218/config.json @@ -0,0 +1,120 @@ +{ + "os": { + "id": "ds1621p_42218", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS1621%2B_42218.pat", + "sha256": "19f56827ba8bf0397d42cd1d6f83c447f092c2c1bbb70d8a2ad3fbd427e866df" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "f4648d0dd6b29ef6149b0ff46afe1fe32f81730aa79af72f37ffd3647c76f586" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "73512c7bceb34cf7f7f93c2703db60496da0e27274fc45e5aefa0366c9734d6e" + }, + "vmlinux": { + "sha256": "1b5dfa049df20c00bb5fe33ac561daf994248ca3e536a2c2eac9b6ec236f13c7" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-1621p-42218-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "rss_server": "http://example.com/autoupdate/genRSS.php", + "rss_server_ssl": "https://example.com/autoupdate/genRSS.php", + "small_info_path": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com/" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS1621+", + "SMBusHddDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS1621+ v7.0.1-42218 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS1621+ v7.0.1-42218 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS1621+/7.0.1-42218/zImage-001-1621p-42218-ramdisk-and-flag-NOP.bsp b/config/DS1621+/7.0.1-42218/zImage-001-1621p-42218-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..13a364ea4 Binary files /dev/null and b/config/DS1621+/7.0.1-42218/zImage-001-1621p-42218-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DS1621+/7.1.0-42621/config.json b/config/DS1621+/7.1.0-42621/config.json new file mode 100644 index 000000000..bc29c023a --- /dev/null +++ b/config/DS1621+/7.1.0-42621/config.json @@ -0,0 +1,120 @@ +{ + "os": { + "id": "ds1621p_42621", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS1621%2B_42621.pat", + "sha256": "7d0e3a58ad8654e31bb8603a3e60b98067eee8d548b5abd25eec1c9d5f269280" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "9e723449cd1840e71403a76011dda0830096867ce8e61cafb331689af4c1620e" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "a5ba4e2e5074743f74eb970280b308b2fd3be9e8786aba8c40cd1be27f284d26" + }, + "vmlinux": { + "sha256": "112aab2e68fd6d687ea1ff38a94fc584546ace3a6b451827317ecb70377d43e5" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-1621p-42621-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "rss_server": "http://example.com/autoupdate/genRSS.php", + "rss_server_ssl": "https://example.com/autoupdate/genRSS.php", + "small_info_path": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com/" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS1621+", + "SMBusHddDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS1621+ v7.1.0-42621 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS1621+ v7.1.0-42621 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS1621+/7.1.0-42621/zImage-001-1621p-42621-ramdisk-and-flag-NOP.bsp b/config/DS1621+/7.1.0-42621/zImage-001-1621p-42621-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..ef2e72c66 Binary files /dev/null and b/config/DS1621+/7.1.0-42621/zImage-001-1621p-42621-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DS1621+/7.1.0-42661/config.json b/config/DS1621+/7.1.0-42661/config.json new file mode 100644 index 000000000..255ee52ac --- /dev/null +++ b/config/DS1621+/7.1.0-42661/config.json @@ -0,0 +1,120 @@ +{ + "os": { + "id": "ds1621p_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DS1621%2B_42661.pat", + "sha256": "381077302a89398a9fb5ec516217578d6f33b0219fe95135e80fd93cddbf88c4" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "d939b5937be00a644aae64c33633619a7c310433e60a515c77bbef00b0a7e6b6" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "8fd5eb40fb088af97d3beee85b6275c2ceb368b08453eb5a5d00d42cc7d578d1" + }, + "vmlinux": { + "sha256": "2df11d9f0b383da1eb34606770e55391f974f9cbc096127fe6a821ecd644e05a" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-1621p-42661-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "rss_server": "http://example.com/autoupdate/genRSS.php", + "rss_server_ssl": "https://example.com/autoupdate/genRSS.php", + "small_info_path": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com/" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS1621+", + "SMBusHddDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS1621+ v7.1.0-42661 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS1621+ v7.1.0-42661 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS1621+/7.1.0-42661/config.json.update0 b/config/DS1621+/7.1.0-42661/config.json.update0 new file mode 100644 index 000000000..53e2a3028 --- /dev/null +++ b/config/DS1621+/7.1.0-42661/config.json.update0 @@ -0,0 +1,120 @@ +{ + "os": { + "id": "ds1621p_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661/DSM_DS1621%2B_42661.pat", + "sha256": "f23d6a74c90bf2184fb7b25c0f55169478fba04927b4ca7b81754cc2d4eee27a" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "d939b5937be00a644aae64c33633619a7c310433e60a515c77bbef00b0a7e6b6" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "8fd5eb40fb088af97d3beee85b6275c2ceb368b08453eb5a5d00d42cc7d578d1" + }, + "vmlinux": { + "sha256": "2df11d9f0b383da1eb34606770e55391f974f9cbc096127fe6a821ecd644e05a" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-1621p-42661-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "rss_server": "http://example.com/autoupdate/genRSS.php", + "rss_server_ssl": "https://example.com/autoupdate/genRSS.php", + "small_info_path": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com/" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS1621+", + "SMBusHddDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS1621+ v7.1.0-42661 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS1621+ v7.1.0-42661 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS1621+/7.1.0-42661/zImage-001-1621p-42661-ramdisk-and-flag-NOP.bsp b/config/DS1621+/7.1.0-42661/zImage-001-1621p-42661-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..a81127666 Binary files /dev/null and b/config/DS1621+/7.1.0-42661/zImage-001-1621p-42661-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DS2422+/7.0.1-42218/config.json b/config/DS2422+/7.0.1-42218/config.json new file mode 100644 index 000000000..0117b3993 --- /dev/null +++ b/config/DS2422+/7.0.1-42218/config.json @@ -0,0 +1,135 @@ +{ + "os": { + "id": "ds2422p_42218", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS2422%2B_42218.pat", + "sha256": "415c54934d483a2557500bc3a2e74588a0cec1266e1f0d9a82a7d3aace002471" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "38281a90036fffcb41cd17f05a6c7e9a1d5740a78c135980fb0c3a6d0ca1485f" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "2b5b8dd90b2e6020ffccc2719d8bc16d9935421754a8c088d6b31dbca4e4ff7b" + }, + "vmlinux": { + "sha256": "" + } + }, + + "patches": { + "zlinux": [ + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "rss_server": "http://example.com/autoupdate/genRSS.php", + "rss_server_ssl": "https://example.com/autoupdate/genRSS.php", + "small_info_path": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com/" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS2422+", + "SMBusHddDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS2422+ v7.0.1-42218 Jun mod (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,2)", + "echo Loading Linux...", + "linux /bzImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rootfs.lzma", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS2422+ v7.0.1-42218 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS2422+ v7.0.1-42218 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS3615xs/7.0-41222/config.json b/config/DS3615xs/7.0-41222/config.json index 96d7d5b1c..d96eb1e0a 100644 --- a/config/DS3615xs/7.0-41222/config.json +++ b/config/DS3615xs/7.0-41222/config.json @@ -65,6 +65,7 @@ "menu_entries": { "RedPill DS3615xs v7.0-41222 Beta (USB, Verbose)": { "options": [ + "savedefault", "set root=(hd0,msdos1)", "echo Loading Linux...", "linux /zImage @@@CMDLINE@@@", @@ -80,6 +81,7 @@ }, "RedPill DS3615xs v7.0-41222 Beta (SATA, Verbose)": { "options": [ + "savedefault", "set root=(hd0,msdos1)", "echo Loading Linux...", "linux /zImage @@@CMDLINE@@@", diff --git a/config/DS3615xs/7.0.1-42218/config.json b/config/DS3615xs/7.0.1-42218/config.json new file mode 100644 index 000000000..c941673cd --- /dev/null +++ b/config/DS3615xs/7.0.1-42218/config.json @@ -0,0 +1,121 @@ +{ + "os": { + "id": "ds3615xs_42218", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS3615xs_42218.pat", + "sha256": "dddd26891815ddca02d0d53c1d42e8b39058b398a4cc7b49b80c99f851cf0ef7" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "d29b695612710376734cb5c5b5ae4f2d8afc49ffd640387e1c86010f6c7d2c8a" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "4c90c3c7ee25b5fcc651552e80a9364d22823c863c834c5f43e3344a3a68af78" + }, + "vmlinux": { + "sha256": "69569a0703fcd0a3a492dd1066eb6c3b90ea41e5793a5eac960d27b6f3afa916" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3615xs-42218-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + "synoinfo": { + "maxdisks": "15", + "internalportcfg": "0x78FF", + "esataportcfg": "0x0", + "usbportcfg": "0x8700", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3615xs", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3615xs v7.0.1-42218 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3615xs v7.0.1-42218 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v3.10.108.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS3615xs/7.0.1-42218/zImage-001-3615xs-42218-ramdisk-and-header.bsp b/config/DS3615xs/7.0.1-42218/zImage-001-3615xs-42218-ramdisk-and-header.bsp new file mode 100644 index 000000000..edea27292 Binary files /dev/null and b/config/DS3615xs/7.0.1-42218/zImage-001-3615xs-42218-ramdisk-and-header.bsp differ diff --git a/config/DS3615xs/7.1.0-42621/config.json b/config/DS3615xs/7.1.0-42621/config.json new file mode 100644 index 000000000..9ce2dcd70 --- /dev/null +++ b/config/DS3615xs/7.1.0-42621/config.json @@ -0,0 +1,121 @@ +{ + "os": { + "id": "ds3615xs_42621", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS3615xs_42621.pat", + "sha256": "565c92f9b978b645a04bd5157f50af2b84b2cf78ea8516d3b3143d7e40c7fd82" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "d3823938bfd0d05c2b7d9b4b9c779babaeae881c676a002953f7e964ff012ec3" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "ed5589af82ce5b486fb1da69e4eb090a16c15eab2d0e85d057ce476852ffb88b" + }, + "vmlinux": { + "sha256": "f4591912305fb7ed315c7bdf519bd1fe98d08673a79dd069049e506be80a12dc" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3615xs-42621-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + "synoinfo": { + "maxdisks": "15", + "internalportcfg": "0x78FF", + "esataportcfg": "0x0", + "usbportcfg": "0x8700", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3615xs", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3615xs v7.1.0-42621 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3615xs v7.1.0-42621 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v3.10.108.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS3615xs/7.1.0-42621/zImage-001-3615xs-42621-ramdisk-and-header.bsp b/config/DS3615xs/7.1.0-42621/zImage-001-3615xs-42621-ramdisk-and-header.bsp new file mode 100644 index 000000000..8ba2af729 Binary files /dev/null and b/config/DS3615xs/7.1.0-42621/zImage-001-3615xs-42621-ramdisk-and-header.bsp differ diff --git a/config/DS3615xs/7.1.0-42661/config.json b/config/DS3615xs/7.1.0-42661/config.json new file mode 100644 index 000000000..9cc429eef --- /dev/null +++ b/config/DS3615xs/7.1.0-42661/config.json @@ -0,0 +1,121 @@ +{ + "os": { + "id": "ds3615xs_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DS3615xs_42661.pat", + "sha256": "1e95d8c63981bcf42ea2eaedfbc7acc4248ff16d129344453b7479953f9ad145" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "3017542c92232cb5477b0e11d82d708a9909320350b1740aab58359e85f82351" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "8ee5df65bcfd25c3d1999262153dcff625714d98789bc8065e217773f8d070d8" + }, + "vmlinux": { + "sha256": "ad4f98ed70ef9e69221630ef360713713861402befe8485907353b285a5401cc" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3615xs-42661-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + "synoinfo": { + "maxdisks": "15", + "internalportcfg": "0x78FF", + "esataportcfg": "0x0", + "usbportcfg": "0x8700", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3615xs", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3615xs v7.1.0-42661 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3615xs v7.1.0-42661 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v3.10.108.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS3615xs/7.1.0-42661/config.json.update0 b/config/DS3615xs/7.1.0-42661/config.json.update0 new file mode 100644 index 000000000..b0061158a --- /dev/null +++ b/config/DS3615xs/7.1.0-42661/config.json.update0 @@ -0,0 +1,121 @@ +{ + "os": { + "id": "ds3615xs_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661/DSM_DS3615xs_42661.pat", + "sha256": "e5b708c9340219f657b2eaf6c0fc1c375613c7d4661e185e25bb6deb8aba32d8" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "3017542c92232cb5477b0e11d82d708a9909320350b1740aab58359e85f82351" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "8ee5df65bcfd25c3d1999262153dcff625714d98789bc8065e217773f8d070d8" + }, + "vmlinux": { + "sha256": "ad4f98ed70ef9e69221630ef360713713861402befe8485907353b285a5401cc" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3615xs-42661-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + "synoinfo": { + "maxdisks": "15", + "internalportcfg": "0x78FF", + "esataportcfg": "0x0", + "usbportcfg": "0x8700", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3615xs", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3615xs v7.1.0-42661 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3615xs v7.1.0-42661 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v3.10.108.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS3615xs/7.1.0-42661/zImage-001-3615xs-42661-ramdisk-and-header.bsp b/config/DS3615xs/7.1.0-42661/zImage-001-3615xs-42661-ramdisk-and-header.bsp new file mode 100644 index 000000000..7934e2117 Binary files /dev/null and b/config/DS3615xs/7.1.0-42661/zImage-001-3615xs-42661-ramdisk-and-header.bsp differ diff --git a/config/DS3617xs/6.2.4-25556/config.json b/config/DS3617xs/6.2.4-25556/config.json new file mode 100644 index 000000000..41e0469c1 --- /dev/null +++ b/config/DS3617xs/6.2.4-25556/config.json @@ -0,0 +1,117 @@ +{ + "os": { + "id": "ds3615xs_25556", + "pat_url": "https://global.download.synology.com/download/DSM/release/6.2.4/25556/DSM_DS3615xs_25556.pat", + "sha256": "c817adb5c8f7e34dd5fd939da1102deddd80fbc4aad6e01b0aea8a8471c0009b" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "d36be7f6a223b29f5643530f39ff1d974dbd0aea0f826f6193b4c354e58e85b1" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "0873eb295f2a479f22af718291e7a89b8f953e687b3707a2d9cac2d2b1b2cdf4" + }, + "vmlinux": { + "sha256": "0145d5e0cbe7cbb27a022f92884419c843045f278db1cbb5af34f9bf6b4220be" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-3615xs-25556-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/ramdisk-002-init-script-OLD-name.patch", + "@@@COMMON@@@/ramdisk-003-post-init-script-LOWER.patch" + ] + }, + "synoinfo": { + "maxdisks": "15", + "internalportcfg": "0x78FF", + "esataportcfg": "0x0", + "usbportcfg": "0x8700", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3615xs", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "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 /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "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 /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": true, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v3.10.105.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS3617xs/6.2.4-25556/zImage-001-3615xs-25556-ramdisk-and-header.bsp b/config/DS3617xs/6.2.4-25556/zImage-001-3615xs-25556-ramdisk-and-header.bsp new file mode 100644 index 000000000..70ddc24bb Binary files /dev/null and b/config/DS3617xs/6.2.4-25556/zImage-001-3615xs-25556-ramdisk-and-header.bsp differ diff --git a/config/DS3617xs/7.0-41222/config.json b/config/DS3617xs/7.0-41222/config.json new file mode 100644 index 000000000..d96eb1e0a --- /dev/null +++ b/config/DS3617xs/7.0-41222/config.json @@ -0,0 +1,118 @@ +{ + "os": { + "id": "ds3615xs_41222", + "pat_url": "https://global.download.synology.com/download/DSM/beta/7.0/41222/DSM_DS3615xs_41222.pat", + "sha256": "fe3ce1a783d3fdf86e01810658da3e1a4f563560129b988cf0036a052c8dc891" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "fe50f8b5a4cd263398e95f33dea08b4d568ef43f7aa22c808ddc2b86c3c2d90b" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "bdde82e6b79048a860349abe566424ee00c731e00f28e0b4532b427132c14c1a" + }, + "vmlinux": { + "sha256": "65fdebe9b699f4b5482932df0ae0abb14ef38235a794ef8d651791b4fd08047e" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3615xs-41222-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/ramdisk-002-init-script-OLD-name.patch", + "@@@COMMON@@@/ramdisk-003-post-init-script-UPPER.patch" + ] + }, + "synoinfo": { + "maxdisks": "15", + "internalportcfg": "0x78FF", + "esataportcfg": "0x0", + "usbportcfg": "0x8700", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3615xs", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3615xs v7.0-41222 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3615xs v7.0-41222 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v3.10.108.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS3617xs/7.0-41222/zImage-001-3615xs-41222-ramdisk-and-header.bsp b/config/DS3617xs/7.0-41222/zImage-001-3615xs-41222-ramdisk-and-header.bsp new file mode 100644 index 000000000..9a055dfb4 Binary files /dev/null and b/config/DS3617xs/7.0-41222/zImage-001-3615xs-41222-ramdisk-and-header.bsp differ diff --git a/config/DS3617xs/7.1.0-42621/config.json b/config/DS3617xs/7.1.0-42621/config.json new file mode 100644 index 000000000..ef47d8eed --- /dev/null +++ b/config/DS3617xs/7.1.0-42621/config.json @@ -0,0 +1,119 @@ +{ + "os": { + "id": "ds3617xs_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661/DSM_DS3617xs_42661.pat", +"sha256": "f298acd7c763b680ecfde0edf729cf355c52574ffb3045a5a0a79493889bfb43" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "9598f66b75e5b303e571241696e02fe7c0add80f13564f8c6b8c0daaf3cb3018" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "da3c2a170fea24052d817cbc4bb5b610a5b05288758d746b60a294ed614239fb" + }, + "vmlinux": { + "sha256": "66283dbcf093a8aa29532b8dd24c71c2b78052194ad3bd4e5352cef0247037a1" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3617xs-42661-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/ramdisk-002-init-script-NEW-name.patch", + "@@@COMMON@@@/ramdisk-003-post-init-script-UPPER.patch" + ] + }, + "synoinfo": { + "maxdisks": "15", + "internalportcfg": "0x78FF", + "esataportcfg": "0x0", + "usbportcfg": "0x8700", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3617xs", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3617xs v7.1-42661 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3617xs v7.1-42661 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@EXT@@@/patches/70-cpufreq-kernel.conf": "/lib/modules-load.d/70-cpufreq-kernel.conf", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS3617xs/7.1.0-42661/config.json b/config/DS3617xs/7.1.0-42661/config.json new file mode 100644 index 000000000..1c62646eb --- /dev/null +++ b/config/DS3617xs/7.1.0-42661/config.json @@ -0,0 +1,118 @@ + +{ + "os": { + "id": "ds3617xs_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DS3617xs_42661.pat", +"sha256": "0a5a243109098587569ab4153923f30025419740fb07d0ea856b06917247ab5c" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "9598f66b75e5b303e571241696e02fe7c0add80f13564f8c6b8c0daaf3cb3018" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "da3c2a170fea24052d817cbc4bb5b610a5b05288758d746b60a294ed614239fb" + }, + "vmlinux": { + "sha256": "66283dbcf093a8aa29532b8dd24c71c2b78052194ad3bd4e5352cef0247037a1" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3617xs-42661-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/ramdisk-002-init-script-NEW-name.patch", + "@@@COMMON@@@/ramdisk-003-post-init-script-UPPER.patch" + ] + }, + "synoinfo": { + "maxdisks": "15", + "internalportcfg": "0x78FF", + "esataportcfg": "0x0", + "usbportcfg": "0x8700", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3617xs", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3617xs v7.1-42661 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3617xs v7.1-42661 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DS3617xs/7.1.0-42661/config.json.update0 b/config/DS3617xs/7.1.0-42661/config.json.update0 new file mode 100644 index 000000000..e5c8d1a29 --- /dev/null +++ b/config/DS3617xs/7.1.0-42661/config.json.update0 @@ -0,0 +1,118 @@ + +{ + "os": { + "id": "ds3617xs_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661/DSM_DS3617xs_42661.pat", +"sha256": "f298acd7c763b680ecfde0edf729cf355c52574ffb3045a5a0a79493889bfb43" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "9598f66b75e5b303e571241696e02fe7c0add80f13564f8c6b8c0daaf3cb3018" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "da3c2a170fea24052d817cbc4bb5b610a5b05288758d746b60a294ed614239fb" + }, + "vmlinux": { + "sha256": "66283dbcf093a8aa29532b8dd24c71c2b78052194ad3bd4e5352cef0247037a1" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3617xs-42661-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/ramdisk-002-init-script-NEW-name.patch", + "@@@COMMON@@@/ramdisk-003-post-init-script-UPPER.patch" + ] + }, + "synoinfo": { + "maxdisks": "15", + "internalportcfg": "0x78FF", + "esataportcfg": "0x0", + "usbportcfg": "0x8700", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3617xs", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3617xs v7.1-42661 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3617xs v7.1-42661 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DS3617xs/7.1.0-42661/zImage-001-3617xs-42661-ramdisk-and-header.bsp b/config/DS3617xs/7.1.0-42661/zImage-001-3617xs-42661-ramdisk-and-header.bsp new file mode 100644 index 000000000..191a3af33 Binary files /dev/null and b/config/DS3617xs/7.1.0-42661/zImage-001-3617xs-42661-ramdisk-and-header.bsp differ diff --git a/config/DS3622xs+/7.0.1-42218/zImage-001-3622xs+-42218-ramdisk-and-header.bsp b/config/DS3622xs+/7.0.1-42218/zImage-001-3622xs+-42218-ramdisk-and-header.bsp new file mode 100644 index 000000000..7e4c1d2d9 Binary files /dev/null and b/config/DS3622xs+/7.0.1-42218/zImage-001-3622xs+-42218-ramdisk-and-header.bsp differ diff --git a/config/DS3622xs+/7.0.1-42218/zImage-001-3622xsp-42218-ramdisk-and-header.bsp b/config/DS3622xs+/7.0.1-42218/zImage-001-3622xsp-42218-ramdisk-and-header.bsp new file mode 100644 index 000000000..7e4c1d2d9 Binary files /dev/null and b/config/DS3622xs+/7.0.1-42218/zImage-001-3622xsp-42218-ramdisk-and-header.bsp differ diff --git a/config/DS3622xs+/7.1.0-42550/config.json b/config/DS3622xs+/7.1.0-42550/config.json new file mode 100644 index 000000000..b7d0d21ce --- /dev/null +++ b/config/DS3622xs+/7.1.0-42550/config.json @@ -0,0 +1,134 @@ +{ + "os": { + "id": "ds3622xsp_42550", +<<<<<<< HEAD + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS3622xs%2B_42550.pat", +======= + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42550/DSM_DS3622xs%2B_42550.pat", +>>>>>>> develop + "sha256": "30d1e57db3062e50275021c9550f650c54b9553c791b4d425634728f6b075040" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "e76c6f4e885df659698c5cb2dbba4749797dfa066260f72b62bcea6c9a0ed8b9" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "77d06a64e80e1b79af34a4b3df13de02b3ec76ec0864012bfb6e41e69ab9545c" + }, + "vmlinux": { + "sha256": "8eecca448a6bea9a22e9488143212d610db560fe39c438929dd9c0ff49d37fc5" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3622xs+-42550-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 5, + + "syno_hw_version": "DS3622xs+", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3622xs v7.1.0-42550 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3622xs v7.1.0-42550 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DS3622xs+/7.1.0-42550/zImage-001-3622xs+-42550-ramdisk-and-header.bsp b/config/DS3622xs+/7.1.0-42550/zImage-001-3622xs+-42550-ramdisk-and-header.bsp new file mode 100644 index 000000000..26fefcd19 Binary files /dev/null and b/config/DS3622xs+/7.1.0-42550/zImage-001-3622xs+-42550-ramdisk-and-header.bsp differ diff --git a/config/DS3622xs+/7.1.0-42621/config.json b/config/DS3622xs+/7.1.0-42621/config.json new file mode 100644 index 000000000..bc2e7efd3 --- /dev/null +++ b/config/DS3622xs+/7.1.0-42621/config.json @@ -0,0 +1,130 @@ +{ + "os": { + "id": "ds3622xsp_42621", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS3622xs%2B_42621.pat", + "sha256": "45d25c838618fb31b3015a5507449728916a1a7767b5dc4f9870b4c46cac0a5d" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "cda2f32d66ecacd07cf2913f44defe2f60da236f3b4e439317eb025545a82fa4" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "a500f7d8d7dce7ddc013ec6985e4592934fff71cad4ff2a57caa35f94722b21e" + }, + "vmlinux": { + "sha256": "c8412116940b28960bc2acc943a2e78ee87faa2341e7cd80d391dc102217264e" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3622xs+-42621-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 5, + + "syno_hw_version": "DS3622xs+", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3622xs v7.1.0-42621 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3622xs v7.1.0-42621 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DS3622xs+/7.1.0-42621/zImage-001-3622xs+-42621-ramdisk-and-header.bsp b/config/DS3622xs+/7.1.0-42621/zImage-001-3622xs+-42621-ramdisk-and-header.bsp new file mode 100644 index 000000000..afac496b8 Binary files /dev/null and b/config/DS3622xs+/7.1.0-42621/zImage-001-3622xs+-42621-ramdisk-and-header.bsp differ diff --git a/config/DS3622xs+/7.1.0-42661/config.json b/config/DS3622xs+/7.1.0-42661/config.json new file mode 100644 index 000000000..780252aa5 --- /dev/null +++ b/config/DS3622xs+/7.1.0-42661/config.json @@ -0,0 +1,130 @@ +{ + "os": { + "id": "ds3622xsp_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DS3622xs%2B_42661.pat", + "sha256": "53d0a4f1667288b6e890c4fdc48422557ff26ea8a2caede0955c5f45b560cccd" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "e073dd84054f652811e0ae1932af2c7cdbd5fb6e5f18f265097072b8af4605e8" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "df8a055d6bc901229f0ba53ed5b4fe024bdf9a1b42f0c32483adefcdac14db4d" + }, + "vmlinux": { + "sha256": "40915d6222ebbf67eca20256df4b4e13b2f1b982de200e5e9e5474541de0baa0" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3622xs+-42661-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 5, + + "syno_hw_version": "DS3622xs+", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3622xs v7.1.0-42661 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3622xs v7.1.0-42661 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DS3622xs+/7.1.0-42661/config.json.update0 b/config/DS3622xs+/7.1.0-42661/config.json.update0 new file mode 100644 index 000000000..c325d18cd --- /dev/null +++ b/config/DS3622xs+/7.1.0-42661/config.json.update0 @@ -0,0 +1,130 @@ +{ + "os": { + "id": "ds3622xsp_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661/DSM_DS3622xs%2B_42661.pat", + "sha256": "33b58db45bb7440a23a20756cbc37d3b4daa531625d66a085cc24b2b10915321" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "e073dd84054f652811e0ae1932af2c7cdbd5fb6e5f18f265097072b8af4605e8" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "df8a055d6bc901229f0ba53ed5b4fe024bdf9a1b42f0c32483adefcdac14db4d" + }, + "vmlinux": { + "sha256": "40915d6222ebbf67eca20256df4b4e13b2f1b982de200e5e9e5474541de0baa0" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3622xs+-42661-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 5, + + "syno_hw_version": "DS3622xs+", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3622xs v7.1.0-42661 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3622xs v7.1.0-42661 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DS3622xs+/7.1.0-42661/zImage-001-3622xs+-42661-ramdisk-and-header.bsp b/config/DS3622xs+/7.1.0-42661/zImage-001-3622xs+-42661-ramdisk-and-header.bsp new file mode 100644 index 000000000..19122b3aa Binary files /dev/null and b/config/DS3622xs+/7.1.0-42661/zImage-001-3622xs+-42661-ramdisk-and-header.bsp differ diff --git a/config/DS918+/6.2.4-25556/config.json b/config/DS918+/6.2.4-25556/config.json index 7ce91bcd6..39e627257 100644 --- a/config/DS918+/6.2.4-25556/config.json +++ b/config/DS918+/6.2.4-25556/config.json @@ -113,7 +113,8 @@ }, "bootp1_copy": { "@@@PAT@@@/GRUB_VER": "GRUB_VER", - "@@@COMMON@@@/EFI": "EFI" + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" }, "bootp2_copy": { "@@@PAT@@@/GRUB_VER": "GRUB_VER", diff --git a/config/DS918+/7.0-41890/config.json b/config/DS918+/7.0-41890/config.json index f77859f36..5f2b2c314 100644 --- a/config/DS918+/7.0-41890/config.json +++ b/config/DS918+/7.0-41890/config.json @@ -113,7 +113,8 @@ }, "bootp1_copy": { "@@@PAT@@@/GRUB_VER": "GRUB_VER", - "@@@COMMON@@@/EFI": "EFI" + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" }, "bootp2_copy": { "@@@PAT@@@/GRUB_VER": "GRUB_VER", diff --git a/config/DS918+/7.0.1-42218/config.json b/config/DS918+/7.0.1-42218/config.json new file mode 100644 index 000000000..4f946be3f --- /dev/null +++ b/config/DS918+/7.0.1-42218/config.json @@ -0,0 +1,128 @@ +{ + "os": { + "id": "ds918p_42218", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS918%2B_42218.pat", + "sha256": "a403809ab2cd476c944fdfa18cae2c2833e4af36230fa63f0cdee31a92bebba2" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "338ba514066da01d0c1f770418916b9b96f5355d88a7b55b398d2726db591fdb" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "4b7a7a271a3b2158d9193a4f0e75c59590949ad7b4e26d546f46cc2ee8504d51" + }, + "vmlinux": { + "sha256": "e5eea089bcb76dc6dce6476be43a4e64c8acd52ba8b9c095a7d165acf196c529" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-918p-42218-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "maxdisks": "16", + "internalportcfg": "0xffff", + "esataportcfg": "0x0", + "HddHotplug": "", + "support_led_brightness_adjustment": "", + "support_leds_lp3943": "", + "buzzeroffen": "0xffff", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS918+", + "syno_hdd_powerup_seq": 1, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS918+ v7.0.1-42218 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS918+ v7.0.1-42218 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS918+/7.0.1-42218/zImage-001-918p-42218-ramdisk-and-flag-NOP.bsp b/config/DS918+/7.0.1-42218/zImage-001-918p-42218-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..483b5fc76 Binary files /dev/null and b/config/DS918+/7.0.1-42218/zImage-001-918p-42218-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DS918+/7.1.0-42621/config.json b/config/DS918+/7.1.0-42621/config.json new file mode 100644 index 000000000..9a29a234d --- /dev/null +++ b/config/DS918+/7.1.0-42621/config.json @@ -0,0 +1,128 @@ +{ + "os": { + "id": "ds918p_42621", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS918%2B_42621.pat", + "sha256": "e7fa975757d5faa6a275b68b130e7fd552263157a39bc71507ea6f2f466bb359" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "872c904a4e7d5d97061ff291646950b81dd72acc532698fb787b27f1e7c85dc5" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "66f68d2d2412871b6591be6ea3dc809e2f8cc0ae34e99cef71aa2e912ed878ba" + }, + "vmlinux": { + "sha256": "552eb51031cf90d40436c5a340e9d67a4f0693329148bc51e3b15b96a9d5c9d2" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-918p-42621-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "maxdisks": "16", + "internalportcfg": "0xffff", + "esataportcfg": "0x0", + "HddHotplug": "", + "support_led_brightness_adjustment": "", + "support_leds_lp3943": "", + "buzzeroffen": "0xffff", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS918+", + "syno_hdd_powerup_seq": 1, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS918+ v7.1.0-42621 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS918+ v7.1.0-42621 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS918+/7.1.0-42621/zImage-001-918p-42621-ramdisk-and-flag-NOP.bsp b/config/DS918+/7.1.0-42621/zImage-001-918p-42621-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..5b57e8c08 Binary files /dev/null and b/config/DS918+/7.1.0-42621/zImage-001-918p-42621-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DS918+/7.1.0-42661/config.json b/config/DS918+/7.1.0-42661/config.json new file mode 100644 index 000000000..f45395ffd --- /dev/null +++ b/config/DS918+/7.1.0-42661/config.json @@ -0,0 +1,128 @@ +{ + "os": { + "id": "ds918p_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DS918%2B_42661.pat", + "sha256": "4e8a9d82a8a1fde5af9a934391080b7bf6b91811d9583acb73b90fb6577e22d7" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "9ce0d3452f08afaf95d52292ff20cbac6d69e17d5b9953377e4ac90c9ac7397d" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "ef8c87b6e68226339e5623d048252f5be3089c0831e41298a4695f2bfa65f00e" + }, + "vmlinux": { + "sha256": "41bc7364440a6e5da0e9740be743f0f9377de6957ca67d9287bf2672d030bcdb" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-918p-42661-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "maxdisks": "16", + "internalportcfg": "0xffff", + "esataportcfg": "0x0", + "HddHotplug": "", + "support_led_brightness_adjustment": "", + "support_leds_lp3943": "", + "buzzeroffen": "0xffff", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS918+", + "syno_hdd_powerup_seq": 1, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS918+ v7.1.0-42661 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS918+ v7.1.0-42661 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS918+/7.1.0-42661/config.json.update0 b/config/DS918+/7.1.0-42661/config.json.update0 new file mode 100644 index 000000000..2ded53603 --- /dev/null +++ b/config/DS918+/7.1.0-42661/config.json.update0 @@ -0,0 +1,128 @@ +{ + "os": { + "id": "ds918p_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661/DSM_DS918%2B_42661.pat", + "sha256": "1fcb4e2bfcea26e381fc6680198158694ee695e6323a5b8cd9aec6cb411bb562" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "9ce0d3452f08afaf95d52292ff20cbac6d69e17d5b9953377e4ac90c9ac7397d" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "ef8c87b6e68226339e5623d048252f5be3089c0831e41298a4695f2bfa65f00e" + }, + "vmlinux": { + "sha256": "41bc7364440a6e5da0e9740be743f0f9377de6957ca67d9287bf2672d030bcdb" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-918p-42661-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "maxdisks": "16", + "internalportcfg": "0xffff", + "esataportcfg": "0x0", + "HddHotplug": "", + "support_led_brightness_adjustment": "", + "support_leds_lp3943": "", + "buzzeroffen": "0xffff", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS918+", + "syno_hdd_powerup_seq": 1, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS918+ v7.1.0-42661 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS918+ v7.1.0-42661 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS918+/7.1.0-42661/zImage-001-918p-42661-ramdisk-and-flag-NOP.bsp b/config/DS918+/7.1.0-42661/zImage-001-918p-42661-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..c170cc787 Binary files /dev/null and b/config/DS918+/7.1.0-42661/zImage-001-918p-42661-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DS920+/7.0.1-42218/config.json b/config/DS920+/7.0.1-42218/config.json new file mode 100644 index 000000000..262ad5aa8 --- /dev/null +++ b/config/DS920+/7.0.1-42218/config.json @@ -0,0 +1,121 @@ +{ + "os": { + "id": "ds920p_42218", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS920%2B_42218.pat", + "sha256": "73053911bd118b432d5a2036dc62d518eed83b78b32c1eb23696d59725a14892" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "74d513aaa3e30d8aa4f80e202d94a68a552e9c0472f8470e133ad29080556f55" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "e39890f4bef2e5e4eea956996b0dd92d081c6d9e7c393331131e65bbad1a17a9" + }, + "vmlinux": { + "sha256": "84e5e1a238e73ffe2ccf08d51e3f9ad13385fcdcac18163678de3f6ad1447bc4" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-920p-42218-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "rss_server": "http://example.com/autoupdate/genRSS.php", + "rss_server_ssl": "https://example.com/autoupdate/genRSS.php", + "small_info_path": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com/" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS920+", + "intel_iommu": "igfx_off", + "HddEnableDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS920+ v7.0.1-42218 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS920+ v7.0.1-42218 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS920+/7.0.1-42218/zImage-001-920p-42218-ramdisk-and-flag-NOP.bsp b/config/DS920+/7.0.1-42218/zImage-001-920p-42218-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..66a7bffb4 Binary files /dev/null and b/config/DS920+/7.0.1-42218/zImage-001-920p-42218-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DS920+/7.1.0-42550/config.json b/config/DS920+/7.1.0-42550/config.json new file mode 100644 index 000000000..12edb50b6 --- /dev/null +++ b/config/DS920+/7.1.0-42550/config.json @@ -0,0 +1,125 @@ +{ + "os": { + "id": "ds920p_42550", +<<<<<<< HEAD + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS920%2B_42621.pat", +======= + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42550/DSM_DS920%2B_42550.pat", +>>>>>>> develop + "sha256": "41d787bc518c24ba2a044fbe7888738c61a719762628af68ad4b81a870b24f82" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "8f99916a0f5ee0c28fe415ff3aa6587efb1dbd25829c5e74de1b7cd1db8d0b54" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "f220a687f37f16a942f53e7d99bbd30ea440d1ce7ad9dd1b77f85df0019a6c61" + }, + "vmlinux": { + "sha256": "6a5a04759407fbcf728b25d4a66229dc37e1ddc3445b5886cefe5cb2b8157480" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-920p-42550-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "rss_server": "http://example.com/autoupdate/genRSS.php", + "rss_server_ssl": "https://example.com/autoupdate/genRSS.php", + "small_info_path": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com/" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS920+", + "intel_iommu": "igfx_off", + "HddEnableDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS920+ v7.1-42550 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS920+ v7.1-42550 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS920+/7.1.0-42550/zImage-001-920p-42550-ramdisk-and-flag-NOP.bsp b/config/DS920+/7.1.0-42550/zImage-001-920p-42550-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..9c332d2c9 Binary files /dev/null and b/config/DS920+/7.1.0-42550/zImage-001-920p-42550-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DS920+/7.1.0-42621/7.1-42621/config.json b/config/DS920+/7.1.0-42621/7.1-42621/config.json new file mode 100644 index 000000000..4fe6d9bb3 --- /dev/null +++ b/config/DS920+/7.1.0-42621/7.1-42621/config.json @@ -0,0 +1,128 @@ +{ + "os": { + "id": "ds920p_42621", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS920%2B_42621.pat", + "sha256": "e7fa975757d5faa6a275b68b130e7fd552263157a39bc71507ea6f2f466bb359" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "19b525fdb8cefa9d581dd51af901937749f8f9ed08fd1ffc7f5a4a331d5b030f" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "999c832388e3c797318188b454582c41adf571e7887d6d67b5f0f7e53d827a0d" + }, + "vmlinux": { + "sha256": "8e8f27b9b042baac94187add8a31b505520ce52d1b6174a99d4690f7ce5860c3" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-920p-42621-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "maxdisks": "16", + "internalportcfg": "0xffff", + "esataportcfg": "0x0", + "HddHotplug": "", + "support_led_brightness_adjustment": "", + "support_leds_lp3943": "", + "buzzeroffen": "0xffff", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS920+", + "syno_hdd_powerup_seq": 1, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + + "menu_entries": { + "RedPill DS920+ v7.1.0-42621 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS920+ v7.1.0-42621 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS920+/7.1.0-42621/config.json b/config/DS920+/7.1.0-42621/config.json new file mode 100644 index 000000000..ea826972e --- /dev/null +++ b/config/DS920+/7.1.0-42621/config.json @@ -0,0 +1,129 @@ +{ + "os": { + "id": "ds920p_42621", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS920%2B_42621.pat", + "sha256": "e7fa975757d5faa6a275b68b130e7fd552263157a39bc71507ea6f2f466bb359" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "19b525fdb8cefa9d581dd51af901937749f8f9ed08fd1ffc7f5a4a331d5b030f" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "999c832388e3c797318188b454582c41adf571e7887d6d67b5f0f7e53d827a0d" + }, + "vmlinux": { + "sha256": "8e8f27b9b042baac94187add8a31b505520ce52d1b6174a99d4690f7ce5860c3" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-920p-42621-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "maxdisks": "16", + "internalportcfg": "0xffff", + "esataportcfg": "0x0", + "HddHotplug": "", + "support_led_brightness_adjustment": "", + "support_leds_lp3943": "", + "buzzeroffen": "0xffff", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS920+", + "intel_iommu": "igfx_off", + "HddEnableDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + + }, + + "menu_entries": { + "RedPill DS920+ v7.1.0-42621 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS920+ v7.1.0-42621 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS920+/7.1.0-42621/zImage-001-920p-42621-ramdisk-and-flag-NOP.bsp b/config/DS920+/7.1.0-42621/zImage-001-920p-42621-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..671772fc5 Binary files /dev/null and b/config/DS920+/7.1.0-42621/zImage-001-920p-42621-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DS920+/7.1.0-42661/config.json b/config/DS920+/7.1.0-42661/config.json new file mode 100644 index 000000000..d47ea3a35 --- /dev/null +++ b/config/DS920+/7.1.0-42661/config.json @@ -0,0 +1,129 @@ +{ + "os": { + "id": "ds920p_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DS920%2B_42661.pat", + "sha256": "8076950fdad2ca58ea9b91a12584b9262830fe627794a0c4fc5861f819095261" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "1d0e5b76e08e3483f6bf06d23b5978ec498b855bde23db1f96f343db4c43337d" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "c8ad44826c87e065a3b05f354a639c0a86cb2fa47b88e11949604d53f3e80048" + }, + "vmlinux": { + "sha256": "2be1ae55c3e5e247842257c7dc0a2e1a1b009c53ae5014ab65e7abf369cf119a" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-920p-42661-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "maxdisks": "16", + "internalportcfg": "0xffff", + "esataportcfg": "0x0", + "HddHotplug": "", + "support_led_brightness_adjustment": "", + "support_leds_lp3943": "", + "buzzeroffen": "0xffff", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS920+", + "intel_iommu": "igfx_off", + "HddEnableDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + + }, + + "menu_entries": { + "RedPill DS920+ v7.1.0-42661 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS920+ v7.1.0-42661 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS920+/7.1.0-42661/config.json.update0 b/config/DS920+/7.1.0-42661/config.json.update0 new file mode 100644 index 000000000..092d19d1f --- /dev/null +++ b/config/DS920+/7.1.0-42661/config.json.update0 @@ -0,0 +1,129 @@ +{ + "os": { + "id": "ds920p_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661/DSM_DS920%2B_42661.pat", + "sha256": "126d7b9ffba9444fd1800922e95e5aeff4ffb2f0d0320cf5cb3c079be8624568" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "1d0e5b76e08e3483f6bf06d23b5978ec498b855bde23db1f96f343db4c43337d" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "c8ad44826c87e065a3b05f354a639c0a86cb2fa47b88e11949604d53f3e80048" + }, + "vmlinux": { + "sha256": "2be1ae55c3e5e247842257c7dc0a2e1a1b009c53ae5014ab65e7abf369cf119a" + } + }, + + "patches": { + "zlinux": [ + "zImage-001-920p-42661-ramdisk-and-flag-NOP.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch" + ] + }, + + "synoinfo": { + "maxdisks": "16", + "internalportcfg": "0xffff", + "esataportcfg": "0x0", + "HddHotplug": "", + "support_led_brightness_adjustment": "", + "support_leds_lp3943": "", + "buzzeroffen": "0xffff", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "updateurl": "http://example.com/", + "myds_region_api_base_url": "https://example.com" + }, + + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS920+", + "intel_iommu": "igfx_off", + "HddEnableDynamicPower": 1, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "synoboot2": null, + "elevator": "elevator", + "syno_ttyS0": "serial,0x3f8", + "syno_ttyS1": "serial,0x2f8", + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + + }, + + "menu_entries": { + "RedPill DS920+ v7.1.0-42661 (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS920+ v7.1.0-42661 (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot", + "echo WARNING: SATA boot support on this platform is experimental!" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} + diff --git a/config/DS920+/7.1.0-42661/zImage-001-920p-42661-ramdisk-and-flag-NOP.bsp b/config/DS920+/7.1.0-42661/zImage-001-920p-42661-ramdisk-and-flag-NOP.bsp new file mode 100644 index 000000000..61a45af40 Binary files /dev/null and b/config/DS920+/7.1.0-42661/zImage-001-920p-42661-ramdisk-and-flag-NOP.bsp differ diff --git a/config/DVA3221/7.0.1-42218/config.json b/config/DVA3221/7.0.1-42218/config.json new file mode 100644 index 000000000..491aa89fd --- /dev/null +++ b/config/DVA3221/7.0.1-42218/config.json @@ -0,0 +1,131 @@ +{ + "os": { + "id": "dva3221_42218", + "pat_url": "https://global.synology.com/download/DSM/release/7.0.1/42218/DSM_DVA3221_42218.pat", + "sha256": "01f101d7b310c857e54b0177068fb7250ff722dc9fa2472b1a48607ba40897ee" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "ef97f2d64f3f7f8c5e3f4e8fee613d385d7888826f56e119f1885a722c95c7cc" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "0825958923a5e67d967389769cff5fb7a04a25b98a2826c4c1e8aa7b8146dc8b" + }, + "vmlinux": { + "sha256": "f9abb018c9e5f05db887c9457703d7a985b85f9e73ea3c20ea0b0b2c0b4134e7" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-dav3221-42218-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "supportraidgroup": "no", + "support_syno_hybrid_raid": "yes", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 4, + + "syno_hw_version": "DVA3221", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DVA3221 v7.0.1-42218 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DVA3221 v7.0.1-42218 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DVA3221/7.0.1-42218/zImage-001-dav3221-42218-ramdisk-and-header.bsp b/config/DVA3221/7.0.1-42218/zImage-001-dav3221-42218-ramdisk-and-header.bsp new file mode 100644 index 000000000..818b9c6b4 Binary files /dev/null and b/config/DVA3221/7.0.1-42218/zImage-001-dav3221-42218-ramdisk-and-header.bsp differ diff --git a/config/DVA3221/7.1.0-42621/config.json b/config/DVA3221/7.1.0-42621/config.json new file mode 100644 index 000000000..804621568 --- /dev/null +++ b/config/DVA3221/7.1.0-42621/config.json @@ -0,0 +1,131 @@ +{ + "os": { + "id": "dva3221_42621", + "pat_url": "https://global.synology.com/download/DSM/release/7.0.1/42218/DSM_DVA3221_42218.pat", + "sha256": "bf9f61e78b8367c9b008a3004cb1a795582d1e3132db390ebcb9d6aacc480f23" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "9315ef2235b6e0d1be39c3a5946b6f35079890c9342521a04cd6e3312e28cd53" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "3f44041feb9139c061a30c2c749fa2d65e8d3d59812426104999fed23cefa919" + }, + "vmlinux": { + "sha256": "19997eba9cbb58d92f18e30460f29f9faa254d6a79ba7489754b20ecdce0282b" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-dav3221-42621-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "supportraidgroup": "no", + "support_syno_hybrid_raid": "yes", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 4, + + "syno_hw_version": "DVA3221", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DVA3221 v7.1.0-42621 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DVA3221 v7.1.0-42621 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DVA3221/7.1.0-42621/zImage-001-dav3221-42621-ramdisk-and-header.bsp b/config/DVA3221/7.1.0-42621/zImage-001-dav3221-42621-ramdisk-and-header.bsp new file mode 100644 index 000000000..174ba34b1 Binary files /dev/null and b/config/DVA3221/7.1.0-42621/zImage-001-dav3221-42621-ramdisk-and-header.bsp differ diff --git a/config/DVA3221/7.1.0-42661/config.json b/config/DVA3221/7.1.0-42661/config.json new file mode 100644 index 000000000..21990f553 --- /dev/null +++ b/config/DVA3221/7.1.0-42661/config.json @@ -0,0 +1,131 @@ +{ + "os": { + "id": "dva3221_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DVA3221_42661.pat", + "sha256": "ed3207db40b7bac4d96411378558193b7747ebe88f0fc9c26c59c0b5c688c359" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "5222b5efaf7af28ff3833fd37f13100c30acba1ee201a15b2ee360e66e75b48e" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "0ff061f453bc9888b16c59baaf3617bfa6ee42044122eb1dd0eaaa18b3832381" + }, + "vmlinux": { + "sha256": "08f4b398723e4164ffbdc65c614663c14f76ae8053649f36b5ccea6e976ea6be" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-dav3221-42661-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "supportraidgroup": "no", + "support_syno_hybrid_raid": "yes", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 4, + + "syno_hw_version": "DVA3221", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DVA3221 v7.1.0-42661 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DVA3221 v7.1.0-42661 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DVA3221/7.1.0-42661/config.json.update0 b/config/DVA3221/7.1.0-42661/config.json.update0 new file mode 100644 index 000000000..81a034a2b --- /dev/null +++ b/config/DVA3221/7.1.0-42661/config.json.update0 @@ -0,0 +1,131 @@ +{ + "os": { + "id": "dva3221_42661", + "pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42661/DSM_DVA3221_42661.pat", + "sha256": "de4c39a704f1de227b8ed8cacfe1fb3694553743b3b2f29fc31379d4a2286b2b" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "5222b5efaf7af28ff3833fd37f13100c30acba1ee201a15b2ee360e66e75b48e" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "0ff061f453bc9888b16c59baaf3617bfa6ee42044122eb1dd0eaaa18b3832381" + }, + "vmlinux": { + "sha256": "08f4b398723e4164ffbdc65c614663c14f76ae8053649f36b5ccea6e976ea6be" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-dav3221-42661-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "supportraidgroup": "no", + "support_syno_hybrid_raid": "yes", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 4, + + "syno_hw_version": "DVA3221", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DVA3221 v7.1.0-42661 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DVA3221 v7.1.0-42661 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 2, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/DVA3221/7.1.0-42661/zImage-001-dav3221-42661-ramdisk-and-header.bsp b/config/DVA3221/7.1.0-42661/zImage-001-dav3221-42661-ramdisk-and-header.bsp new file mode 100644 index 000000000..0baa80efd Binary files /dev/null and b/config/DVA3221/7.1.0-42661/zImage-001-dav3221-42661-ramdisk-and-header.bsp differ diff --git a/config/FS6400/7.0.1-42218/config.json b/config/FS6400/7.0.1-42218/config.json new file mode 100644 index 000000000..a40bc4c5f --- /dev/null +++ b/config/FS6400/7.0.1-42218/config.json @@ -0,0 +1,130 @@ +{ + "os": { + "id": "fs6400_42218", + "pat_url": "https://global.synology.com/download/DSM/release/7.0.1/42218/DSM_FS6400_42218.pat", + "sha256": "0e5e15398fb50d21ac52e0fbae199d5bacebc52f04933be5825c710f9de874ea" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "cbed16da4970c41e9b9c6797c57c70b12f55ab497756cb050247d1c155c8a8f6" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "eebaf0236230956fc1a9d8ca8c8f86143da959b631cad9c311152a4e644d17a0" + }, + "vmlinux": { + "sha256": "acfb85617db0fd238449118d0eb27ae51ea996d0ab1c98c303dcfb6bb85e801f" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-FS6400-42218-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + ] + }, + "synoinfo": { + "maxdisks": "25", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "internalportcfg": "0xFFFF", + "esataportcfg": "0x00", + "usbportcfg": "0x10000", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SasIdxMap": "0", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "FS6400", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill FS6400 v7.0.1-42218 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill FS6400 v7.0.1-42218 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/FS6400/7.0.1-42218/zImage-001-FS6400-42218-ramdisk-and-header.bsp b/config/FS6400/7.0.1-42218/zImage-001-FS6400-42218-ramdisk-and-header.bsp new file mode 100644 index 000000000..9e67fe8e8 Binary files /dev/null and b/config/FS6400/7.0.1-42218/zImage-001-FS6400-42218-ramdisk-and-header.bsp differ diff --git a/config/RS4021xs+/7.0.1-42218/config.json b/config/RS4021xs+/7.0.1-42218/config.json new file mode 100644 index 000000000..faedb8e89 --- /dev/null +++ b/config/RS4021xs+/7.0.1-42218/config.json @@ -0,0 +1,131 @@ +{ + "os": { + "id": "rs4021xsp_42218", + "pat_url": "https://global.synology.com/download/DSM/release/7.0.1/42218/DSM_RS4021xs%2B_42218.pat", + "sha256": "a72076b1a5c148e775e9542916e2f07fe18d8676dc7396ed69355a9a0a38b36c" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "17607e1739c8acc9903272ebd981bccb27b51057cdcb3cc446e5c5149db452d3" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "3aa9d810064747fca6d0a3ab4c979bd82b49fc0d166dfe714261c2a22145cc70" + }, + "vmlinux": { + "sha256": "e33e2e92110329eb48d518240c9b1b7169ed7a25f03dd8b2bbfb25b6720c259d" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-4021xs+-42218-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "supportraidgroup": "no", + "support_syno_hybrid_raid": "yes", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 4, + + "syno_hw_version": "RS4021xs+", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill RS4021xs+ v7.0.1-42218 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill RS4021xs+ v7.0.1-42218 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/RS4021xs+/7.0.1-42218/zImage-001-4021xs+-42218-ramdisk-and-header.bsp b/config/RS4021xs+/7.0.1-42218/zImage-001-4021xs+-42218-ramdisk-and-header.bsp new file mode 100644 index 000000000..b6b6d162a Binary files /dev/null and b/config/RS4021xs+/7.0.1-42218/zImage-001-4021xs+-42218-ramdisk-and-header.bsp differ diff --git a/config/RS4021xs+/7.1.0-42550/config.json b/config/RS4021xs+/7.1.0-42550/config.json new file mode 100644 index 000000000..8b6694e97 --- /dev/null +++ b/config/RS4021xs+/7.1.0-42550/config.json @@ -0,0 +1,135 @@ +{ + "os": { + "id": "ds3622xsp_42550", +<<<<<<< HEAD + "pat_url": "https://global.synology.com/download/DSM/release/7.0.1/42218/DSM_RS4021xs%2B_42218.pat", +======= + "pat_url": "https://global.synology.com/download/DSM/release/7.1/42550/DSM_RS4021xs%2B_42550.pat", +>>>>>>> develop + "sha256": "30d1e57db3062e50275021c9550f650c54b9553c791b4d425634728f6b075040" + }, + + "files": { + "zlinux": { + "name": "zImage", + "sha256": "e76c6f4e885df659698c5cb2dbba4749797dfa066260f72b62bcea6c9a0ed8b9" + }, + "ramdisk": { + "name": "rd.gz", + "sha256": "77d06a64e80e1b79af34a4b3df13de02b3ec76ec0864012bfb6e41e69ab9545c" + }, + "vmlinux": { + "sha256": "8eecca448a6bea9a22e9488143212d610db560fe39c438929dd9c0ff49d37fc5" + } + }, + + "patches": { + "_comment": ".bsp patches are applied to FILES using bspatch(1); .patch are applied to DIRECTORIES using patch(1)", + "zlinux": [ + "zImage-001-3622xs+-42550-ramdisk-and-header.bsp" + ], + "ramdisk": [ + "@@@COMMON@@@/ramdisk-001-disable-root-pwd.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-002-init-script.patch", + "@@@COMMON@@@/v7.0.1/ramdisk-003-post-init-script.patch", + "@@@COMMON@@@/ramdisk-004-network-hosts.patch" + ] + }, + "synoinfo": { + "maxdisks": "24", + "support_bde_internal_10g": "no", + "support_disk_compatibility": "no", + "supportraidgroup": "no", + "support_syno_hybrid_raid": "yes", + "internalportcfg": "0xfffff", + "SasIdxMap": "0", + "esataportcfg": "0x00", + "rss_server": "http://example.com/null.xml", + "rss_server_ssl": "https://example.com/null.xml", + "small_info_path": "https://example.com/null", + "rss_server_v2": "https://example.com/autoupdate/v2/getList", + "security_version_server": "https://example.com/smallupdate", + "updateurl": "http://example.com/", + "update_server": "http://example.com/", + "update_server_ssl": "https//example.com/", + "myds_region_api_base_url": "https://example.com" + }, + "grub": { + "template": "@@@COMMON@@@/grub-template.conf", + "base_cmdline": { + "sn": "", + "vid": "0x46f4", + "pid": "0x0001", + "SataPortMap": "1", + "DiskIdxMap": "0", + "mac1": "", + "netif_num": 1, + + "syno_hw_version": "DS3622xs+", + "syno_hdd_powerup_seq": 0, + "HddHotplug": 0, + "vender_format_version": 2, + "console": "ttyS0,115200n8", + "withefi": null, + "elevator": "elevator", + "syno_port_thaw": 1, + "syno_hdd_detect": 0, + "root": "/dev/md0", + "earlycon": "uart8250,io,0x3f8,115200n8" + }, + "menu_entries": { + "RedPill DS3622xs v7.1.0-42550 Beta (USB, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with USB boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "log_buf_len": "32M" + } + }, + "RedPill DS3622xs v7.1.0-42550 Beta (SATA, Verbose)": { + "options": [ + "savedefault", + "set root=(hd0,msdos1)", + "echo Loading Linux...", + "linux /zImage @@@CMDLINE@@@", + "echo Loading initramfs...", + "initrd /rd.gz /custom.gz", + "echo Starting kernel with SATA boot" + ], + "cmdline": { + "earlyprintk": null, + "loglevel": 15, + "synoboot_satadom": 1, + "log_buf_len": "32M" + } + } + } + }, + "extra": { + "compress_rd": false, + "ramdisk_copy": { + "@@@EXT@@@/rp-lkm/redpill-linux-v4.4.180+.ko": "usr/lib/modules/rp.ko", + "@@@COMMON@@@/iosched-trampoline.sh": "usr/sbin/modprobe" + }, + "bootp1_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.conf": "EFI/BOOT/", + "@@@COMMON@@@/EFI/boot/SynoBootLoader.efi": "EFI/BOOT/" + }, + "bootp2_copy": { + "@@@PAT@@@/GRUB_VER": "GRUB_VER", + "@@@COMMON@@@/EFI": "EFI", + "@@@PAT@@@/grub_cksum.syno": "grub_cksum.syno", + "@@@PAT@@@/rd.gz": "rd.gz", + "@@@PAT@@@/zImage": "zImage" + } + } +} diff --git a/config/RS4021xs+/7.1.0-42550/zImage-001-3622xs+-42550-ramdisk-and-header.bsp b/config/RS4021xs+/7.1.0-42550/zImage-001-3622xs+-42550-ramdisk-and-header.bsp new file mode 100644 index 000000000..26fefcd19 Binary files /dev/null and b/config/RS4021xs+/7.1.0-42550/zImage-001-3622xs+-42550-ramdisk-and-header.bsp differ diff --git a/config/_common/grub-template.conf b/config/_common/grub-template.conf index 16f6716bf..ad6ec1d59 100644 --- a/config/_common/grub-template.conf +++ b/config/_common/grub-template.conf @@ -45,4 +45,17 @@ 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 + @@@MENU_ENTRIES@@@ diff --git a/config/_common/jun/init b/config/_common/jun/init new file mode 100755 index 000000000..b4dca1135 --- /dev/null +++ b/config/_common/jun/init @@ -0,0 +1,3 @@ +#!/bin/sh +/bin/patch --no-backup-if-mismatch -p1 < /etc/jun.patch +exec /bin/busybox init diff --git a/config/_common/jun/usr/bin/patch b/config/_common/jun/usr/bin/patch new file mode 100755 index 000000000..6a5d10ee0 Binary files /dev/null and b/config/_common/jun/usr/bin/patch differ diff --git a/config/_common/ramdisk-003-post-init-script-LOWER.patch b/config/_common/ramdisk-003-post-init-script-LOWER.patch index 4d176fa35..edccb90dd 100644 --- a/config/_common/ramdisk-003-post-init-script-LOWER.patch +++ b/config/_common/ramdisk-003-post-init-script-LOWER.patch @@ -6,7 +6,7 @@ functions or quotes in v7, to make diffing and management of these patches easie +++ b/usr/sbin/init.post @@ -18,5 +18,28 @@ fi - Mmount $RootDevice /tmpRoot -o barrier=1 + mount $RootDevice /tmpRoot -o barrier=1 +############################################################################################ +SED_PATH='/tmpRoot/usr/bin/sed' diff --git a/config/_common/ramdisk-004-network-hosts.patch b/config/_common/ramdisk-004-network-hosts.patch new file mode 100644 index 000000000..b6c953b68 --- /dev/null +++ b/config/_common/ramdisk-004-network-hosts.patch @@ -0,0 +1,8 @@ +--- /etc/hosts ++++ /etc/hosts +@@ -2,3 +2,5 @@ + # that require network functionality will fail. + 127.0.0.1 localhost + ::1 localhost ++127.0.0.1 update7.synology.com ++127.0.0.1 dataupdate7.synology.com diff --git a/config/_common/v7.0.1/ramdisk-002-init-script.patch b/config/_common/v7.0.1/ramdisk-002-init-script.patch new file mode 100644 index 000000000..2e125f346 --- /dev/null +++ b/config/_common/v7.0.1/ramdisk-002-init-script.patch @@ -0,0 +1,11 @@ +--- a/linuxrc.syno.impl ++++ b/linuxrc.syno.impl +@@ -155,6 +155,8 @@ fi + # insert basic USB modules for detect f401/FDT + echo "Insert basic USB modules..." + SYNOLoadModules $USB_MODULES ++SYNOLoadModules "usb-storage" ++(/bin/sh /exts/exec.sh load_kmods && /bin/sh /exts/exec.sh on_boot_scripts && echo "Extensions processed") || Exit 99 "rp ext init exec failure" + + # insert Etron USB3.0 drivers + diff --git a/config/_common/v7.0.1/ramdisk-003-post-init-script.patch b/config/_common/v7.0.1/ramdisk-003-post-init-script.patch new file mode 100644 index 000000000..9caf418bc --- /dev/null +++ b/config/_common/v7.0.1/ramdisk-003-post-init-script.patch @@ -0,0 +1,32 @@ +--- a/usr/sbin/init.post ++++ b/usr/sbin/init.post +@@ -18,6 +18,29 @@ if [ "$UniqueRD" = "nextkvmx64" ]; then + fi + Mount "$RootDevice" /tmpRoot -o barrier=1 + ++############################################################################################ ++SED_PATH='/tmpRoot/usr/bin/sed' ++ ++@@@CONFIG-MANIPULATORS-TOOLS@@@ ++ ++@@@CONFIG-GENERATED@@@ ++ ++UPSTART="/tmpRoot/usr/share/init" ++ ++if ! echo; then ++ _replace_in_file '^start on' '#start on' $UPSTART/tty.conf ++ _replace_in_file "console output" "console none" $UPSTART/syno_poweroff_task.conf ++ _replace_in_file "console output" "console none" $UPSTART/burnin_loader.conf ++ _replace_in_file "console output" "console none" $UPSTART/udevtrigger.conf ++ _replace_in_file "console output" "console none" $UPSTART/bs-poweroff.conf ++ _replace_in_file "console output" "console none" $UPSTART/udevd.conf ++else ++ _replace_in_file '^#start on' 'start on' $UPSTART/tty.conf ++fi ++ ++(/bin/sh /exts/exec.sh on_os_load_scripts && echo "OS load extensions processed") || Exit 99 "rp ext post exec failure" ++############################################################################################ ++ + Mkdir -p /tmpRoot/initrd + + Umount /proc >/dev/null 2>&1 diff --git a/config/_common/v7.0.1/ramdisk-004-network-hosts.patch b/config/_common/v7.0.1/ramdisk-004-network-hosts.patch new file mode 100644 index 000000000..b24d8f32b --- /dev/null +++ b/config/_common/v7.0.1/ramdisk-004-network-hosts.patch @@ -0,0 +1,7 @@ +--- a/etc/hosts ++++ b/etc/hosts +@@ -2,3 +2,4 @@ + # that require network functionality will fail. + 127.0.0.1 localhost + ::1 localhost ++127.0.0.1 update7.synology.com diff --git a/config/_common/v7.0.1/ramdisk-004-rc-script.patch b/config/_common/v7.0.1/ramdisk-004-rc-script.patch new file mode 100644 index 000000000..6d0adf1fc --- /dev/null +++ b/config/_common/v7.0.1/ramdisk-004-rc-script.patch @@ -0,0 +1,11 @@ +--- a/etc/rc ++++ b/etc/rc +@@ -113,7 +113,7 @@ ThisMachine=`uname -m` + if [ $KERNEL_VCODE -ge "$(KernelVersionCode "2.6")" ]; then + # 2.6 or 3.x + VXLAN_MODULES="ip_tunnel udp_tunnel ip6_udp_tunnel vxlan" +- NET_DRIVERS="${VXLAN_MODULES} dca e1000e i2c-algo-bit igb be2net ixgbe r8168 i40e" ++ NET_DRIVERS="${VXLAN_MODULES} dca e1000e i2c-algo-bit igb be2net r8168 i40e" + if [ "kvmx64" = "$PLATFORM" ] || [ "nextkvmx64" = "$PLATFORM" ]; then + NET_DRIVERS="${VXLAN_MODULES} igbvf be2net ixgbevf i40evf" + fi diff --git a/ext/boot-image-template.img.gz b/ext/boot-image-template.img.gz index 0be47050e..dd4c1c31f 100644 Binary files a/ext/boot-image-template.img.gz and b/ext/boot-image-template.img.gz differ diff --git a/ext/build-template-image.txt b/ext/build-template-image.txt index 4beba4744..9f70908f9 100644 --- a/ext/build-template-image.txt +++ b/ext/build-template-image.txt @@ -29,6 +29,14 @@ The following settings were detected by ./configure for the binary release: With stack smashing protector: No ******************************************************* +mkdir build-pc && cd build-pc +../configure --prefix=$PWD/usr -sbindir=$PWD/sbin --sysconfdir=$PWD/etc --disable-werror +make && make install +cd .. +mkdir build && cd build +../configure --prefix=$PWD/usr -sbindir=$PWD/sbin --sysconfdir=$PWD/etc --disable-werror --with-platform=efi --target=x86_64 +make && make install + ######################################################################################################################## ### Create the image ######################################################################################################################## @@ -77,14 +85,18 @@ mkfs.ext2 /dev/loop8p2 ######################################################################################################################## mkdir temp-mount-p1 mount /dev/loop8p1 ./temp-mount-p1 -./grub-2.06/grub-install \ - -d ./grub-2.06/grub-core \ - --target=i386-pc --no-floppy -s \ - --root-directory=$PWD/temp-mount-p1 \ +./grub-2.06/build-pc/grub-install \ + --target=i386-pc --recheck -s \ + --boot-directory=$PWD/temp-mount-p1/boot \ /dev/loop8 -# small note: --root-directory MUST be an absolute path (or it will create it in /) + +./grub-2.06/build/grub-install \ + --target=x86_64-efi \ + --efi-directory=$PWD/temp-mount-p1 \ + --removable --no-nvram -s --no-bootsector --boot-directory=$PWD/temp-mount-p1/boot sync umount /dev/loop8p1 +losetup -d /dev/loop8 ######################################################################################################################## ### Pack image diff --git a/include/loader-ext/target_exec.sh_ b/include/loader-ext/target_exec.sh_ index 2cad1beb0..5fc214147 100644 --- a/include/loader-ext/target_exec.sh_ +++ b/include/loader-ext/target_exec.sh_ @@ -15,15 +15,14 @@ cd "$(dirname "${0}")" || exit 1 # get to the script directory realiably in POSI # Gets indirect variable (needed as POSIX sh/busybox doesn't support arrays) # Args: $1 ext number, $1 var name _get_ext_var() { - eval varval=\"\$EXT_$1_$2\" - echo "${varval}" + eval varval=\"\$EXT_$1_$2\" + echo "${varval}" } # Run single script # Args: $1 ext id | $2 script name # Return: exit code from script -_run_script() -{ +_run_script() { # the ./ part is crucial on newer versions of busybox - don't ask us why (cd "${1}" && PLATFORM_ID="${PLATFORM_ID}" EXT_ID="${1}" . "./${2}") return $? @@ -31,12 +30,11 @@ _run_script() # Executes script category for all extensions # Args: $1 name of script action -_run_scripts() -{ +_run_scripts() { echo ":: Executing \"${1}\" custom scripts ..." - _ext_num=0; - _scr_exit=0; - _final_exit=0; + _ext_num=0 + _scr_exit=0 + _final_exit=0 for name in ${EXTENSION_IDS}; do _script_name=$(_get_ext_var ${_ext_num} "scripts_$1") if [ ! -z ${_script_name} ]; then @@ -49,7 +47,7 @@ _run_scripts() _final_exit=1 fi fi - _ext_num=$((_ext_num+1)) + _ext_num=$((_ext_num + 1)) done if [ $_final_exit -ne 0 ]; then @@ -62,10 +60,9 @@ _run_scripts() # Load all custom kernel modules # Args: -_load_kmods() -{ +_load_kmods() { echo ":: Loading kernel modules from extensions ..." - _ext_num=0; + _ext_num=0 for name in ${EXTENSION_IDS}; do _kmods=$(_get_ext_var ${_ext_num} "kmod_files") _kmod_check=$(_get_ext_var ${_ext_num} "scripts_check_kmod") @@ -73,43 +70,49 @@ _load_kmods() echo "Checking if kmods for ${name} should run using ${_kmod_check} script" if ! _run_script "${name}" "${_kmod_check}"; then echo "NOT loading kmods for ${name}" - _ext_num=$((_ext_num+1)) + _ext_num=$((_ext_num + 1)) continue fi fi - _kmod_num=0; + _kmod_num=0 for kmod_file in ${_kmods}; do _kmod_args=$(_get_ext_var ${_ext_num} "kmod_${_kmod_num}_args") echo "Loading kmod #${_kmod_num} \"${kmod_file}\" for ${name} (args: ${_kmod_args})" # shellcheck disable=SC2086 - (cd "${name}" && insmod "${kmod_file}" ${_kmod_args}) - if [ $? -ne 0 ]; then - echo "ERROR: kernel extensions \"${kmod_file}\" from ${name} failed to load" - exit 1 + _kmodname="${kmod_file::-3}" + if [ $(lsmod | grep -w $_kmodname | wc -l) -eq 0 ]; then + (cd "${name}" && insmod "${kmod_file}" ${_kmod_args}) + if [ $? -ne 0 ]; then + echo "ERROR: kernel extensions \"${kmod_file}\" from ${name} failed to load" + exit 1 + fi + else + echo "Module $_kmodname already loaded" fi - _kmod_num=$((_kmod_num+1)) + _kmod_num=$((_kmod_num + 1)) done - _ext_num=$((_ext_num+1)) + _ext_num=$((_ext_num + 1)) done echo ":: Loading kernel modules from extensions ... [ OK ]" } case $1 in - load_kmods) - _load_kmods - ;; - on_boot_scripts) - _run_scripts 'on_boot' - ;; - on_os_load_scripts) - _run_scripts 'on_os_load' - ;; - *) - if [ $# -lt 1 ]; then - echo "Usage: $0 ACTION_NAME <...args>" - else - echo "Invalid ACTION_NAME=${1}" - fi - exit 1 +load_kmods) + _load_kmods + ;; +on_boot_scripts) + _run_scripts 'on_boot' + ;; +on_os_load_scripts) + _run_scripts 'on_os_load' + ;; +*) + if [ $# -lt 1 ]; then + echo "Usage: $0 ACTION_NAME <...args>" + else + echo "Invalid ACTION_NAME=${1}" + fi + exit 1 + ;; esac diff --git a/redpill-acpid/acpid.tar.gz b/redpill-acpid/acpid.tar.gz new file mode 100644 index 000000000..5e98ea30a Binary files /dev/null and b/redpill-acpid/acpid.tar.gz differ diff --git a/redpill-acpid/acpid_v6.tar.gz b/redpill-acpid/acpid_v6.tar.gz new file mode 100644 index 000000000..a0932ded7 Binary files /dev/null and b/redpill-acpid/acpid_v6.tar.gz differ diff --git a/redpill-acpid/recipes/universal.json b/redpill-acpid/recipes/universal.json new file mode 100644 index 000000000..568568dd4 --- /dev/null +++ b/redpill-acpid/recipes/universal.json @@ -0,0 +1,19 @@ +{ + "files": [ + { + "name": "install-acpid.sh", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/src/install-acpid.sh", + "sha256": "5b3e42a3907c00b1dd1ae31363a4ae648b88cda5b18cc39f3601548bb7af6a35", + "packed": false + }, + { + "name": "acpid.tar.gz", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/acpid.tar.gz", + "sha256": "2dfb078b54e63802c48393b1f488a4c7303a14c7ee3bd16c7f169e5fca661c73", + "packed": false + } + ], + "scripts": { + "on_os_load": "install-acpid.sh" + } +} diff --git a/redpill-acpid/recipes/universal_v6.json b/redpill-acpid/recipes/universal_v6.json new file mode 100644 index 000000000..592f6505e --- /dev/null +++ b/redpill-acpid/recipes/universal_v6.json @@ -0,0 +1,19 @@ +{ + "files": [ + { + "name": "install-acpid_v6.sh", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/src/install-acpid_v6.sh", + "sha256": "d6fff6c18d1c719acd2ee01dee367fd7ee3bfc3f1edb3f9dfb74ab7323bfbad9", + "packed": false + }, + { + "name": "acpid_v6.tar.gz", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/acpid_v6.tar.gz", + "sha256": "4007bbf6b86185e96415ba4dbbb3bed0ab9124bb0a57e43b9ebf21ee260162c7", + "packed": false + } + ], + "scripts": { + "on_os_load": "install-acpid_v6.sh" + } +} diff --git a/redpill-acpid/rpext-index.json b/redpill-acpid/rpext-index.json new file mode 100644 index 000000000..8d852f43b --- /dev/null +++ b/redpill-acpid/rpext-index.json @@ -0,0 +1,39 @@ +{ + "id": "jumkey.acpid2", + "url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-acpid/rpext-index.json", + "info": { + "name": "ACPI Daemon v2", + "description": "ACPI Daemon v2 that handles power button events", + "author_url": "https://sourceforge.net/projects/acpid2/", + "packer_url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid", + "help_url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid" + }, + "releases": { + "ds3615xs_25556": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal_v6.json", + "ds3615xs_41222": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds3615xs_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds3615xs_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds3615xs_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds3617xs_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds3617xs_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds3617xs_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds918p_25556": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal_v6.json", + "ds918p_41890": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds918p_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds918p_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds918p_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds920p_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds920p_42550": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds920p_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds920p_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds1621p_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds1621p_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds1621p_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds2422p_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds2422p_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds2422p_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds3622xsp_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds3622xsp_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json", + "ds3622xsp_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-acpid/recipes/universal.json" + } +} diff --git a/redpill-acpid/src/etc/acpi/events/power b/redpill-acpid/src/etc/acpi/events/power new file mode 100644 index 000000000..c86f2dd65 --- /dev/null +++ b/redpill-acpid/src/etc/acpi/events/power @@ -0,0 +1,13 @@ +# /etc/acpi/events/powerbtn +# This is called when the user presses the power button and calls +# /etc/acpi/powerbtn.sh for further processing. + +# Optionally you can specify the placeholder %e. It will pass +# through the whole kernel event message to the program you've +# specified. + +# We need to react on "button power.*" and "button/power.*" because +# of kernel changes. + +event=button[ /]power +action=/etc/acpi/power.sh diff --git a/redpill-acpid/src/etc/acpi/power.sh b/redpill-acpid/src/etc/acpi/power.sh new file mode 100644 index 000000000..b1e5ae28e --- /dev/null +++ b/redpill-acpid/src/etc/acpi/power.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +logger -p err "Shutdown from ACPI" +/usr/syno/sbin/synopoweroff + diff --git a/redpill-acpid/src/etc/init/acpid.conf b/redpill-acpid/src/etc/init/acpid.conf new file mode 100644 index 000000000..6107ea8ce --- /dev/null +++ b/redpill-acpid/src/etc/init/acpid.conf @@ -0,0 +1,26 @@ +description "ACPI daemon" + +author "Virtualization Team" + +start on runlevel 1 +stop on runlevel [06] + +expect fork +respawn +respawn limit 5 10 + +console log + +pre-start script + date + insmod /lib/modules/button.ko + +end script + +post-stop script + rmmod button +end script +exec /usr/sbin/acpid + +# vim:ft=upstart + diff --git a/redpill-acpid/src/install-acpid.sh b/redpill-acpid/src/install-acpid.sh new file mode 100644 index 000000000..74d4bb1fc --- /dev/null +++ b/redpill-acpid/src/install-acpid.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# download files +#curl -L https://cdn.jsdelivr.net/gh/jumkey/redpill-load@develop/redpill-acpid/acpid.tar.gz -o /tmp/acpid.tar.gz + +# copy file +#tar -zxvf /tmp/acpid.tar.gz -C / +tar -zxvf acpid.tar.gz -C /tmpRoot/ + +# enable +#systemctl enable acpid.service +ln -sf /usr/lib/systemd/system/acpid.service /tmpRoot/etc/systemd/system/multi-user.target.wants/acpid.service + +# start +#systemctl start acpid.service diff --git a/redpill-acpid/src/install-acpid_v6.sh b/redpill-acpid/src/install-acpid_v6.sh new file mode 100644 index 000000000..65d5eb8db --- /dev/null +++ b/redpill-acpid/src/install-acpid_v6.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# copy file +tar -zxvf acpid_v6.tar.gz -C /tmpRoot/ + +#install -c -D -m755 acpid -t ${TmpInstDir}/usr/sbin/ +chmod 755 /tmpRoot/usr/sbin/acpid + +# install config files +#install -c -D -m644 SynoFiles/etc/acpi/events/power ${TmpInstDir}/etc/acpi/events/power +#install -c -D -m744 SynoFiles/etc/acpi/power.sh ${TmpInstDir}/etc/acpi/power.sh +#install -c -D -m744 SynoFiles/etc/init/acpid.conf.upstart ${TmpInstDir}/etc/init/acpid.conf +chmod 644 /tmpRoot/etc/acpi/events/power +chmod 744 /tmpRoot/etc/acpi/power.sh +chmod 744 /tmpRoot/etc/init/acpid.conf diff --git a/redpill-acpid/src/usr/lib/systemd/system/acpid.service b/redpill-acpid/src/usr/lib/systemd/system/acpid.service new file mode 100644 index 000000000..9693d2103 --- /dev/null +++ b/redpill-acpid/src/usr/lib/systemd/system/acpid.service @@ -0,0 +1,17 @@ +[Unit] +Description=ACPI Daemon +After=network.target + +[Service] +Type=forking +PIDFile=/var/run/acpid.pid +ExecStart=/usr/sbin/acpid +ExecReload=/bin/kill -HUP $MAINPID +Restart=always +TimeoutStopSec=45 + +[Install] +WantedBy=multi-user.target + +[X-Synology] +Name=ACPI diff --git a/redpill-acpid/src/usr/sbin/acpid b/redpill-acpid/src/usr/sbin/acpid new file mode 100644 index 000000000..c403e25ce Binary files /dev/null and b/redpill-acpid/src/usr/sbin/acpid differ diff --git a/redpill-boot-wait/rpext-index.json b/redpill-boot-wait/rpext-index.json new file mode 100644 index 000000000..ec6942b06 --- /dev/null +++ b/redpill-boot-wait/rpext-index.json @@ -0,0 +1,42 @@ +{ + "id": "thethorgroup.boot-wait", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json", + "info": { + "name": "RedPill Bootwait", + "description": "Simple extension which stops the execution early waiting for the boot device to appear", + "packer_url": "https://github.com/RedPill-TTG/redpill-boot-wait", + "help_url": "https://github.com/RedPill-TTG/redpill-boot-wait" + }, + "releases": { + "ds920p_42218": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds920p_42550": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds920p_42621": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds920p_42661": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds1621p_42218": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds1621p_42621": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds1621p_42661": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds2422p_42218": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds2422p_42621": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds2422p_42661": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3622xsp_42218": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3622xsp_42621": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3622xsp_42661": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3615xs_25556": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3615xs_41222": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3615xs_42218": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3615xs_42621": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3615xs_42661": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3617xs_42218": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3617xs_42621": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds3617xs_42661": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "dva3221_42218": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "dva3221_42621": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "dva3221_42661": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds918p_25556": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds918p_41890": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds918p_42218": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds918p_42621": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json", + "ds918p_42661": "https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json" + } +} + diff --git a/redpill-dtb/README.md b/redpill-dtb/README.md new file mode 100644 index 000000000..37fe014cd --- /dev/null +++ b/redpill-dtb/README.md @@ -0,0 +1,8 @@ +Create your own device tree binary. + +```shell +dtc -I dtb -O dts -o output.dts model.dtb +cat /sys/block/sataX/device/syno_block_info +nano output.dts +dtc -I dts -O dtb -o model_r2.dtb output.dts +``` diff --git a/redpill-dtb/recipes/universal.json b/redpill-dtb/recipes/universal.json new file mode 100644 index 000000000..8e0c04c31 --- /dev/null +++ b/redpill-dtb/recipes/universal.json @@ -0,0 +1,44 @@ +{ + "files": [ + { + "name": "install_rd.sh", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb/releases/install_rd.sh", + "sha256": "41a626b6af537240727e059da14a225fda7c78904fcbdc9b457a8cbf84d95a3a", + "packed": false + }, + { + "name": "install.sh", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb/releases/install.sh", + "sha256": "22e49bc661e1789af2634346fb1dd587dd00cc3ace9d91de9abfe3f77a371c39", + "packed": false + }, + { + "name": "model_ds920p.dtb", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb/releases/model_ds920p.dtb", + "sha256": "20dc3ceb58c42e192603a3bc2ea3875ec3629645360032488455399448dd7ea0", + "packed": false + }, + { + "name": "model_ds1621p.dtb", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb/releases/model_ds1621p.dtb", + "sha256": "e045eabbc6ca98fb324b20ef8e973d310ef939a8d87d76bfb87674437beabcd4", + "packed": false + }, + { + "name": "model_ds2422p.dtb", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb/releases/model_ds2422p.dtb", + "sha256": "b853bc937664e1867f341882731a6837d8a1ac45eabc37a7e4eeb148b8a63986", + "packed": false + }, + { + "name": "dtc", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb/releases/dtc", + "sha256": "14f7f87a5822050eab7c30a064912a6efe99f49bf6b896bbb38c2ba003803e78", + "packed": false + } + ], + "scripts": { + "on_boot": "install_rd.sh", + "on_os_load": "install.sh" + } +} diff --git a/redpill-dtb/releases/dtc b/redpill-dtb/releases/dtc new file mode 100755 index 000000000..d3da15be2 Binary files /dev/null and b/redpill-dtb/releases/dtc differ diff --git a/redpill-dtb/releases/install.sh b/redpill-dtb/releases/install.sh new file mode 100644 index 000000000..6affd4aba --- /dev/null +++ b/redpill-dtb/releases/install.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# copy file +cp -vf model_${PLATFORM_ID%%_*}.dtb /tmpRoot/etc.defaults/model.dtb diff --git a/redpill-dtb/releases/install_rd.sh b/redpill-dtb/releases/install_rd.sh new file mode 100644 index 000000000..d130a5589 --- /dev/null +++ b/redpill-dtb/releases/install_rd.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# install dtc +chmod +x dtc +cp dtc /usr/sbin/dtc + +# copy file +cp -vf model_${PLATFORM_ID%%_*}.dtb /etc.defaults/model.dtb +cp -vf model_${PLATFORM_ID%%_*}.dtb /var/run/model.dtb diff --git a/redpill-dtb/releases/model_ds1621p.dtb b/redpill-dtb/releases/model_ds1621p.dtb new file mode 100644 index 000000000..c6fe2873d Binary files /dev/null and b/redpill-dtb/releases/model_ds1621p.dtb differ diff --git a/redpill-dtb/releases/model_ds2422p.dtb b/redpill-dtb/releases/model_ds2422p.dtb new file mode 100644 index 000000000..0255fc124 Binary files /dev/null and b/redpill-dtb/releases/model_ds2422p.dtb differ diff --git a/redpill-dtb/releases/model_ds920p.dtb b/redpill-dtb/releases/model_ds920p.dtb new file mode 100644 index 000000000..8d1596915 Binary files /dev/null and b/redpill-dtb/releases/model_ds920p.dtb differ diff --git a/redpill-dtb/rpext-index.json b/redpill-dtb/rpext-index.json new file mode 100644 index 000000000..19e5156a6 --- /dev/null +++ b/redpill-dtb/rpext-index.json @@ -0,0 +1,23 @@ +{ + "id": "redpill-dtb", + "url": "https://github.com/pocopico/redpill-load/raw/master/redpill-dtb/rpext-index.json", + "info": { + "name": "Device tree binary", + "description": "Create your own device tree binary", + "author_url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb", + "packer_url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb", + "help_url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb" + }, + "releases": { + "ds920p_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json", + "ds920p_42550": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json", + "ds920p_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json", + "ds920p_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json", + "ds1621p_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json", + "ds1621p_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json", + "ds1621p_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json", + "ds2422p_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json", + "ds2422p_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json", + "ds2422p_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-dtb/recipes/universal.json" + } +} diff --git a/redpill-misc/README.md b/redpill-misc/README.md new file mode 100644 index 000000000..d5ca8ed4b --- /dev/null +++ b/redpill-misc/README.md @@ -0,0 +1,3 @@ +All misc shell + +1. remove acpi_cpufreq module diff --git a/redpill-misc/recipes/universal.json b/redpill-misc/recipes/universal.json new file mode 100644 index 000000000..4cc7b5185 --- /dev/null +++ b/redpill-misc/recipes/universal.json @@ -0,0 +1,38 @@ +{ + "files": [ + { + "name": "install.sh", + "url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/releases/install.sh", + "sha256": "3dbbe946c0386aa47a0f8e1d9731b5b32807ca26ead8a411a9303b80a4842c2a", + "packed": false + }, + { + "name": "install-all.sh", + "url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/releases/install-all.sh", + "sha256": "856331415d6980d9ef03a75eae4b9c5c927d1083266e1d7038ad8c62fbc2d570", + "packed": false + }, + { + "name": "ttyd", + "url": "https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64", + "sha256": "d69320cc45f51d144242935abe3443ad7d2fd1356a6732879ab175a406eafa85", + "packed": false + }, + { + "name": "install_rd.sh", + "url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/releases/install_rd.sh", + "sha256": "2e28b7dfbf3420588fceef11cf7463c60db9c149ab330ef19c384c6b8c9a445e", + "packed": false + }, + { + "name": "lrzsz.tar.gz", + "url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/releases/lrzsz.tar.gz", + "sha256": "92917b39874f2a843b56549081332dbfc38607ce9d94f14bbff04aa9dda145cd", + "packed": true + } + ], + "scripts": { + "on_boot": "install_rd.sh", + "on_os_load": "install-all.sh" + } +} diff --git a/redpill-misc/releases/install-all.sh b/redpill-misc/releases/install-all.sh new file mode 100644 index 000000000..0ada508a8 --- /dev/null +++ b/redpill-misc/releases/install-all.sh @@ -0,0 +1,99 @@ +#!/bin/sh +# +# +# Script for fixing missing HW features dependencies +# + +PLATFORM=$(/bin/get_key_value /etc/synoinfo.conf unique | /bin/cut -d"_" -f2) + +fixcpufreq() { + + cpufreq=$(ls -ltr /sys/devices/system/cpu/cpufreq/* 2>/dev/null | wc -l) + + if [ $cpufreq -eq 0 ]; then + + echo "CPU does NOT support CPU Performance Scaling, disabling" + + /tmpRoot/usr/bin/sed -i 's/^acpi-cpufreq/# acpi-cpufreq/g' /tmpRoot/usr/lib/modules-load.d/70-cpufreq-kernel.conf + + else + echo "CPU supports CPU Performance Scaling" + fi + +} + +fixcrypto() { + + CPUFLAGS=$(cat /proc/cpuinfo | grep flags | grep sse4_2 | wc -l) + + if [ $CPUFLAGS -gt 0 ]; then + + echo "CPU Supports SSE4.2, crc32c-intel should load" + + else + + echo "CPU does NOT support SSE4.2, crc32c-intel will not load, disabling" + + /tmpRoot/usr/bin/sed -i 's/^crc32c-intel/# crc32c-intel/g' /tmpRoot/usr/lib/modules-load.d/70-crypto-kernel.conf + + fi + +} + +fixnvidia() { + + NVIDIADEV=$(cat /proc/bus/pci/devices | grep -i 10de | wc -l) + + if [ $NVIDIADEV -eq 0 ]; then + + echo "NVIDIA GPU is not detected, disabling " + + /tmpRoot/usr/bin/sed -i 's/^nvidia/# nvidia/g' /tmpRoot/usr/lib/modules-load.d/70-syno-nvidia-gpu.conf + /tmpRoot/usr/bin/sed -i 's/^nvidia-uvm/# nvidia-uvm/g' /tmpRoot/usr/lib/modules-load.d/70-syno-nvidia-gpu.conf + + else + + echo "NVIDIA GPU is detected, nothing to do" + + fi + +} + +case "${PLATFORM}" in + +bromolow) + fixcpufreq + fixcrypto + ;; +apollolake) + fixcpufreq + fixcrypto + ;; +broadwell) + fixcpufreq + fixcrypto + ;; +broadwellnk) + fixcpufreq + fixcrypto + ;; +v1000) + fixcpufreq + fixcrypto + ;; +denverton) + fixcpufreq + fixcrypto + fixnvidia + ;; +geminilake) + fixcpufreq + fixcrypto + ;; + +*) + fixcpufreq + fixcrypto + ;; + +esac diff --git a/redpill-misc/releases/install.sh b/redpill-misc/releases/install.sh new file mode 100644 index 000000000..bf64bbf97 --- /dev/null +++ b/redpill-misc/releases/install.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +echo "Removing acpi CPUFreq module" +#if (grep -r -q -E "(QEMU|VirtualBox)" /sys/devices/virtual/dmi/id/); then +# echo "VM detected,remove acpi-cpufreq module" + /tmpRoot/usr/bin/sed -i 's/^acpi-cpufreq/# acpi-cpufreq/g' /tmpRoot/usr/lib/modules-load.d/70-cpufreq-kernel.conf +#else +# echo "*No* VM detected,NOOP" +#fi diff --git a/redpill-misc/releases/install_rd.sh b/redpill-misc/releases/install_rd.sh new file mode 100644 index 000000000..e2f544588 --- /dev/null +++ b/redpill-misc/releases/install_rd.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +echo "Starting ttyd, listening on port: 7681" +cp lrz /usr/sbin/rz +cp lsz /usr/sbin/sz +chmod +x ttyd +./ttyd login > /dev/null 2>&1 & diff --git a/redpill-misc/releases/lrzsz.tar.gz b/redpill-misc/releases/lrzsz.tar.gz new file mode 100644 index 000000000..60c9a2ea8 Binary files /dev/null and b/redpill-misc/releases/lrzsz.tar.gz differ diff --git a/redpill-misc/rpext-index.json b/redpill-misc/rpext-index.json new file mode 100644 index 000000000..6ec274cae --- /dev/null +++ b/redpill-misc/rpext-index.json @@ -0,0 +1,41 @@ +{ + "id": "redpill-misc", + "url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/rpext-index.json", + "info": { + "name": "Misc shell", + "description": "Misc shell", + "author_url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc", + "packer_url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc", + "help_url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc" + }, + "releases": { + +"ds3615xs_25556": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3615xs_41222": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3615xs_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3615xs_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3615xs_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3617xs_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3617xs_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3617xs_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3622xsp_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3622xsp_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds3622xsp_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds1621p_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds1621p_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds1621p_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"dva3221_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"dva3221_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"dva3221_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds918p_25556": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds918p_41890": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds918p_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds918p_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds918p_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds920p_42621": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds920p_42218": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json", +"ds920p_42661": "https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json" + + + } +} diff --git a/redpill-virtio/recipes/ds1621p_41890.json b/redpill-virtio/recipes/ds1621p_41890.json new file mode 100644 index 000000000..032edf61f --- /dev/null +++ b/redpill-virtio/recipes/ds1621p_41890.json @@ -0,0 +1,32 @@ +{ + "mod_version": "v1", + + "files": [ + { + "name": "check-virtio.sh", + "url": "https://raw.githubusercontent.com/RedPill-TTG/redpill-virtio/master/src/check-virtio.sh", + "sha256": "cedced0bf29ff691ab6b4a7e2001efa40b2cc5fd31e3a9834d210a4b3408ded8", + "packed": false + }, + { + "name": "virtio-4.4.180p.tgz", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/releases/v1.0.0/v1000/virtio-4.4.180p.tgz", + "sha256": "a34ba4c9a859dd6e35c78690fa6fab513dd8bf841f72734a7d60b143f629c167", + "packed": true + } + ], + + "kmods": { + "virtio.ko": "", + "virtio_ring.ko": "", + "virtio_mmio.ko": "", + "virtio_pci.ko": "", + "virtio_blk.ko": "", + "virtio_net.ko": "", + "virtio_scsi.ko": "" + }, + + "scripts": { + "check_kmod": "check-virtio.sh" + } +} diff --git a/redpill-virtio/recipes/ds3617xs_41890.json b/redpill-virtio/recipes/ds3617xs_41890.json new file mode 100644 index 000000000..81379f8b3 --- /dev/null +++ b/redpill-virtio/recipes/ds3617xs_41890.json @@ -0,0 +1,32 @@ +{ + "mod_version": "v1", + + "files": [ + { + "name": "check-virtio.sh", + "url": "https://raw.githubusercontent.com/RedPill-TTG/redpill-virtio/master/src/check-virtio.sh", + "sha256": "cedced0bf29ff691ab6b4a7e2001efa40b2cc5fd31e3a9834d210a4b3408ded8", + "packed": false + }, + { + "name": "virtio-4.4.180p.tgz", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/releases/v1.0.0/broadwell/virtio-4.4.180p.tgz", + "sha256": "30cfbda0ccd3a4a13f69e0feaa1a96f51b084ffe6a1385a1bef9ffc299be8bc8", + "packed": true + } + ], + + "kmods": { + "virtio.ko": "", + "virtio_ring.ko": "", + "virtio_mmio.ko": "", + "virtio_pci.ko": "", + "virtio_blk.ko": "", + "virtio_net.ko": "", + "virtio_scsi.ko": "" + }, + + "scripts": { + "check_kmod": "check-virtio.sh" + } +} diff --git a/redpill-virtio/recipes/ds3622xsp_41890.json b/redpill-virtio/recipes/ds3622xsp_41890.json new file mode 100644 index 000000000..c3264f0f4 --- /dev/null +++ b/redpill-virtio/recipes/ds3622xsp_41890.json @@ -0,0 +1,32 @@ +{ + "mod_version": "v1", + + "files": [ + { + "name": "check-virtio.sh", + "url": "https://raw.githubusercontent.com/RedPill-TTG/redpill-virtio/master/src/check-virtio.sh", + "sha256": "cedced0bf29ff691ab6b4a7e2001efa40b2cc5fd31e3a9834d210a4b3408ded8", + "packed": false + }, + { + "name": "virtio-4.4.180p.tgz", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/releases/v1.0.0/broadwellnk/virtio-4.4.180p.tgz", + "sha256": "e4d0ee5ffea113ada7bf7df6d0dec5b671f87c72824e990cbec200daa06f04c3", + "packed": true + } + ], + + "kmods": { + "virtio.ko": "", + "virtio_ring.ko": "", + "virtio_mmio.ko": "", + "virtio_pci.ko": "", + "virtio_blk.ko": "", + "virtio_net.ko": "", + "virtio_scsi.ko": "" + }, + + "scripts": { + "check_kmod": "check-virtio.sh" + } +} diff --git a/redpill-virtio/recipes/ds918p_41890.json b/redpill-virtio/recipes/ds918p_41890.json new file mode 100644 index 000000000..74a49a268 --- /dev/null +++ b/redpill-virtio/recipes/ds918p_41890.json @@ -0,0 +1,32 @@ +{ + "mod_version": "v1", + + "files": [ + { + "name": "check-virtio.sh", + "url": "https://raw.githubusercontent.com/RedPill-TTG/redpill-virtio/master/src/check-virtio.sh", + "sha256": "cedced0bf29ff691ab6b4a7e2001efa40b2cc5fd31e3a9834d210a4b3408ded8", + "packed": false + }, + { + "name": "virtio-4.4.180p.tgz", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/releases/v1.0.0/apollolake/virtio-4.4.180p.tgz", + "sha256": "2646dd9ba1515f6e321057c3b22c3214d7b243e37ba2264dc864d95c3ea9ebdc", + "packed": true + } + ], + + "kmods": { + "virtio.ko": "", + "virtio_ring.ko": "", + "virtio_mmio.ko": "", + "virtio_pci.ko": "", + "virtio_blk.ko": "", + "virtio_net.ko": "", + "virtio_scsi.ko": "" + }, + + "scripts": { + "check_kmod": "check-virtio.sh" + } +} diff --git a/redpill-virtio/recipes/ds920p_41890.json b/redpill-virtio/recipes/ds920p_41890.json new file mode 100644 index 000000000..7b2bb4966 --- /dev/null +++ b/redpill-virtio/recipes/ds920p_41890.json @@ -0,0 +1,32 @@ +{ + "mod_version": "v1", + + "files": [ + { + "name": "check-virtio.sh", + "url": "https://raw.githubusercontent.com/RedPill-TTG/redpill-virtio/master/src/check-virtio.sh", + "sha256": "cedced0bf29ff691ab6b4a7e2001efa40b2cc5fd31e3a9834d210a4b3408ded8", + "packed": false + }, + { + "name": "virtio-4.4.180p.tgz", + "url": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/releases/v1.0.0/geminilake/virtio-4.4.180p.tgz", + "sha256": "4fb7d2b4a72f100c0c1d3aceeae769dbafd08fcccda6e13a9e02e15582f71ebd", + "packed": true + } + ], + + "kmods": { + "virtio.ko": "", + "virtio_ring.ko": "", + "virtio_mmio.ko": "", + "virtio_pci.ko": "", + "virtio_blk.ko": "", + "virtio_net.ko": "", + "virtio_scsi.ko": "" + }, + + "scripts": { + "check_kmod": "check-virtio.sh" + } +} diff --git a/redpill-virtio/releases/v1.0.0/apollolake/virtio-4.4.180p.tgz b/redpill-virtio/releases/v1.0.0/apollolake/virtio-4.4.180p.tgz new file mode 100644 index 000000000..1f4d1a789 Binary files /dev/null and b/redpill-virtio/releases/v1.0.0/apollolake/virtio-4.4.180p.tgz differ diff --git a/redpill-virtio/releases/v1.0.0/broadwell/virtio-4.4.180p.tgz b/redpill-virtio/releases/v1.0.0/broadwell/virtio-4.4.180p.tgz new file mode 100644 index 000000000..e90d36762 Binary files /dev/null and b/redpill-virtio/releases/v1.0.0/broadwell/virtio-4.4.180p.tgz differ diff --git a/redpill-virtio/releases/v1.0.0/broadwellnk/virtio-4.4.180p.tgz b/redpill-virtio/releases/v1.0.0/broadwellnk/virtio-4.4.180p.tgz new file mode 100644 index 000000000..cf96bdb1d Binary files /dev/null and b/redpill-virtio/releases/v1.0.0/broadwellnk/virtio-4.4.180p.tgz differ diff --git a/redpill-virtio/releases/v1.0.0/geminilake/virtio-4.4.180p.tgz b/redpill-virtio/releases/v1.0.0/geminilake/virtio-4.4.180p.tgz new file mode 100644 index 000000000..e8cf44258 Binary files /dev/null and b/redpill-virtio/releases/v1.0.0/geminilake/virtio-4.4.180p.tgz differ diff --git a/redpill-virtio/releases/v1.0.0/v1000/virtio-4.4.180p.tgz b/redpill-virtio/releases/v1.0.0/v1000/virtio-4.4.180p.tgz new file mode 100644 index 000000000..629589100 Binary files /dev/null and b/redpill-virtio/releases/v1.0.0/v1000/virtio-4.4.180p.tgz differ diff --git a/redpill-virtio/rpext-index.json b/redpill-virtio/rpext-index.json new file mode 100644 index 000000000..04bd04588 --- /dev/null +++ b/redpill-virtio/rpext-index.json @@ -0,0 +1,40 @@ +{ + "id": "thethorgroup.virtio", + "url": "https://github.com/pocopico/redpill-load/raw/develop/redpill-virtio/rpext-index.json", + "info": { + "name": "VirtIO", + "description": "Adds VirtIO support for fast network/PCI/SCSI/network/console paravirtualization under QEmu (Proxmox, VirtualBox, virsh, and similar)", + "author_url": "https://www.linux-kvm.org/page/Virtio", + "packer_url": "https://github.com/RedPill-TTG/redpill-virtio", + "help_url": "" + }, + "releases": { + "ds3615xs_25556": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds3615xs_25556.json", + "ds3615xs_41222": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds3615xs_41222.json", + "ds3615xs_42218": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds3615xs_41222.json", + "ds3615xs_42621": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds3615xs_41222.json", + "ds3615xs_42661": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds3615xs_41222.json", + "ds918p_25556": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds918p_25556.json", + "ds918p_41890": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds918p_41890.json", + "ds918p_42218": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds918p_41890.json", + "ds918p_42621": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds918p_41890.json", + "ds918p_42661": "https://github.com/RedPill-TTG/redpill-virtio/raw/master/recipes/ds918p_41890.json", + "ds920p_42550": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds920p_41890.json", + "ds920p_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds920p_41890.json", + "ds920p_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds920p_41890.json", + "ds920p_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds920p_41890.json", + "ds1621p_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds1621p_41890.json", + "ds1621p_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds1621p_41890.json", + "ds1621p_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds1621p_41890.json", + "ds2422p_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds1621p_41890.json", + "ds2422p_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds1621p_41890.json", + "ds2422p_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds1621p_41890.json", + "ds3617xs_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds3617xs_41890.json", + "ds3617xs_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds3617xs_41890.json", + "ds3617xs_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds3617xs_41890.json", + "ds3622xsp_42218": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds3622xsp_41890.json", + "ds3622xsp_42550": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds3622xsp_41890.json", + "ds3622xsp_42621": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds3622xsp_41890.json", + "ds3622xsp_42661": "https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds3622xsp_41890.json" + } +} diff --git a/tools/rebuild_all.sh b/tools/rebuild_all.sh index 881fc8b1a..e114082fe 100755 --- a/tools/rebuild_all.sh +++ b/tools/rebuild_all.sh @@ -18,8 +18,10 @@ set -euo pipefail echo "Building images" BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds3615.json ./build-loader.sh 'DS3615xs' '6.2.4-25556' "$PWD/images/rp-3615-v6$IMG_POSTFIX.img" BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds3615.json ./build-loader.sh 'DS3615xs' '7.0-41222' "$PWD/images/rp-3615-v7$IMG_POSTFIX.img" +BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds3615.json ./build-loader.sh 'DS3615xs' '7.0.1-42218' "$PWD/images/rp-3615-v7.0.1$IMG_POSTFIX.img" BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds918.json ./build-loader.sh 'DS918+' '6.2.4-25556' "$PWD/images/rp-918-v6$IMG_POSTFIX.img" BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds918.json ./build-loader.sh 'DS918+' '7.0-41890' "$PWD/images/rp-918-v7$IMG_POSTFIX.img" +BRP_DEBUG=1 BRP_USER_CFG=$PWD/user_config-ds918.json ./build-loader.sh 'DS918+' '7.0.1-42218' "$PWD/images/rp-918-v7.0.1$IMG_POSTFIX.img" echo "Generating VMDKs" @@ -27,13 +29,17 @@ echo "Generating VMDKs" # Otherwise ESXi panel refuses to see these VMDKs (?!) and none of these work: https://stackoverflow.com/q/37794846 qemu-img convert -f raw -O vmdk "$PWD/images/rp-3615-v6$IMG_POSTFIX.img" "$PWD/images/vrp-3615-v6$IMG_POSTFIX.vmdk" qemu-img convert -f raw -O vmdk "$PWD/images/rp-3615-v7$IMG_POSTFIX.img" "$PWD/images/vrp-3615-v7$IMG_POSTFIX.vmdk" +qemu-img convert -f raw -O vmdk "$PWD/images/rp-3615-v7.0.1$IMG_POSTFIX.img" "$PWD/images/vrp-3615-v7.0.1$IMG_POSTFIX.vmdk" qemu-img convert -f raw -O vmdk "$PWD/images/rp-918-v6$IMG_POSTFIX.img" "$PWD/images/vrp-918-v6$IMG_POSTFIX.vmdk" qemu-img convert -f raw -O vmdk "$PWD/images/rp-918-v7$IMG_POSTFIX.img" "$PWD/images/vrp-918-v7$IMG_POSTFIX.vmdk" +qemu-img convert -f raw -O vmdk "$PWD/images/rp-918-v7.0.1$IMG_POSTFIX.img" "$PWD/images/vrp-918-v7.0.1$IMG_POSTFIX.vmdk" echo "Packing raw images" gzip "$PWD/images/rp-3615-v6$IMG_POSTFIX.img" gzip "$PWD/images/rp-3615-v7$IMG_POSTFIX.img" +gzip "$PWD/images/rp-3615-v7.0.1$IMG_POSTFIX.img" gzip "$PWD/images/rp-918-v6$IMG_POSTFIX.img" gzip "$PWD/images/rp-918-v7$IMG_POSTFIX.img" +gzip "$PWD/images/rp-918-v7.0.1$IMG_POSTFIX.img" echo "OK"