Can't find nwsp2 on lan

Re: Can't find nwsp2 on lan

Postby fvdw » Tue Sep 01, 2015 7:59 pm

ok good luck, ps extract the zip archive, you need the .bin file inside
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Can't find nwsp2 on lan

Postby netokarys » Wed Sep 02, 2015 7:20 am

hello,

i cant flash u-boot over tftp because my lan interface (eth0) on nwsp2 lite is not working. Can you send me instruction how to flash u-boot over usb port (from usb flash) or jtag or over ttl connection (direct), like i did with kwboot tool, but got error.
netokarys
 
Posts: 19
Joined: Thu Aug 28, 2014 7:33 am

Re: Can't find nwsp2 on lan

Postby netokarys » Wed Sep 02, 2015 9:01 am

if i'll try this script will it work? (via com port and usb flash drive connected to nwsp2) :

fatload 0x800000 u-boot-nwsp2-lite.bin
sf erase 0 0x50000
sf write 0x800000 0 0x50000
reset
netokarys
 
Posts: 19
Joined: Thu Aug 28, 2014 7:33 am

Re: Can't find nwsp2 on lan

Postby fvdw » Wed Sep 02, 2015 8:04 pm

Ok I see, I assumed ethernet was working when u-boot runs.Apperently not because of same setup issue as in the kernel.[color=#FFFF00][/color]
netokarys wrote:if i'll try this script will it work? (via com port and usb flash drive connected to nwsp2) :
fatload 0x800000 u-boot-nwsp2-lite.bin
sf erase 0 0x50000
sf write 0x800000 0 0x50000
reset

Mm...not sure if that works, if we corrupt the flash then also uart will not work anymore. For that we need a working network interface. Give me some time to check out the possibilities. This evening I am not at home. So will be tomorrow evening or friday.

The idea I have will be the following. We could make a dedicated kernel that uses the machine id of the classic but is in reality an lite kernel. That we put in sda6 and let the box boot. Now ethernet should work. Then we can work from there to flas U-boot
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Can't find nwsp2 on lan

Postby netokarys » Wed Sep 02, 2015 8:07 pm

Ok thanks :) i'll be waiting for your post and thanks for your help ;)
netokarys
 
Posts: 19
Joined: Thu Aug 28, 2014 7:33 am

Re: Can't find nwsp2 on lan

Postby fvdw » Thu Sep 03, 2015 7:40 pm

as first try if this kernel works. Unpack the zip archive to get this kernel

This kernel has a special setup file, in this case if the nas identifyies itself as a classic it will load the setup file for the lite and the nework interface should then work.

How to test it.
You will need to write it to sda6 replacing the existing kernel in there and then let the nas boot and see if the webinterface comes and ssh server can be accesed

As your netwok card is not working you must write the kernel to sda6 by connecting the disk to another pc running linux and then use the dd command to write write the kernel to sda6. I assume that you know how to do this.
The command is something like this
Code: Select all
dd if=UIMAGE-3142-NWSP2CL-special-6 of=/dev/sda6

(be sure that sda is the disk for nwsp2 liet if you have another disk in your system running linux the drive id might be different.

If the kernel works we can try if we can access the flash from userland. We must be careful as if we corrupt the flash then nothing will work anymore. But thats for later lets first test the kernel and if that makes your ethernet card working
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: Can't find nwsp2 on lan

Postby netokarys » Fri Sep 04, 2015 6:20 am

Hello,

It worked :D lan interface is working :)
netokarys
 
Posts: 19
Joined: Thu Aug 28, 2014 7:33 am

Re: Can't find nwsp2 on lan

Postby fvdw » Fri Sep 04, 2015 7:13 am

:mrgreen: :bananadance

for the moment you can use the nas normally. The kernel it has now is setup for the lite. There should be no errors in dmesg as reported before

I am at work now and have no time for this right. But this evening I will post some instructions and ideas if we can put a correct u-boot in flash

ps it is amzing that the u-boot for classic runs on the lite, normally the DRAM setups spoil the party. If the phy address of the network would have been the same for lite and classic then also the ethernet card would have worked. Anyhow we learned something, and people that by accident have put u-boot for the classic on a lite do need to throw away the nas.

to be continued this evening
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Can't find nwsp2 on lan

Postby netokarys » Fri Sep 04, 2015 8:16 am

I have another question: if i will configure fvdw-base (like minidlna, transmission, users and etc.) will these settings remain after u-boot flash?
netokarys
 
Posts: 19
Joined: Thu Aug 28, 2014 7:33 am

Re: Can't find nwsp2 on lan

Postby fvdw » Fri Sep 04, 2015 9:55 am

netokarys wrote:I have another question: if i will configure fvdw-base (like minidlna, transmission, users and etc.) will these settings remain after u-boot flash?

yes
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 3 guests