GNOME pjbmanager

Home |  Documentation |  Getting Started 

 Resources
 » Project page
 » pjb100 group
 » openPJB Project
 » GNOME Project
 » Electronic Frontier Foundation
 » Open Source Web Design
 » Rhythmbox Music Player
 » GStreamer

 News

GNOME VFS pjb method 0.2 [03.05.03]

The latest CVS version of the pjbsdk, this can now be used to copy node off of the device, rename and delete nodes. Work is continuing on writing to the device, this will also mean changes to the pjbsdk before it can be completed.

GNOME VFS pjb method update [06.10.02]

Start of proper coding of the vfs method (see CVS).

Updated RH8.0 Documentation [20.11.02]

Improved documentation for the RH8.0 platform.

GNOME2 version prototyped [01.07.02]

Initial prototype of the GNOME2 version of the pjbmanager

New development version [06.05.02]

Start of new development version of the pjbmanager, see news section for details

pjbvfs prototype [14.04.02]

Work has now started on a GNOME VFS pjb module (see screenshots section)

pjbsdk 3.1.4 RPMs [09.03.02]

pjbsdk 3.1.4 RPMs now available for download.

SourceForge Logo

Documentation - Getting Started

Copyright © 2000-02 by Alex Moseley and others


Getting Started

Make sure that your Personal Jukebox is switched on and connected via the USB cable to your computer. Then press the open button on the toolbar. The manager should connect to your Jukebox and display a list of the sets in the right hand panel. The left hand panel should contain a tree representing the contents of your Jukebox.

If the manager is unable to connect to your Jukebox, then it is likely that there is a problem with the driver. You must compile and install the driver. The driver is contained in the usbdrv subdirectory of pjbmanager distribution. Follow these instructions to install the usb driver

This USB driver can be built as a module under Linux 2.2, 2.3 and 2.4 series kernels. Open a terminal. Change to the usbdrv subdirectory of the pjbsdk distribution. Type the following commands:

Note: This first build step might fail under RH8.0. Make sure that there is a soft-link to linux-2.4 for linux, otherwise the build will fail.

gcc -D__KERNEL__ -I/usr/src/linux/include -DMODULE -Wall -O2 -c cpqpjb.c -ocpqpjb.o



Using hotplug

In Redhat 8.0, the hotplug mechanism is the default method of controlling the loading and unloading of modules for devices such as the pjbmanager

Add the following entry into the /etc/hotplug/usb.handmap file (this is the file that is used for hand editting of the hotplug modules). It is straightforward enough to copy the line above and change the idVendor and idProduct entries (2nd and 3rd entries) to match that of the pjb (0x049f) and (0x504a).






# pjb?


cpqpjb 0x0003 0x049f 0x504a 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000



When the hotplug system is restarted (I rebooted to make sure), check that the module has been installed by running dmesg. You should see something like the following:





Nov 20 20:40:00 localhost kernel: hub.c: USB new device connect on bus1/2/1, assigned device number 5
Nov 20 20:40:00 localhost kernel: usb.c: USB device 5 (vend/prod 0x49f/0x504a) is not claimed by any active driver.
Nov 20 20:40:03 localhost /etc/hotplug/usb.agent: Setup cpqpjb for USB product 49f/504a/100
Nov 20 20:40:03 localhost kernel: Initializing PJB driver
Nov 20 20:40:03 localhost kernel: usb.c: registered new driver cpqpjb
Nov 20 20:40:03 localhost kernel: pjb_probe: looking for devices
Nov 20 20:40:03 localhost kernel: USB PJB is connected




Using modules.conf

Make sure you are root and execute the following:







mknod /dev/cpqpjb c 10 176
chmod 666 /dev/cpqpjb
/sbin/insmod cpqpjb.o



Now check that the module has been installed by running dmesg. You should see something like the following:




Initializing PJB driver
usb.c: registered new driver cpqpjb
pjb_probe: looking for devices
USB PJB is connected
usb.c: cpqpjb driver claimed interface c148bee0



Also make sure that the cpqpjb driver is listed when you execute:




/sbin/lsmod



If you want the driver to load automatically when pjbmanager is run, then:




mkdir /lib/modules/'kernelversion'/usbdrv
cp cpqpjb.o /lib/modules/'kernelversion'/usbdrv
depmod



Then add the following to your /etc/modules.conf file:




keep
path=/lib/modules/'kernelversion'/usbdrv
alias char-major-10-176 cpqpjb



All finished

Now try clicking the open button on the toolbar and you should see a list of sets in the right hand pane and a tree representing the contents of your Personal Jukebox in the left hand pane.


Content questions?   Technical questions?

© 2002 - Mark Humphreys