Installing Debian

fvdw
Posts: 777
Joined: Wed Mar 18, 2009 11:13 pm

Re: Installing Debian

Post by fvdw » Mon Oct 12, 2015 9:59 pm

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

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

Re: Installing Debian

Post by refe » Mon Oct 26, 2015 6:50 am

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/do ... ilesystems
that the /dev/sda6 image contains
/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 ?

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

Re: Installing Debian

Post by refe » Mon Oct 26, 2015 7:58 am

another ideea :

i was thinking if was posssible to extract the u-Boot from the firmware update http://www.lacie.com/files/lacie-conten ... _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 ... s-wag120n/
do you think is possible?

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Mon Oct 26, 2015 8:56 am

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/do ... ilesystems
that the /dev/sda6 image contains
/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-conten ... _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 ... s-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.

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

Re: Installing Debian

Post by refe » Mon Oct 26, 2015 10:57 am

hello Mijzelf,

Code: Select all

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

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

Re: Installing Debian

Post by refe » Mon Oct 26, 2015 11:41 am

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

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Mon Oct 26, 2015 11:58 am

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.
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.

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

Re: Installing Debian

Post by refe » Mon Oct 26, 2015 12:22 pm

Mijzelf wrote:
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/fet ... intenv.txt
it has md - memory display ...so do you think can be dumped?

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Mon Oct 26, 2015 4:25 pm

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.

Post Reply