General NAS-Central Forums

Welcome to the NAS community
It is currently Wed Nov 22, 2017 11:11 am

All times are UTC




Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: Installing Debian
PostPosted: Mon Oct 12, 2015 9:59 pm 
Offline

Joined: Wed Mar 18, 2009 11:13 pm
Posts: 773
it is very peculiar that you have on your casing mentioning d2net V2 and a picture of the mainboard showing an orion cpu inside which is a d2net...
Where did you get this device, seems someone has swapped the interior ;)

remark , if you find the right chip then stil you need an u-boot version that you can put in flash.
I compiled the one for d2net_v2 in the meantime but that will be of no use to you, I will look if I can find the source for d2net (orion), not on short notice however, but if someone can point were to find it then it might be faster


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Oct 26, 2015 6:50 am 
Offline

Joined: Thu Jan 28, 2010 6:13 pm
Posts: 35
fvdw or Mijzelf,
do you think that having the lacie (dafault) image of /dev/sda6 of d2 network might help me geting the u-Boot ?
Niccolo is writing here : http://www.rigacci.org/wiki/doku.php/doc/appunti/hardware/lacie_d2_network#the_filesystems
that the /dev/sda6 image contains
Quote:
/dev/sda6 17 17 8001 83 Linux U-Boot image with kernel, etc.
maybe i can extract de u-Boot from there and put it back on MX29LV400CBTC-70G 4M nor flash ?


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Oct 26, 2015 7:58 am 
Offline

Joined: Thu Jan 28, 2010 6:13 pm
Posts: 35
another ideea :

i was thinking if was posssible to extract the u-Boot from the firmware update http://www.lacie.com/files/lacie-content/download/drivers/d2Network_2.2.8.zip
i was thinking that i could make Reverse Engineering Firmware ...i have de image ...extract the kernel, filesystem ...and u-boot? like in this post http://www.devttys0.com/2011/05/reverse-engineering-firmware-linksys-wag120n/
do you think is possible?


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Oct 26, 2015 8:56 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6074
refe wrote:
do you think that having the lacie (dafault) image of /dev/sda6 of d2 network might help me geting the u-Boot ?
Niccolo is writing here : http://www.rigacci.org/wiki/doku.php/doc/appunti/hardware/lacie_d2_network#the_filesystems
that the /dev/sda6 image contains
Quote:
/dev/sda6 17 17 8001 83 Linux U-Boot image with kernel, etc.
maybe i can extract de u-Boot from there and put it back on MX29LV400CBTC-70G 4M nor flash ?
Nope. The kernel itself is a u-boot image, which means it has a 64 bytes header, making it usable for the u-boot binary.

refe wrote:
i was thinking if was posssible to extract the u-Boot from the firmware update http://www.lacie.com/files/lacie-content/download/drivers/d2Network_2.2.8.zip
i was thinking that i could make Reverse Engineering Firmware ...i have de image ...extract the kernel, filesystem ...and u-boot? like in this post http://www.devttys0.com/2011/05/reverse-engineering-firmware-linksys-wag120n/
do you think is possible?
It won't hurt to try. But I don't think there is a u-boot binary inside a firmware upgrade file. That is only necessary if u-boot will be upgraded, which is almost never the case. You know, flashing u-boot is dangerous.

I do have a u-boot for the Edmini V2, which has the same SoC. It might work. You can find it here.


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Oct 26, 2015 10:57 am 
Offline

Joined: Thu Jan 28, 2010 6:13 pm
Posts: 35
hello Mijzelf,
Code:
I do have a u-boot for the Edmini V2, which has the same SoC. It might work. You can find it here.
which file is the u-Boot ? mbr, mtdblock0.gz ? i don't understand ...is it in sda6.gz?

Parent directory/ - -
mbr 512 23-Nov-2010 09:49
mtdblock0.gz 194783 23-Nov-2010 09:49
readme 1396 23-Feb-2011 08:39
sda6.gz 1519999 23-Nov-2010 09:49
sda7.tgz 2034646 23-Nov-2010 09:50
sda8-1.0.8.tgz 28590567 23-Nov-2010 09:58
sda8-1.1.2.1.tgz 35059447 23-Nov-2010 11:39

or maybe i can use the

Attachment Size
u-boot-RAM.bin 448.13 KB
u-boot-FLASH.bin 448.13 KB

from aribaud site
http://tweaky.aribaud.net/?q=book/export/html/4


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Oct 26, 2015 11:41 am 
Offline

Joined: Thu Jan 28, 2010 6:13 pm
Posts: 35
hello,
if i had a working d2 network with acces to serial console or clunc , could i use md u-boot command to dump flash ? and then put it on a tftpd server?

help md
md [.b, .w, .l] address [# of objects]

if it is possible.... how to dump whole flash MX29LV400CBTC-70G which is 4096 k nor chip ?

tx


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Oct 26, 2015 11:58 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6074
Quote:
which file is the u-Boot ?
It's mtdblock0.gz. But I think you can better use the Aribaud one, as I guess he tested it. Mine is just a flash dump, and I never tried to write it back.

Quote:
if i had a working d2 network with acces to serial console or clunc , could i use md u-boot command to dump flash ?
Don't know. Theoretically yes, but it depends on the u-boot capabilities. U-boot is a modular bootloader, and Lacie can have choosen to exclude some features needed to dump the flash contents.


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Oct 26, 2015 12:22 pm 
Offline

Joined: Thu Jan 28, 2010 6:13 pm
Posts: 35
Mijzelf wrote:
Quote:
if i had a working d2 network with acces to serial console or clunc , could i use md u-boot command to dump flash ?
Don't know. Theoretically yes, but it depends on the u-boot capabilities. U-boot is a modular bootloader, and Lacie can have choosen to exclude some features needed to dump the flash contents.

in this link there are features that can be used in stock Lacie uboot d2 Network http://www.rigacci.org/wiki/lib/exe/fetch.php/doc/appunti/hardware/lacie/lacie_help_printenv.txt
it has md - memory display ...so do you think can be dumped?


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Oct 26, 2015 4:25 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6074
It *is* possible to read flash using memory display. But it's not convenient. On OpenWRT.org you can find some scripts to convert the hexdump back to a binary. But it's awfully slow and error prone (there is no checksum, so you won't notice a flipped bit).
It seems tftpput was not added to u-boot before the end of 2011, so your box cannot have that.

If the D2 is supported by the fvdw stand alone kernel that would be a better option. Then you can just copy the mtdblock to an usb stick, or tftp server, from a Linux environment.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group