Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Creative Jukebox Zen USB2 under Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
markfl
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 240
Location: Kent, UK

PostPosted: Tue Jul 29, 2003 11:37 am    Post subject: Creative Jukebox Zen USB2 under Gentoo Reply with quote

Just recieved my jukebox zen. Impressive but does it work under linux.
A quick check online shows that support is there but limited.
But this is how i did it in easy to follow steps.
1 - Dependencies
2 - Kernel Config
3 - libnjb
4 - Gnomad2
5 - Get in there :D

2 - Kernel Config
I'm not sure of the exact options but i'll post a working config for me - USB2.0 Did not work for me - it could read from the device but transfers wouldnt work. Mayb this will be fixed in a future release.

2.4.22_pre2-gss - gs-sources kernel
<*> USB Support
[*] preliminary USB device filesystem (required)
Your choice of USB host controller driver (im currently using UHCI)

I also have
<*> USB mass storage
which i believe is required but may not be (best do it anyway)
Bear in mind that i dont like modules so feel free to try modules.

next
Code:
 make dep && make clean bzImage modules modules_install

Install ur kernel and reboot if you have to

3 - libnjb
libnjb is the library that supports Nomad JukeBox - hence the name
The support for the Zen in the snapshot release of libnjb is nonexistant but is good in the CVS.
There is an ebuild for libnjb-cvs in bugzilla - Click here toget it https://bugs.gentoo.org/show_bug.cgi?id=22489
If this doesnt work (i havent tested it - i did it manually before i thougcat nomad.usermap >> /etc/hotplug/usb.usermap ; cp nomadjukebox /etc/hotplug/usb/ ; chmod a+x /etc/hotplug/usb/nomadjukeboxht to check) then use the following commands to get and compile the cvs
Code:

export CVSROOT=:pserver:anonymous@cvs.linjb.sourceforge.net:/cvsroot/libnjb
cvs login
cvs -z3 co libnjb

cd libnjb
./configure
make
make install
ldconfig

cat nomad.usermap >> /etc/hotplug/usb.usermap ; cp nomadjukebox /etc/hotplug/usb/ ; chmod a+x /etc/hotplug/usb/nomadjukebox


Congratulations - you should now have libnjb installed

4 - Gnomad2
This is the frontend to libnjb that im using - there is another called GnomeDAP but rumour has it its less stable (i personally use KDE and dont like either for their use of GTK which messes up my theme (more on this later))

there is also an ebuild for this in bugzilla which i did use and worked fine for me
click here to get it
https://bugs.gentoo.org/show_bug.cgi?id=22491

put it into /usr/local/portage/media-sound/gnomad2/
check you have the correct portage overlay setting in make.conf (/usr/local/portage)

Code:

ACCEPT_KEYWORDS="~x86" emerge gnomad2

if you compiled libnjb yourself use the --nodeps flag to allow it to work

Sould now be installed

5 - Get in there :D
Ready?
Reboot for your new kernel and load any modules it may require
Plug in your zen and check if its recognised....
Code:

cat /proc/bus/usb/devices

and look for anything relating to the Zen
if its there then run gnomad2
NOTE: you must connect the zen before running gnomad2
It should recognise and scan your zen when it starts
copy over a track to check if it works

Congratulations - You have a working Zen under linux

Feel free to post comments/problems/thanks
PS
Pretty soon the ebuilds for libnjb and gnomad2 should be in portage - they were not at the time of writing
MJ
_________________
Life it seems, will fade away
Drifting further every day


Last edited by markfl on Thu Jul 31, 2003 8:29 am; edited 1 time in total
Back to top
View user's profile Send private message
markfl
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 240
Location: Kent, UK

PostPosted: Tue Jul 29, 2003 12:12 pm    Post subject: Reply with quote

Sorry forgot the extra information on the frontend that would come later
KDE/Qt support isnt there yet AFAIK
I'm currently looking for a project to do for my computing A level
Put 2 and 2 together and you get: Knomad
or mayb Kreative
or some other name i havent thought of yet....
If you think you'd use this program then please post a comment

It will probably look something like gnomad but in qt

Wish me luck
MJ
_________________
Life it seems, will fade away
Drifting further every day
Back to top
View user's profile Send private message
tank
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2002
Posts: 116
Location: Virginia

PostPosted: Sun Aug 10, 2003 4:28 pm    Post subject: Reply with quote

I would be very interested in a Knomad program. Let me know how it goes.
Back to top
View user's profile Send private message
fhoubie
n00b
n00b


Joined: 13 Nov 2002
Posts: 8

PostPosted: Wed Nov 05, 2003 3:46 pm    Post subject: Reply with quote

Hi, I've juste received my Zen xtra 60Gb, but I cannot make it work under gentoo / KDE. I cannot compile neutrino, kionjb ....

any help or advice ? I simply want to upload file on it.
Back to top
View user's profile Send private message
DarkSorcerer
Tux's lil' helper
Tux's lil' helper


Joined: 15 Oct 2003
Posts: 138
Location: Mannheim, GER

PostPosted: Thu Nov 27, 2003 9:51 pm    Post subject: Reply with quote

Great... thanks it works!
_________________
Desktop: 2,2 GHz P4 | 1 GB RAM | 80 GB HDD | GF4 Ti 4200 | EMU10K1
Notebook: Toshiba Satellite M30-642
Back to top
View user's profile Send private message
oisch
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 130

PostPosted: Fri Nov 28, 2003 8:35 am    Post subject: Reply with quote

Some time ago I started a small application called (guess how...) Knomad. You can find it at http://sourceforge.net/projects/knomad/. It is still very beta and still lacks of many features, nevertheless you can upload files to your jukebox.
The only reason for me to create this program was that I wanted the name of the artist in front of the album name (for sorting purposes) and so this is the only difference you will find to gnomad :).

You can download knomad from sourceforge's cvs. To compile and run it you'll need a rather up2date id3lib and of course libnjb.
I'm not very experienced in programming KDE applications and there is no warranty if it damages your jukebux (although it's only a frontend to libnjb and I don't think that it can be harmful in any way). Nevertheless it works for me without problems.

If you decide to use it, it would be nice to get some feedback what's good and what's not.
Back to top
View user's profile Send private message
markfl
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 240
Location: Kent, UK

PostPosted: Fri Nov 28, 2003 9:07 am    Post subject: Reply with quote

Nice name for that program *cough cough*

My lawyers will contact you within the next 3 days.
jk
but on a more serious note if this program works then thanks
i'm programming something similar for my computing project - i have even less than you but i'll see if its allowed for me to become a developer on a project and still use it for a computing project for college.
I'll post news back here soon

gl
MJ
_________________
Life it seems, will fade away
Drifting further every day
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Fri Nov 28, 2003 9:07 pm    Post subject: Reply with quote

Anyone try a Rio Karma? With Ogg Vorbis and Flaac support I'd definitely buy this over anything else.
http://www.digitalnetworksna.com/shop/_templates/item_main_Rio.asp?model=220&cat=53
Back to top
View user's profile Send private message
oisch
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 130

PostPosted: Sat Nov 29, 2003 6:56 pm    Post subject: Reply with quote

MouseJockey: When I started this project at sourceforge there was already another project named knomad (can't remember what it does, but it was not related to the nomad mp3 player).
Nevertheless they let me have the name, because they emailed the project owner if he's still working at it. His answer was something like "What the ... is knomad?" ;)

The chances that someone who wants to create a kde program that manages the nomad calles it Knomad are relatively high and I was already expected something like this to happen.
But as I'm quite sure that at least one of us will soon loose his enthusiasm in programming knomad (I haven't updated it for some weeks now) and all our problems will be settled ;)

If not, there are still our lawyers waiting to be called :D
Back to top
View user's profile Send private message
markfl
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 240
Location: Kent, UK

PostPosted: Sun Nov 30, 2003 10:50 am    Post subject: Reply with quote

I cant access your CVS on sourceforge - and is it up to date? everything seems about 2 weeks old....
just thought i'd check out the competition
i could of course come up with another name or i could become a dev for kdevelop - im sure if we got the project started then we could get some interest going and find someone willing to be a third dev which would make life easier
we could get included in kde 3.3 :P
of course if we supplied knomad-cvs ebuilds for gentoo we could get some interest :)

please upload any changes you've made to knomad so i can try out the program. of course we could also take a look at how gnomad2 and neutrino(the new name for gnomeDAP) do it.

i'll get going right after breakfast :)

MJ
_________________
Life it seems, will fade away
Drifting further every day
Back to top
View user's profile Send private message
oisch
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 130

PostPosted: Sun Nov 30, 2003 12:45 pm    Post subject: Reply with quote

Working on it together would really be interesting. I'm relatively new to open source development and KDE programming, so there is still a lot to learn for me.
I'll put a cvs ebuild together and post it here. Sourceforge's cvs seems to be constantly overloaded these days, so you'll have to do some retries.

Update:
There really seems to be a problem with the permissions on the cvs server. I sent a support request to sourceforge...
Back to top
View user's profile Send private message
markfl
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 240
Location: Kent, UK

PostPosted: Sun Nov 30, 2003 2:58 pm    Post subject: Reply with quote

yeah im new to C++/KDE programming - i noticed you use kdevelop though :)

yeah im used to sourceforge being slow/busy but this was actually a permissions error
couldnt make folder lock or something like that

im gonna try it again in a second
tis a lil busy though
ill post back if it works
MJ

UPDATE:
didnt work
hope they get it fixed soon so i can take a look
_________________
Life it seems, will fade away
Drifting further every day
Back to top
View user's profile Send private message
scr7b
n00b
n00b


Joined: 27 Oct 2003
Posts: 12
Location: Scotland

PostPosted: Tue Dec 02, 2003 7:50 pm    Post subject: Reply with quote

Hmmm, I seem to have a permissions problem with my Nomad Zen USB2.

When I run Gnomad2 as a user, I get a pop-up saying "could not open jukebox", and when running it from the command line I get the message:
Code:
usb_set_configuration: Operation not permitted


I can run Gnomad2 from command line as root, and it works just fine. I've checked permissions on /etc/hotplug/usb/nomadjukebox, but not sure where else to look...

Any ideas/hints?
Back to top
View user's profile Send private message
oisch
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 130

PostPosted: Fri Dec 05, 2003 10:22 am    Post subject: Reply with quote

@scr7b:
The libnjb-cvs ebuild should create the files nomad.usermap and nomadjukebox in /etc/hotplug/usb/

Make sure that your hotplug daemon is running before you plug in your jukebox (/etc/init.d/hotplug start).

@MouseJockey:
Sourceforge has now fixed the anonymous cvs problem.
I did some updates in the last few minutes which are needed to compile knomad without kdevelop. These changes will be available to anonymous cvs tomorrow (anonymous cvs is updated in a 24h delay I believe).
Update: The changes are available now and the ebuild compiles for me
Then you should be able to compile it with the following ebuild:

Code:
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $

 inherit cvs

 IUSE=""

 DESCRIPTION="A kde gui for using Creative's Nomad JukeBox digital audio player."
 HOMEPAGE="http://sourceforge.net/projects/knomad/"

 SLOT="0"
 LICENSE="GPL-2"
 KEYWORDS="~x86"

 DEPEND="dev-libs/libusb
       dev-libs/libnjb-cvs
       media-libs/id3lib"

#ECVS_SERVER="offline"
 ECVS_SERVER="cvs.sourceforge.net:/cvsroot/knomad"
 ECVS_MODULE="knomad"
 ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
 S=${WORKDIR}/${ECVS_MODULE}

 src_compile() {
    econf || die "./configure failed"

    # Doesn't like emake
    make || die "make failed"
 }

 src_install() {
    einstall || die "make install failed"

    dodoc CHANGES FAQ INSTALL LICENSE README
 }


Hope that it will work. I hacked it together quite fast ;)
Back to top
View user's profile Send private message
markfl
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 240
Location: Kent, UK

PostPosted: Mon Jan 26, 2004 2:40 pm    Post subject: Reply with quote

Hey
its mousejockey - as you can see above i changed my name to something a little more mature.
I hope you get this... do you still have an interest in knomad?

the ebuild above didnt work for me - gave me an access violation and compiling gives an error as well (EDIT: Works for me now - I can upload a track to the Nomad Zen)

Looking at the program i can see potential and a lot of room for improvement...

I'm posting to ask if either you could resume work on knomad possibly with my help or that i could take it over (yes its GPL and i could just fork it if i wanted but this is more polite) as i think this would be a useful addition to KDE

markfl
_________________
Life it seems, will fade away
Drifting further every day
Back to top
View user's profile Send private message
mailportugal
n00b
n00b


Joined: 17 Feb 2004
Posts: 7

PostPosted: Fri Feb 20, 2004 1:21 am    Post subject: Reply with quote

Hello!

At the time of this post with Creative Jukebox Zen NX :

https://bugs.gentoo.org/show_bug.cgi?id=22489
-> not generating
/usr/lib/libnjb-1.0.1
/usr/lib/libnjb.a
/usr/lib/libnjb.la
needs manual compile from cvs.

Only Gnomad2 2.4.1 works (2.3.0 and 2.4.0 freezes).
Solution: just change the 2.3.0 ebuild of bugs.gentoo.org.
http://sourceforge.net/project/showfiles.php?group_id=65573

Gnomad2 only works with root. Other user reports:
Quote:
usb_set_configuration: Operation not permitted


Have fun! 8)
Back to top
View user's profile Send private message
mailportugal
n00b
n00b


Joined: 17 Feb 2004
Posts: 7

PostPosted: Thu Mar 04, 2004 9:37 pm    Post subject: Reply with quote

Gnomad 2.4.2 in portage! *JOY*
Back to top
View user's profile Send private message
jfb3
Apprentice
Apprentice


Joined: 01 Feb 2003
Posts: 242

PostPosted: Fri Mar 05, 2004 2:40 am    Post subject: Reply with quote

Yeah,it works. But I still had to comment out the
Code:
case NJB_DEVICE_DELLDJ:
retarray[i] = g_strdup_printf("Dell Digital Jukebox");
break;

lines in the jukebox_discover function.

Am I the only one that needed to still do this?
Back to top
View user's profile Send private message
Jaspersan
n00b
n00b


Joined: 22 Feb 2004
Posts: 13
Location: Albuquerque, New Mexico

PostPosted: Mon May 24, 2004 9:18 pm    Post subject: Reply with quote

I can read the files, and remove the files, but how can i upload?
Back to top
View user's profile Send private message
butters
Guru
Guru


Joined: 13 May 2002
Posts: 427
Location: Poughkeepsie, NY

PostPosted: Mon Aug 02, 2004 7:34 pm    Post subject: Reply with quote

Hey, I emerged the latest version of gnomad (2.4.4), running under GNOME 2.6.2, and I get a GNOME crash dialog each time I try to run gnomad. I have hotplug running, and the ebuild loads the additional usb hotplug profile mentioned in the this thread. I am trying to get my Dell Digital Jukebox to work, which is now supported by gnomad.

Do I need to have the device on and plugged in when starting gnomad?

I have USB mass storage compiled in my kernel. Linux 2.6.x doesn't have the preliminary USB filesystem option, like 2.4.x did. I have usbfs mounted at /proc/bus/usb via fstab.

Anyone see what I'm missing? (if I can't come up with a graphical front end for this player, this machine will have to revert to Windows XP, or my sister will kill me when she gets back from vacation)

Can I just use GNOME vfs/Nautilus to get files on and off the player? (preemptively) Why not?
_________________
If tugboats were bigger, they'd be the ones getting tugged.
Back to top
View user's profile Send private message
DSL_MTLCA
n00b
n00b


Joined: 30 Apr 2004
Posts: 38
Location: bloomington

PostPosted: Mon Nov 15, 2004 10:45 pm    Post subject: Reply with quote

butters wrote:
Hey, I emerged the latest version of gnomad (2.4.4), running under GNOME 2.6.2, and I get a GNOME crash dialog each time I try to run gnomad.


I run KDE and get a GNOME crash dialog each time I try to run it too... I have run it as root, as myself, have hotplugging working, etc. What gives???
Back to top
View user's profile Send private message
DSL_MTLCA
n00b
n00b


Joined: 30 Apr 2004
Posts: 38
Location: bloomington

PostPosted: Fri Nov 19, 2004 3:15 pm    Post subject: Reply with quote

bump (sorry)
Back to top
View user's profile Send private message
DSL_MTLCA
n00b
n00b


Joined: 30 Apr 2004
Posts: 38
Location: bloomington

PostPosted: Sun Jan 02, 2005 10:27 pm    Post subject: Reply with quote

SOLVED, and in case somebody wants to know how... just visit the gentoo bugs site with this bug:

https://bugs.gentoo.org/show_bug.cgi?id=72881

The problem is that the ebuild does not take out the -O3 flag which is dangerous for this package. There is a patch, but i find it easier to just switch my CFLAGS in /etc/make.conf to have -O2 while I compile gnomad and switch it back when done (gnomad compiles fast, it's small!)

-Mat
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum