Re: [opencbm-user] Errors compiling opencbm on Linux.
Brought to you by:
strik
|
From: Spiro T. <cb...@tr...> - 2007-11-02 19:34:08
|
Hello Luca,
* On Wed, Oct 31, 2007 at 10:48:41PM +0100 gr...@gm... wrote:
> I managed to build opencbm0.4.0, with the following changes:
You made me curious on why these changes were necessary.
Could you please check out the latest version on the
v0_4_0_bugfix_branch (tag: v0_4_0_bugfix_branch_make_showvars), enter
"makef -f LINUX/Makefile showvars-file", and send me the resulting
showvars.txt file? This might help me find out what is going wrong on
your system.
> diff -u -r1.7.4.4 config.make
[...]
> --- LINUX/config.make 28 Oct 2007 10:56:30 -0000 1.7.4.4
> +++ LINUX/config.make 31 Oct 2007 21:33:06 -0000
[...]
> -MODDIR = `for d in /lib/modules/\`uname
> -r\`/{extra,misc,kernel/drivers/char}; do test -d $$d && echo $$d; done
> | head -n 1`
> +MODDIR = `for d in /lib/modules/\`uname -r\`/build; do test -d $$d
> && echo $$d; done | head -n 1`
I am curious why you had to use the build/ subdir here... In fact, I
believe this change is WRONG, see below.
> @@ -40,10 +40,10 @@
> # (removed, use the later implementation instead. I left them in in
> case the
> # later implementation does not work on a particular machine.)
> #KERNEL_SOURCE = /usr/src/linux # for kernel 2.4
> -#KERNEL_SOURCE = /lib/modules/`uname -r`/build # for kernel 2.6
> +KERNEL_SOURCE = /lib/modules/`uname -r`/build # for kernel 2.6
>
> # from patch #1189489 on SourceForge, with fix from #1189492):
> -KERNEL_SOURCE = ${shell for d in {/lib/modules/`uname
> -r`/build,/usr/src/linux}; do test -d $$d && echo $$d; done | head -n 1}
> +#KERNEL_SOURCE = ${shell for d in {/lib/modules/`uname
> -r`/build,/usr/src/linux}; do test -d $$d && echo $$d; done | head -n 1}
Here, I am even more curious: In my opinion, both commands should find
exactly the same dir!
> diff -u -r1.4 Makefile
> --- docs/LINUX/Makefile 28 Apr 2006 12:57:35 -0000 1.4
> +++ docs/LINUX/Makefile 31 Oct 2007 21:33:08 -0000
> @@ -48,7 +48,7 @@
> gzip -c9 $(INFO) > $(INFODIR)/$(INFO).gz
>
> install: install-files
> - test -z `type -p mkinfodir` || mkinfodir || /bin/true
> + #test -z `type -p mkinfodir` || mkinfodir || /bin/true
What was the point here? Why did you have to remove this line?
> luca@c65:~/opencbm/cbm4win$ sudo /sbin/depmod
> luca@c65:~/opencbm/cbm4win$ sudo /sbin/modprobe parport
> luca@c65:~/opencbm/cbm4win$ sudo /sbin/insmod cbm lp-0
> insmod: can't read 'cbm': No such file or directory
>
>
> The error is due to the fact that the cbm.ko file resides only in the
> ./sys/linux directory, dunno why.
I think it is your first change (to MODDIR=) which results in this
behaviour. Because of this change, you are copying the cbm.ko file to a
wrong location (or to itself? I am not totally sure)
> Anyway, i issued this command;
>
> luca@c65:~/opencbm/cbm4win$ sudo insmod sys/linux/cbm.ko lp-0
> insmod: error inserting 'sys/linux/cbm.ko': -1 Unknown symbol in module
"lp-0"? Why do you want to use this? Where do you have this option from?
BTW: What does /var/log/messages tell you here?
> and I got that error. Instead if i run it with no parameters, like:
>
> luca@c65:~/opencbm/cbm4win$ sudo insmod sys/linux/cbm.ko
>
> i get no error messages (but no successful messages either :))
You won't get any success message, only in /var/log/messages. (This is
not true: Depending on your syslog configuration, you might get the
output in /var/log/messages on your terminal, too, but I neglect this
case).
> The syslog whilst the last command reports these lines:
>
> Oct 31 22:42:38 c65 kernel: cbm_init: using passive (XM1541) cable
> (auto), irq 7
> Oct 31 22:42:38 c65 kernel: cbm: resetting devices
> Oct 31 22:42:38 c65 kernel: cbm: waiting for free bus...
> Oct 31 22:44:21 c65 kernel: Quiting because of timeoutcbm: resetting devices
Ok. This last message tells me that the cable is not determined. Are you
really using an XM1541 cable, or is it a XA1541 cable? Is the drive
already plugged in when you issue the "insmod"? Is it switched on while
doing so?
> I tryed to issue some commands then, but without success, like
>
> luca@c65:~/opencbm/cbm4win$ sudo cbmctrl status 8
> 99, driver error,00,00
> cbmctrl: status: No such device
This error message was expected. You either have a problem with the
cable, or you are using the wrong LPT port.
- Do you have multiple LPT ports?
- is the LPT port a built-in one?
* Is it connected via USB, PCI, PCIe, ...?
* is it on a ISA card?
* are you using a Laptop or a "real" computer?
Regards,
Spiro.
--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
|