[lacie-nas] U-boot image with GPT for NS2 requested

Tjalling tjal777 at gmail.com
Tue Apr 19 21:54:52 CEST 2016


Thanks for your advice Frans.

I indeed have a mainline U-boot image installed (done by Simon 4 years
ago), and it doesn't seem to have the bubt command. I will wait if anybody
comes with more/other advice otherwise I'll just try and hope for the best.

I will let you guys know if it worked.

cheers, Tjalling

On 19 April 2016 at 00:17, Frans van de Wiel <fvdw at fvdw.eu> wrote:

> Hi Tjalling
>
> There is no difference, only the extension name is different.
> Please note that the flash memory has two partitions, one containing
> u-boot and one containing the u-boot environment parameters,
> The image provided is image of the partition containing u-boot
>
> To install I always use the “bubt” command from the original u-boot
> To use it there must be tftp server in your lan providing the image file
> This command does all the steps to unproptect , erase and write the image
>
> So to see form the command prompt you typed (ns2>) you use the mainline
> u-boot, I don’t know if that supports the bubt command
>
> Below an example how I replace u-boot using the “bubt” command
>
> = = = = = = = = =
> Marvell>> bubt u-boot-nwsp2-classic-gpt-usbboot-80b.bin
> bubt u-boot-nwsp2-classic-gpt-usbboot-80b.bin
> Using egiga0 device
> TFTP from server 192.168.1.147; our IP address is 192.168.1.197
> Filename 'u-boot-nwsp2-classic-gpt-98.bin'.
> Load address: 0x2000000
> Loading: #################################################################
>          #########################
> done
> Bytes transferred = 459732 (703d4 hex)
> Un-Protect Flash Monitor space
>
> **Warning**
> If U-Boot Endiannes is going to change (LE->BE or BE->LE), Then Env
> parameters should be overriden..
> Override Env parameters? (y/n) n
> n
> Erase 0 - 125 sectors...
> .................................................................
> .............................................................
> Copy to Flash... done
> Protect Flash Monitor space
>
> = = = = = = = = = =
>
> The commands you posted I never tried myself but they are ok if the sf
> command starts writing at the correct address.
> As far as I know there is small program in flash that actually loads
> u-boot, this program can be interrupted enabling you to use a special mode
> to upload an image from u-boot via uart and boot that.
> If you overwrite that program u-boot will not be loaded.
> I bricked a nas with writing to flash without using this bubt command
> (this was not a nwsp2)
> So I cannot guarantee that your commands will not brick this nas.
>
> If you have the mainline u-boot I suppose the best way is to follow the
> instruction  on lacie-nas to update mainline u-boot
> http://lacie-nas.org/doku.php?id=uboot
> Update U-Boot mainline
>
> ns2> tftpboot 0x800000 u-boot-netspace_v2.kwb
> Using egiga0 device
> TFTP from server 192.168.0.13; our IP address is 192.168.0.15
> Filename 'u-boot-netspace_v2.kwb'.
> Load address: 0x800000
> Loading: ##########################################
> done
> Bytes transferred = 214220 (344cc hex)
> ns2> sf probe 0
> SF: Detected MX25L4005 with page size 64 KiB, total 512 KiB
> ns2> sf erase 0 0x50000
> ns2> sf write 0x800000 0 0x50000
> ns2> reset
> resetting
>
> But maybe some of the experst can comment on this
>
> rgds, Frans
>
> *From:* Tjalling <tjal777 at gmail.com>
> *Sent:* Monday, April 18, 2016 10:12 PM
> *To:* lacie-nas at sequanux.org
> *Subject:* Re: [lacie-nas] U-boot image with GPT for NS2 requested
>
> Thanks Frans,
>
> I found u-boot-nwsp2-classic-gpt-usbboot-80b.bin in your fvdw distro (if I
> may call it so). What is the difference with a .kwb file which I see
> everywhere?
> I was planning to flash with the following commands (via netconsole), do
> you have any comments/tips on that?
>
> ns2> usb reset
> ns2> fatload usb 0:1 0x800000 uboot.bin
> ns2> sf protect off
> ns2> sf erase all
> ns2> sf write 0x800000 0 0x703d4  #I converted the filesize of 459732
> bytes from DEC to HEX
> ns2> sf protect on
> ns2> reset
>
> cheers, Tjalling
>
> On 18 April 2016 at 21:19, Frans van de Wiel <fvdw at fvdw.eu> wrote:
>
>> hello
>>
>> yes we have one for lacie nwsp v2 classic, please visit
>> http://plugout.net
>> You can find the u-boot image in the fvdw-sl console package. This
>> console runs form a windows PC and also has ability to flash u-boot
>> PS. Be careful there are two versions of the nwsp2 classic and lite. The
>> Lite one has already a bootloader with GPT support
>>
>> kind regards, fvdw
>>
>> *From:* Tjalling <tjal777 at gmail.com>
>> *Sent:* Monday, April 18, 2016 9:00 PM
>> *To:* lacie-nas at sequanux.org
>> *Subject:* [lacie-nas] U-boot image with GPT for NS2 requested
>>
>> Dear all,
>>
>> Does anyone has a compiled image of U-boot for the Network Space v2 with
>> GPT support included?
>>
>> I found a small tutorial here, but I don't really feel like trying to do
>> it myself. I'm afraid I will brick my NAS.
>>
>> http://www.scriptkiller.de/en/a60/computer_electronics/hacking_the_lacie_d2_network_2/
>>
>> many thanks, Tjalling
>> ------------------------------
>> _______________________________________________
>> lacie-nas mailing list
>> lacie-nas at sequanux.org
>> http://sequanux.org/cgi-bin/mailman/listinfo/lacie-nas
>>
>
>
> ------------------------------
> _______________________________________________
> lacie-nas mailing list
> lacie-nas at sequanux.org
> http://sequanux.org/cgi-bin/mailman/listinfo/lacie-nas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sequanux.org/pipermail/lacie-nas/attachments/20160419/8c653a5f/attachment.html>


More information about the lacie-nas mailing list