Error creating Raid 5

Re: Error creating Raid 5

Postby fvdw » Thu Oct 08, 2015 7:38 pm

To find out what is wrong with 3.18.2 we are going to use the u-boot console to load the kernel and try to use netconsole to see what goes wrong with the kernel. I will post instructions later this evening
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Error creating Raid 5

Postby fvdw » Thu Oct 08, 2015 8:41 pm

how load the new kernel using u-boot console

put the 3.18.21 kernel 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 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 windwo give these commands
Code: Select all
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}/ root=/dev/sda7

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 is set to this string
Code: Select all
printenv bootargs

proceed
Code: Select all
ide reset
tftpboot 0x400000 UIMAGE-31821-5BIG1-3
bootm


If the kernel loads it should show you after mention starting kernel detailed output of kernel laoding 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: Error creating Raid 5

Postby b1gnas » Fri Oct 09, 2015 12:05 pm

Hi,
I have to do this before or after restoring the previous kernel?
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Error creating Raid 5

Postby Jocko » Fri Oct 09, 2015 3:45 pm

Yes , you can restore the kernel version (at least you will have a functional nas with a standard booting) before following fvdw's instructions to see what happens when bootloader uses version 3.18.21
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Error creating Raid 5

Postby b1gnas » Fri Oct 09, 2015 6:33 pm

i'm at this point, and now?

Code: Select all
provided by fvdw
waiting for u-boot..
starting u-boot net console click on window and press enter


Marvell>> setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@$
{serverip}/ root=/dev/sda7
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}
/ root=/dev/sda7
Marvell>> printenv bootargs
printenv bootargs
bootargs=console=ttyS0,115200 netconsole=6666@192.168.188.30/,6666@192.168.188.2
0/ root=/dev/sda7
Marvell>> ide reset
ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
Error - Failed initializing(SRST) drive on channel 0
Failed initializing storage deivce connected to SATA channel 0
  Device 1: OK
Model: ST1000DM003-1ER162                       Firm: CC45     Ser#:
 W4Y0QLF7
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
Error - Failed initializing(SRST) drive on channel 2
Failed initializing storage deivce connected to SATA channel 2
  Device 3: OK
Model: ST1000DM003-1ER162                       Firm: CC45     Ser#:
 W4Y0RF1K
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
  Device 4: OK
Model: ST1000DM003-1ER162                       Firm: CC45     Ser#:
 W4Y0REZM
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)

Marvell>> tftpboot 0x400000 UIMAGE-31821-5BIG1-3
tftpboot 0x400000 UIMAGE-31821-5BIG1-3
Using egiga0 device
TFTP from server 192.168.188.20; our IP address is 192.168.188.30
Filename 'UIMAGE-31821-5BIG1-3'.
Load address: 0x400000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##################
done
Bytes transferred = 2086944 (1fd820 hex)
Marvell>>
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Error creating Raid 5

Postby Jocko » Fri Oct 09, 2015 6:40 pm

Hi b1gnas,

You need to do an additional command
Code: Select all
bootm
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Error creating Raid 5

Postby b1gnas » Fri Oct 09, 2015 6:46 pm

it's blocked here...

Code: Select all
Marvell>>  bootm
 bootm
## Booting image at 00400000 ...
   Image Name:   Linux-3.18.21
   Created:      2015-10-06  19:48:17 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2086880 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Error creating Raid 5

Postby Jocko » Fri Oct 09, 2015 7:43 pm

Maybe the kernel size is too big.

So you need to wait fvdw now and you can restart the nas
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Error creating Raid 5

Postby fvdw » Fri Oct 09, 2015 7:48 pm

looking to were it hangs (before actual unpacking and starting the kernel) this could be the problem that it overwrites u-boot, although the size in bytes is smaller then 2MB which should be ok :scratch

Anyhow need to find a way to make it smaller and then try again
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Error creating Raid 5

Postby fvdw » Sat Oct 10, 2015 11:10 pm

attached a new kernel and a set of modules belonging to this kernel for testing

ps you need to adapt the command Jocko posted to unpack de kernel and the modules archive as the names of the files are adapted (what to change speaks for it self I think)

Hope you can find some time to test it
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

PreviousNext

Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 3 guests