Synology DS414

This forum is for supported devices using an ARMv7 Marvell SoC.

Synology DS414

Postby dvzrv » Sun Jul 27, 2014 6:06 pm

Hey all,

I'm trying to get Arch Linux ARM running on a Synology DS414. My basic knowledge about U-Boot and booting from external drives is pretty limited though.

I can show you what I've done so far:

    Serial Connection through a JTAG called JP2 (pin2 = GND; pin4 = TX; pin6 = RX)
    Watched the system boot:
    $this->bbcode_second_pass_code('', 'BootROM 1.20
    Booting from SPI flash
    High speed PHY - Version: 2.1.2 (COM-PHY-V20)
    Update PEX Device ID 0x78230
    High speed PHY - Ended Successfully
    DDR3 Training Sequence - Ver 4.5.0
    DDR3 Training Sequence - Ended Successfully
    Status = MV_OK
    BootROM: Image checksum verification PASSED

    __ __ _ _
    | \/ | __ _ _ ____ _____| | |
    | |\/| |/ _` | '__\ \ / / _ \ | |
    | | | | (_| | | \ V / __/ | |
    |_| |_|\__,_|_| \_/ \___|_|_|
    _ _ ____ _
    | | | | | __ ) ___ ___ | |_
    | | | |___| _ \ / _ \ / _ \| __|
    | |_| |___| |_) | (_) | (_) | |_
    \___/ |____/ \___/ \___/ \__|
    ** LOADER **


    U-Boot 2011.12-SYNO-add48c3-2013-07-18 (Jul 18 2013 - 16:52:44) Marvell version: v2011.12 2013_Q1.2

    Board: Synology AXP 78230 4-bay/2-bay
    SoC: MV78230 B0
    running 2 CPUs
    Custom configuration
    CPU: Marvell PJ4B (584) v7 (Rev 2) LE
    CPU 0
    CPU @ 1333 [MHz]
    L2 @ 667 [MHz]
    TClock @ 250 [MHz]
    DDR @ 667 [MHz]
    DDR 32Bit Width, FastPath Memory Access
    DDR ECC Disabled
    DRAM: 1 GiB

    Map: Code: 0x3fefb000:0x3ff9f59c
    BSS: 0x3ffef33c
    Stack: 0x3f9eaef8
    Heap: 0x3f9eb000:0x3fefb000

    MMC: MRVL_MMC: 0
    SF: Detected M25P64 with page size 64 KiB, total 8 MiB
    *** Warning - bad CRC, using default environment

    PEX 0.0(0): Root Complex Interface, Detected Link X4, GEN 1.1
    PEX 1.0(1): Root Complex Interface, Detected Link X1, GEN 2.0
    PEX 1.1(2): Detected No Link.
    PEX 1.2(3): Detected No Link.
    FPU initialized to Run Fast Mode.
    USB 0: Host Mode
    USB 1: Host Mode
    USB 2: Device Mode
    Modules Detected:

    Synology Model: DS414
    Fan Status: Not Good
    Fan 1: Not Good
    Fan 2: Not Good

    Net: egiga0 [PRIME], egiga1
    Press Ctrl+C to abort autoboot in 3 second
    ## Booting kernel from Legacy Image at f40d0000 ...
    Image Name: Linux-3.2.40
    Created: 2014-05-29 3:06:26 UTC
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 2061448 Bytes = 2 MiB
    Load Address: 00008000
    Entry Point: 00008000
    Verifying Checksum ... OK
    ## Loading init Ramdisk from Legacy Image at f43a0000 ...
    Image Name: synology_armadaxp_ds414 4493
    Created: 2014-05-30 16:45:37 UTC
    Image Type: ARM Linux RAMDisk Image (gzip compressed)
    Data Size: 2978137 Bytes = 2.8 MiB
    Load Address: 08000000
    Entry Point: 08000000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Booting Linux on physical CPU 0
    [ 0.000000] Linux version 3.2.40 (root@build3) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #4493 SMP Thu May 29 11:06:16 CST 2014
    [ 0.000000] CPU: Marvell PJ4Bv7 Processor [562f5842] revision 2 (ARMv7), cr=10c53c7d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [ 0.000000] Machine: Marvell Armada XP Development Board
    [ 0.000000] Using UBoot passing parameters structure
    [ 0.000000] Reserving training memory: base=0x (null) size=0x2800
    [ 0.000000] Memory policy: ECC disabled, Data cache writealloc
    [ 0.000000] SMP: init cpus
    [ 0.000000] PERCPU: Embedded 7 pages/cpu @80d99000 s5152 r8192 d15328 u32768
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
    [ 0.000000] Kernel command line: console=ttyS0,115200 ip=off initrd=0x8000040,8M root=/dev/md0 rw syno_hw_version=DS414v10 ihd_num=4 netif_num=2 flash_size=8 SataLedSpecial=1 HddHotplug=1
    [ 0.000000] Synology Hardware Version: DS414v10-j
    [ 0.000000] Internal HD num: 4
    [ 0.000000] Internal netif num: 2
    [ 0.000000] Special Sata LEDs.
    [ 0.000000] Support HDD Hotplug.
    [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Memory: 1024MB = 1024MB total
    [ 0.000000] Memory: 1025532k/1025532k available, 23044k reserved, 0K highmem
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] vmalloc : 0xc0800000 - 0xfa800000 ( 928 MB)
    [ 0.000000] lowmem : 0x80000000 - 0xc0000000 (1024 MB)
    [ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
    [ 0.000000] .text : 0x80008000 - 0x804de000 (4952 kB)
    [ 0.000000] .init : 0x804de000 - 0x8050d420 ( 190 kB)
    [ 0.000000] .data : 0x8050e000 - 0x80533ba0 ( 151 kB)
    [ 0.000000] .bss : 0x80533bc4 - 0x8059252c ( 379 kB)
    [ 0.000000] Hierarchical RCU implementation.
    [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
    [ 0.000000] NR_IRQS:211
    [ 0.000000] Initializing ArmadaXP SOC Timer 0
    [ 0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
    [ 148.583927] Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
    [ 148.673843] pid_max: default: 32768 minimum: 301
    [ 148.674018] Mount-cache hash table entries: 512
    [ 148.674456] CPU: Testing write buffer coherency: ok
    [ 148.674573] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 148.674584] SMP: prepare CPUs (4 cores)
    [ 148.674762] Setting Clocks for secondary CPUs
    [ 148.675520] SMP: CPU 0 Waking up CPU 1
    [ 148.680344] CPU1: Booted secondary processor
    [ 148.713834] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 148.713885] Brought up 2 CPUs
    [ 148.713897] SMP: Total of 2 processors activated (2664.03 BogoMIPS).
    [ 148.717703] xor: measuring software checksum speed
    [ 148.763797] arm4regs : 1291.600 MB/sec
    [ 148.813793] 8regs : 727.600 MB/sec
    [ 148.863793] 32regs : 937.200 MB/sec
    [ 148.863800] xor: using function: arm4regs (1291.600 MB/sec)
    [ 148.863982] NET: Registered protocol family 16
    [ 148.866146] L0 cache Enabled
    [ 148.866154] Speculative Prefetch Disabled
    [ 148.866176] Aurora L2 Cache Enabled
    [ 148.866354] Support IO coherency.
    [ 148.969452]
    [ 148.969457] Marvell Armada-XP Synology AXP 78230 Board - Soc: MV78230 B0 LE
    [ 148.969475] Detected Tclk 250000000, SysClk 667000000, FabricClk 667000000, PClk 1333000000
    [ 148.969483] LSP version: linux-3.2.y-2013_Q1.2p2
    [ 148.969488]
    [ 148.970685] Synology ArmadaXP 4-bay GPIO Init
    [ 148.971130] registered dev#0 asa ehci_marvell
    [ 148.971430] Marvell USB EHCI Host controller #0: bf8a4800
    [ 148.971537] registered dev#1 asa ehci_marvell
    [ 148.971833] Marvell USB EHCI Host controller #1: bf8a4600
    [ 148.971933] registered dev#2 asa mv_udc
    [ 148.972228] Marvell USB Gadget controller #2: bf8a4400
    [ 148.978908] bio: create slab <bio-0> at 0
    [ 149.143856] raid6: int32x1 162 MB/s
    [ 149.313866] raid6: int32x2 251 MB/s
    [ 149.483905] raid6: int32x4 300 MB/s
    [ 149.653981] raid6: int32x8 332 MB/s
    [ 149.653987] raid6: using algorithm int32x8 (332 MB/s)
    [ 149.654509] SCSI subsystem initialized
    [ 149.655641] Switching to clocksource axp_clocksource
    [ 149.657182] NET: Registered protocol family 2
    [ 149.657287] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 149.657538] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
    [ 149.658543] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
    [ 149.659008] TCP: Hash tables configured (established 131072 bind 65536)
    [ 149.659016] TCP reno registered
    [ 149.659025] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 149.659049] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 149.659195] NET: Registered protocol family 1
    [ 149.659362] RPC: Registered named UNIX socket transport module.
    [ 149.659370] RPC: Registered udp transport module.
    [ 149.659376] RPC: Registered tcp transport module.
    [ 149.659382] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 149.659543] Trying to unpack rootfs image as initramfs...
    [ 151.198165] rootfs image is not initramfs (no cpio magic); looks like an initrd
    [ 151.212453] Freeing initrd memory: 8192K
    [ 151.212542] PCI-E: Cheking physical bus #0 (controller #0): Enabled - Link UP
    [ 151.212723] PCI-E: Cheking physical bus #1 (controller #4): Enabled - Link UP
    [ 151.212883] PCI-E: Cheking physical bus #2 (controller #5): Enabled - No Link
    [ 151.213038] PCI-E: Cheking physical bus #3 (controller #6): Enabled - No Link
    [ 151.213764] PCI: bus0: Fast back to back transfers disabled
    [ 151.214331] PCI: bus1: Fast back to back transfers disabled
    [ 151.214541] pci 0000:01:00.0: BAR 0: assigned [mem 0xf2800000-0xf2807fff 64bit]
    [ 151.214558] pci 0000:01:00.0: BAR 0: set to [mem 0xf2800000-0xf2807fff 64bit] (PCI address [0xf2800000-0xf2807fff])
    [ 151.214573] pci 0000:00:00.0: BAR 0: assigned [mem 0xf2000000-0xf20fffff 64bit]
    [ 151.214588] pci 0000:00:00.0: BAR 0: set to [mem 0xf2000000-0xf20fffff 64bit] (PCI address [0xf2000000-0xf20fffff])
    [ 151.214598] pci 0000:00:00.0: BAR 2: can't assign io (size 0x100)
    [ 151.214989] cesadev_init(804e6e04)
    [ 151.215448] Armada XP hwmon thermal sensor initialized.
    [ 151.215535] ArmadaXP Power Managament Suspend Operations Initialized
    [ 151.215543] Initializing Armada-XP CPU power management (WFI)
    [ 151.216771] VFS: Disk quotas dquot_6.5.2
    [ 151.216854] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 151.217467] msgmni has been set to 2018
    [ 151.218279] async_tx: api initialized (async)
    [ 151.218414] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
    [ 151.218424] io scheduler noop registered
    [ 151.218467] io scheduler cfq registered (default)
    [ 151.218524] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
    [ 151.218558] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
    [ 151.255695] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
    [ 151.295690] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
    [ 151.315703] mv_xor mv_xor.2: Marvell XOR: ( xor )
    [ 151.335691] mv_xor mv_xor.3: Marvell XOR: ( fill cpy )
    [ 151.393126] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    [ 151.466031] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 41) is a 16550A
    [ 152.149414] console [ttyS0] enabled
    [ 152.175954] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 42) is a 16550A
    [ 152.211285] brd: module loaded
    [ 152.214351] Loading iSCSI transport class v2.0-870.
    [ 152.220141] sata_mv 0000:00:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
    [ 152.229912] scsi0 : sata_mv
    [ 152.233086] scsi1 : sata_mv
    [ 152.236221] scsi2 : sata_mv
    [ 152.239342] scsi3 : sata_mv
    [ 152.242437] ata1: SATA max UDMA/133 mmio m1048576@0xf2000000 port 0xf2022000 irq 58
    [ 152.250175] ata2: SATA max UDMA/133 mmio m1048576@0xf2000000 port 0xf2024000 irq 58
    [ 152.257864] ata3: SATA max UDMA/133 mmio m1048576@0xf2000000 port 0xf2026000 irq 58
    [ 152.265545] ata4: SATA max UDMA/133 mmio m1048576@0xf2000000 port 0xf2028000 irq 58
    [ 160.815678] ata1: link is slow to respond, please be patient (ready=0)
    [ 165.315678] ata1: SRST failed (errno=-16)
    [ 165.319699] ata1: SRST fail, set srst fail flag
    [ 168.645707] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [ 168.651913] ata1: link reset sucessfully clear error flags
    [ 168.695733] ata1.00: ATA-9: ST4000VN000-1H4168, SC44, max UDMA/133
    [ 168.701934] ata1.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    [ 168.765734] ata1.00: configured for UDMA/133
    [ 168.785920] scsi 0:0:0:0: Direct-Access ATA ST4000VN000-1H4168 SC44 PQ: 0 ANSI: 5
    [ 168.795288] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
    [ 168.803062] sd 0:0:0:0: [sda] 4096-byte physical blocks
    [ 168.808445] sd 0:0:0:0: [sda] Write Protect is off
    [ 168.813318] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 171.794116] Delay 5 seconds to wait for disk 2 ready.
    [ 172.709453] sda: sda1 sda2 sda5
    [ 172.713659] sd 0:0:0:0: [sda] Attached SCSI disk
    [ 182.345678] ata2: link is slow to respond, please be patient (ready=0)
    [ 186.845678] ata2: SRST failed (errno=-16)
    [ 186.849699] ata2: SRST fail, set srst fail flag
    [ 190.415700] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [ 190.421907] ata2: link reset sucessfully clear error flags
    [ 190.465732] ata2.00: ATA-9: ST4000VN000-1H4168, SC44, max UDMA/133
    [ 190.471932] ata2.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    [ 190.535732] ata2.00: configured for UDMA/133
    [ 190.555917] scsi 1:0:0:0: Direct-Access ATA ST4000VN000-1H4168 SC44 PQ: 0 ANSI: 5
    [ 190.565276] sd 1:0:0:0: [sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
    [ 190.573052] sd 1:0:0:0: [sdb] 4096-byte physical blocks
    [ 190.578464] sd 1:0:0:0: [sdb] Write Protect is off
    [ 190.583347] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 190.644683] sdb: sdb1 sdb2 sdb5
    [ 190.648958] sd 1:0:0:0: [sdb] Attached SCSI disk
    [ 190.915697] ata3: SATA link down (SStatus 0 SControl 300)
    [ 191.265695] ata4: SATA link down (SStatus 0 SControl 300)
    [ 191.271312] sata_mv sata_mv.0: cannot get clkdev
    [ 191.276030] sata_mv sata_mv.0: slots 32 ports 2
    [ 191.281715] scsi4 : sata_mv
    [ 191.284838] scsi5 : sata_mv
    [ 191.287933] ata5: SATA max UDMA/133 irq 55
    [ 191.292043] ata6: SATA max UDMA/133 irq 55
    [ 191.645691] ata5: SATA link down (SStatus 0 SControl F300)
    [ 192.715688] ata6: failed to resume link (SControl 4)
    [ 192.720675] ata6: SATA link down (SStatus 0 SControl 4)
    [ 192.726904] physmap platform flash device: 00800000 at f0000000
    [ 192.733624] physmap-flash physmap-flash.0: map_probe failed
    [ 192.741816] SPI Serial flash detected @ 0xf0000000, 8192KB (128sec x 64KB)
    [ 192.748733] Searching for RedBoot partition table in SYNOMTD-0 at offset 0x7f0000
    [ 192.793833] 6 RedBoot partitions found on MTD device SYNOMTD-0
    [ 192.799686] SYNOMTD flash bank 0: Using RedBoot partition definition
    [ 192.806061] Creating 6 MTD partitions on "SYNOMTD-0":
    [ 192.811130] 0x000000000000-0x0000000d0000 : "RedBoot"
    [ 192.816921] 0x0000000d0000-0x0000003a0000 : "zImage"
    [ 192.822594] 0x0000003a0000-0x0000007d0000 : "rd.gz"
    [ 192.828209] 0x0000007d0000-0x0000007e0000 : "vendor"
    [ 192.833274] vender Mac2 checksum error ucSum:0x00 Buf:0x00 Sum:0.
    [ 192.839404] vender Mac3 checksum error ucSum:0x00 Buf:0x00 Sum:0.
    [ 192.845520] serial number='myserialnumberhere'
    [ 192.850079] 0x0000007e0000-0x0000007f0000 : "RedBoot Config"
    [ 192.856680] 0x0000007f0000-0x000000800000 : "FIS directory"
    [ 192.862951]
    [ 192.862954] INFO: Found spi_flash 0 - base 0xf0000000, size 0x1000000
    [ 192.870746] INFO: flashInfoFill - Found 1 Flash Devices
    [ 192.876001] INFO: flash_map_init - detected 1 devices
    [ 192.881251] MTD: Initialize the spi_flash device at address 0xf0000000
    [ 192.888131]
    [ 192.888133] INFO: Io remapped successfully - phy addr = 0xf0000000, virt addr = 0xc5000000
    [ 192.897745] INFO: Using sflash to probe spi_flash at address 0xf0000000, size 0x1000000, width 2mSPI Serial flash detected @ 0xf0000000, 8192KB (128sec x 64KB)
    [ 192.914490] - detected OK - OK.
    [ 192.918632] mv_eth_probe: port_mask=0xf, cpu_mask=0x3
    [ 192.923969] o 4 Giga ports supported
    [ 192.927768] o SKB recycle supported (Enabled)
    [ 192.932312] o NETA acceleration mode 2
    [ 192.936250] o BM supported for CPU: 4 BM pools
    [ 192.940880] o RX Queue support: 1 Queues * 128 Descriptors
    [ 192.946558] o TX Queue support: 1 Queues * 532 Descriptors
    [ 192.952231] o GSO supported
    [ 192.955205] o GRO supported
    [ 192.958182] o Receive checksum offload supported
    [ 192.962986] o Transmit checksum offload supported
    [ 192.967880] o Driver ERROR statistics enabled
    [ 192.972421]
    [ 192.974093] o Loading network interface(s)
    [ 192.978386]
    [ 192.979882] o Port 0 is connected to Linux netdevice
    [ 192.985433] giga p=0: mtu=1500, mac=bf835e18
    [ 192.993675] o eth0, ifindex = 2, GbE port = 0
    [ 192.998246] o eth0, phy chipid = 1410dd0, Support WOL = 32
    [ 193.004280]
    [ 193.005787]
    [ 193.007282] o Port 1 is connected to Linux netdevice
    [ 193.012839] giga p=1: mtu=1500, mac=bf835e18
    [ 193.021044] o eth1, ifindex = 3, GbE port = 1
    [ 193.025589] o eth1, phy chipid = 1410dd0, Support WOL = 32
    [ 193.031648]
    [ 193.033146]
    [ 193.033148] o Warning: GbE port 2 is powered off
    [ 193.033152]
    [ 193.040940]
    [ 193.042662] i2c /dev entries driver
    [ 193.046670] Syno_HddMon: Initialization completed.
    [ 193.051478] md: linear personality registered for level -1
    [ 193.056991] md: raid0 personality registered for level 0
    [ 193.062318] md: raid1 personality registered for level 1
    [ 193.067651] md: raid10 personality registered for level 10
    [ 193.073151] md: raid6 personality registered for level 6
    [ 193.078482] md: raid5 personality registered for level 5
    [ 193.083809] md: raid4 personality registered for level 4
    [ 193.089391] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
    [ 193.098046] cpuidle: using governor ladder
    [ 193.102469] cpuidle: using governor menu
    [ 193.106549] TCP cubic registered
    [ 193.109790] NET: Registered protocol family 17
    [ 193.114275] Registering the dns_resolver key type
    [ 193.119107] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
    [ 193.127631] md: Waiting for all devices to be available before autodetect
    [ 193.134440] md: If you don't use raid, use raid=noautodetect
    [ 193.140618] md: Autodetecting RAID arrays.
    [ 193.229653] md: invalid raid superblock magic on sda5
    [ 193.234724] md: sda5 does not have a valid v0.90 superblock, not importing!
    [ 193.293586] md: invalid raid superblock magic on sdb5
    [ 193.298665] md: sdb5 does not have a valid v0.90 superblock, not importing!
    [ 193.305661] md: Scanned 6 and added 4 devices.
    [ 193.310124] md: autorun ...
    [ 193.312927] md: considering sda1 ...
    [ 193.316533] md: adding sda1 ...
    [ 193.319778] md: sda2 has different UUID to sda1
    [ 193.324333] md: adding sdb1 ...
    [ 193.327586] md: sdb2 has different UUID to sda1
    [ 193.332150] md: created md0
    [ 193.334952] md: bind<sdb1>
    [ 193.337709] md: bind<sda1>
    [ 193.340450] md: running: <sda1><sdb1>
    [ 193.344321] bio: create slab <bio-1> at 1
    [ 193.348490] md/raid1:md0: active with 2 out of 4 mirrors
    [ 193.353872] md0: detected capacity change from 0 to 2549940224
    [ 193.359822] md: considering sda2 ...
    [ 193.363423] md: adding sda2 ...
    [ 193.366681] md: adding sdb2 ...
    [ 193.370382] md: created md1
    [ 193.373185] md: bind<sdb2>
    [ 193.375945] md: bind<sda2>
    [ 193.378687] md: running: <sda2><sdb2>
    [ 193.382632] md/raid1:md1: active with 2 out of 4 mirrors
    [ 193.388022] md1: detected capacity change from 0 to 2147418112
    [ 193.393958] md: ... autorun DONE.
    [ 193.397389] RAMDISK: lzma image found at block 0
    [ 195.055105] VFS: Mounted root (ext2 filesystem) on device 1:0.
    START /linuxrc.syno
    [ 195.085359] ds414_synobios: module license 'Synology Inc.' taints kernel.
    [ 195.092180] Disabling lock debugging due to kernel taint
    [ 195.098719] correction with 0x03
    [ 195.103857] 2014-7-21 22:4:50 UTC
    [ 195.107199] synobios: load, major number 201
    [ 195.111489] Brand: Synology
    [ 195.114313] Model: DS-414
    [ 195.116961] This is default settings: set group disks wakeup number to 1, spinup time deno 1
    [ 195.125445] synobios cpu_arch proc entry initialized
    mknod: /dev/synobios: File exists
    Starting /usr/syno/bin/synocfgen...
    unknown model: 109, skip updating model info
    /usr/syno/[ 195.142978] synobios: unload
    bin/synocfgen returns 0
    Partition Version=7
    /sbin/e2fsck exists, checking /dev/md0...
    [ 195.332297] md0: unknown partition table

    24470 inodes used (15.72%, out of 155648)
    27 non-contiguous files (0.1%)
    6 non-contiguous directories (0.0%)
    # of inodes with ind/dind/tind blocks: 0/0/0
    Extent depth histogram: 20469/13
    137747 blocks used (22.13%, out of 622544)
    0 bad blocks
    1 large file

    18339 regular files
    1900 directories
    148 character device files
    2047 block device files
    0 fifos
    1162 links
    2023 symbolic links (1780 fast symbolic links)
    4 sockets
    ------------
    25623 files
    /sbin/e2fsck returns 0
    Mounting /dev/md0 /tmpRoot
    [ 196.326195] EXT4-fs (md0): barriers disabled
    [ 196.336583] EXT4-fs (md0): mounted filesystem with ordered data mode. Opts:
    ------------upgrade
    use default /dev/md0
    Begin upgrade procedure
    No upgrade file exists
    End upgrade procedure
    ============upgrade
    /dev/md0 /tmpRoot ext4 rw,relatime,user_xattr,barrier=0,journal_checksum,data=ordered 0 0
    none /sys sysfs rw,relatime 0 0
    linuxrc.syno ex[ 196.497257] EXT3-fs (md0): error: couldn't mount because of unsupported optional features (240)
    ecuted successfully.
    [ 196.527461] EXT4-fs (md0): mounted filesystem with ordered data mode. Opts: barrier=1
    [ 196.535337] VFS: Mounted root (ext4 filesystem) on device 9:0.
    [ 196.541245] Trying to move old root to /initrd ... okay
    [ 196.561843] Freeing init memory: 188K
    [ 197.272416] EXT4-fs (md0): re-mounted. Opts: (null)
    [ 200.495543] sd 0:0:0:0: Attached scsi generic sg0 type 0
    [ 200.501893] sd 1:0:0:0: Attached scsi generic sg1 type 0
    [ 200.735230] md1: unknown partition table
    [ 200.798583] Adding 2097084k swap on /dev/md1. Priority:-1 extents:1 across:2097084k
    [ 201.261155] NET: Registered protocol family 10
    [ 201.504241] usbcore: registered new interface driver usbfs
    [ 201.523004] usbcore: registered new interface driver hub
    [ 201.539266] usbcore: registered new interface driver ethub
    [ 201.550045] usbcore: registered new device driver usb
    [ 201.787686] mvCesaInit: channels=2, session=640, queue=64
    [ 201.833649] encryptfs using the OCF package.
    [ 202.050915] fuse init (API version 7.10022)
    [ 202.207677] correction with 0x03
    [ 202.212819] 2014-7-21 22:4:57 UTC
    [ 202.216181] synobios: load, major number 201
    [ 202.220472] Brand: Synology
    [ 202.223298] Model: DS-414
    [ 202.225954] This is default settings: set group disks wakeup number to 1, spinup time deno 1
    [ 202.234440] synobios cpu_arch proc entry initialized
    [ 202.893423] eth0: mac address changed
    [ 202.938107] eth1: mac address changed
    [ 203.093404] pool #0: pkt_size=1536, buf_size=1632 - 2048 of 2048 buffers added
    [ 203.104325] pool #2: pkt_size=256, buf_size=352 - 3072 of 3072 buffers added
    [ 203.111456] eth0: link up
    [ 203.114110] eth0: started
    [ 204.170506] pool #1: pkt_size=1536, buf_size=1632 - 2048 of 2048 buffers added
    [ 204.181415] pool #3: pkt_size=256, buf_size=352 - 3072 of 3072 buffers added
    [ 204.188580] eth1: started
    [ 204.191691] ADDRCONF(NETDEV_UP): eth1: link is not ready
    [ 205.511304] md: md2 stopped.
    [ 205.606464] md: bind<sdb5>
    [ 205.609707] md: bind<sda5>
    [ 205.621604] md/raid1:md2: active with 2 out of 2 mirrors
    [ 205.627040] md2: detected capacity change from 0 to 3995938455552
    [ 205.636409] md2: unknown partition table
    [ 208.470689] EXT4-fs (dm-0): barriers disabled
    [ 209.648529] EXT4-fs (dm-0): mounted filesystem with writeback data mode. Opts: usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl,data=writeback,oldalloc
    [ 210.697015] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 210.703672] ehci_marvell ehci_marvell.0: Marvell Orion EHCI
    [ 210.709377] ehci_marvell ehci_marvell.0: new USB bus registered, assigned bus number 1
    [ 210.745749] ehci_marvell ehci_marvell.0: irq 45, io base 0xfbc50100
    [ 210.765729] ehci_marvell ehci_marvell.0: USB 2.0 started, EHCI 1.00
    [ 210.772860] hub 1-0:1.0: USB hub found
    [ 210.776678] hub 1-0:1.0: 1 port detected
    [ 210.783548] ehci_marvell ehci_marvell.1: Marvell Orion EHCI
    [ 210.789196] ehci_marvell ehci_marvell.1: new USB bus registered, assigned bus number 2
    [ 210.825747] ehci_marvell ehci_marvell.1: irq 46, io base 0xfbc51100
    [ 210.845705] ehci_marvell ehci_marvell.1: USB 2.0 started, EHCI 1.00
    [ 210.858310] hub 2-0:1.0: USB hub found
    [ 210.862103] hub 2-0:1.0: 1 port detected
    [ 211.184721] etxhci_hcd_140303 0000:01:00.0: Etron xHCI Host Controller
    [ 211.191400] etxhci_hcd_140303 0000:01:00.0: new USB bus registered, assigned bus number 3
    [ 211.208967] etxhci_hcd_140303 0000:01:00.0: Etron chip found.
    [ 211.214887] etxhci_hcd_140303 0000:01:00.0: irq 62, io mem 0xf2800000
    [ 211.286140] ethub 3-0:1.0: USB hub found
    [ 211.290158] ethub 3-0:1.0: 2 ports detected
    [ 211.313391] etxhci_hcd_140303 0000:01:00.0: Etron xHCI Host Controller
    [ 211.320058] etxhci_hcd_140303 0000:01:00.0: new USB bus registered, assigned bus number 4
    [ 211.361693] ethub 4-0:1.0: USB hub found
    [ 211.365922] ethub 4-0:1.0: 2 ports detected
    [ 211.642789] Initializing USB Mass Storage driver...
    [ 211.699191] usbcore: registered new interface driver usb-storage
    [ 211.705228] USB Mass Storage support registered.
    [ 212.068148] usbcore: registered new interface driver usblp
    [ 212.415751] usbcore: registered new interface driver usbhid
    [ 212.421355] usbhid: USB HID core driver
    ')
    Printed environment variables and some additional information:
    $this->bbcode_second_pass_code('', '
    Marvell>> printenv
    CASset=min
    MALLOC_len=5
    MPmode=smp
    amp_enable=no
    autoload=no
    baudrate=115200
    boot_order=hd_scr hd_img pxe net_img net_scr
    bootargs=console=ttyS0,115200 ip=off initrd=0x8000040,8M root=/dev/md0 rw syno_hw_version=DS414v10 ihd_num=4 netif_num=2 flash_size=8 SataLedSpecial=1 HddHotplug=1
    bootargs_dflt=$console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
    bootargs_end=:10.4.50.254:255.255.255.0:DSMP:eth0:none
    bootargs_root=root=/dev/nfs rw
    bootcmd=bootm 0xf40d0000 0xf43a0000
    bootcmd_auto=stage_boot $boot_order
    bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
    bootdelay=3
    cacheShare=no
    console=console=ttyS0,115200
    device_partition=0:1
    disL2Cache=yes
    disL2Prefetch=yes
    disaMvPnp=no
    eeeEnable=no
    enaAutoRecovery=yes
    enaClockGating=no
    enaCpuStream=no
    enaDCPref=yes
    enaFPU=yes
    enaICPref=yes
    enaLPAE=no
    enaWrAllo=no
    eth1addr=00:50:43:02:00:00
    eth1mtu=1500
    eth2addr=00:50:43:00:00:02
    eth2mtu=1500
    eth3addr=00:50:43:00:02:02
    eth3mtu=1500
    ethact=egiga0
    ethaddr=00:50:43:02:02:00
    ethmtu=1500
    ethprime=egiga0
    fdt_addr=2040000
    ide_path=/
    image_name=uImage
    initrd_name=uInitrd
    ipaddr=10.4.50.165
    kernel_addr_r=2080000
    lcd0_enable=0
    lcd0_params=640x480-16@60
    lcd_panel=0
    loadaddr=0x02000000
    loads_echo=0
    mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
    mv_pon_addr=00:50:43:00:00:02
    netbsd_en=no
    netmask=255.255.255.0
    netretry=no
    pcieTune=no
    pexMode=rc
    pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
    pxefile_addr_r=3100000
    ramdisk_addr_r=2880000
    rcvrip=169.254.100.100
    rootpath=/srv/nfs/
    sata_delay_reset=0
    sata_dma_mode=yes
    script_addr_r=3000000
    script_name=boot.scr
    serverip=10.4.50.5
    setL2CacheWT=no
    standalone=fsload 0x2000000 $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
    stderr=serial
    stdin=serial
    stdout=serial
    usb0Mode=host
    usb1Mode=host
    usb2Mode=device
    usbActive=0
    vxworks_en=no
    yuk_ethaddr=00:00:00:EE:51:81

    Environment size: 2272/65532 bytes

    Marvell>> bdinfo
    arch_number = 0x00000BDC
    boot_params = 0x00000100
    DRAM bank = 0x00000000
    -> start = 0x00000000
    -> size = 0x40000000
    DRAM bank = 0x00000001
    -> start = 0x00000000
    -> size = 0x00000000
    DRAM bank = 0x00000002
    -> start = 0x00000000
    -> size = 0x00000000
    DRAM bank = 0x00000003
    -> start = 0x00000000
    -> size = 0x00000000
    ethaddr = 00:50:43:02:02:00
    ip_addr = 10.4.50.165
    baudrate = 115200 bps
    TLB addr = 0x3FFF0000
    relocaddr = 0x3FEFB000
    reloc off = 0x3FEFB000
    irq_sp = 0x3F9EAF08
    sp start = 0x3F9EAEF8
    FB base = 0x00000000

    Marvell>> sp
    scanning pex number: 0

    Bus: 0 Device: 0 Func: 0 Vendor ID: 11ab Device ID: 7042
    -------------------------------------------------------------------
    Class: Mass storage controller
    PCI_BAR0 (Mem-64bit) base: 040000000 size: 1Mb
    PCI_BAR1 (I/O-32bit) base: ffffff00 size: 0Mb

    Bus: 0 Device: 1 Func: 0 Vendor ID: 11ab Device ID: 7823
    -------------------------------------------------------------------
    Class: Memory controller
    PCI_BAR0 (Mem-64bit) base: 0f1000000 size: 1Mb
    PCI_BAR1 (Mem-64bit) base: 000000000 size: 1024Mb
    ')
    Printed /proc/mtd and saved the /dev/mtd* nodes with dd (nand read/write not available in U-Boot).
    $this->bbcode_second_pass_code('', '
    cat /proc/mtd
    dev: size erasesize name
    mtd0: 000d0000 00010000 "RedBoot"
    mtd1: 002d0000 00010000 "zImage"
    mtd2: 00430000 00010000 "rd.gz"
    mtd3: 00010000 00010000 "vendor"
    mtd4: 00010000 00010000 "RedBoot Config"
    mtd5: 00010000 00010000 "FIS directory"
    mtd6: 00800000 00010000 "spi_flash"
    ')
    Printed the available commands:
    $this->bbcode_second_pass_code('', '
    Marvell>> help
    ? - alias for 'help'
    SatR - Sample At Reset sub-system

    WOLTest - WOLTest - Wake On Lan u-boot testing

    amp_boot- amp_boot - boot an AMP group

    amp_config- Fully config an AMP group

    amp_printenv- amp_printenv - print only AMP env variables

    amp_verify- Verfiy AMP configuration

    base - print or set address offset
    bdinfo - print Board Info structure
    bios - BIOS command to set the DB configuration.

    boot - boot default, i.e., run 'bootcmd'
    bootd - boot default, i.e., run 'bootcmd'
    bootelf - Boot from an ELF image in memory
    bootm - boot application image from memory
    bootp - boot image via network using BOOTP/TFTP protocol
    bootvx - Boot vxWorks from an ELF image
    bubt - bubt - Burn an image on the Boot SPI Flash.

    chpart - change active partition
    cmp - memory compare
    coninfo - print console devices and information
    cp - memory copy
    crc32 - checksum calculation
    date - get/set/reset date & time
    ddrPhyRead- ddrPhyRead - Read DDR PHY register

    ddrPhyWrite- ddrPhyWrite - Write DDR PHY register

    dhcp - boot image via network using DHCP/TFTP protocol
    diskboot- diskboot- boot from IDE device

    dma - dma - Perform DMA using the XOR engine

    echo - echo args to console
    editenv - edit environment variable
    eeprom - EEPROM sub-system
    env - environment handling commands
    exit - exit script
    ext2load- load binary file from a Ext2 filesystem
    ext2ls - list files in a directory (default /)
    false - do nothing, unsuccessfully
    fatinfo - print information about filesystem
    fatload - load binary file from a dos filesystem
    fatls - list files in a directory (default /)
    fsinfo - print information about filesystems
    fsload - load binary file from a filesystem image
    go - start application at address 'addr'
    help - print command description/usage
    i2c - I2C sub-system
    ide - ide - IDE sub-system

    iminfo - print header information for application image
    imxtract- extract a part of a multi-image
    ir - ir - reading and changing MV internal register values.

    itest - return true/false on integer compare
    loadb - load binary file over serial line (kermit mode)
    loads - load S-Record file over serial line
    loadx - load binary file over serial line (xmodem mode)
    loady - load binary file over serial line (ymodem mode)
    loop - infinite loop on address range
    ls - list files in a directory (default /)
    map - map - Diasplay address decode windows

    md - memory display
    me - me - PCI master enable

    mm - memory modify (auto-incrementing address)
    mmc - MMC sub system
    mmcinfo - display MMC info
    mp - mp - map PCI BAR

    mtdparts- define flash/nand partitions
    mtest - simple RAM read/write test
    mw - memory write (fill)
    nfs - boot image via network using NFS protocol
    nm - memory modify (constant address)
    pci - list and access PCI Configuration Space
    pciePhyRead- phyRead - Read PCI-E Phy register

    pciePhyWrite- pciePhyWrite - Write PCI-E Phy register

    phyRead - phyRead - Read Phy register

    phyWrite- phyWrite - Write Phy register

    ping - send ICMP ECHO_REQUEST to network host
    printenv- print environment variables
    pxe - commands to get and boot from pxe files
    rcvr - rcvr - Satrt recovery process (Distress Beacon with TFTP server)

    reset - Perform RESET of the CPU
    resetenv- resetenv - earse environment sector to reset all variables to default.

    run - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    scsi - SCSI sub-system
    scsiboot- boot from SCSI device
    se - se - PCI Slave enable

    setenv - set environment variables
    sf - SPI flash sub-system
    sg - sg - scanning the PHYs status

    showvar - print local hushshell variables
    sleep - delay execution for some time
    source - run script from memory
    sp - sp - Scan PCI Interface [bus].

    sspi - SPI utility command
    stage_boot- command to load script/image from different devices
    example: stage_boot hd_img pxe
    temp - temp - Display the device temprature.

    tempCmd0- tempCmd - This command allocated for monitor extintion

    tempCmd1- tempCmd - This command allocated for monitor extintion

    tempCmd2- tempCmd - This command allocated for monitor extintion

    tempCmd3- tempCmd - This command allocated for monitor extintion

    test - minimal test like /bin/sh
    tftpboot- boot image via network using TFTP protocol
    training- training - prints the results of the DDR3 Training.

    true - do nothing, successfully
    ts_report- ts_report - report touch screen cooridate

    ts_test - ts_test - test touch screen

    ubi - ubi commands
    ubifsload- load file from an UBIFS filesystem
    ubifsls - list files in a directory
    ubifsmount- mount UBIFS volume
    ubifsumount- unmount UBIFS volume
    usb - USB sub-system
    usbboot - boot from USB device
    version - print monitor, compiler and linker version
    warmRst - warmRst - Warn Reset AXP card over PEX.

    whoAmI - - reading CPU ID
    ')
    Most likely bricked the device through the use of saveenv (just don't ever do it!)
    $this->bbcode_second_pass_code('', '
    BootROM 1.20
    Booting from SPI flash
    High speed PHY - Version: 2.1.2 (COM-PHY-V20)
    Update PEX Device ID 0x78230
    High speed PHY - Ended Successfully
    DDR3 Training Sequence - Ver 4.5.0
    DDR3 Training Sequence - Ended Successfully
    Status = MV_OK
    BootROM: Image checksum verification PASSED

    __ __ _ _
    | \/ | __ _ _ ____ _____| | |
    | |\/| |/ _` | '__\ \ / / _ \ | |
    | | | | (_| | | \ V / __/ | |
    |_| |_|\__,_|_| \_/ \___|_|_|
    _ _ ____ _
    | | | | | __ ) ___ ___ | |_
    | | | |___| _ \ / _ \ / _ \| __|
    | |_| |___| |_) | (_) | (_) | |_
    \___/ |____/ \___/ \___/ \__|
    ** LOADER **


    U-Boot 2011.12-SYNO-add48c3-2013-07-18 (Jul 18 2013 - 16:52:44) Marvell version: v2011.12 2013_Q1.2

    Board: Synology AXP 78230 4-bay/2-bay
    SoC: MV78230 B0
    running 2 CPUs
    Custom configuration
    CPU: Marvell PJ4B (584) v7 (Rev 2) LE
    CPU 0
    CPU @ 1333 [MHz]
    L2 @ 667 [MHz]
    TClock @ 250 [MHz]
    DDR @ 667 [MHz]
    DDR 32Bit Width, FastPath Memory Access
    DDR ECC Disabled
    DRAM: 1 GiB

    Map: Code: 0x3fefb000:0x3ff9f59c
    BSS: 0x3ffef33c
    Stack: 0x3f9eaef8
    Heap: 0x3f9eb000:0x3fefb000

    MMC: MRVL_MMC: 0
    SF: Detected M25P64 with page size 64 KiB, total 8 MiB
    PEX 0.0(0): Root Complex Interface, Detected Link X4, GEN 1.1
    PEX 1.0(1): Root Complex Interface, Detected Link X1, GEN 2.0
    PEX 1.1(2): Detected No Link.
    PEX 1.2(3): Detected No Link.
    FPU initialized to Run Fast Mode.
    USB 0: Host Mode
    USB 1: Host Mode
    USB 2: Device Mode
    Modules Detected:

    Synology Model: DS414
    Fan Status: Not Good
    Fan 1: Not Good
    Fan 2: Not Good

    Net: egiga0 [PRIME], egiga1
    Press Ctrl+C to abort autoboot in 3 second
    ## Booting kernel from Legacy Image at f40d0000 ...
    Image Name: Linux-3.2.40
    Created: 2014-05-29 3:06:26 UTC
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 2061448 Bytes = 2 MiB
    Load Address: 00008000
    Entry Point: 00008000
    Verifying Checksum ... Bad Data CRC
    ERROR: can't get kernel image!
    Marvell>>
    ')
    Tried booting from a USB stick (using ArchLinuxARM-armv7-latest.tar.gz and using mkimage to convert zImage into uImage with partition1 being fat32 with /boot/* contents and partition2 being ext4 with /) and not getting anywhere:
    $this->bbcode_second_pass_code('', '
    setenv bootcmd_usb "usb start;fatload usb 0:1 0x32000000 uImage; run bootargs_usb; bootm 0x32000000"
    setenv bootargs_usb "setenv bootargs root=/dev/sda2 rootdelay=1 console=ttyS0,115200 rw rootwait"
    setenv bootcmd "run bootcmd_usb"

    Marvell>> boot
    (Re)start USB...
    USB: Active port: 0
    Register 10011 NbrPorts 1
    USB EHCI 1.00
    scanning bus for devices... 2 USB Device(s) found
    scanning bus for storage devices... 1 Storage Device(s) found
    reading uImage
    EHCI timed out on TD - token=0x800d8d80
    EHCI timed out on TD - token=0x800d8d80
    EHCI timed out on TD - token=0x800d8d80

    4131192 bytes read
    ## Booting kernel from Legacy Image at 32000000 ...
    Image Name: Arch Linux ARM
    Created: 2014-07-27 13:27:28 UTC
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 4131128 Bytes = 3.9 MiB
    Load Address: 00000000
    Entry Point: 00000000
    Verifying Checksum ... Bad Data CRC
    ERROR: can't get kernel image!
    ')

In U-Boot (which is stripped off some of its features by Synology obviously) there is no mtdparts because mtdids are missing (most likely because saveenv killed 'em). No ls of /, but you can use RAM and U-Boot can fatls usb 0:1 and load the (uImage) image.
All in all I'm confused now and most likely bricked the whole thing. Any help on how to proceed is much appreciated!
dvzrv
 
Posts: 1
Joined: Sun Jul 27, 2014 5:38 pm

Return to Marvell

Who is online

Users browsing this forum: No registered users and 3 guests