研究好几天,对GRUB很熟,但是GRUB2远远要比GRUB复杂很多,启动方式也天差地别。总之GRUB2强大太多太多,最后很遗憾,在虚拟机环境DSM3617xs v6.1.3 15152下写入127M那个分区都成功,也替换了zImage,rd.gz和extra.lzma(来自DS3617xs 6.1 Jun's Mod V1.02b.iso),修改了GRUB.CFG打开了VMware 的menuentry,同时修改了common_args_3615里的syno_hw_version为DS3617xs。最终启动后,系统进入恢复模式。。。Serial Console得到的错误如下,不知如何解决。由于实验环境下没有成功,所以不敢在真机环境下尝试。
注意下面红色部分,Exit on error [7] Version number not match..., 楼主大人请看看到底哪里有问题?
patching file etc/passwd
patching file etc/rc
patching file etc/synoinfo.conf
patching file linuxrc.syno
patching file usr/sbin/init.post
START /linuxrc.syno
Insert Marvell 1475 SATA controller driver
Insert basic USB modules...
:: Loading module usb-common ... [ OK ]
:: Loading module usbcore ... [ OK ]
:: Loading module ehci-hcd ... [ OK ]
:: Loading module ehci-pci ... [ OK ]
:: Loading module ohci-hcd ... [ OK ]
:: Loading module uhci-hcd ... [ OK ]
:: Loading module xhci-hcd ... [ OK ]
:: Loading module etxhci-hcd ... [ OK ]
:: Loading module usb-storage ... [ OK ]
:: Loading module BusLogic ... [ OK ]
:: Loading module vmw_pvscsi ... [ OK ]
:: Loading module megaraid_mm ... [ OK ]
:: Loading module megaraid_mbox ... [ OK ]
:: Loading module megaraid ... [ OK ]
:: Loading module scsi_transport_spi ... [ OK ]
:: Loading module mptbase ... [ OK ]
:: Loading module mptscsih ... [ OK ]
:: Loading module mptspi[ 3.891046] sd 31:0:1:0: [sda] Assuming drive cache: write through
[ 3.894868] sd 31:0:1:0: [sda] Assuming drive cache: write through
[ 3.913120] sd 31:0:1:0: [sda] Assuming drive cache: write through
... [ OK ]
:: Loading module mptsas ... [ OK ]
:: Loading module mptctl ... [ OK ]
:: Loading module ata_piix[ 4.190108] ata32: Read current link speed fail, retry 1
[ 4.197115] ata32: Read current link speed fail, retry 2
[ 4.204090] ata32: Read current link speed fail, retry 3
[ 4.211088] ata33: Read current link speed fail, retry 1
[ 4.218082] ata33: Read current link speed fail, retry 2
[ 4.225066] ata33: Read current link speed fail, retry 3
... [ OK ]
:: Loading module megaraid_sas ... [ OK ]
:: Loading module mpt2sas ... [ OK ]
:: Loading module mpt3sas ... [ OK ]
Insert net driver(Mindspeed only)...
Starting /usr/syno/bin/synocfgen...
/usr/syno/bin/synocfgen returns 0
[ 4.314318] md: invalid raid superblock magic on sda3
Partition Version=8
/sbin/e2fsck exists, checking /dev/md0...
31139 inodes used (20.01%, out of 155648)
58 non-contiguous files (0.2%)
7 non-contiguous directories (0.0%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 28344/20
248321 blocks used (39.89%, out of 622544)
0 bad blocks
1 large file
24861 regular files
3209 directories
2 character device files
0 block device files
0 fifos
1229 links
3058 symbolic links (2765 fast symbolic links)
0 sockets
------------
32359 files
/sbin/e2fsck returns 0
Mounting /dev/md0 /tmpRoot
------------upgrade
Begin upgrade procedure
No upgrade file exists
End upgrade procedure
============upgrade
Exit on error [7] Version number not match...
Wed Nov 1 13:34:30 UTC 2017
/dev/md0 /tmpRoot ext4 rw,relatime,journal_checksum,data=ordered 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
sys /sys sysfs rw,relatime 0 0
none /dev devtmpfs rw,relatime,size=505660k,nr_inodes=126415,mode=755 0 0
proc /proc proc rw,relatime 0 0
linuxrc.syno failed on 7
starting pid 4928, tty '': '/etc/rc'
:: Starting /etc/rc
:: Mounting procfs ... [ OK ]
:: Mounting tmpfs ... [ OK ]
:: Mounting devtmpfs ... [ OK ]
:: Mounting devpts ... [ OK ]
:: Mounting sysfs ... [ OK ]
rc: Use all internal disk as swap.
/etc/rc: line 106: /etc/rc: line 106: awk: not found
/usr/syno/bin/synodiskpathparse: not found
rc: Failed to parse partition sda2
:: Loading module sg ... [ OK ]
:: Loading module mdio ... [ OK ]
:: Loading module fat ... [ OK ]
:: Loading module vfat ... [ OK ]
:: Loading module dca ... [ OK ]
:: Loading module e1000e ... [ OK ]
:: Loading module i2c-algo-bit ... [ OK ]
:: Loading module igb ... [ OK ]
:: Loading module ixgbe ... [ OK ]
:: Loading module r8168 ... [ OK ]
:: Loading module libcrc32c ... [ OK ]
:: Loading module mii ... [ OK ]
:: Loading module libphy ... [ OK ]
:: Loading module atl1 ... [ OK ]
:: Loading module atl1e ... [ OK ]
:: Loading module atl1c ... [ OK ]
:: Loading module alx ... [ OK ]
:: Loading module uio ... [ OK ]
:: Loading module ipg ... [ OK ]
:: Loading module jme ... [ OK ]
:: Loading module skge ... [ OK ]
:: Loading module sky2 ... [ OK ]
:: Loading module ptp_pch ... [ OK ]
:: Loading module pch_gbe ... [ OK ]
:: Loading module qla3xxx ... [ OK ]
:: Loading module qlcnic ... [ OK ]
:: Loading module qlge ... [ OK ]
:: Loading module netxen_nic ... [ OK ]
:: Loading module sfc ... [ OK ]
:: Loading module e1000 ... [ OK ]
:: Loading module pcnet32 ... [ OK ]
:: Loading module vmxnet3 ... [ OK ]
:: Loading module bnx2 ... [ OK ]
:: Loading module bnx2x ... [ OK ]
:: Loading module cnic ... [FAILED]
:: Loading module r8169 ... [ OK ]
:: Loading module tg3 ... [ OK ]
:: Loading module usbnet ... [ OK ]
:: Loading module ax88179_178a ... [ OK ]
:: Loading module button ... [ OK ]
mount: open failed, msg:No such file or directory
mount: mounting /dev/bus/usb on /proc/bus/usb failed: No such device
ln: /proc/bus/usb/devices: No such file or directory
:: Loading module synobios ... [ OK ]
udhcpc (v1.16.1) started
eth0 Link encap:Ethernet HWaddr 00:11:32:2C:A7:85
inet addr:169.254.58.122 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:124 (124.0 B) TX bytes:890 (890.0 B)
lo Link encap ocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
:: Starting syslogd ... [ OK ]
:: Starting scemd
:: Starting services in background
Starting findhostd in flash_rd...
Starting services in flash_rd...
Running /usr/syno/etc/rc.d/J01httpd.sh...
Starting httpd:80 in flash_rd...
Starting httpd:5000 in flash_rd...
Running /usr/syno/etc/rc.d/J03ssdpd.sh...
/usr/bin/minissdpd -i eth0
(15): upnp:rootdevice
(51): uuid:upnp_SynologyNAS-0011322ca785::upnp:rootdevice
(58): Synology/synology_broadwell_3617xs/6.1-15047/192.168.128.2
(46): http://192.168.128.2:5000/description-eth0.xml
Connected.
done.
/usr/syno/bin/reg_ssdp_service 192.168.128.2 0011322ca785 6.1-15047 synology_broadwell_3617xs eth0
Running /usr/syno/etc/rc.d/J04synoagentregisterd.sh...
Starting synoagentregisterd...
Running /usr/syno/etc/rc.d/J30DisableNCQ.sh...
Running /usr/syno/etc/rc.d/J80ADTFanControl.sh...
Running /usr/syno/etc/rc.d/J98nbnsd.sh...
Starting nbnsd...
Running /usr/syno/etc/rc.d/J99avahi.sh...
Starting Avahi mDNS/DNS-SD Daemon
cname_load_conf failed:/var/tmp/nginx/avahi-aliases.conf
:: Loading module hid ... [ OK ]
:: Loading module usbhid ... [ OK ]
============ Date ============
Wed Nov 1 13:34:41 UTC 2017
==============================
starting pid 6570, tty '': '/sbWed Nov 1 13:34:42 2017
==============================================================华丽的分割线
修改过的GRUB.CFG,其他都没动,目录名称也没改,
#=====Synology 6.02-8541 boot paratemers=====
set extra_initrd="extra.lzma"
set info="info.txt"
set vid=0x058f
set pid=0x6387
set sn=C7LWN09761
set mac1=0011322CA785
set rootdev=/dev/md0
set netif_num=1
set extra_args_3615=''
set common_args_3615='syno_hdd_powerup_seq=0 HddHotplug=0 syno_hw_version=DS3617xs vender_format_version=2 withefi elevator=elevator quiet'
set sata_args='sata_uid=1 sata_pcislot=5 synoboot_satadom=1 DiskIdxMap=0C SataPortMap=1 SasIdxMap=0'
|