General NAS-Central Forums

Welcome to the NAS community
It is currently Thu Sep 21, 2017 12:04 pm

All times are UTC




Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Tue Jun 03, 2014 12:42 am 
Offline

Joined: Mon Jan 09, 2012 4:17 pm
Posts: 29
Hello to all !

These are instructions on how to convert a ix4- 200d to ix4- 200d cloud edition.

In addition, this procedure restores all ix4 blocked by an incorrect upgrade procedure . If you have a ix4 that reboot or display with icons LAN or USB , this procedure corrects the problem.
The procedure uses a JTAG cable , so it is necessary to procure or build it. You will find many schemes that use the max232 chip or buy it already done. Find it in google: jtag max232
and now let's start to test equipment :
1 ) Take a PC with a serial port , install the software and connect the testloop pin 2 to 3 . Doing the test if ok go ahead
2 ) Connected to the JTAG and serial connect rx with tx . Performed the test with jtag , if ok go ahead .
3 ) download and unrar this program :
putty ,
server tftpd,
firmware ix4-200d-3.2.6.17887-recovery
4) extract the file of firmware and put the file in the server folder (initrd, zImage)
5 ) format a usb thumb drive with fat32 and create a folders on the usb thumb drive:
X:\emctools\ix4-200d_images
and put the file emctools.7z:
X:\emctools\ix4-200d_images\ix4-boot.tgz
and put it in usb port on back side of nas
6) delete ever partition on all hd, completely clean and put only one in one position
7) connect jtag cable to the pin nas like pictures
8) directly connecting lan of nas to the PC, without switch or router and
set the following static ip on your pc 10.4.50.5
9 ) start the server program tftpd (ip nas address 10.4.50.165 )
10 ) start putty 115000 8n1
11) Turn on the nas and if all goes well you need to read in putty
during the startup phase of nas , various writings, by pressing a
text when you ask look continuous restarts , you get
prompt .
12) copy and paste the following instructions in putty, one by one and press enter key
setenv initrd_size 0x2f0000
saveenv
tftpboot 0x2000000 zImage
tftpboot 0x12000000 initrd
nand erase 0x2d4000 0x2f000
nand erase 0xb0000 0x224000
nand write.e 0x12000000 0x2d4000 0x2f0000
nand write.e 0x2000000 0x0b0000 0x224000
reset

13) restart creates the boot partition on the first disk , and start
with the new firmware cloud. When power off nas, put the other 3 hd and disconnect the jtag
14) close the program server , unplug the lan cable and enter the nas and rebuilt the raid, we will put a few hours for working normality. Reconnect everything to your network.
I hope did not forget anything
I made a rar file with all the programs used and pictures:
https://dl.dropboxusercontent.com/u/245 ... ade_ce.rar


Top
 Profile  
 
PostPosted: Tue Jun 03, 2014 3:54 pm 
Offline

Joined: Fri Mar 14, 2014 9:46 pm
Posts: 32
Hi maozip,

thanks for this super tutorial !!

I'll be the first one to try it !!


Top
 Profile  
 
PostPosted: Tue Jun 03, 2014 4:18 pm 
Offline

Joined: Fri Mar 14, 2014 9:46 pm
Posts: 32
could you re-upload the 4 *.png images in the package? because they are very very small, difficault to see ..

thanks a lot !


Top
 Profile  
 
PostPosted: Fri Jun 06, 2014 7:03 am 
Offline

Joined: Mon Jan 09, 2012 4:17 pm
Posts: 29
HI
https://dl.dropboxusercontent.com/u/245 ... G_5865.JPG
https://dl.dropboxusercontent.com/u/245 ... G_5864.JPG
https://dl.dropboxusercontent.com/u/245 ... G_5863.JPG
https://dl.dropboxusercontent.com/u/245 ... G_5862.JPG


Top
 Profile  
 
PostPosted: Fri Jun 06, 2014 8:51 am 
Offline

Joined: Mon Jan 09, 2012 4:17 pm
Posts: 29
The first error:
the JTAG cable is actually a serial cable with a max232 to adapt the signals.
in the pictures you see 4 cable rx tx gnd and red is vcc for max232


Top
 Profile  
 
PostPosted: Wed Jun 11, 2014 12:22 pm 
Offline

Joined: Fri Mar 14, 2014 9:46 pm
Posts: 32
maozip wrote:


Thanks @maozip !!

I command a max232 convertor on ebay, like this one :
http://www.ebay.fr/itm/RS232-TTL-Convertisseur-Pour-COM-Module-serie-Chip-Conseil-MAX232CPE-w-Cable-/191152610045?pt=FR_C%C3%A2bles_adaptateurs_audio&hash=item2c81955afd

wish it work !


Top
 Profile  
 
PostPosted: Wed Jun 11, 2014 9:42 pm 
Offline

Joined: Mon Jan 09, 2012 4:17 pm
Posts: 29
yes!!! it is


Top
 Profile  
 
PostPosted: Wed Jun 25, 2014 7:24 pm 
Offline

Joined: Fri Mar 14, 2014 9:46 pm
Posts: 32
can't believe it !!!

I received the MAX232 yesterday, and now, I success to view the boot log !!! yeah !!! thanks @maozip !!!

here is it :

Code:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** uboot_ver:v1.1.0 **

 ** MARVELL BOARD: IX4-110 LE

U-Boot 1.1.4 (Oct 15 2009 - 17:28:22) Marvell version: 3.4.18

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CF600

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Found 0x20 i2c device
Set Power State as Always On
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB
Found ADT7473, program LED ...(led_volt=90)  OK
Found ADT7473, program thermal/Fan ...(pwm_min=0) (pwm_max=130) (therm=67) (temp_min=60)  OK

Marvell Serial ATA Adapter
Integrated Sata device found


CPU : Marvell Feroceon (Rev 1)
Could not found correct initrd

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is RGMII

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
SCSI:  AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x7 impl IDE mode
flags: 64bit ncq stag led pmp slum part
scanning bus for devices...
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0xb0000, size 0x224000

Reading data from 0x2d3e00 -- 100% complete.
 2244608 bytes read: OK

NAND read: device 0 offset 0x2d4000, size 0x224000

Reading data from 0x4f7e00 -- 100% complete.
 2244608 bytes read: OK
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2012-02-13  21:48:28 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2077080 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 12000000 ...
Bad Magic Number


so I think if I follow your tuto, my ix4-200d will be recovered !!!

to be continue...


Top
 Profile  
 
PostPosted: Wed Jun 25, 2014 7:46 pm 
Offline

Joined: Fri Mar 14, 2014 9:46 pm
Posts: 32
@maozip

here is your tuto, I have some questions, can you plz explain to me?

Quote:
1 ) Take a PC with a serial port , install the software and connect the testloop pin 2 to 3 . Doing the test if ok go ahead ==> OK
2 ) Connected to the JTAG and serial connect rx with tx . Performed the test with jtag , if ok go ahead . ==> OK
3 ) download and unrar this program :==> OK
putty ,
server tftpd,
firmware ix4-200d-3.2.6.17887-recovery
4) extract the file of firmware and put the file in the server folder (initrd, zImage) ==> the "server folder" means the tftpd server?
5 ) format a usb thumb drive with fat32 and create a folders on the usb thumb drive:
X:\emctools\ix4-200d_images
and put the file emctools.7z: ==> in your package, I only see this one "ix4-200d-3.2.6.17887-recovery.zip" in which I see "ix4-200d.tgz" , is this the right one?
X:\emctools\ix4-200d_images\ix4-boot.tgz
and put it in usb port on back side of nas
6) delete ever partition on all hd, completely clean and put only one in one position ==> can you tell me how you formatted these hdd ? plug on your PC and format with Windows?
7) connect jtag cable to the pin nas like pictures ==> OK
8) directly connecting lan of nas to the PC, without switch or router and set the following static ip on your pc 10.4.50.5 ==>OK
9 ) start the server program tftpd (ip nas address 10.4.50.165 ) ==> this IP adress of NAS 10.4.50.165 is always the same on all of NAS ?
10 ) start putty 115000 8n1 ==> OK
11) Turn on the nas and if all goes well you need to read in putty, during the startup phase of nas , various writings, by pressing a text when you ask look continuous restarts , you get
prompt . ==> means by press any key I can interrupt the boot ?


thanks a lot !!


Top
 Profile  
 
PostPosted: Wed Jun 25, 2014 9:22 pm 
Offline

Joined: Fri Mar 14, 2014 9:46 pm
Posts: 32
Help!

I did what you say, then this is the problem:
When I run “tftpboot 0x2000000 zImage“ , in putty there were some “T" then tell me " retry count exceded; starting again " , what does it mean?


Top
 Profile  
 
PostPosted: Wed Jun 25, 2014 10:22 pm 
Offline

Joined: Fri Mar 14, 2014 9:46 pm
Posts: 32
ok, here is the thing :

- I did what you said like " extract the file of firmware and put the file in the server folder (initrd, zImage)", this doesn't work, I got " retry count exceded; starting again " error, because the file size is not ok,
- so I run directly the tftp server in your package "tftpd64.450", which has already zImage and initrd files in it, and it works, now I've the famous "USB and LAN" display on my NAS's lcd, I'm happy,
- but after I flash the first hdd with 1 usb stick with the "ix4-200d-3.2.6.17887-recovery", all seems to be good, the NAS powered down, so I plug the 3 others hdd, to build the raid, then I got this :
- please tell me, what's the difference between "ix4-200d-3.2.6.17887-recovery (186455 ko)" and "ix4-boot.tgz (107824 ko) " in the folder " emctools" ?

Code:
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Marvell Storage Controller is found, using IRQ 9.
scsi0 : Marvell Storage Controller
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi1 : Marvell SCSI to SATA adapter
scsi2 : Marvell SCSI to SATA adapter
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o eth0, ifindex = 2, GbE port = 0
     o eth1, ifindex = 3, GbE port = 1

mvFpRuleDb (c87c0000): 16384 entries, 65536 bytes
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit   )
Scanning device for bad blocks
5 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 5 MTD partitions on "nand_mtd":
0x000000000000-0x0000000a0000 : "uboot"
0x0000000a0000-0x0000000b0000 : "env"
0x0000000b0000-0x0000002d4000 : "zImage"
0x0000002d4000-0x0000005c4000 : "initrd"
0x000000000000-0x000002000000 : "flash"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.7005, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
adt7473 0-002e: adt7473 chip found
md: linear personality registered for level -1
md: raid1 personality registered for level 1
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
wix gpio_init
wix_lcm: WIX LCM driver version 0.1
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
rtc mv_rtc: setting system clock to 2014-06-25 22:04:54 UTC (1403733894)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
Looking for shell in cmdline: console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0   (uboot),0x10000@0xa0000(env),0x224000@0xb0000(zImage),0x2f0000@0x2d4000(initrd),   32m@0x0(flash)
cat: can't open '/sys/block/sda/removable': No such file or directory
cat: can't open '/sys/block/sdb/removable': No such file or directory
cat: can't open '/sys/block/sdc/removable': No such file or directory
cat: can't open '/sys/block/sdd/removable': No such file or directory
mdadm: No devices to examine
cat: can't open '/sys/block///size': No such file or directory
mdadm: No devices to examine
cat: can't open '/sys/block///size': No such file or directory
mdadm: No devices to examine
cat: can't open '/sys/block///size': No such file or directory
mdadm: No devices to examine
cat: can't open '/sys/block///size': No such file or directory
Sys UUID is :0
Valid Disk 1 in md0:
Valid Disk 2 in md0:
Valid Disk 3 in md0:
Valid Disk 4 in md0:
USB Device node is sda
Checking to see the if the reset button is pressed or not
Started
/dev/btns file does not exist creating it
Opened /dev/btns with fd 3
Reset Key Status: Button Id = 29 Push Count = 0 Release Count = 0
Checking for valid image in hard drives
mdadm: /dev/md0 not identified in config file.
mount: mounting /dev/md0_vg/BFDlv on sysroot/boot failed: No such file or direct   ory
umount: cannot umount sysroot/boot: Invalid argument
Checking if there is an attached EMC Imager
mount: mounting /dev/sda on /usb_drive failed: No such device or address
No valid EMC Imager found - Going in to network imaging
Going in to Network Imaging Mode
umount: cannot umount /dev/md0: Invalid argument
umount: cannot umount /usb_drive: Invalid argument
eth0: started
udhcpc (v1.9.2) started
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending discover...
No lease, failing
/mount_images.sh: line 357: fw_printenv: not found
mac address is 00:26:2D:06:91:88
Device Serial Num is 00262D069188
Device Model- ix4-200d
Device: Socket Listening on: 2081
Mac address = 00:26:2d:06:91:88
Send: Network is unreachable
The DEPP image copy was not successful.
Reboot the system.
Constructing root filesystem...
cp: cannot stat '/sysroot/mnt/apps/ram': No such file or directory
cp: cannot stat 'sysroot/mnt/apps/var': No such file or directory
Bootstrapping ...
tmpfs: No value for mount option 'relatime'
mount: mounting none on / failed: Invalid argument
Initialization complete.
Freeing init memory: 124K
init started: BusyBox v1.9.2 (2012-04-17 18:23:53 EDT)
starting pid 693, tty '': '/etc/init.d/rcS'
starting pid 696, tty '': 'umount'
BusyBox v1.9.2 (2012-04-17 18:23:53 EDT) multi-call binary

Usage: umount [flags] FILESYSTEM|DIRECTORY

Unmount file systems

Options:

        -r      Try to remount devices as read-only if mount is busy
        -l      Lazy umount (detach filesystem)
        -f      Force umount (i.e., unreachable NFS server)
        -D      Do not free loop device (if a loop device has been used)

The system is going down NOW!
Sending SIGTERM to all processes
Sending SIGKILL to all processes
Requesting system reboot
md: stopping all md devices.
Restarting system.
Reseting !!


now what can I do for this plz ?


Top
 Profile  
 
PostPosted: Thu Jun 26, 2014 7:40 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6039
Quote:
so I run directly the tftp server in your package "tftpd64.450", which has already zImage and initrd files in it
Are that the right ones? If they are different than the other two, you can try to exchange them.
A wrong initrd files can't cooperate well with the imager stick.
Quote:
but after I flash the first hdd with 1 usb stick with the "ix4-200d-3.2.6.17887-recovery", all seems to be good, the NAS powered down, so I plug the 3 others hdd,
I'm not sure if it's supposed to work that way. You can retry with 4 disks inserted and the imager stick.


Top
 Profile  
 
PostPosted: Thu Jun 26, 2014 8:58 pm 
Offline

Joined: Fri Mar 14, 2014 9:46 pm
Posts: 32
Mijzelf wrote:
Are that the right ones? If they are different than the other two, you can try to exchange them.
A wrong initrd files can't cooperate well with the imager stick.

I'm not sure if it's supposed to work that way. You can retry with 4 disks inserted and the imager stick.


It seems like I succeeded to recover my NAS !!! ok I'll write down my "adventure" one step by one step :

1, download the package of @maozip, extract it, there are many files and folders, BUT, only the folder " emctools" and "tftpd64.450" are useful for the recovery;
2, plug the MAX232 serial, and the LAN cable, set IP adress to 10.4.50.5 on your PC,
3, copy the folder "emctools" to the USB stick which formatted to fat32, the firmware in this folder is "ix4-boot.tgz" and has 107824 Ko, plug the USB stick to usb port ;
4, run putty by 115200, 8, non, 1, and run "tftpd64.exe" in the folder "tftpd64.45", don't put any others files in it, be cause there are already "zImage (2029 Ko)" and "initrd (2961 Ko)",
5, delete all volumes on the 4 hdd, in Windows or in Linux, whatever, then plug one hdd in the slot 1 (on the bottom),
6, turn on the NAS, interrupt the boot process when you see" press any key to interrupt the autoboot...", tnen we see the prompt, like "marvell>>",
7, run those commands one by one :
setenv initrd_size 0x2f0000
saveenv
tftpboot 0x2000000 zImage
tftpboot 0x12000000 initrd
nand erase 0x2d4000 0x2f000
nand erase 0xb0000 0x224000
nand write.e 0x12000000 0x2d4000 0x2f0000
nand write.e 0x2000000 0x0b0000 0x224000
reset
8, the NAS will reboot, then we can see the "USB & LAN" icons display on the LCD, then it will create the boot partition on the hdd, when all is finished, the NAS will powered off itself;
9, now we can unplug the USB stick, and plug the LAN cable on your switch, , we can also unplug the serial cable, but if you want to see the log in putty, you can let it ;
10, now insert the 3 others hdd, and turn on the NAS, wait until the message like, " attention : the volume on disk 1 need overwrite.." when we scroll the display, we can see a IP adress of you LAN,
11, now we can run the "LenovoEMC Storage Manager" on the PC, it will find the NAS, but there is no volume on it, so we should go to option "storage", and create the RAID, this will take very long time, we can see the % on the NAS's LCD screen.

OK, here how I recovered my ix4-200d, thanks to @maozip and @Mijzelf again !!!


Top
 Profile  
 
PostPosted: Thu Jun 26, 2014 9:03 pm 
Offline

Joined: Fri Mar 14, 2014 9:46 pm
Posts: 32
I have a new question : does the RAID5 is really necessary ? if I only need a LAN storage, don't care about the data safety, can I made this NAS to 4 hdd without RAID ?


Top
 Profile  
 
PostPosted: Thu Jun 26, 2014 10:25 pm 
Offline

Joined: Mon Jan 09, 2012 4:17 pm
Posts: 29
Hi Qesc
i very happy for you
I'm sorry if I stay up late.
raid 5 is not necessary.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group