In a previous message, Joe Morris (NTM) wrote:
On 03/10/2003 07:41 PM, John Pettigrew wrote:
Do I have to compile the whole kernel just for this module, or is it possible to compile only the visor module?
I would recommend running at least make dep and make modules (in the source root, i.e /usr/src/linux). It may not take as long as you think.
OK, I've sorted it (mostly)! Adding the required three lines to visor.c and visor.h, then compiling with make cloneconfig, make dep and make modules gave me a new visor.o file, which I replaced my existing one with. rmmod visor and insmod visor gave me the new module running. This is where I had a few problems - I get lots of error messages when I connect the palm ("error getting string descriptor") with several beeps rather than the usual single "successful hotplug" beep. Also, the Tungsten binds to ttyUSB0 rather than ttyUSB1 for hotsyncing, which my old Visor used, which confused me further. However, it is now working, despite the error messages. Does anyone know what these mean (a snippet shown below)? And whether I need to worry about them? Mar 11 15:11:35 linux kernel: hub.c: USB new device connect on bus1/2/1, assigned device number 30 Mar 11 15:11:35 linux kernel: usbserial.c: Palm 4.0 converter detected Mar 11 15:11:36 linux kernel: usb-uhci.c: ENXIO 80001e80, flags 0, urb c3ca90c0, burb c3ca9440 Mar 11 15:11:36 linux kernel: usb.c: error getting string descriptor 0 (error=-6) Mar 11 15:11:36 linux kernel: usb-uhci.c: ENXIO 80001e80, flags 0, urb c3ca90c0, burb c3ca9440 Mar 11 15:11:36 linux kernel: usb.c: error getting string descriptor 0 (error=-6) ... ... Mar 11 15:11:37 linux kernel: usb-uhci.c: ENXIO 80001e80, flags 0, urb c3ca96c0, burb c3ca9440 Mar 11 15:11:37 linux kernel: usb.c: error getting string descriptor 0 (error=-6) Mar 11 15:11:38 linux kernel: usb_control/bulk_msg: timeout Mar 11 15:11:38 linux kernel: visor.c: visor_startup - error getting connection information Mar 11 15:11:38 linux kernel: usbserial.c: Palm 4.0 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Mar 11 15:11:38 linux kernel: usbserial.c: Palm 4.0 converter now attached to ttyUSB1 (or usb/tts/1 for devfs) One further question - does anyone know how to direct files to the memory card of the Tungsten rather than the RAM? This would let me upload mp3s to the Tungsten without resorting to Windows and I would then be a very happy person! Many thanks to everyone for helping me with this! John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Fields of Valour: 2 Norse clans battle on one of 3 different boards