Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: RE: Script to automatically download and install rockbox firmware

RE: Script to automatically download and install rockbox firmware

From: Mat Mirabella <mat_mirabella_at_yahoo.com>
Date: Mon, 14 May 2007 18:57:25 +1000 (EST)

Hmm. This is a good idea, especially if you need to
get voice files, fonts
and the like all at once.
I have done this sort of thing also with a perl script
to download rockbox,
the fonts, the source, build a voice file from the
source lang using the vb
scripts, copy other files across that I use and unpack
to the player for
each daily build. I think this only worked well up
until feb 28 - at which
time I stopped using newer builds due to me not liking
the new menu
structure and there being some issues with voice files
around that time.
It also had a problem when the zip files started to be
named without the
date in them...


-----Original Message-----
From: rockbox-bounces_at_cool.haxx.se
[mailto:rockbox-bounces_at_cool.haxx.se] On
Behalf Of Menachem Shapiro
Sent: Monday, 14 May 2007 2:08 PM
To: Rockbox development; Rockbox
Subject: Script to automatically download and install
rockbox firmware

B"H

I have attached a bash script I put together that will
automatically
download and install the latest daily build. My goal
is to integrate
the script with udev, so that I can have the computer
automatically
download and install the latest firmware when I plug
my player into
the computer. I haven't figured out the udev aspect of
it yet, but I
have pretty much finished the script.

When putting together the script, I tried to make it
as robust as
possible, and I put in a lot of error checking. That
being said, I'm
sure that there are ways for the script to error out
that I didn't
think of.

The script will only download the latest firmware if
it is not already
on the computer and will only install the latest
firmware if it is not
already installed on the player.

I would love to get feedback on the script, as well as
any help
regarding udev integration. I tried different things
using
ATTRS{idProduct} and ATTRS{idVendor}
[http://www.rockbox.org/twiki/bin/view/Main/DeviceDetection],
but it
is the first time I have ever tried messing around
with udev, and I
couldn't get it to work.

The script was written for and tested with my Archos
Recorder v1, and
there are two variables that need to be changed if
using it with a
different player.

The first is the $MODEL variable, which is actually
not needed if the
mp3 player already has a rockbox version later than
April 22, 2007 on
it. [April 22, 2007 is when rockbox-info.txt was added
to the rockbox
build, and if it is available the script uses that to
determine what
kind of player it is.]. The variable needs to use the
model name as it
is identified on the daily download page:
http://download.rockbox.org/daily/

The second is the $PATHTOPLAYER variable, which is
used to tell the
script where the player's mount point is. I tried to
figure out a way
to have the script figure it out automatically, but
couldn't come up
with anything. If you just want to test out the script
without using
your mp3 player, just comment out this link. the
script will then
download and extract the daily build to a subfolder in
your current
directory.

There are two dependencies that need to be installed,
lynx and wget.
The script will check for them and make sure they are
installed.

I recommend backing up the .rockbox folder on your mp3
player before
running the script.

Again, any feedback with regards to the script itself
or udev
integration would be greatly appreciated.

Menachem



      Switch to Yahoo!7 Mail: Transfer all your contacts and emails from Hotmail and other providers to Yahoo!7 Mail. http://au.docs.yahoo.com/mail/trueswitch_info.html
Received on 2007-05-14

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy