2big NAS

Re: 2big NAS

Postby panda88 » Thu Jan 04, 2018 8:02 am

fvdw wrote:About 4.2.3.
No ouput of fdisk. As the sata driver is loaded according dmesg output I suspect that the hdd are not powered up, meaning a gpio value is not correct. Do they spin up when the kernel is booting?

To check if sata interface is working you could start uboot console (part of fvdw-sl console) and give on the marvell prompt the command
Code: Select all
ide reset


The output of ls -al /dev/sd* doesn't mean a disk is found. It are predefined mountpoints in the root file system included in this kernel.


Yes they spins and are solid blue. Though, I can make the further command you wrote me just tonight, when il be back home. Now I’m on my desk at work :(
panda88
 
Posts: 48
Joined: Sun Dec 10, 2017 9:08 pm
Location: Italy

Re: 2big NAS

Postby Jocko » Thu Jan 04, 2018 8:30 am

@panda
Please to do what fvdw asked
Code: Select all
ide reset


@fvdw
I noted a strange line on dmesg output
Code: Select all
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
which should be 88f6282
Do you use the right branch for this cpu ?
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: 2big NAS

Postby fvdw » Thu Jan 04, 2018 8:59 am

@Jocko

its normal output, on nwsp2 classic (6281) you will find it as well
Code: Select all
root@fvdw-sta423:/ # dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.2.3 (root@fvdwsl-5big2.local) (gcc version 4.5.4 (GCC) ) #32 PREEMPT Wed Dec 27 14:26:34 CET 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: LaCie Network Space v2
[    0.000000] Memory policy: Data cache writeback


88f6282 is used by marvell/lacie to identify the board
https://wikidevi.com/wiki/Marvell
88FR131 is the core of the processor (Feroceon ARMv5)
The main difference wit 6281 is that this one runs at higher clock speed and has 2x PCIe instead of 1
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: 2big NAS

Postby fvdw » Thu Jan 04, 2018 9:05 am

for info
dmesg 2bignas (kernel 4.2.3)
Code: Select all
root@fvdw-sta423:/ # dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.2.3 (root@fvdwsl-5big2.local) (gcc version 4.5.4 (GCC) ) #32 PREEMPT Wed Dec 27 14:26:34 CET 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: LaCie 2Big NAS
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c09b4974, node_mem_map cfdfa000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 netconsole=6666@10.0.0.252/,6666@10.0.0.108/ cap=gpt,lba64
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 249496K/262144K available (6163K kernel code, 199K rwdata, 1612K rodata, 1932K init, 367K bss, 12648K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07a0188   (7777 kB)
[    0.000000]       .init : 0xc07a1000 - 0xc0984000   (1932 kB)
[    0.000000]       .data : 0xc0984000 - 0xc09b5e20   ( 200 kB)
[    0.000000]        .bss : 0xc09b5e20 - 0xc0a11bbc   ( 368 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000111] Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896)
[    0.060053] pid_max: default: 32768 minimum: 301
[    0.060154] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060170] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060613] CPU: Testing write buffer coherency: ok
[    0.060887] Setting up static identity map for 0x81e0 - 0x8238
[    0.061081] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.064755] VFP support v0.3: not present
[    0.065022] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.065109] xor: measuring software checksum speed
[    0.160059]    arm4regs  :  1819.600 MB/sec
[    0.260044]    8regs     :  1091.600 MB/sec
[    0.360040]    32regs    :  1511.600 MB/sec
[    0.360052] xor: using function: arm4regs (1819.600 MB/sec)


nwsp2 (4.2.3 kernel)
Code: Select all
root@fvdw-sta423:/ # dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.2.3 (root@fvdwsl-5big2.local) (gcc version 4.5.4 (GCC) ) #32 PREEMPT Wed Dec 27 14:26:34 CET 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: LaCie Network Space v2
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c09b4974, node_mem_map cfdfa000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 netconsole=6666@192.168.1.252/,6666@192.168.1.111/
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 249500K/262144K available (6163K kernel code, 199K rwdata, 1612K rodata, 1932K init, 367K bss, 12644K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07a0188   (7777 kB)
[    0.000000]       .init : 0xc07a1000 - 0xc0984000   (1932 kB)
[    0.000000]       .data : 0xc0984000 - 0xc09b5e20   ( 200 kB)
[    0.000000]        .bss : 0xc09b5e20 - 0xc0a11bbc   ( 368 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000013] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000236] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    0.090118] pid_max: default: 32768 minimum: 301
[    0.090324] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090353] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091233] CPU: Testing write buffer coherency: ok
[    0.091748] Setting up static identity map for 0x81e0 - 0x8238
[    0.092153] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.099328] VFP support v0.3: not present
[    0.099901] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100143] xor: measuring software checksum speed
[    0.200083]    arm4regs  :   726.800 MB/sec
[    0.300083]    8regs     :   436.000 MB/sec
[    0.400085]    32regs    :   603.600 MB/sec
[    0.400108] xor: using function: arm4regs (726.800 MB/sec)
[    0.400173] pinctrl core: initialized pinctrl subsystem


Notice the difference in clock speed, need to check if I have set that properly in 3.14.2 standalone kernel
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: 2big NAS

Postby fvdw » Thu Jan 04, 2018 9:39 am

@panda88

please try to load the 3.14.2 standalone kernel using uboot console, give these commands at marvell>> prompt

I assume the UIMAGE-3142-KIRKWOOD-159-standalone kernel is present in the tftp directory of the fvdw-sl console
Switch off the nas, start fvdw-sl console and choose as action,
start tftp server
after that choose as action
u-boot console

Start the nas and wait until u-boot console interrupts the boot and the marvell>> prompt appears

in the u-boot console window give these commands
Code: Select all
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}/ 

use the commands exactly as they are given so do not replace the parameters ipaddr and serverip leave them as they are in this command
PS the u-boot console window has a paste option (right click on title bar)
check if now bootargs parameter is set to this string
Code: Select all
printenv bootargs

proceed
Code: Select all
ide reset
tftpboot 0x800000 UIMAGE-3142-KIRKWOOD-159-standalone


Code: Select all
bootm

You should see in the u-boot window that the kernel is uploaded and loaded

If the kernel loads it should show you after mention starting kernel detailed output of kernel loading in the u-boot console window. If the kernel fails before netconsole is activated in the kernel then there will be no output
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: 2big NAS

Postby fvdw » Thu Jan 04, 2018 4:17 pm

another standalone kernel #160 for testing
best to test it in u-boot console
Code: Select all
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}/
ide reset
tftpboot 0x800000 UIMAGE-3142-KIRKWOOD-160-standalone
bootm


If the kernel output comes and is ok you should be able to login with telnet
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: 2big NAS

Postby fvdw » Thu Jan 04, 2018 9:40 pm

and a third standalone kernel #161, this one enables specifically the pcie ports on the nas2big
please do same tests :mrgreen:
best to test it in u-boot console
Code: Select all
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}/
ide reset
tftpboot 0x800000 UIMAGE-3142-KIRKWOOD-161-standalone
bootm


If the kernel output comes and is ok you should be able to login with telnet
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: 2big NAS

Postby panda88 » Thu Jan 04, 2018 10:33 pm

lets answer in order.
first: ide reset; that's the output
Code: Select all
Marvell>> ide reset
ide reset

Reset IDE:
Marvell Serial ATA Adapter

Marvell Serial ATA Adapter
Integrated Sata device found
PCIe SATA:ffffffff

Marvell>>


now I proceed with next tests
panda88
 
Posts: 48
Joined: Sun Dec 10, 2017 9:08 pm
Location: Italy

Re: 2big NAS

Postby panda88 » Thu Jan 04, 2018 10:46 pm

fvdw wrote:@panda88

please try to load the 3.14.2 standalone kernel using uboot console, give these commands at marvell>> prompt

I assume the UIMAGE-3142-KIRKWOOD-159-standalone kernel is present in the tftp directory of the fvdw-sl console
Switch off the nas, start fvdw-sl console and choose as action,
start tftp server
after that choose as action
u-boot console

Start the nas and wait until u-boot console interrupts the boot and the marvell>> prompt appears

in the u-boot console window give these commands
Code: Select all
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}/ 

use the commands exactly as they are given so do not replace the parameters ipaddr and serverip leave them as they are in this command
PS the u-boot console window has a paste option (right click on title bar)
check if now bootargs parameter is set to this string
Code: Select all
printenv bootargs

proceed
Code: Select all
ide reset
tftpboot 0x800000 UIMAGE-3142-KIRKWOOD-159-standalone


Code: Select all
bootm

You should see in the u-boot window that the kernel is uploaded and loaded

If the kernel loads it should show you after mention starting kernel detailed output of kernel loading in the u-boot console window. If the kernel fails before netconsole is activated in the kernel then there will be no output



here it is
Code: Select all

Marvell>> setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}/
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}/
Marvell>> printenv bootargs
printenv bootargs
bootargs=console=ttyS0,115200 netconsole=6666@10.0.0.252/,6666@10.0.0.108/
Marvell>> ide reset
ide reset

Reset IDE:
Marvell Serial ATA Adapter

Marvell Serial ATA Adapter
Integrated Sata device found
PCIe SATA:ffffffff

Marvell>> tftpboot 0x800000 UIMAGE-3142-KIRKWOOD-159-standalone
tftpboot 0x800000 UIMAGE-3142-KIRKWOOD-159-standalone
Using egiga0 device
TFTP from server 10.0.0.108; our IP address is 10.0.0.252
Filename 'UIMAGE-3142-KIRKWOOD-159-standalone'.
Load address: 0x800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################################
done
Bytes transferred = 5876384 (59aaa0 hex)
Marvell>> bootm
bootm
## Booting image at 00800000 ...
   Image Name:   Linux-3.14.2
   Created:      2018-01-03  17:12:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5876320 Bytes =  5.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
bootargs from environment variables : console=ttyS0,115200 netconsole=6666@10.0.0.252/,6666@10.0.0.108/ cap=gpt,lba64

Starting kernel ...






after that though, no telnet connetion to the nas
panda88
 
Posts: 48
Joined: Sun Dec 10, 2017 9:08 pm
Location: Italy

Re: 2big NAS

Postby fvdw » Thu Jan 04, 2018 10:54 pm

Marvell Serial ATA Adapter
Integrated Sata device found
PCIe SATA:ffffffff

Ah that confirms it needs pcie enabled. Still funny that it doesn't show the diks attached to the sata port
Or was there no disk insde ?

so kernel 159 is useless and probably also 160.
Although kernel 160 might work partially but do not start disk, I also found a failure in Ethernet setup in kernel 159
So ethernet interface is not working and as result no communication via netconsole possible. Ik kernel 160 the ethernet interface is changed. In kernel 161 enable pcie is added.
Hopefully kernel #161 will do the magic :-D

ps on a networkspace v2 you get this as output.

Code: Select all
Marvell>> ide reset
ide reset

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode
  Device 0 @ 0 0:
Model: ST340014AS                               Firm: 3.40     Ser#:             3MQ02VTB
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 38166.6 MB = 37.2 GB (78165360 x 512)

Marvell>> ide partinfo
ide partinfo
## Testing for valid DOS partition ##

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

Partition     Start Sector     Num Sectors     Type
    1               128520         1028160      83
    2              1156680         1028160      83
    3              2184840         1028160      82
    4              3213000        74927160       5 Extd
    5              3341520         1670760      83
    6              5140800          128520      83
    7              5397840         1028160      83
    8              6554520        71585640      83
Marvell>>
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie 2Big Network vs2

Who is online

Users browsing this forum: No registered users and 11 guests