Lacie 2Big Network vs1 can't add second disk

Re: Lacie 2Big Network vs1 can't add second disk

Postby fvdw » Tue Aug 19, 2014 6:49 pm

this seems to be a different version from the one on the 2big1 of Uelpenich

You can get the version number by entering "version" (without the quotes) after the marvell prompt.

I see a few differences in the bootargs definition but also in the sequence that the bootloader checks for a kernel on the disk
The 2big1 of Uelpenich checks first on disk 1 and then disk 0, yours does it the ohter way around

To see what is disk 0 and 1 you could give the command "ide reset" and then "ide part" at the marvell prompt

So it is very well possible that this bootloader cannot handle a kernel bigger then 2 MB
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 2Big Network vs1 can't add second disk

Postby grishin » Wed Aug 20, 2014 4:54 am

:shocked
2big1 isn't a very popular device. If each has its own unique bootloader :-D , then there is no sense to fix fvdw firmware.
console.gif
You do not have the required permissions to view the files attached to this post.
grishin
 
Posts: 33
Joined: Mon Feb 13, 2012 6:53 am
Location: Russia

Re: Lacie 2Big Network vs1 can't add second disk

Postby fvdw » Wed Aug 20, 2014 7:14 am

in this case we only need to reduce size of the kernel by taking out some parts which will be loaded as module after the kernel has booted.
I need to ask Uelpenich to specify his version of u-boot

Regarding the ide reset command, I see no disk listed, was there a disk inserted in slot 1 when you were running the u-boot console ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 2Big Network vs1 can't add second disk

Postby grishin » Wed Aug 20, 2014 10:31 am

fvdw wrote:Regarding the ide reset command, I see no disk listed, was there a disk inserted in slot 1 when you were running the u-boot console ?

in slot 1 /lefthand slot, seen from backside/ disk with firmware fvdw-15-2, righthand slot empty.
I am also surprised by the results "ide part".
grishin
 
Posts: 33
Joined: Mon Feb 13, 2012 6:53 am
Location: Russia

Re: Lacie 2Big Network vs1 can't add second disk

Postby fvdw » Wed Aug 20, 2014 4:17 pm

does your 15-2 disk have a GPT or ms-dos partition table ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 2Big Network vs1 can't add second disk

Postby fvdw » Wed Aug 20, 2014 7:11 pm

I can not find on the internet the same bootloader version. I found a few with similar date and those seem to load u-boot at (hex)address 200000 which means that kernel will overwrite u-boot when it is bigger the 2 MB
Notice the line
U-Boot code: 00200000 -> 0026FFF0 BSS: -> 00283280
in the output below.
This output is obtained from serial port of a nas with similar board but in this case a 5big1


Code: Select all
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DB-88F5182-LaCie LE

U-Boot 1.1.4 (Feb  9 2009 - 13:15:53) Marvell version: 2.4.9  LaCie : 1.00.0001

U-Boot code: 00200000 -> 0026FFF0  BSS: -> 00283280

Soc: 88F5182 A2 (DDR2)
CPU running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz
....


This part of the output we cannot obtain from u-boot console for this you will need the output of the serial port.

But it is seems very likely that your 2big1 cannot load a kernel at boot bigger then 2 MB.
I will compile a special version that is smaller then 2 MB but we will need then to load some extra modules after boot.

@Uelpenich, I am very intersted in the u-boot version of your 2big1

on a nwsp2 u-boot is loaded at hex address 600000
** MARVELL BOARD: ASTON_NS LE

U-Boot 1.1.4 (Sep 23 2009 - 10:38:35) Marvell version: 3.4.16 LaCie 1.2.8 256MB

U-Boot code: 00600000 -> 006701D0 BSS: -> 006BDE80

Soc: 88F6281 A0 (DDR2

That means that can load a kernel at boot of max 6 MB
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 2Big Network vs1 can't add second disk

Postby grishin » Thu Aug 21, 2014 5:28 am

fvdw wrote:does your 15-2 disk have a GPT or ms-dos partition table ?

disk with 15-2 have ms-dos partition table. For test, i insert 2 disks with lacie firmware, run u-boot console and set command ide reset, ide part. similar result, no IDE devices avialable.
grishin
 
Posts: 33
Joined: Mon Feb 13, 2012 6:53 am
Location: Russia

Re: Lacie 2Big Network vs1 can't add second disk

Postby uelpenich » Thu Aug 21, 2014 5:54 pm

my 2big1 seems to be an older one:
Marvell>> version
version

U-Boot 1.1.1 (Jun 15 2007 - 08:56:23) Marvell version: 1.7.3 - LaCie version: 1.
4.alpha_3
Marvell>> printenv
printenv
bootcmd=if lump 2; then ; else run disk_disk; fi
baudrate=115200
loads_echo=0
kernel_addr=0x400000
boot_disk4=disk ${kernel_addr} 0:6
boot_disk3=if disk ${kernel_addr} 1:6; then; else run boot_disk4; fi
boot_disk2=if disk ${kernel_addr} 0:10; then; else run boot_disk3; fi
boot_disk1=if disk ${kernel_addr} 1:10; then; else run boot_disk2; fi
disk_disk=ide reset; run boot_disk1; bootm ${kernel_addr};
ethaddr=00:d0:4b:84:39:ef
stderr=serial
cpuName=926
factory=0
CASset=min
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
MALLOC_len=4
ethprime=egiga0
bootdelay=3
disaMvPnp=no
overEthAddr=no
usb0Mode=host
usb1Mode=host
ethact=egiga0
bootargs=console=ttyS0,115200 root=/dev/sda7 ro reset=0
ipaddr=192.168.0.252
ncip=192.168.0.30
serverip=192.168.0.30
stdin=nc
stdout=nc

Environment size: 767/40956 bytes
Marvell>>


This about my ide interfaces:
Marvell>> help ide
help ide
ide reset - reset IDE controller
ide info - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read addr blk# cnt
ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'
to/from memory address `addr'

Marvell>> ide reset
ide reset

Reset IDE:
Marvell Serial ATA Adapter
wait Sata0 & Sata1 power-up

SATA power is present on SATA 0 & 1
Intergrated Sata device found
Device 0: OK
Model: ST2000DM001-9YN164 Firm: CC4G Ser#:
Z1E1M043
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Device 1: OK
Model: WDC WD3200AAJS-22B4A0 Firm: 01.03A01 Ser#: WD-WCA
T10798461
Type: Hard Disk
Supports 48-bit addressing
Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Marvell>>

My partitions look like this:
Marvell>> ide part
ide part

Partition Map for IDE device 0 -- Partition Type: DOS

Partition Start Sector Num Sectors Type
1 2048 1048576 83
2 1050624 1048576 83
3 2099200 1048576 82
4 3147776 -391086080 5 Extd
5 3149824 1572864 83
6 4724736 16384 83
7 4743168 1048576 83
8 5793792 -393732096 83


Partition Map for IDE device 1 -- Partition Type: DOS

Partition Start Sector Num Sectors Type
1 63 1044162 83
2 1044225 1044225 83
3 2088450 1044225 82
4 3132675 622004670 5 Extd
5 3132738 1574307 83
6 4707108 16002 83
7 4723173 1044162 83
8 5767398 619369947 83
Marvell>>
uelpenich
Donator VIP
Donator VIP
 
Posts: 120
Joined: Sun Jun 12, 2011 4:45 pm
Location: Cologne, Germany

Re: Lacie 2Big Network vs1 can't add second disk

Postby fvdw » Thu Aug 21, 2014 9:25 pm

thanks Uelpenich !

I found on the internet the serial output of a similar version
Code: Select all
U-Boot 1.1.1 (Jun 15 2007 - 08:56:23) Marvell version: 1.7.3



| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__| ** LOADER **
** MARVELL BOARD: DB-88F5182-EDmini-V2 LE


U-Boot 1.1.1 (Sep 3 2008 - 07:36:51) Marvell version: 1.7.3 - LaCie version: 1


DRAM CS[0] base 0x00000000 size 64MB
DRAM Total size 64MB
Flash: flashStructGet manu 0xff id 0xff
[0kB@fff80000] ## Unknown FLASH at fff80000: Size = 0x00000000 = 0 MB
Flash: 0 kB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done
*** Warning - bad CRC, using default environment


Soc: MV88F5182 Rev 2
CPU: ARM926 (Rev 0) running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: device mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0
Waiting for LUMP (2)
Using egiga0 device
no lump receive; continuing

Reset IDE:
Marvell Serial ATA Adapter
Intergrated Sata device found
StartChannel
Device 1: OK
Model: Hitachi HDP725050GLA360 Firm: GM4OA5CA Ser#: GEC5J
Type: Hard Disk
Supports 48-bit addressing
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

** Bad partition - 1:9 1:9 **


This bootloader doesn't specify were u-boot is loaded but it mentions this
Addresses 20M - 0M are saved for the U-Boot usage.

This indicate that u-boot is also loaded higher up in the RAM

So it seems you bootloader is the same as used on the lacie internetspace 1 and edmini V2.
That means it loads u-boot at the end of system RAM so that explains why your 2big1 can boot kernels bigger then 2MB (as also the isp1 and edmini V2 can).

So this mystery is solved.

It also explains why grishin can not run the 2big1 standalone kernel (its too big and overwrites when loading u-boot).
It remains strange that the ide reset command doesn't give info on the disks on the 2big1 of grishin and how then succeed to find the kenrel on one of the disk for that it must be able to read the partition table and read the disk :scratch Maybe an additional inialization command is needed in his case to get the ide initialized??
@grishin
The command "help" at marvell prompt will list all commands that your u-boot supports maybe from that we can check if there are more ide related commands, also "ide help" could give some info.


Conclusion:
we will need to make a smaller kernel of max 2 MB for the 2big1 with this newer u-boot version just like we did for the 5big1 and load the stuff we strip from the kernel after booting it as modules.

Coming week I will try to come with a new kernel.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 2Big Network vs1 can't add second disk

Postby grishin » Fri Aug 22, 2014 9:10 am

fvdw wrote:@grishin
The command "help" at marvell prompt will list all commands that your u-boot supports maybe from that we can check if there are more ide related commands, also "ide help" could give some info.

This all that was knocked out of stupid lacie box :fuming
Code: Select all
Waiting for LUMP (0)
no lump receive; continuing
Marvell>> help ide
help ide
ide reset - reset IDE controller
ide info  - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read  addr blk# cnt
ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'
    to/from memory address `addr'

Marvell>> ide reset
ide reset

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found

Marvell>> ide part
ide part

no IDE devices available
Marvell>> ide info
ide info

Marvell>> ide device
ide device

no IDE devices available
Marvell>> ide device 0
ide device 0

IDE device 0: not available
Marvell>> wtf where ide
wtf where ide
Unknown command 'wtf' - try 'help'
Marvell>>
grishin
 
Posts: 33
Joined: Mon Feb 13, 2012 6:53 am
Location: Russia

PreviousNext

Return to Lacie 2Big Network vs1

Who is online

Users browsing this forum: No registered users and 5 guests