Jump to content
XPEnology Community

Ragz

Rookie
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Ragz

  1. It's Alive!
    Instead of using (obviously) dumb online generators to generate a random MAC, I finally came up with my own hw-address that worked: "BADECAFC0FFE"
    A silly error, and a silly MAC-address solved it!

    Thanks for a great guide and your quick assistance here on the forum! (Congrats on 100 posts :) )

  2. 11 minutes ago, luchuma said:

    :: Loading module e1000e[ 4.309337] e1000e 0000:03:00.0: Invalid MAC Address: bd:00:08:72:16:3d

     

    try download new img and edit it again with osf mount and notepad++


    Thanks, but I still seem to get the same error:

    From serial.output:

    :: Loading module dca ... [  OK  ]
    :: Loading module e1000e[    4.291953] e1000e 0000:03:00.0: Invalid MAC Address: c9:e3:a6:a0:3d:89
     ... [  OK  ]

    grub.cnf:

    set vid=0x058f
    set pid=0x6387
    set sn=1230LWN002479
    set mac1=C9E3A6A03D89
    set rootdev=/dev/md0
    set netif_num=1
    set extra_args_3615=''
    #set extra_args_3615='earlycon=uart8250,io,0x3f8,115200n8 earlyprintk loglevel=15'

    VM NIC:
    image.thumb.png.c2d5ea46e10ff553b42829b840d56006.png

  3. 4 minutes ago, luchuma said:

    can you add serial port to the vm and show serial output?

     

    Serial Output:

    [H[J[1;1H[?25l[m[H[J[1;1H[2;20HGNU GRUB  version 2.02~beta2-36ubuntu3.14
    
    
    [m[4;2H+----------------------------------------------------------------------------+[5;2H|[5;79H|[6;2H|[6;79H|[7;2H|[7;79H|[8;2H|[8;79H|[9;2H|[9;79H|[10;2H|[10;79H|[11;2H|[11;79H|[12;2H|[12;79H|[13;2H|[13;79H|[14;2H|[14;79H|[15;2H|[15;79H|[16;2H|[16;79H|[17;2H+----------------------------------------------------------------------------+[m[18;2H[19;2H[m     Use the ^ and v keys to select which entry is highlighted.          
    
          Press enter to boot the selected OS, `e' to edit the commands       
    
          before booting or `c' for a command-line.                           [5;80H [7m[5;3H*DS3615xs 6.2 VMWare/ESXI with Jun's Mod v1.03b                             [m[5;78H[m[m[6;3H                                                                            [m[6;78H[m[m[7;3H                                                                            [m[7;78H[m[m[8;3H                                                                            [m[8;78H[m[m[9;3H                                                                            [m[9;78H[m[m[10;3H                                                                            [m[10;78H[m[m[11;3H                                                                            [m[11;78H[m[m[12;3H                                                                            [m[12;78H[m[m[13;3H                                                                            [m[13;78H[m[m[14;3H                                                                            [m[14;78H[m[m[15;3H                                                                            [m[15;78H[m[m[16;3H                                                                            [m[16;78H[m[16;80H [5;78H[22;1H   The highlighted entry will be executed automatically in 1s.                 [5;78H[22;1H   The highlighted entry will be executed automatically in 0s.                 [5;78H[?25h[H[J[1;1H[H[J[1;1H[H[J[1;1H[H[J[1;1Hpatching file etc/rc
    patching file etc/synoinfo.conf
    patching file linuxrc.syno
    patching file usr/sbin/init.post
    START /linuxrc.syno
    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 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 ... [  OK  ]
    :: Loading module mptsas ... [  OK  ]
    :: Loading module mptctl ... [  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
    All disk ready or timeout execeed
    Partition Version=0
    Partition layout is not DiskStation style.
    NOT EXECUTE /sbin/e2fsck.
    Mounting /dev/md0 /tmpRoot
    mount: lseek failed, msg:Invalid argument
    mount: mounting /dev/md0 on /tmpRoot failed: No such device
    mount /dev/md0 fail, returns 
    Exit on error [3] no init exists...
    Mon Jan 28 05:34:07 UTC 2019
    none /sys/kernel/debug debugfs rw,relatime 0 0
    sys /sys sysfs rw,relatime 0 0
    none /dev devtmpfs rw,relatime,size=1014164k,nr_inodes=253541,mode=755 0 0
    proc /proc proc rw,relatime 0 0
    
    linuxrc.syno failed on 3
    
    starting pid 4790, tty '': '/etc/rc'
    :: Starting /etc/rc
    :: Mounting procfs ... [  OK  ]
    :: Mounting tmpfs ... [  OK  ]
    :: Mounting devtmpfs ... [  OK  ]
    :: Mounting devpts ... [  OK  ]
    :: Mounting sysfs ... [  OK  ]
    mdadm: error opening /dev/md1: No such file or directory
    rc: Use all internal disk as swap.
    swapon: can't stat '/dev/md1': No such file or directory
    :: Loading module sg ... [  OK  ]
    :: Loading module mdio ... [  OK  ]
    :: Loading module fat ... [  OK  ]
    :: Loading module vfat ... [  OK  ]
    :: Loading module ip_tunnel ... [  OK  ]
    :: Loading module vxlan ... [  OK  ]
    :: Loading module dca ... [  OK  ]
    :: Loading module e1000e[    4.309337] e1000e 0000:03:00.0: Invalid MAC Address: bd:00:08:72:16:3d
     ... [  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  ]
    :: Loading module synobios ... [  OK  ]
    lo        Link encap:Local 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
    Usage: /usr/bin/minissdpd [-d] [-6] [-s socket] [-p pidfile] -i <interface> [-i <interface2>] ...
    
      <interface> is either an IPv4 address such as 192.168.1.42, or an
    interface name such as eth0.
    
      By default, socket will be open as /var/run/minissdpd.sock
    and pid written to file /var/run/minissdpd.pid
    start SSDPD failed
    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 ============
    Mon Jan 28 05:34:16 UTC 2019
    ==============================
    
    starting pid 6455, tty '': '/sbin/getty 115200 console'
    
    Mon Jan 28 05:34:17 2019
    
    
    DiskStation login: 

     

  4. Hi,

    Thanks for a great guide! I've followed it and repeated it many times over but I'm stuck; using Synology Assistant I'm unable to find the NAS after booting with Jun's Mod v1.03b. The reason I cant find it is because network issues appearently. Using WireShark or SoftPerfect Network Scanner I dont even see an ARP broadcast containing the MAC address I've set in grub.cfg & VM NIC. Other machines broadcast ARP & gets IP-addresses configured correctly.

     

    Any ideas?

     

    DS3615 / Jun's Mod v.1.03b

     

    Console Output:

    image.thumb.png.f0049d70278e912b0dfd5bb551f358fd.png

     

    VM settings:

    image.thumb.png.554d04b6d3ea384425dbcf5c85765f0a.png


    grub.cnf (tried with default SN & generated):

    if serial --port=0x3F8 --speed=115200;then
            set has_serial=true
            terminal_input --append serial
            terminal_output --append serial
    else
            clear
    fi
    
    terminal_input --append console
    terminal_output --append console
    
    if [ x"${grub_platform}" = xefi ]; then
            insmod efi_gop
            insmod efi_uga
    else
            insmod vbe
    fi
    
    set extra_initrd="extra.lzma"
    set info="info.txt"
    
    set vid=0x058f
    set pid=0x6387
    set sn=1230LWN002479
    set mac1=BD000872163D
    set rootdev=/dev/md0
    set netif_num=1
    set extra_args_3615=''
    #set extra_args_3615='earlycon=uart8250,io,0x3f8,115200n8 earlyprintk loglevel=15'
    
    set common_args_3615='syno_hdd_powerup_seq=0 HddHotplug=0 syno_hw_version=DS3615xs vender_format_version=2 console=ttyS0,115200n8 withefi elevator=elevator quiet syno_port_thaw=1'
    
    set sata_args='sata_uid=1 sata_pcislot=5 synoboot_satadom=1 DiskIdxMap=0C SataPortMap=1 SasIdxMap=0'
    
    set default='0'
    set timeout='1'
    set fallback='1'
    
    if [ -s $prefix/grubenv ]; then
            load_env
            if [ -n "$saved_entry" ]; then
                    set default="${saved_entry}"
            fi
    fi
    
    VERSION="with Jun's Mod v1.03b"
    
    search --file -s /bzImage
    
    function savedefault {
            if [ -s $prefix/grubenv  ]; then
                    saved_entry="${chosen}"
                    save_env saved_entry
            fi
    }
    
    function do_option {
            if [ $# -lt 2 ]; then
                    eval "set value=\"\$$1\""
                    echo "current $1: $value"; return;
            fi
            set key=$1
            shift
            set $key="$*"
            if [ -s $prefix/grubenv  ]; then
                    save_env $key
            fi
    }
    
    function vid { do_option vid $@; }
    function pid { do_option pid $@; }
    function sn { do_option sn $@; }
    function mac1 { do_option mac1 $@; }
    function mac2 { do_option mac2 $@; }
    function mac3 { do_option mac3 $@; }
    function mac4 { do_option mac4 $@; }
    function rootdev { do_option rootdev $@; }
    function append { do_option extra_args_3615 $@; }
    
    function vidpid {
            if [ $# -lt 2 ]; then
                    echo "usage: vidpid 0xVVVV 0xPPPP"; return;
            fi
            set usb_args="vid=$1 pid=$2"
            if [ -s $prefix/grubenv  ]; then
                    save_env usb_args
            fi
    }
    
    function showtips {
            if [ -n "$has_serial" ]; then
                    terminal_output --remove serial
            fi
            echo "Screen will stop updating shortly, please open http://find.synology.com to continue."
            echo
            echo
            if [ -n "$has_serial" ]; then
                    terminal_output --append serial
            fi
    }
    
    function loadinitrd {
            if [ -s $img/$info ]; then
                    if [ -n "$has_serial" ]; then
                            terminal_output --remove serial
                    fi
                    cat $img/$info
                    if [ -n "$has_serial" ]; then
                            terminal_output --append serial
                    fi
            fi
    #        if [ -s $img/$extra_initrd ]; then
    #                initrd $img/rd.gz $img/$extra_initrd
    #        else
    #                initrd $img/rd.gz
    #        fi
    }
    
    function common_add_option {
            eval "set value=\"\$$1\""
            if [ -z $value ]; then return 1; fi
            set common_args="$common_args $1=$value"
    }
    
    function common_add_option_ex {
            eval "set value=\"\$$1\""
            if [ -z $value ]; then return 1; fi
            set common_args="$common_args $2=$value"
    }
    
    function loadlinux {
            set model=$1
            set bootdev=$2
            shift 2
            if [ -n $vid -a -n $pid ]; then
                    set usb_args="vid=$vid pid=$pid"
            fi
            eval "set common_args=\"\$common_args_$model\""
            eval "set extra_args=\"\$extra_args_$model\""
            eval "set bootdev_args=\"\$${bootdev}_args\""
            common_add_option_ex rootdev root
            common_add_option sn
            if common_add_option mac1; then set netif_num=1; fi
            if common_add_option mac2; then set netif_num=2; fi
            if common_add_option mac3; then set netif_num=3; fi
            if common_add_option mac4; then set netif_num=4; fi
            common_add_option netif_num
    	if [ -z $zImage ]; then
    		set zImage=bzImage
    	fi
            linux $img/$zImage $common_args $bootdev_args $extra_args $@
    }
    
    #menuentry "DS3615xs 6.2 Baremetal $VERSION" --class os {
    #        set img=
    #        savedefault
    #        loadlinux 3615 usb
    #        loadinitrd
    #        showtips
    #}
    #
    #menuentry "DS3615xs 6.2 Baremetal $VERSION Reinstall" --class os {
    #        set img=
    #        loadlinux 3615 usb mfg
    #        loadinitrd
    #        showtips
    #}
    #
    #menuentry "DS3615xs 6.2 Baremetal AMD $VERSION" --class os {
    #        set img=
    #        set zImage=bzImage
    #        savedefault
    #        loadlinux 3615 usb
    #        loadinitrd
    #        showtips
    #}
    #
    menuentry "DS3615xs 6.2 VMWare/ESXI $VERSION" --class os {
            set img=
            savedefault
            loadlinux 3615 sata
            loadinitrd
            showtips
    }
    

     

     

     

×
×
  • Create New...