nwsp2 classic gpt support

Re: nwsp2 classic gpt support

Postby minibike12 » Tue Jan 01, 2013 8:27 pm

Edit.
Repartitioned with gdisk with the folowing partition table.
1 512.0 MiB 8300 Linux filesystem
2 512.0 MiB 8300 Linux filesystem
3 512.0 MiB 8200 Linux swap
4 4.0 MiB 8300 Linux filesystem
5 768.0 MiB 8300 Linux filesystem
6 8.0 MiB 8300 Linux filesystem
7 512.0 MiB 8300 Linux filesystem
8 1.5TiB 8300 Linux filesystem

Still Red/Blue light .....
Can't figure out why.
The original 1TB disk works fine.
Any idea's ?
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Tue Jan 01, 2013 10:24 pm

how does the protective MBR looks like ? (output of fdisk)

what do you exactly mean with the original 1 TB disk works fine ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: nwsp2 classic gpt support

Postby minibike12 » Wed Jan 02, 2013 2:27 am

Will post that tomorrow.
And the 1TB mbr drive (which originally came with the lacie with original firmware) still works like a charm.
So no problem there.
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby minibike12 » Wed Jan 02, 2013 12:10 pm

gdisk -l /dev/sda
Code: Select all
ser@debian:~$ sudo su
root@debian:/home/user# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): C0F97698-96B1-441D-9BDC-713E46ADE8DE
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2709013357 sectors (1.3 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            4096         1052671   512.0 MiB   8300  Linux filesystem
   2         1052672         2101247   512.0 MiB   8300  Linux filesystem
   3         2101248         3149823   512.0 MiB   8200  Linux swap
   4         3149824         3158015   4.0 MiB     8300  Linux filesystem
   5         3158016         4730879   768.0 MiB   8300  Linux filesystem
   6         4730880         4747263   8.0 MiB     8300  Linux filesystem
   7         4747264         5795839   512.0 MiB   8300  Linux filesystem
   8         5795840      3151523839   1.5 TiB     8300  Linux filesystem
root@debian:/home/user#


fdisk -l /dev/sda
Code: Select all
root@debian:/home/user# fdisk -l /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.



Oh, and i've used UIMAGE 59 you sent me.

Edit:
Formatted again, with a sector boundary of 2048 (default) instead of the 4096 i've used.
Tried UIMAGE 59 and 51.
Still no luck.
Maybe Uboot.bin does not work here with gpt?
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Wed Jan 02, 2013 2:06 pm

got me a 3 TB drive today and the problem seems to be that the u-boot ide subsystem reads the disk info incorrectly. it thinks the disk is only 746.5 GB...

Code: Select all
u-boot output

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode
  Device 0 @ 0 0:
Model: WDC WD30EZRX-00DC0B0                     Firm: 80.00A80 Ser#:      WD-WMC                                         1T0347553
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 764436.4 MB = 746.5 GB (1565565872 x 512)


But I can run it via a bypass.so it is realy still an u-boot issue, it seems not able to deal with the 4096 physical sector size.
Almost there...
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: nwsp2 classic gpt support

Postby minibike12 » Wed Jan 02, 2013 2:17 pm

Hmm, did you get the same red/blue light flickering before your bypass?
An other question.
Do you think you are able to fix the 4096 sector size problem?

Oh and i do have exactly the same drive as you.
WDC WD30EZRX
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Wed Jan 02, 2013 2:26 pm

minibike12 wrote:Hmm, did you get the same red/blue light flickering before your bypass?
An other question.
Do you think you are able to fix the 4096 sector size problem?

Oh and i do have exactly the same drive as you.
WDC WD30EZRX


yep red/blue flicker. I tries to load the kernel from wrong position. And I am optimistic that this problem can be fixed ;)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: nwsp2 classic gpt support

Postby minibike12 » Wed Jan 02, 2013 2:38 pm

Ah nice.
Problem here is that i bought the drive with multiple people.
And they want to know if it can be fixed before i can't return it anymore (saturday).

Anyhow, nice work so far, and keep it up!
minibike12
 
Posts: 99
Joined: Sat Dec 22, 2012 9:23 pm
Location: The Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Wed Jan 02, 2013 3:17 pm

I am not sure that this can be solved before saturday
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: nwsp2 classic gpt support

Postby fvdw » Wed Jan 02, 2013 4:16 pm

First indication found were it goes wrong

Code: Select all
Marvell>> disk 0x800000 0:6
disk 0x800000 0:6
GPT: last_usable_lba incorrect: %lX > %lX
get_partition_info_efi: *** ERROR: Invalid GPT ***

It proves that it tries to use GPT
what it means and how to solve is something different :scratch :thinking

The message is generated by this part of the code
Code: Select all
   if (le64_to_int(pgpt_head->last_usable_lba) > lastlba) {
      printf("GPT: last_usable_lba incorrect: %llX > %llX\n",
         le64_to_int(pgpt_head->last_usable_lba), lastlba);
      return 0;
   }


But when reading the diskinfo in gdisk
you can see that last LBA > last_usable lba

Code: Select all
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): BCCC1E49-2DBF-4FCF-9FE5-24DCA0013C87
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 4096-sector boundaries
Total free space is 4062 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            4096         1052671   512.0 MiB   8300  Linux filesystem
   2         1052672         2101247   512.0 MiB   8300  Linux filesystem
   3         2101248         3149823   512.0 MiB   8200  Linux swap
   4         3149824         3166207   8.0 MiB     8300  Linux filesystem
   5         3166208         4739071   768.0 MiB   8300  Linux filesystem
   6         4739072         4755455   8.0 MiB     8300  Linux filesystem
   7         4755456         5804031   512.0 MiB   8300  Linux filesystem
   8         5804032      5860533134   2.7 TiB     8300  Linux filesystem

Command (? for help): w
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Development

Who is online

Users browsing this forum: No registered users and 7 guests