Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: Domonoky on April 24, 2007, 06:52:07 PM

Title: rbutil - The Rockbox Utility needs testing
Post by: Domonoky on April 24, 2007, 06:52:07 PM
Hi Folks,

I am working on extending and impoving rbutil (http://www.rockbox.org/twiki/bin/view/Main/RockboxUtility) the Rockbox Utility for installing everything Rockbox related.
This Tool should evolve into the official rockbox installer, and now i could need your Help for testing.

You can find a win32 binary of rbutil at : http://b23.org/~domonoky/rbutil.zip
For Linux and Mac you would have to compile with the Patch FS #6893
EDIT:
 to compile on Linux you need wxWidget 2.8, this is likely not in the repository of your Distro, but there is a package for Ubuntu (works also on Debian) on the wxWidgets page. Otherwise you can compile wxWidgets 2.8 yourself, see instructions on their page).

I would like to hear your Testresults, and if you find any problems, please write it here or in the Tracker. And please include the Details, like you OS and your player.

If you have other suggestions, i would also like to hear it.

and finally, if know C++ and have time, please step in :-)

have fun testing,

regards, Domonoky

--------------------
known problems:
   - The "Install Rockbox Utility on Device" funktion is broken.

Title: Re: rbutil - The Rockbox Utility needs testing
Post by: 007quick on April 24, 2007, 07:15:07 PM
Can you give some more specific dirrections as to how to compile rbutil in linux. I tried with no sucess.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: linuxstb on April 25, 2007, 03:03:34 AM
Can you give some more specific dirrections as to how to compile rbutil in linux. I tried with no sucess.

You need to install wxwidgets 2.8 - see http://www.wxwidgets.org for information on how to do that.

After that, it's simply a matter of typing "make" in the rbutil directory in the Rockbox source.  

For the purposes of this testing, you should apply the latest version of Domonoky's patch from FS #6893
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: GodEater on April 25, 2007, 03:06:32 AM
Can you give some more specific dirrections as to how to compile rbutil in linux. I tried with no sucess.

Also "with no success" doesn't really help anyone out with where you went wrong. What did you try - what went wrong ?
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: tdtooke on May 26, 2007, 09:31:30 PM
I just added widgets to cygwin as described here (http://www.wxwidgets.org/wiki/index.php/Cygwin) and sucessfully compiled the hello world example on that page but I can't for the life of me compile rbutil.  I'm assuming I just have to type make, right?  It starts out ok, but always starts spitting out errors when it reaches the bootloader.  I'm using wxWidgets 2.8.4, should I use 2.8.0?  I'm also using windows.  I can post a screenshot of my compiler errors if that would be helpful.  Also I'm using GCC 3.4.4-3 and I noticed that if I were to try WIN=1 then the directories are all wrong, probably because it said that was for Debian.  Thoughts?

Edit: Right now my only idea is to get GCC or Mingw independent of Cygwin and use that.  Since that will involve me digging through my path variable and moving some things there to my cygwin bash profile (yes, I was that lazy when I first set up Cygwin)to prevent problems I'm kinda leary to begin doing all that.  Just looking at the Wiki I'm assuming (probably bad idea) that has to work.  Is that the way to go?
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: robin0800 on May 28, 2007, 08:27:11 AM
still a few errors or faults with this utility on windows xp
in no particular order;
1) with no ipod connected choosing install utility from file menu tells me it completed sucessfully clearly it lied.
2)some themes would not install thaats all thy said! did they need patches or somthing?
3)it would be nice to have the utility to be fine for new installs but very wary if rockbox is already there as it will wipe out any patches that may be installed could it determine if patches are present?
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Llorean on May 28, 2007, 08:36:30 AM
In regard to #3, I'm not sure why the official installer should even be run on devices running patched builds. If you run it over an official installation there should be no problem. If you have a patched build, telling it to install Rockbox is pointless unless you clearly want to wipe out the patched build, right?

I'm not sure why adding an extra "Are you sure you wish to overwrite this" is beneficial since the only time the answer would be "No" is if you aren't using an official build of Rockbox (the only time you really should want to keep an outdated build) and this is the official installer, right?
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Domonoky on May 28, 2007, 10:27:12 AM

To #1:  the portable installation is somehow broken, and i dont know why, i leave this to Cassandra :-)

#2:  All Themes you can see in rbutil are from rockbox-themes.org,  rockbox-themes filter the Themes which need a patch out, so you should only see Themes whitch work on the official build.
If the Installation of a theme fails, rbutil says "Installation failed" and offers a Button for more Info about this error.  So there should be the Info why the install failed.

to #3:
Its impossible to detect if you have a patched build, rbutil will just install the newest official build.


hope i could help.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: lights0ut on May 28, 2007, 10:30:12 AM
I've tried out the win32 version of rbutil through wine, it looks nice but I haven't done any real testing with it because I'm stubbornly trying to get it to work in Linux.
I've compiled / installed the latest Wxwidgets, and when I go to build rbutil it compiles fine.
When I run ./rbutil    (as user and as root just to be sure) I get this error:

./rbutil: error while loading shared libraries: libwx_gtk2_aui-2.8.so.0: cannot open shared object file: No such file or directory

I had a look for said library, and it's located in /usr/local/lib which is in my path. Any suggestions as to what's going wrong?
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Domonoky on May 28, 2007, 12:43:41 PM
Hey,

i dont know too much about Linux, but it sounds like your wx libs are not correct installed.
Check if the lib really has this name, and if it is a Symlink, that it points to the right place.

you can also try to set the variable LD_LIBRARY_PATH to the dir with the lib.

Another option would be to build wx with the configure switch --disable-shared then it should build a static wx, and dont need the libs.

There is also a .dep package on the wxwidgets site if you have Ubuntu or Debian.. this works :-)


@ tdtook: i dont know if the Makefile is uptodate for use with cygwin. On Windows i compile with  Code::Blocks. However, on linux the makefile works.

hope i could help.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Bagder on May 28, 2007, 12:44:31 PM
./rbutil: error while loading shared libraries: libwx_gtk2_aui-2.8.so.0: cannot open shared object file: No such file or directory

I had a look for said library, and it's located in /usr/local/lib which is in my path. Any suggestions as to what's going wrong?

In linux, shared libs are not scanned for in your path, but in the dirs that is mentioned in the /etc/ld.so.conf file. Presumably, you don't have /usr/local/lib in there.

If you add it, you need to rerun ldconfig (as root) to make your system pick up the change.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: lights0ut on May 28, 2007, 03:09:29 PM
Bagder, thanks for the help worked perfectly.

So now that I can run rbutil, I can comment on it:
I made a backup of my .rockbox and GBSYSTEM so that I could pretend I was installing on a new device. The interface is really easy to use, I like how the tabs are in the logical order that you would use them. A couple of criticisms though:

1. The little blurb about the fonts should be more clear about the fonts being needed for themes, there are a lot of themes that don't have the font included.

2. When I'm getting new themes, the description is sometimes too long for the window, and so the OK and CANCEL buttons disappear (I can still say OK by hitting ALT+O ) maybe the description could be a scrolling text box?

Aside from that, my rbutil experience was fun, everything worked like it should have after installation. Nice work guys ;)
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Domonoky on May 28, 2007, 04:33:29 PM
thanks for the comments,

To 1:  The text for the fonts isnt really uptodate any more, so if you propose a good little text, i will change it :-)

about 2: putting the Theme description in a scrolling control is a good idea, i will have a look at the code.

Edit: i just changed both in SVN. so it should be fixed :-)
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: AlexP on May 28, 2007, 05:11:22 PM
I really like it too, and have one small observation/question.

On the install rockbox dialogue, would it be an idea to have the default build selected for install as a current build not archived build as this is what we generally suggest people install?
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: lights0ut on May 28, 2007, 05:12:33 PM
thanks for the comments,

To 1:  The text for the fonts isnt really uptodate any more, so if you propose a good little text, i will change it :-)

about 2: putting the Theme description in a scrolling control is a good idea, i will have a look at the code.

Edit: i just changed both in SVN. so it should be fixed :-)

sweet, thanks.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: X86 on May 28, 2007, 05:49:32 PM
the Rbutil does an error and it doesn't install themes even if they have been downloaded correctly,and also it doesn't show all the themes.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Domonoky on May 28, 2007, 06:28:28 PM
the Rbutil does an error and it doesn't install themes even if they have been downloaded correctly,and also it doesn't show all the themes.
can you give more info about the error ? Is there any additional info ? rbutil rejects to install themes which dont contain the .rockbox dir. ie they have a wrong directory structure in the zip.

And it doesnt show all the themes because rockbox-themes.org filters the themes which require patches out.

And to Bigbambi:
I will change this next time i commit something for rbutil :-)
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: tdtooke on May 28, 2007, 11:58:30 PM
Disregard this post, sorry.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: mincho on May 29, 2007, 11:30:52 PM
This worked great on my h10 under windows xp! Thanks for this!!

As for improvments, more themes could be added, autodetect for non ipod players, and um  how about importing your old settings (like themes and cfg files)  from a previous install of rockbox, like an old .rockbox folder?  Just throwin some ideas at ya.

Title: Re: rbutil - The Rockbox Utility needs testing
Post by: tdtooke on July 06, 2007, 01:53:07 AM
I have a question, might be stupid.  Everything is working ok for me with the exception of bin2c.c not compiling before you have it trying to use it.  I have a temp fix for this that works, just compiling it manually before building, I'm just thinking something in my setup must be wrong though.  I'm using codeblocks with mingw version 3.4.5.  Would me submitting a patch that clears out the compiler warnings you get be a bad or good idea?  Wouldn't change a single thing really, just taking care of a few comparisons of signed and unsigned and making sure static is the first thing mentioned in the method declaration if it's static, but it would make it *appear* cleaner.  I'm also toying with the idea of playing around with this to add support for unsupported builds with it downloading source code, patches from flyspray and sending calls to compile it.  Granted that's probably gonna be hell to implement and doesn't really belong in an official rbutil, but I thought those changes might be nice for say a patch on flyspray that would never be commited, just exist there for people that like that sort of thing.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Domonoky on July 06, 2007, 07:21:18 AM
Hi..

yes bin2c has to be compiled first, because it converts the images to cpp and h files.
I think the Make file for linux does this automagically, but i dont know how to do it in Code::Blocks.
But it isnt really a problem to compile it first. :-)

About the warnings, i think all of them are in external tools like ipodpatcher and i didnt want to change these.

About your idea to support custom builds, i dont think this belongs to rbutil, and its probably impossible to integrate, so that it works everywhere.

Title: Re: rbutil - The Rockbox Utility needs testing
Post by: tdtooke on July 30, 2007, 05:37:15 AM
Quick question: Is it normal for rbutil to flash alot when creating talk files?
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Domonoky on July 30, 2007, 12:25:54 PM

Yes, thats normal.
Its because it runs those programms to talk the text and to make the mp3s,
 in the background, and everytime it starts one it flickers.. :-)

but we will see hwo we can improve this in the new rbutil Qt Version. :-)
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: jmdennis on August 01, 2007, 04:35:47 AM
One thing that I found is the ipod color has the wrong spelling and is ipod colour.  I also noticed that on the lastest Windows version 0.3.2.6 that when I downloaded all the themes that it placed them in a .rockbox folder inside .rockbox.  I pointed it to .rockbox so that it would install into the .rockbox folder into the folders that it normally goes into.  I guess I should have just pointed to my ipod and let it do it's thing.  The mac version is behind the other versions and also takes a lot to select all the themes if you so desire as it does a pre-download so you can see what it looks like.  To select all of them you have to go through this each time.  I had an error while it was downloading the themes and all it showed me was error.  It did not give me enough information to know which one or what happened.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: GodEater on August 01, 2007, 05:59:34 AM
Regarding spelling - Rockbox has always, and will continue to, use British English - so iPod Colour is the correct spelling.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Febs on August 01, 2007, 06:11:13 AM
True, but in the case of a model name (as opposed to the ordinary English use of the word), shouldn't we should use the manufacturer's spelling?  As far as I know, Apple uses the spelling "color."  

(We refer to it in the manual as the ipod "Color.")
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: GodEater on August 01, 2007, 06:44:42 AM
Perhaps - I've just done a bit of wayback machine searching of apple's uk site - and I can't see it called the iPod Color or iPod Colour - it was either just "iPod" or "iPod Photo".
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Llorean on August 01, 2007, 12:54:50 PM
I tend to think of it as a proper noun, if anything, meaning "iPod Color" when called that. It's a somewhat unique case.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: Domonoky on August 01, 2007, 12:58:23 PM
@jmdennis:

about the themes in the .rockbox dir:
rbutil asks you to point to your device, and not to your .rockbox dir, and it only checks if this location exists. So the problem is a user problem. :-)

about Mac version: this version is only behind, because some one has to compile those builds, and not everybody has a Mac. :-)

about your error: In the Error message there should be a "details" or "more" Button which gives you more information about the errors that happend. Without a detailed error message i cant fix any possible bugs.

And in general: We are now porting/ rewriting rbutil to use the Qt Framework instead of WxWidgets, so most of the effort is going in the new version, and its likely that those things and errors arent going to be fixed in the wx version. Instead we will replace it when the Qt Version is ready. So be patient and feel free to improve / test the Qt Version. :-)
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: bluebrother on August 01, 2007, 05:12:12 PM
I tend to think of it as a proper noun, if anything, meaning "iPod Color" when called that. It's a somewhat unique case.
In the manual those names are treated as nouns, so it becomes "Ipod Color". While the web site isn't exactly following this rules I'm wondering if we shouldn't the same in Rockbox Utility?

And in general: We are now porting/ rewriting rbutil to use the Qt Framework instead of WxWidgets, so most of the effort is going in the new version, and its likely that those things and errors arent going to be fixed in the wx version. Instead we will replace it when the Qt Version is ready. So be patient and feel free to improve / test the Qt Version. :-)
I put a windows binary of the current state online. It's a statically linked binary, thus (according to Trolltechs documentation) screen readers won't work with it -- we'll address that issue later. I'm trying to update that zip file from time to time so if you want to test look here:
http://www.stud.uni-karlsruhe.de/~uhcn/rockbox/rbutil/rbutilqt-static.zip
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: jmdennis on August 01, 2007, 07:47:27 PM
I have tried the binary and I like it.  The only things I noticed not working are the quick start which shows greyed out for the 2 items.  Also themes is greyed out and thus you can not download these.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: bluebrother on August 02, 2007, 03:15:33 AM
The only things I noticed not working are the quick start which shows greyed out for the 2 items.  Also themes is greyed out and thus you can not download these.
Well, as some parts aren't implemented yet they are (intentionally) greyed out ;) I'm working on implementing themes (but this might take some additional days as I also intend to make the interface to the themes site cleaner -- the themes site currently gets reworked so is's a good time to do it).

Edit: I just tried upx on the rbutil executable, and it compresses even better than zip. I uploaded the result to http://www.stud.uni-karlsruhe.de/~uhcn/rockbox/rbutil/rbutilqt.exe if somebody want to try. The device selection was changed :)
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: jmdennis on August 03, 2007, 05:39:32 PM
I  will try this tonight when I get to work.  I do not have a Windows machine at home so will have to use it there.  I did like the other version you had as it was much cleaner then the version on rockbox.  It also seems to be smoother on downloads.  I will report how it works when I try it out.

I tried it out and I like it.  I only tested the install rockbox to install the latest version.  When you implement more I will test those as well.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: jmdennis on August 04, 2007, 06:03:00 AM
I found one issue with it.  When I tried to install the bootloader it would not install as it showed no ipod found but I am able to install rockbox.  This may just be a problem with rbutil as when I try with the latest windows version it does not seem to do any thing in regards to downloading the firmware.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: bluebrother on August 05, 2007, 03:40:05 PM
Installing the bootloader and Rockbox itself is completely different for Ipods. Installing the bootloader needs raw disk access and thus admin priviledges. Installing a build does not, it only needs to access the Ipod as a disk drive. So this might be simply a rights issue -- installing the bootloader works fine for me.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: saratoga on August 05, 2007, 03:52:01 PM
Just tried this on the Ipod 3G and it worked great.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: jmdennis on August 06, 2007, 10:54:31 AM
I do have admin rights on the PC at work and I could not get it to work.  I had to use the old utility to install it.  I even went so far as to format my iPod and reload it with iTunes before trying it again and no luck.  I am glad it works for others but was not working for me.
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: bluebrother on August 06, 2007, 02:13:13 PM
I do have admin rights on the PC at work and I could not get it to work.  I had to use the old utility to install it.
So I understand correctly that
- it didn't work and you only got a "no ipods found" error
- using ipodpatcher worked fine
- you didn't change anything in between those two runs?

This is somewhat strange as rbutil uses the same code as ipodpatcher does ...
Title: Re: rbutil - The Rockbox Utility needs testing
Post by: jmdennis on August 06, 2007, 02:50:55 PM
I also was unable to use rbutil to do an uninstall of the firmware for rockbox.  I was able to use it to uninstall rockbox folder but not the firmware using rbutil.  I did not try ipodpatcher for this as I decided to reformat my ipod and restore is using iTunes before I did the install again.  When I did using rbutil it showed no ipod found but ipodpatcher found it and was able to install the firmware with no issues what so ever.