pocopico / tinycore-redpill

GNU General Public License v3.0
2.13k stars 631 forks source link

7.1 upgrade to Ds920p-7.2.0-64570 #371

Closed vysecurity closed 9 months ago

vysecurity commented 9 months ago

Describe the bug Have a problem to upgrade from 7.1 to 7.2 Update 3. I upgraded in the Synology GUI then turned out the machine won't boot anymore. So I went to TCRP and ran the following command:

   ./rploader.sh serialgen DS920+
   ./rploader.sh serialgen DS920+ realmac
   ./rploader.sh identifyusb
   ./rploader.sh satamap
   ./rploader.sh ext ds920p-7.2.0-64570 add https://raw.githubusercontent.com/vysecurity/synology-igc/main/igc/rpext-index.json
   ./rploader.sh ext ds920p-7.2.0-64570 add https://raw.githubusercontent.com/pocopico/tcrp-addons/main/all-modules/rpext-index.json
   ./rploader.sh backup
    ./rploader.sh build ds920p-7.2.0-64570
   exitcheck.sh poweroff

I went into the TCRP Friend, found that there's an IP configuration flaw, so I fixed it by hardcoding the right interface. Then afterwards, it still won't boot after the kext is loaded.

Expected behavior Synology DSM loads and runs 7.2.0

Additional context DX4600 running 7.1, upgraded to 7.2.

vysecurity commented 9 months ago

Is the loader broken? I think it's basically not loading DSM correctly.

TCRP Friend Version : 0.0.5j
Detecting upgrade : Ramdisk OK ! zImage OK !
Checking for latest friend -> OK, latest
Loader BUS: usb
Running on 4 Processor  Intel(R) Celeron(R) N5105 @ 2.00GHz With 15.5G Memory
System has 2 HBAs and 2 Network cards
System is running in UEFI boot mode
IP Address : 10.0.0.13

Model :  DS920+ , Serial : 2040SREDACT, Mac : 986EE8REDACTED DSM Version : 7.2.0-64570 Update : 0 RedPillMake : prod
zImage : /mnt/tcrp/zImage-dsm initrd : /mnt/tcrp/initrd-dsm
cmdline : withefi earlyprintk syno_hw_version=DS920+ console=ttyS0,115200n8 netif_num=1 synoboot2 pid=0x6387 earlycon=uart8250,io,0x3f8,115200n8 mac1=986EEREDACT sn=2040SBRREDACT HddEnableDynamicPower=1 vid=0x058f elevator=elevator loglevel=15 intel_iommu=igfx_off DiskIdxMap=0002 vender_format_version=2 log_buf_len=32M root=/dev/md0 SataPortMap=24 syno_ttyS1=serial,0x2f8 syno_ttyS0=serial,0x3f8
Boot timeout exceeded, booting ...  0
Loading kexec, nothing will be displayed here anymore ...

Just in case this helps:

root@tcrpfriend:~# bash boot.sh patchkernel
Patching Kernel
Kernel Patched, sha256sum : ea4b00c5e4f3ae62f98b18cbea8b6d9899394f5ffe06b2e482e541623e5d1f6d
root@tcrpfriend:~# bash boot.sh patchramdisk
Extracting ramdisk to /root/rd.temp/
Ramdisk is compressed
Extracted ramdisk VERSION : 7.2.0-64570
Patching RamDisk
Patches to be applied :   /root/config/_common/v7.2.0/ramdisk-001-disable-root-pwd.patch
  /root/config/_common/v7.2.0/ramdisk-002-init-script.patch
  /root/config/_common/v7.2.0/ramdisk-003-post-init-script-noatime.patch
  /root/config/_common/ramdisk-004-network-hosts.patch
  /root/config/_common/ramdisk-common-etc-rc.patch
Applying patch /root/config/_common/v7.2.0/ramdisk-001-disable-root-pwd.patch in dir /root/rd.temp
patching file etc/passwd
Applying patch /root/config/_common/v7.2.0/ramdisk-002-init-script.patch in dir /root/rd.temp
patching file linuxrc.syno.impl
Applying patch /root/config/_common/v7.2.0/ramdisk-003-post-init-script-noatime.patch in dir /root/rd.temp
patching file usr/sbin/init.post
Applying patch /root/config/_common/ramdisk-004-network-hosts.patch in dir /root/rd.temp
patching file etc/hosts
Applying patch /root/config/_common/ramdisk-common-etc-rc.patch in dir /root/rd.temp
patching file etc/rc
Applying model synoinfo patches
Key :   maxdisks Value:  16
Key :   internalportcfg Value:  0xffff
Key :   esataportcfg Value:  0x0
Key :   buzzeroffen Value:  0xffff
Key :   rss_server Value:  https://raw.githubusercontent.com/pocopico/redpill-load/develop/rss.xml
Key :   rss_server_ssl Value:  https://raw.githubusercontent.com/pocopico/redpill-load/develop/rss.xml
Key :   rss_server_v2 Value:  https://raw.githubusercontent.com/pocopico/redpill-load/develop/rss.json
Key :   small_info_path Value:  https://example.com/null
Key :   security_version_server Value:  https://example.com/smallupdate
Key :   maxlanport Value:  8
Key :   netif_seq Value:  0 1 2 3 4 5 6 7
Applying user synoinfo settings
Key :   internalportcfg Value:  0xffff
Key :   maxdisks Value:  16
Key :   support_bde_internal_10g Value:  no
Key :   support_disk_compatibility Value:  no
Key :   support_memory_compatibility Value:  no
Key :   maxlanport Value:  8
Key :   netif_seq Value:  0 1 2 3 4 5 6 7
Copying extra ramdisk files
Source :  /root/config/_common/iosched-trampoline.sh Destination :  usr/sbin/modprobe
Adding precompiled redpill module
Removing any old redpill.ko modules
Looking for redpill for : ds920p_64570
Module does not contain platform information for DS920+
Adding custom.gz to image
Reassempling ramdisk
Patched ramdisk created -rw-r--r-- 1 root root 29962752 Sep 17 05:10 /root/initrd-dsm
Copying file to sda3
Updating grub version values from: 7.2.0-64570 to 7.2.0-64570
pocopico commented 9 months ago

Do not add manually the igc module it's already included in the all-modules addon.

Is the ttyd reachable ? http://yourip:7681

vysecurity commented 9 months ago

thanks sorted!

On Sun, 17 Sep 2023 at 17:25, pocopico @.***> wrote:

Do not add manually the igc module it's already included in the all-modules addon

— Reply to this email directly, view it on GitHub https://github.com/pocopico/tinycore-redpill/issues/371#issuecomment-1722434637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3N7UWWUXSBM3ZHBSNKFK3X226X5ANCNFSM6AAAAAA43LPA3Y . You are receiving this because you authored the thread.Message ID: @.***>