PDA

View Full Version : executing binaries on a squeezebox



Jason Temple
2005-02-08, 18:07
Howdy All,
I was curious if anyone has an easy way of loading software into the
squeezebox. What I'm looking to do is cross compile ether-wake and tie
it in with the rc scripts on the squeezebox (or whatever scripts are
used to start when powered on) in order to execute a wake on lan event
(magic packet) on the slimserver nic. I poked around a bit and did not
find mention of this so far.

Any pointers would be great, thanks!

jas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBCCWJvlRglocHBb0QRAnQoAKCeIibNeXF3OpOKpVAA4e BEqy0m4gCaAr6z
J2Iew6tH8e/nrJQE2EbK3jU=
=3ZFa
-----END PGP SIGNATURE-----

kdf
2005-02-08, 18:17
Quoting Jason Temple <jason (AT) temple (DOT) net>:

> Howdy All,
> I was curious if anyone has an easy way of loading software into the
> squeezebox. What I'm looking to do is cross compile ether-wake and tie
> it in with the rc scripts on the squeezebox (or whatever scripts are
> used to start when powered on) in order to execute a wake on lan event
> (magic packet) on the slimserver nic. I poked around a bit and did not
> find mention of this so far.
>
> Any pointers would be great, thanks!

Basicaly, you can't. The squeezebox powered by a Ubicom cpu, and its
development environment is not something they they make available freely.
There are ongoing talks to arrange some method for custom firmware, but at this
time it is still talk.

-kdf

Jason Temple
2005-02-13, 14:14
Rats...any ideas on how to remotely trigger a server with a bunch of
disks to spin up only when needed? I've got quite a bit of disk space
that I don't necessarily want to spin 24x7, yet I definitely want
available...

The idea is simple, power on the SB and the server starts up a minute
later, then some sort of polling script on the server to determine if
any clients are currently connected/playing and if not, shutdown and
wait until the next wake statement.

any ideas??

jas

On Tue, 2005-02-08 at 17:17 -0800, kdf wrote:
> Quoting Jason Temple <jason (AT) temple (DOT) net>:
>
> > Howdy All,
> > I was curious if anyone has an easy way of loading software into the
> > squeezebox. What I'm looking to do is cross compile ether-wake and tie
> > it in with the rc scripts on the squeezebox (or whatever scripts are
> > used to start when powered on) in order to execute a wake on lan event
> > (magic packet) on the slimserver nic. I poked around a bit and did not
> > find mention of this so far.
> >
> > Any pointers would be great, thanks!
>
> Basicaly, you can't. The squeezebox powered by a Ubicom cpu, and its
> development environment is not something they they make available freely.
> There are ongoing talks to arrange some method for custom firmware, but at this
> time it is still talk.
>
> -kdf
>

Jason Temple
2005-02-13, 14:14
Rats...any ideas on how to remotely trigger a server with a bunch of
disks to spin up only when needed? I've got quite a bit of disk space
that I don't necessarily want to spin 24x7, yet I definitely want
available...

The idea is simple, power on the SB and the server starts up a minute
later, then some sort of polling script on the server to determine if
any clients are currently connected/playing and if not, shutdown and
wait until the next wake statement.

any ideas??

jas

On Tue, 2005-02-08 at 17:17 -0800, kdf wrote:
> Quoting Jason Temple <jason (AT) temple (DOT) net>:
>
> > Howdy All,
> > I was curious if anyone has an easy way of loading software into the
> > squeezebox. What I'm looking to do is cross compile ether-wake and tie
> > it in with the rc scripts on the squeezebox (or whatever scripts are
> > used to start when powered on) in order to execute a wake on lan event
> > (magic packet) on the slimserver nic. I poked around a bit and did not
> > find mention of this so far.
> >
> > Any pointers would be great, thanks!
>
> Basicaly, you can't. The squeezebox powered by a Ubicom cpu, and its
> development environment is not something they they make available freely.
> There are ongoing talks to arrange some method for custom firmware, but at this
> time it is still talk.
>
> -kdf
>

Jason Temple
2005-02-13, 14:14
Rats...any ideas on how to remotely trigger a server with a bunch of
disks to spin up only when needed? I've got quite a bit of disk space
that I don't necessarily want to spin 24x7, yet I definitely want
available...

The idea is simple, power on the SB and the server starts up a minute
later, then some sort of polling script on the server to determine if
any clients are currently connected/playing and if not, shutdown and
wait until the next wake statement.

any ideas??

jas

On Tue, 2005-02-08 at 17:17 -0800, kdf wrote:
> Quoting Jason Temple <jason (AT) temple (DOT) net>:
>
> > Howdy All,
> > I was curious if anyone has an easy way of loading software into the
> > squeezebox. What I'm looking to do is cross compile ether-wake and tie
> > it in with the rc scripts on the squeezebox (or whatever scripts are
> > used to start when powered on) in order to execute a wake on lan event
> > (magic packet) on the slimserver nic. I poked around a bit and did not
> > find mention of this so far.
> >
> > Any pointers would be great, thanks!
>
> Basicaly, you can't. The squeezebox powered by a Ubicom cpu, and its
> development environment is not something they they make available freely.
> There are ongoing talks to arrange some method for custom firmware, but at this
> time it is still talk.
>
> -kdf
>

Jason Temple
2005-02-13, 14:14
Rats...any ideas on how to remotely trigger a server with a bunch of
disks to spin up only when needed? I've got quite a bit of disk space
that I don't necessarily want to spin 24x7, yet I definitely want
available...

The idea is simple, power on the SB and the server starts up a minute
later, then some sort of polling script on the server to determine if
any clients are currently connected/playing and if not, shutdown and
wait until the next wake statement.

any ideas??

jas

On Tue, 2005-02-08 at 17:17 -0800, kdf wrote:
> Quoting Jason Temple <jason (AT) temple (DOT) net>:
>
> > Howdy All,
> > I was curious if anyone has an easy way of loading software into the
> > squeezebox. What I'm looking to do is cross compile ether-wake and tie
> > it in with the rc scripts on the squeezebox (or whatever scripts are
> > used to start when powered on) in order to execute a wake on lan event
> > (magic packet) on the slimserver nic. I poked around a bit and did not
> > find mention of this so far.
> >
> > Any pointers would be great, thanks!
>
> Basicaly, you can't. The squeezebox powered by a Ubicom cpu, and its
> development environment is not something they they make available freely.
> There are ongoing talks to arrange some method for custom firmware, but at this
> time it is still talk.
>
> -kdf
>

jacobdp
2005-02-13, 14:26
On Sun, 13 Feb 2005 16:14:49 -0500, Jason Temple <jason (AT) temple (DOT) net> wrote:
>
> any ideas??
>

There's a feature request already:
http://bugs.slimdevices.com/show_bug.cgi?id=331

I don't know if it's going to be implemented, though.

- Jacob

Pat Farrell
2005-02-14, 10:54
At 04:14 PM 2/13/2005, Jason Temple wrote:
>The idea is simple, power on the SB and the server starts up a minute
>later, then some sort of polling script on the server to determine if
>any clients are currently connected/playing and if not, shutdown and
>wait until the next wake statement.
>any ideas??

As others have posted, it is not easy.
Which raises in my feeble mind, why would you want to do this?
I'm not sure that it is a good trade off to power down disks,
it is likely that the power-down/spin up cycle is more likely to
take life out of the disks than just leaving them running.

Same with cycling the CPU, thermal stress and all that.

If you want to save power, why not get a low power CPU/MB,
like a Via Eden system?

i would suggest looking at what real problem you want to
solve, since the obvious choice is blocked.

Pat

kefa
2005-05-15, 03:24
I live in a small flat, so I have tucked the (Fedora linux) Slimserver in the bedroom, so that it doesn't cause noise when listening to music in the lounge over wi-fi. What I want is an easy way to turn the Slimserver on an off from my Squeezebox. (wake-up on LAN, execute script to turn off, etc.).

I don't want to leave my PC switched on all the time for a number of reasons (packed full of additional hot disks that are screwed in to the case: not sure the cooling really supports this!!, wouldn't want to give hackers the chance to take over the box by leaving it on 24/7, makes too much noise in the bedroom to sleep with it on).

On the other hand, I'm lazy so I don't want to have to walk in to the bedroom to power the Slimserver on and off every time I want to listen to music.

(I got the SB2 for convenience in the first place, right...)

Maditude
2005-05-15, 15:12
I live in a small flat, so I have tucked the (Fedora linux) Slimserver in the bedroom, so that it doesn't cause noise when listening to music in the lounge over wi-fi. What I want is an easy way to turn the Slimserver on an off from my Squeezebox. (wake-up on LAN, execute script to turn off, etc.).

I think this would be pretty useful -- if the Squeezebox can't connect to the SlimServer, it could try sending a WakeOnLan packet, and display a message to the effect of "the server should be booting now, this'll take a bit...".

I wouldn't want the squeezebox's power button to turn OFF my slimserver box, but slimserver is aware of the squeezebox's power status -- you could probably watch for that change in a script on your server, and perform a shutdown at that point.

kdf
2005-05-15, 15:29
http://bugs.slimdevices.com/show_bug.cgi?id=1200

Maditude
2005-05-15, 17:22
http://bugs.slimdevices.com/show_bug.cgi?id=1200

Cool, thanks. One of these times I'm gonna remember to do a bugsearch before I pipe up with my two cents. ;-)

getprogs
2005-06-20, 02:15
Sorry for being slow/dump/a non-developer:
I have a setup with a PC running WinXP and SB2 receiving whatever I throw at it. I can remotely (from another PC) shut down the Slimserver PC, and I can remotely (from another PC) send a magic packet that triggers the WOL functionality of the Slimserver box.
What I *would* like to is change the shutdown from a remote action to a locally initiated action by the PC (i.e. using the power scheme either in the BIOS or the OS) - this I can do, and change the wake on lan to be initiated by the SB2 - this I can not do. Does the code snippet help me in any way? If I must I am prepared to install a Linux box just to get my hands on gunzip...

I can tell there are several requests for this wake on lan functionality - does anybody know the status? (whether it will be implemented at all etc.)