Large HDD >2TB

Re: Large HDD >2TB

Postby fvdw » Mon Jan 28, 2013 7:33 pm

pm sent, please let us know the result
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Large HDD >2TB

Postby SerG_KatsO » Tue Jan 29, 2013 7:08 am

Unpack UIMAGE-26394-NWSP2CL-59.zip
Recorded UIMAGE-26394-NWSP2CL-59 - OK!
Reboot from web-console.
Boot - OK!
Unpack u-boot-nwsp2-classic-gpt-usbboot-80b.zip - OK!
Check md5 summ - OK!
Write u-boot-nwsp2-classic-gpt-usbboot-80b.bin to flash -
root@LC:/share/1000/fvdw # dd if=/share/1000/fvdw/u-boot-nwsp2-classic-gpt-usbboot-80b.bin of=/dev/mtdblock0
897+1 records in
897+1 records out
- OK!
Reboot from web-console - startup normal
Go to shell:
root@LC:/ # dmesg | grep console
Kernel command line: console=ttyS0,115200 root=/dev/sda7 ro reset=0 productType=ASTON_KW
console [ttyS0] enabled
:dontknow
OK. Hard reboot. Startup normal
Go to shell:
root@LC:/ # dmesg | grep console
Kernel command line: console=ttyS0,115200 root=/dev/sda7 ro reset=0 productType=ASTON_KW
console [ttyS0] enabled

System information:
[ img ]

What am I doing wrong?
SerG_KatsO
Donator VIP
Donator VIP
 
Posts: 21
Joined: Wed Oct 31, 2012 10:07 am
Location: Moscow, RUSSIA

Re: Large HDD >2TB

Postby Jocko » Tue Jan 29, 2013 8:31 am

Maybe, the write protection is enabled.
So you must check it.

=> Use the command "flinfo" after running clunc to check if you have this line
Code: Select all
Write Protection    : Upper 1 of 2
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Large HDD >2TB

Postby fvdw » Tue Jan 29, 2013 10:19 am

In the PM I sent you I mentioned the possible write protect of the flash. It can be disabled as Jocko mentioned.
For this you need to connect to the NAS using a program "clunc". That will enable you to talk to u-boot.
I compiled a version of clunc that will run in Ubuntu but probably also other Linux distribution on x86 Pc's (intel AMD based)

Whta you will need is a PC running this program and the NAS both connected to the LAN.
The nwsp2 must be switched ff
Attached two files put them on your PC in ubuntu in a folder for example with name "clunc" and be sure that they are set executable.
Open a terminal window in ubuntu and go to this directory where you put the files
now run the command
Code: Select all
./clunc -vi ip-nas

replace ip-nas by the actual ip address of your nwsp2, or in case you don't know this use an ip address in the dhcp range of your dhcp server (typcally 192.168.x.y (the number x must match with the number on that place of the ip addres of your PC) the chosen ip number must not be in use by another pc.

If the program runs ok you should get a response like this
Code: Select all
root@fvdwsl-nwsp2:/clunc # ./clunc -vi 192.168.1.147
waiting U-Boot...


now start the nwsp-2
It will power up and you should get a short flash of the red led meaning it detected that clunc is running and wants to connect to the netconsole
on your PC you should now see in the terminal window this
Code: Select all
U-Boot NetConsole
-----------------

interactive shell

Marvell>>

Now we can talk to u-boot :mrgreen: and remove the write protection

Give the command Jocke mention
Code: Select all
Marvell>> flinfo

if it contains the Line Jock posted the flash is protected.
To remove it use the command
Code: Select all
Marvell>> protect off all

Check with the flinfo command if it is removed.
Now give command
Code: Select all
Marvell>> reset

and let the nwsp2 boot.
Now again write the new u-boot version to flash

file moved to download forum
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Large HDD >2TB

Postby SerG_KatsO » Wed Jan 30, 2013 9:11 am

The loader has been successfully updated!
Protocol:
Code: Select all
./clunc -vi 192.168.1.84
waiting U-Boot...

U-Boot NetConsole
-----------------

interactive shell
no lump receive; continuing
Marvell>> flinfo
flinfo

Bank # 1:
Flash Base Address  : 0xf8000000
Flash Model         : MXIC MX25L4005A
Manufacturer ID     : 0xc2
Device Id           : 0x2013
Sector Size         : 4K
Number of sectors   : 128
Page Size           : 256
Write Protection    : Upper 1 of 2

Marvell>> protect off all
protect off all
Un-Protect Flash Bank # 1
................................................................................................................................ done
Marvell>> reset

reset
Hard reboot
Code: Select all
./clunc -vi 192.168.1.84
waiting U-Boot...

U-Boot NetConsole
-----------------

interactive shell

Marvell>> flinfo
flinfo

Bank # 1:
Flash Base Address  : 0xf8000000
Flash Model         : MXIC MX25L4005A
Manufacturer ID     : 0xc2
Device Id           : 0x2013
Sector Size         : 4K
Number of sectors   : 128
Page Size           : 256
Write Protection    : Off

Marvell>> 

Write Protection : Off - YES!!! :punk
Go to shell
Code: Select all
dd if=/share/1000/fvdw/u-boot-nwsp2-classic-gpt-usbboot-80b.bin of=/dev/mtdblock0

Hard reboot
Go to shell:
Code: Select all
root@LC:/ # dmesg | grep console
Kernel command line: console=ttyS0,115200 root=/dev/sda7 ro reset=0 productType=ASTON_KW GPT fvdw vs80
console [ttyS0] enabled

Excellent!!!

Next trouble.

How to make partitions? Standard fdisk does not understand gpt disk. A manual written for him.
Please help.
SerG_KatsO
Donator VIP
Donator VIP
 
Posts: 21
Joined: Wed Oct 31, 2012 10:07 am
Location: Moscow, RUSSIA

Re: Large HDD >2TB

Postby fvdw » Wed Jan 30, 2013 10:21 am

nice that you got it working, another prove that the new boot laoder is safe for release.

For preparing a disk with GPT partition table you can use the program "gdisk"
There are also people that used "gparted".
I also have a version of "gdisk" that can run on the nwsp2, but not all usb->sata interfaces seems to support addvanced formatted disk properly.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Large HDD >2TB

Postby fvdw » Wed Jan 30, 2013 10:36 am

forgot to mention the partition table to use (in gdisk you can set size in MB)
In gdisk use option align partitions on 4096 boundaries

sda1 512 MB (type Linux)
sda2 512 MB (type Linux)
sda3 512 MB (type swap)
sda4 8 MB (type Linux)
sda5 768 MB (type Linux)
sda6 8 MB
sda7 512 MB (type Linux)
sda8 rest of the disk (type Linux)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Large HDD >2TB

Postby SerG_KatsO » Wed Jan 30, 2013 12:34 pm

All partitions of the primary??
In the original manual. partition 4 - Extended and partition from 5 to 8 Logical.
SerG_KatsO
Donator VIP
Donator VIP
 
Posts: 21
Joined: Wed Oct 31, 2012 10:07 am
Location: Moscow, RUSSIA

Re: Large HDD >2TB

Postby Jocko » Wed Jan 30, 2013 12:45 pm

Yes, SerG_KatsO you understand right : partition 4 is no longer an extended partition with a gpt table.
(and it is useless but required : because uboot and the firmware need 8 partitions).

So now the partition 4 size is very small.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Large HDD >2TB

Postby SerG_KatsO » Mon Feb 11, 2013 7:34 am

What type of file system to use? In notation gdisk. I asked 0700 but no result!
Which option allows you to align partitions gdisk 4096?
SerG_KatsO
Donator VIP
Donator VIP
 
Posts: 21
Joined: Wed Oct 31, 2012 10:07 am
Location: Moscow, RUSSIA

PreviousNext

Return to Development

Who is online

Users browsing this forum: No registered users and 11 guests