Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 19:25
All times are UTC - 4
 Forum index » Advanced Topics » Hardware
Acer Aspire One D255E - continuing problems with card reader
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 4 Posts_count   Goto page: Previous 1, 2, 3, 4 Next
Author Message
dawnsboy


Joined: 03 Dec 2008
Posts: 248
Location: Indiana - Republic of New Canada

PostPosted: Tue 26 Apr 2011, 15:07    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Tue 26 Apr 2011, 15:44    Post_subject:  

Wrong thread. Sorry. Post removed.
Edited_time_total
Back to top
View user's profile Send_private_message 
myke


Joined: 15 Mar 2011
Posts: 102
Location: Québec

PostPosted: Tue 26 Apr 2011, 16:21    Post_subject: Reply to dawnsboy  

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

_________________
AA1 D255E-keucr slacko 5.3;luci;mijnpup; tw-os; with:Emacs,gawk,noteboxmismanager,treesheets, freeplane, libreoffice, tkoutline, Sigil, calibre, calendar. magic&Noteliner(wine), kamas (DOS)
Back to top
View user's profile Send_private_message 
dawnsboy


Joined: 03 Dec 2008
Posts: 248
Location: Indiana - Republic of New Canada

PostPosted: Tue 26 Apr 2011, 16:33    Post_subject:  

That's it. Thanks.
Back to top
View user's profile Send_private_message 
dawnsboy


Joined: 03 Dec 2008
Posts: 248
Location: Indiana - Republic of New Canada

PostPosted: Wed 27 Apr 2011, 11:33    Post_subject: No Luck So Far  

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:

Quote:
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.
Back to top
View user's profile Send_private_message 
myke


Joined: 15 Mar 2011
Posts: 102
Location: Québec

PostPosted: Thu 28 Apr 2011, 09:32    Post_subject: Re; bounds.h missing  

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

_________________
AA1 D255E-keucr slacko 5.3;luci;mijnpup; tw-os; with:Emacs,gawk,noteboxmismanager,treesheets, freeplane, libreoffice, tkoutline, Sigil, calibre, calendar. magic&Noteliner(wine), kamas (DOS)
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9203
Location: Stratford, Ontario

PostPosted: Thu 28 Apr 2011, 10:21    Post_subject: Re: Re; bounds.h missing  

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 .
Back to top
View user's profile Send_private_message 
dawnsboy


Joined: 03 Dec 2008
Posts: 248
Location: Indiana - Republic of New Canada

PostPosted: Thu 28 Apr 2011, 16:28    Post_subject:  

Quote:
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:
Quote:
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.
Back to top
View user's profile Send_private_message 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Thu 28 Apr 2011, 16:55    Post_subject:  

http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet-packages-lucid/kernel_src_L4-2.6.33.2-patched.sfs

Might work better.
Back to top
View user's profile Send_private_message 
dawnsboy


Joined: 03 Dec 2008
Posts: 248
Location: Indiana - Republic of New Canada

PostPosted: Thu 28 Apr 2011, 17:32    Post_subject:  

pemasu wrote:

Quote:
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet-packages-lucid/kernel_src_L4-2.6.33.2-patched.sfs

Might work better.


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:

Quote:
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.
Back to top
View user's profile Send_private_message 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Thu 28 Apr 2011, 17:56    Post_subject:  

http://www.mail-archive.com/registry@lists.launchpad.net/msg28399.html
Back to top
View user's profile Send_private_message 
dawnsboy


Joined: 03 Dec 2008
Posts: 248
Location: Indiana - Republic of New Canada

PostPosted: Thu 28 Apr 2011, 19:15    Post_subject:  

@pemasu

http://www.mail-archive.com/registry@lists.launchpad.net/msg28399.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.
Back to top
View user's profile Send_private_message 
myke


Joined: 15 Mar 2011
Posts: 102
Location: Québec

PostPosted: Thu 28 Apr 2011, 22:09    Post_subject: Older Source for Debian Squeeze  

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
R100_02_ene_card_reader.zip
Description  Older source for keucr module - 2.6.32 kernel
zip

 Download 
Filename  R100_02_ene_card_reader.zip 
Filesize  234.88 KB 
Downloaded  451 Time(s) 
Back to top
View user's profile Send_private_message 
dawnsboy


Joined: 03 Dec 2008
Posts: 248
Location: Indiana - Republic of New Canada

PostPosted: Thu 28 Apr 2011, 22:13    Post_subject:  

Interesting. I will find out and let you know.
Back to top
View user's profile Send_private_message 
dawnsboy


Joined: 03 Dec 2008
Posts: 248
Location: Indiana - Republic of New Canada

PostPosted: Fri 29 Apr 2011, 08:57    Post_subject: Alright here it is
Sub_title: ENE Card Reader module for Lucid 5.25
 

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.
keucr_2.6.33.2-lupu525.pet
Description  ENE Card Reader module for official Puppy Linux 5.25 Lucid
pet

 Download 
Filename  keucr_2.6.33.2-lupu525.pet 
Filesize  29.16 KB 
Downloaded  717 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 4 Posts_count   Goto page: Previous 1, 2, 3, 4 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Hardware
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0847s ][ Queries: 12 (0.0053s) ][ GZIP on ]