For this we need a program called "clunc". I compiled it in ubuntu 11.0 for x86 PC's (all intels and amd's) so I guess it should also run on your laptop on your ubuntu version
file moved to download forum
Assuming your laptop with ubuntu and nwsp2 is connected to the LAN
nwsp2 switched off
Attached two files put them on your laptop 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 laptop) then choosen 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 you laptop 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 try to figure out what is wrong
Be very very careful with commands you give here it is possible to give commands that makes you u-boot corrupt or you can even delete it and then your nwsp2 will be a nice black brick.
Now lets check the harddisk
give the command "ide reset"
On my system it gives this reponse
- 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: ST2000DL001-9VT156 Firm: CC41 Ser#: 5YD2JCJX
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
Marvell>>
Now give command "ide part"
On my system this gives
- Code: Select all
Marvell>> ide part
ide part
## 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 83
4 3213000 -391172296 5 Extd
5 3341520 1670760 83
6 5140800 128520 83
7 5397840 1028160 83
8 6554520 -394513816 83
Marvell>>
The number Num sectors for partition 4 and 8 are wrong is an error in u-boot code of lacie on my system.
Important here is that u-boot is able to find partition 6 and 7.
if this is the case then it is able to load the kernel from sda6 and load root file system form sda7 as necesarry to start the nwsp-2
If this is case give command "printenv bootcmd", this should give this output
- Code: Select all
Marvell>> printenv bootcmd
printenv bootcmd
bootcmd=run disk_disk
Marvell>>
Now try to boot it by using the command "run bootcmd", this should give this output
- Code: Select all
Marvell>> run bootcmd
run bootcmd
** Device 1 not available
## Valid DOS partition found ##
Loading from IDE device 0, partition 6: Name: hda6
Type: U-Boot
Image Name: Linux-2.6.39.4
Created: 2012-12-23 21:59:32 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3123456 Bytes = 3 MB
Load Address: 00008000
Entry Point: 00008000
## Booting image at 00800000 ...
Image Name: Linux-2.6.39.4
Created: 2012-12-23 21:59:32 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3123456 Bytes = 3 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
Starting kernel ...
if you get this then it means the kernel is found , loaded and started
If the nwsp2 then doesn't boot the problem must be in sda7
But for the moment enough to start with