Page 1 of 3

Posted: Tue 26 Apr 2011, 19:07
by dawnsboy
The kernel version is 2.6.33.2 in Lupu 5.25. I would need the kernel sources to compile the module.

Your post looks about right. Only a minor adjustment for spup as linux-header needs to be changed.

Posted: Tue 26 Apr 2011, 19:44
by pemasu
Wrong thread. Sorry. Post removed.

Reply to dawnsboy

Posted: Tue 26 Apr 2011, 20:21
by myke
Dawnsboy, my systems knowledge is not enough to understand your last post. Are you saying that the source for the card reader is needed? (Source at first post)

Or, more likely, that you don't have access to the kernel source for version 2.6.33.2?

I thought it was available in a download from:
http://bkhome.org/sources/kernel-2.6.33.2/

[user name:puppy password linux]

Sorry about that,

myke

Posted: Tue 26 Apr 2011, 20:33
by dawnsboy
That's it. Thanks.

No Luck So Far

Posted: Wed 27 Apr 2011, 15:33
by dawnsboy
I had not trouble with building the keucr module for the ENE Card Reader in spup100 but I have had no luck so far in building the module for Puppy Linux (Lucid) 5.25. Here are the results of the initial "make" instruction:
make: Entering directory `/usr/src/linux-2.6.33.2'
CC [M] /root/keucr/usb.o
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from include/linux/percpu.h:5,
from include/linux/sched.h:77,
from /root/keucr/usb.c:1:
include/linux/mmzone.h:18:30: error: generated/bounds.h: No such file or directory
include/linux/mmzone.h:258:5: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:260:7: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:262:7: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from include/linux/percpu.h:5,
from include/linux/sched.h:77,
from /root/keucr/usb.c:1:
include/linux/mmzone.h:300: error: 'MAX_NR_ZONES' undeclared here (not in a function)
In file included from include/linux/scatterlist.h:6,
from include/linux/dma-mapping.h:7,
from include/scsi/scsi_cmnd.h:4,
from /root/keucr/usb.c:12:
include/linux/mm.h:454:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:502:62: warning: "NR_PAGEFLAGS" is not defined
/root/keucr/usb.c: In function 'associate_dev':
/root/keucr/usb.c:293: error: implicit declaration of function 'usb_alloc_coherent'
/root/keucr/usb.c:293: warning: assignment makes pointer from integer without a cast
/root/keucr/usb.c:300: warning: assignment makes pointer from integer without a cast
/root/keucr/usb.c: In function 'dissociate_dev':
/root/keucr/usb.c:497: error: implicit declaration of function 'usb_free_coherent'
make[1]: *** [/root/keucr/usb.o] Error 1
make: *** [_module_/root/keucr] Error 2
Maybe someone can help us out with this.

Re; bounds.h missing

Posted: Thu 28 Apr 2011, 13:32
by myke
Dawnsboy, my buddy (who dislikes Puppy intensely for some reason) told me that probably someone had run a 'make clean' on the kernel sources and that had deleted the 'bounds.h' file. You are supposed to copy bounds.h to a temp folder, run 'make clean' on the kernel sources and then copy the bounds.h back before proceeding further.

That's all he would say.

myke

Re: Re; bounds.h missing

Posted: Thu 28 Apr 2011, 14:21
by rcrsn51
myke wrote:Dawnsboy, my buddy (who dislikes Puppy intensely for some reason) told me that probably someone had run a 'make clean' on the kernel sources and that had deleted the 'bounds.h' file. You are supposed to copy bounds.h to a temp folder, run 'make clean' on the kernel sources and then copy the bounds.h back before proceeding further.
IIRC, 'make prepare' will get you the same thing. Run it from /usr/src/linux .

Posted: Thu 28 Apr 2011, 20:28
by dawnsboy
myke wrote:
Dawnsboy, my buddy (who dislikes Puppy intensely for some reason) told me that probably someone had run a 'make clean' on the kernel sources and that had deleted the 'bounds.h' file. You are supposed to copy bounds.h to a temp folder, run 'make clean' on the kernel sources and then copy the bounds.h back before proceeding further.
I appreciate the tip. It was good of your friend to help out. The bounds.h file is missing from the kernel sources

rcrsn51 wrote:
IIRC, 'make prepare' will get you the same thing. Run it from /usr/src/linux .
Running this command on that directory does produce a response. However running initial "make" command on the keucr source folder yields the same result as listed above.

To this point I have been successful in building this module from the source package on several operating systems. Most are various derivatives of Ubuntu. And of course I was successful doing the same with spup-100. The thing that all of these operating systems have in common is that they have kernel version 2.6.34 or newer.

Puppy Linux 5.25 (Lucid) uses kernel 2.6.33.2. I have also failed to build the module on Linux Mint 9 Fluxbox which uses kernel 2.6.32-22.

sigh...

Back to the drawing board.

Posted: Thu 28 Apr 2011, 20:55
by pemasu

Posted: Thu 28 Apr 2011, 21:32
by dawnsboy
pemasu wrote:
Thank you for posting that link. It does contain the elusive bounds.h file that was missing from the kernel source package downloaded from bkhome. However I am still unable to build the module. Here is what I get in response to the initial "make" instruction:
make: Entering directory `/usr/src/linux-2.6.33.2'
LD /root/my-documents/keucr/built-in.o
CC [M] /root/my-documents/keucr/usb.o
/root/my-documents/keucr/usb.c: In function 'associate_dev':
/root/my-documents/keucr/usb.c:211: error: implicit declaration of function 'usb_alloc_coherent'
/root/my-documents/keucr/usb.c:211: warning: assignment makes pointer from integer without a cast
/root/my-documents/keucr/usb.c:218: warning: assignment makes pointer from integer without a cast
/root/my-documents/keucr/usb.c: In function 'dissociate_dev':
/root/my-documents/keucr/usb.c:414: error: implicit declaration of function 'usb_free_coherent'
make[1]: *** [/root/my-documents/keucr/usb.o] Error 1
make: *** [_module_/root/my-documents/keucr] Error 2
make: Leaving directory `/usr/src/linux-2.6.33.2'
These results have fewer lines than the previous post that I made regarding the failure of the "make" command to produce the desired results. However these lines do appear in that previous post. So it seems having the bounds.h file in the kernel source does make a difference but the module still fails to build in this environment.

Posted: Thu 28 Apr 2011, 21:56
by pemasu

Posted: Thu 28 Apr 2011, 23:15
by dawnsboy
@pemasu

http://www.mail-archive.com/registry@li ... 28399.html

Thanks for the link. That is consistent with my personal experience. I did succesfully build the module on spup-100 with the 2.6.34 kernel but everything older than that was a no go regardless of the operating system.

I had the same result when trying to build the module on a 10.04 LTS derivative.

Older Source for Debian Squeeze

Posted: Fri 29 Apr 2011, 02:09
by myke
Dawnsboy, I did some googling and I came across another, older source for the keucr module.

This one is supposed to have been used for Debian Squeeze (2.6.32) so hopefully it should work with lupu 525.

myke

Posted: Fri 29 Apr 2011, 02:13
by dawnsboy
Interesting. I will find out and let you know.

Alright here it is

Posted: Fri 29 Apr 2011, 12:57
by dawnsboy
I have built a module for the ENE Card Reader found on some Acer Aspire One netbooks for Puppy Linux (Lucid) 5.25. I compiled and tested the module, created the pet package then formatted the hard drive of my Acer Aspire One AOD255-2301 netbook, performed a fresh install of the operating system, installed the newly created pet package and it worked just fine. So I am posting it here.

I did not have to reboot after installing this package. I simply inserted an SD card into the reader and it was detected. If your card is not detected after installing this package try rebooting the system. Thanks to myke, pemasu and rcrsn51 for helping identify an issue with the kernel source, providing a link to a useable kernel source and other information.

Thank you very much

Posted: Fri 29 Apr 2011, 17:02
by myke
Dawnsboy, Success! It worked. I would like to thank you very much for persevering in compiling this module. Between the two sources, the tools are now available to compile and use this module for kernels up to 2.6.38.

Once again, the Puppy Community (in particular, dawnsboy, pesamu, jamesbond and jemimah) have come through in helping a user!

Thanks again,

myke

Posted: Fri 29 Apr 2011, 17:18
by dawnsboy
Dawnsboy, Success! It worked. I would like to thank you very much for persevering in compiling this module. Between the two sources, the tools are now available to compile and use this module for kernels up to 2.6.38.

Once again, the Puppy Community (in particular, dawnsboy, pesamu, jamesbond and jemimah) have come through in helping a user!

Thanks again,

myke
You are welcome.

Re: Alright here it is

Posted: Thu 05 May 2011, 01:49
by GatorDog
dawnsboy wrote:I have built a module for the ENE Card Reader found on
some Acer Aspire One netbooks for Puppy Linux (Lucid) 5.25. ...

I did not have to reboot after installing this package.
I simply inserted an SD card into the reader and it was detected...
Thank you, worked immediately after install.

rod

Posted: Thu 05 May 2011, 02:07
by dawnsboy
I am glad that it worked. Thanks for the feedback.

Posted: Thu 19 May 2011, 22:38
by capoverde
Just installed keucr_2.6.33.2-lupu525.pet on an MSI U135 netbook running LuPu-525 booted from a USB flash card, actually an SD card in a USB reader.
Works perfectly, thanks a lot Dawnsboy!

Will also install it on a triple-boot Aspire One D255 (SPup-100, LuPu-525, Win7) on which the SPup-100 version is already installed & working.