Hi,
I will be on holiday the coming week, so a response on the new kernel might take a while. I asked the ubook-ARM coordinator for additional info on the GPIO's or if he knew anyone that had additional info. He asked around and this is the 'harvest':
------original email is from A. Aribaud -------
Cc:ing the Lacie-NAS list as it gather much higher authorities that I
ever will be :) -- maybe you will have to register for your replies to
appear there. Or you can try #lacie-nas on irc.freenode.net.
What I can tell you, though, is my latest understanding of the ED Mini
V2 GPIOs. They can be found in the U-Boot project. Look in the ARM git
repo at
http://git.denx.de/?p=u-boot/u-boot-arm.git;a=summary for file
include/configs/edminiv2.h. You'll see a big fat comment with the GPIO
descriptions. Here's a copy-paste:
/*
* Board-specific values for Orion5x GPIO low level init:
* - GPIO3 is input (RTC interrupt)
* - GPIO16 is Power LED control (0 = on, 1 = off)
* - GPIO17 is Power LED source select (0 = CPLD, 1 = GPIO16)
* - GPIO18 is Power Button status (0 = Released, 1 = Pressed)
* - GPIO19 is SATA disk power toggle (toggles on 0-to-1)
* - GPIO22 is SATA disk power status ()
* - GPIO23 is supply status for SATA disk ()
* - GPIO24 is supply control for board (write 1 to power off)
* Last GPIO is 25, further bits are supposed to be 0.
* Enable mask has ones for INPUT, 0 for OUTPUT.
* Default is LED ON, board ON :)
*/
As you can see, board off is easy enough to attain: write 1 to GPIO 24.
Note that from then on, the only way out is power-on through the
button; WOL won't work this way.
Fan control, OTOH, have no support in U-Boot (and don't really require
any in a bootloader) or Linux (shame on me...) so I can't help you
there. IIRC, there is no fan control on the ED Mini V2, at least, I
don't remember finding any in:
http://www.lacie.com/intl/support/drive ... m?id=10099Note that the kernel source tree in this archive is awfully old and
needlessly complex. Maybe somewhere in this mess is the fan control
you're looking for.
------ END of email ------
Then two other people responded:
------ Email from S. Guinot ------
IRC the fan on ED Mini V2 is entirely controlled by hardware. You
should be able to check this easily.
To shutdown the board, you could turn on the GPIO 24. You will find an
obsolete Linux patch in attachment. Feel free to update it. Or as an
alternative, if you use the LaCie stock U-Boot, you could ask U-Boot to
shutdown the board:
- Turn on the power flag in the I2C EEPROM (maybe byte 6).
- Reboot
There are some pros and cons with both this methods.
Please, let us know your progress :)
------ END of email ------
I have attached his linux patch to this post for reference
And the other:
------ Original email by C. Moore -------
>IRC the fan on ED Mini V2 is entirely controlled by hardware. You
>should be able to check this easily.
I had the impression that the fan is always on. I don't think mine ever turned off :(
For me the big problem with the GPIO 24 method is that it is not persistent across a power outage :(
With this method, when power comes back after a power outage, the EDmini V2 will boot.
I think the I2C method is the way to go.
I circulated an experimental patch for this a while back.
The main problem with this is that I found no elegant way to write to the I2C EEPROM from kernel space.
My method worked but was so messy that I didn't dare submit it to mainline :(
I once saw a patch to the I2C subsystem which provided a hook making it easier to access I2C from kernel space.
However I don't think it ever made it into the kernel :(
If anyone knows of a clean and elegant way of writing to I2C from kernel space, I should be most interested ;-)
---- END of email ----
You do not have the required permissions to view the files attached to this post.