General NAS-Central Forums

Welcome to the NAS community
It is currently Sat Nov 18, 2017 4:14 am

All times are UTC




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sat May 03, 2008 10:34 am 
Offline

Joined: Sat May 03, 2008 10:29 am
Posts: 1
Hi I am trying to recover a broken EBD 1TB I am looking for images of the original partitions, it will cost us a lot to send it to the US for repairs...

TIA

Omar Vasquez


Top
 Profile  
 
PostPosted: Sat May 17, 2008 10:29 am 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
Thanks to aaribaud I now have partition images for the LaCie EDmini V2.

You probably won't have full EBD functionality but I believe the hardware and the kernel are identical (apart from the second disk) so they should boot.

HTH.


Top
 Profile  
 
PostPosted: Sun May 18, 2008 10:40 am 
Offline

Joined: Thu Mar 06, 2008 12:23 pm
Posts: 58
Location: Vienna
the partition images should be uploaded.

i ll tell you a way how to upload the images and they will be hosted somewhere here soon....i just bought a diskless EBD myself 20 minutes ago via ebay....thats why.


Top
 Profile  
 
PostPosted: Mon May 19, 2008 3:33 am 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
mindbender wrote:
the partition images should be uploaded.

There is a slight problem: we found later that the images aaribaud gave me had some personal stuff on them.
I'll have to check with him before uploading modified copies of them.

mindbender wrote:
i just bought a diskless EBD myself 20 minutes ago via ebay....thats why.

Was that from some guy with a pseudo from Tolkien?
If so I nearly bid against you :(


Top
 Profile  
 
PostPosted: Mon May 19, 2008 7:54 am 
Offline

Joined: Thu Mar 06, 2008 12:23 pm
Posts: 58
Location: Vienna
well ok....having some images of the original partitions would be nice.....

yup, that was the guy. this box will be sent to timtimred, the main developer of foonas. i also try to get another one today for me ("LACIE ethernet disk mini 500 GB mit OVP ohne Festplatte") so i can help a little.


Top
 Profile  
 
PostPosted: Mon May 19, 2008 7:25 pm 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
Concerning the partitions, AIUI and IIRC on the edmini V2:-
    partition 1 (about 1 GB) is an extended partition containing 5 to 9
    partition 2 (rest of disk) is user data
    partition 5 (about 128 MB) is swap so backup is not necessary
    partition 6 (about 8 MB) is raw uImage
    partition 7 (about 8 MB) is initial ro rootfs
    partition 8 (about 128 MB) overlays rootfs later
    partition 9 (rest of extended partition: about 752 MB) contains personalisation and updates

Albert sent me dumps of 6, 7, 8 and 9.
I think the LaCie software never touches 6, 7 and 8 so only 9 contains personal data.
I think you should only need dumps of 6, 7 and 8.
I must check with Albert if it is OK to pass these on.

While on this subject: I was mean and created the system partitions slightly too small to receive the dumps.
I had to enlarge them but I didn't want to risk moving partition 2 onto which I had copied lots of stuff.
So my only solution was to reduce the size of the swap :(

This is a shame because I think it would probably be a good idea to increase the size of the swap to maybe 256 MB if you intend to run heavier stuff like Debian, native compilations, ...

Cheers,
Chris


Top
 Profile  
 
PostPosted: Tue May 20, 2008 11:55 pm 
Offline

Joined: Thu Mar 06, 2008 12:23 pm
Posts: 58
Location: Vienna
rosbif was so kind to upload some partition images.

i uploaded them here:
http://gpl.nas-central.org/LACIE/ethern ... on_images/


Top
 Profile  
 
PostPosted: Sun Jul 20, 2008 9:06 am 
Offline

Joined: Sun Jul 20, 2008 8:46 am
Posts: 19
You guys are my heroes !!!
Thanks so much for posting the images.

Jacques


Top
 Profile  
 
PostPosted: Mon Jul 28, 2008 5:37 pm 
Offline

Joined: Sun Jul 20, 2008 8:46 am
Posts: 19
If someone has an answer to this : viewtopic.php?f=146&t=131
which should be of common interest to both models Big Disk and ED Mini V2 models ....

Thanks

jjr


Top
 Profile  
 
PostPosted: Sun Aug 03, 2008 3:34 pm 
Offline

Joined: Sun Jul 20, 2008 8:46 am
Posts: 19
From the ED Mini v2 forum

rosbif wrote:
Mindbender told me that he had bought a diskless EBD for his NAS central team.
I do not doubt for a moment that they managed to get it running ;-)


Did the partition images differ from the ED Mini v2 one ?
Any difference in set-up ?
In particular does it work one disk ?
Could you maybe post some partition images ? ;)

Thanks in advance
jjr


Top
 Profile  
 
PostPosted: Sun Aug 03, 2008 9:30 pm 
Offline

Joined: Sat May 17, 2008 2:57 pm
Posts: 32
Hello,

First of all sorry that I use this thread, but I would like to show clearly to which message I refer to ;) .

I have E Big Disk.

I haven't changed the Lacie kernel bacause I don't have a serial JTAG cable. What I have done already is that I have replaced original Lacie Linux with Debian for ARM. Everything works fine except powering off. I mean, I am not able to turn off device via "halt" command, nor power button. I found in logs information that edmini_power starts during initialization, but power button doesn't work.

I have checked original Lacie Linux to find any untypical module or process but without any possitive result - there is nothing interesting. Maybe I missed something....

So my question is simple: do you know how to turn off this device (with Debian ARM) :) ?


Top
 Profile  
 
PostPosted: Wed Aug 06, 2008 6:25 am 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
Hi,

For info: this is the continuation of a private discussion.

kosmaty wrote:
I haven't changed the Lacie kernel bacause I don't have a serial JTAG cable.

In our private discussion I was under the impression you were using a kernel (or kernel patch) I had posted :(
For info: the serial console and JTAG are two different things.
The serial console enables you to:
    Intercept the boot sequence, issue U-Boot commands and modify the boot parameters.
    See U-Boot and Linux kernel messages which help debugging when things go wrong.
    Log into the system if this is activated (as is generally the case).
JTAG has lots of possibilities but the main use for us would be to try to unbrick a device by reprogramming programmable ICs (Flash memory, programmable logic, ...).
You shouldn't need JTAG if you change the kernel but a serial console is (almost) indispensible ;-)

kosmaty wrote:
What I have done already is that I have replaced original Lacie Linux with Debian for ARM. Everything works fine except powering off. I mean, I am not able to turn off device via "halt" command, nor power button. I found in logs information that edmini_power starts during initialization, but power button doesn't work.

I have checked original Lacie Linux to find any untypical module or process but without any possitive result - there is nothing interesting. Maybe I missed something....

So my question is simple: do you know how to turn off this device (with Debian ARM) :) ?

Kudos to you if you have managed to install a Debian rootfs and get it running without a serial console ;-)
For info: Albert Aribaud (aaribaud) is looking at how power-off works and is currently working on adding the missing support to our kernel ;-)
EDIT: Albert generally does an excellent job of writing up his work on his tweaky site so watch this space: http://tweaky.aribaud.net ;-)
I have not looked into this much but I think that, as you still running the LaCie kernel, you should be able to:
    For the shutdown/poweroff commands: copy the LaCie executable(s) and/or soft link(s) to your Debian rootfs.
    For the power-off button: there is probably a LaCie daemon which you could copy to your Debian rootfs and start up during init.
EDIT: From discussions with Albert and from my own observations I think that this is the mechanism for a power-off:
    a) User space writes a specal value to NVRAM, possibly using a /proc interface,
    b) User space initiates a reboot,
    c) On rebooting U-Boot starts up,
    d) U-Boot sees the special value in NVRAM and does a power-off.
By examining the /proc entries you may be able to find out what is required and write a script to do this and reboot.

HTH,
Chris


Top
 Profile  
 
PostPosted: Fri Aug 08, 2008 9:52 pm 
Offline

Joined: Sat May 17, 2008 2:57 pm
Posts: 32
rosbif wrote:
For info: the serial console and JTAG are two different things.


Heh...with every new message, I learn something new.... :) .So there should be two diffrent connectors/plugs(?) in this motherboard? Do you think that this is Serial, JTAG or both in one connector/plug on this photo: http://lacie.nas-central.org/images/thu ... _front.JPG ?

rosbif wrote:
Kudos to you if you have managed to install a Debian rootfs and get it running without a serial console


Unfortunately I haven't installed it, but I have used prepared Debian image for other ARM device ;) .

rosbif wrote:
EDIT: From discussions with Albert and from my own observations I think that this is the mechanism for a power-off:a) User space writes a specal value to NVRAM, possibly using a /proc interface,b) User space initiates a reboot,c) On rebooting U-Boot starts up,d) U-Boot sees the special value in NVRAM and does a power-off.By examining the /proc entries you may be able to find out what is required and write a script to do this and reboot.


Ok, thank you. I will try to do this, but truly I have no idea how to achieve this :P . I mean, which tools should I use...
I have already looked for untypical mods, but without positive result. The same about demons - there is nothing special running in the background. Halt command is a symbolic link for busybox.

Thank you for your long post with lots of explanations! :)


Top
 Profile  
 
PostPosted: Fri Aug 08, 2008 10:21 pm 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
kosmaty wrote:
So there should be two diffrent connectors/plugs(?) in this motherboard? Do you think that this is Serial, JTAG or both in one connector/plug on this photo: http://lacie.nas-central.org/images/thu ... _front.JPG ?

The serial console and JTAG are on different pins of the same header (or connector). See this thread: viewtopic.php?f=146&t=71#p211
This is for the EDmini v2 but the PCB of the EBD is identical: you will note that it even has EDMINI-V2 written on it ;-)

kosmaty wrote:
The same about demons - there is nothing special running in the background

I rarely run the LaCie software but I am rather surprised that there is no daemon handling the power button.
IIRC another NAS I use (Linksys NSLU2) does have one.

kosmaty wrote:
Halt command is a symbolic link for busybox.

Generally on Linux the halt command halts the system but does not turn the power off. Is there a poweroff command?


Top
 Profile  
 
PostPosted: Sat Aug 09, 2008 2:13 pm 
Offline

Joined: Sat May 17, 2008 2:57 pm
Posts: 32
Again, thank you for explanations! :)

rosbif wrote:
I rarely run the LaCie software but I am rather surprised that there is no daemon handling the power button.IIRC another NAS I use (Linksys NSLU2) does have one.


So, I have restored original Lacie Linux(distro, not kernel ;) ) and using telnet I have done this things below:

Ethernet_BD /root # ps
PID Uid VmSize Stat Command
1 root 660 S init
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
5 root SW< [kthread]
12 root SW< [kblockd/0]
15 root SW [khubd]
58 root SW [pdflush]
59 root SW [pdflush]
61 root SW< [aio/0]
60 root SW [kswapd0]
183 root SW [scsi_eh_0]
184 root SW [scsi_eh_1]
201 root SW [mtdblockd]
231 root SW [kjournald]
235 root SW [kjournald]
251 root SW [kjournald]
357 root 656 S syslogd -m 0
368 root 656 S klogd -c 2
387 root SW< [xfslogd/0]
388 root SW< [xfsdatad/0]
389 root SW [xfsbufd]
605 root 684 S /sbin/udhcpc -b -i usb0 -p /var/run/udhcpc-usb0.pid -
620 root 640 S < /usr/sbin/httpd -p 80 -h /www -r LaCie Ethernet Big D
634 root 536 S /usr/sbin/ifplugd -i egiga0 -fwI -u10 -d0 --run=/etc/
667 root 532 S /usr/sbin/ifplugd -i usb0 -fwI -u10 -d0 --run=/etc/if
686 root 1044 S /usr/bin/ipconfd
715 root 644 S < /sbin/udevd --daemon
775 root 1212 S proftpd: (accepting connections)
794 root 1472 S /usr/sbin/nmbd -D
805 root 2248 S /usr/sbin/smbd -D
815 root 2240 S /usr/sbin/smbd -D
824 root 508 S /usr/bin/utelnetd
839 root 1132 S ntpd
907 root 588 S /sbin/getty 115200 ttyS0 vt100
930 root 912 S -sh
2569 root 728 R ps

Ethernet_BD /root # lsmod
Module Size Used by Not tainted
ntfs 114832 0
g_ether 26252 0
mv_usb_gadget 50444 1 g_ether
reiserfs 263060 0
xfs 567392 0

IMHO, but I am newbie :) , there are no untypical mods, nor deamons. Please tell me, what do you think about it?

rosbif wrote:
Generally on Linux the halt command halts the system but does not turn the power off. Is there a poweroff command?


Here is how it presents on Lacie Linux (my previous answer based on this, sorry for that :) ):

Ethernet_BD /root # which halt
/sbin/halt
Ethernet_BD /root # which poweroff
/sbin/poweroff
Ethernet_BD /root # ls -l /sbin/|grep -E "halt|poweroff"
lrwxrwxrwx 1 root root 14 Mar 6 09:29 halt -> ../bin/busybox
lrwxrwxrwx 1 root root 14 Mar 6 09:29 poweroff -> ../bin/busybox

Could you tell me, did you analyzed this file: edmini_button.c ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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