From: Tijl C. <ti...@ul...> - 2006-10-05 10:06:59
|
On Monday 02 October 2006 12:20, Sean McLaughlin wrote: > Well, I managed to get TiLP-II to compile and run moderately > successfully on FreeBSD, but there were some issues: Thanks, that means less work for me :) > 1. src/bsd/detect.c #include's "stdints.h", which doesn't exist. > I had to pull in the one from the previous version. This has already been fixed apparently. Maybe the entire dir needs to be resynced with the Linux code. I haven't actively kept track of TiLP II development so I don't know if this has already been done or not. > 2. src/bsd/link_ser.c contains bad code. Here's the fix (I didn't > care to use diff): > > static int ser_prepare(CableHandle *h) > { > // NEW > int ret; > > switch(h->port) > { > case PORT_1: h->address = 0x3f8; h->device = strdup("/dev/cuad0"); //NEW > break; > case PORT_2: h->address = 0x2f8; h->device = strdup("/dev/cuad1"); //NEW > break; > case PORT_3: h->address = 0x3e8; h->device = strdup("/dev/cuad2"); //NEW > break; > case PORT_4: h->address = 0x3e8; h->device = strdup("/dev/cuad3"); //NEW > break; > default: return ERR_ILLEGAL_ARG; > } > > // detect stuffs > // OLD: err = check_for_tty(h->device)); > ret = check_for_tty(h->device); > . > . > . > > 3. Similarly to (2), all "cuaa"s in src/bsd/link_gry.c have to be > changed to "cuad"s. This isn't entirely correct. The name has only been changed since FreeBSD 6. Everything before that still uses cuaaX. > As far as run-time goes, USB for the TI-84 Plus at least is borked. > I'll give just one example:selecting "DirectLink" for the cable type > and any port for the comm settings gives a dialog box: > > ============================================================= > = Msg: failed to open USB device. = > = Cause: check your USB cable is plugged and/or the = > = calculator is ON! Check your libusb and usbfs, too. = > = System: Device not configured (errno = 6) = > ============================================================= > > And console output: > ticables-INFO: found <TI-84 Plus Silver Edition> on #1, version <1.00> > (tilp-2:6095): ticables-WARNING **: no devices found! > tilp-INFO: tilp_device_err catched error 37 > > "libusb" is definitely in there: > $ ldd tilp-2 | grep usb > libusb-0.1.so.8 => /usr/local/lib/libusb-0.1.so.8 (0x28bc3000) I don't have an 84 or 89t, but I'll have a look at it. |