From: Leigh G. <le...@or...> - 2006-08-07 14:31:11
|
Hi all, Is there an easy way for me to control the GPIO ports of the UCB1400 as broken out on the GPSStix board? Thanks in advance, Leigh |
From: Teboho N. <TNy...@cs...> - 2007-07-11 05:54:25
|
I am trying to get access to both the PXA and UCB1400 GPIOs. I followed the suggestion made by Andre Gava : >From: <Andre.Gava <at> nokia.com> >Subject: Re: UCB1400 GPIO >Newsgroups: gmane.linux.distributions.gumstix.general >Date: 2006-08-08 16:51:15 GMT (47 weeks, 6 days, 22 hours and 18 minutes ago) > >In the file >/gumstix-buildroot/target/device/Gumstix/basix-connex-kernel-patches/ucb >1400-ac97-audio.patch > >Go to the line 207, you will see something like: > >+ proc_gpio_parent = create_proc_entry("gpio", ... > >Change to > >+ proc_gpio_parent = create_proc_entry("gpio-ac97", ... > >I recommend download buildroot, make this change and compile it. >After you boot your new image, when you load the audio driver w/ >modprobe, it will create a /proc/gpio-ac97 > >When you load the PXA GPIO driver, it will create the /proc/gpio > >This procedure will avoid the duplicate gpio folder under /proc, making >one of them inaccessible, now you will have /proc/gpio and >/proc/gpio-ac97 > >Initially I supposed that the PXA and UCB1400 GPIOS could be in the same >folder, but for some reason each device creates it's own folder. > I then compiled from the buildroot directory. After booting the new image, I loaded the audio driver with modprobe. The process still duplicates the gpio folders in /proc making one inaccessible. What am I doing wrong. I am using the r1161 buildroot version. Thanks in advance Teboho -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to Cal...@cs.... This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |
From: Calvin C. <ton...@gm...> - 2007-07-11 18:51:42
Attachments:
ucb1400-ac97-audio.patch
|
Teboho Nyareli wrote: > I am trying to get access to both the PXA and UCB1400 GPIOs. I followed > the suggestion made by Andre Gava : > >> From: <Andre.Gava <at> nokia.com> >> Subject: Re: UCB1400 GPIO >> Newsgroups: gmane.linux.distributions.gumstix.general >> Date: 2006-08-08 16:51:15 GMT (47 weeks, 6 days, 22 hours and 18 > minutes ago) >> In the file >> /gumstix-buildroot/target/device/Gumstix/basix-connex-kernel-patches/ucb >> 1400-ac97-audio.patch >> >> Go to the line 207, you will see something like: >> >> + proc_gpio_parent = create_proc_entry("gpio", ... >> >> Change to >> >> + proc_gpio_parent = create_proc_entry("gpio-ac97", ... >> >> I recommend download buildroot, make this change and compile it. >> After you boot your new image, when you load the audio driver w/ >> modprobe, it will create a /proc/gpio-ac97 >> >> When you load the PXA GPIO driver, it will create the /proc/gpio >> >> This procedure will avoid the duplicate gpio folder under /proc, > making >> one of them inaccessible, now you will have /proc/gpio and >> /proc/gpio-ac97 >> >> Initially I supposed that the PXA and UCB1400 GPIOS could be in the > same >> folder, but for some reason each device creates it's own folder. >> > > > I then compiled from the buildroot directory. After booting the new > image, I loaded the audio driver with modprobe. The process still > duplicates the gpio folders in /proc making one inaccessible. What am I > doing wrong. I am using the r1161 buildroot version. > > Thanks in advance > Teboho > > I modified the patch, and now there are two directories, gpio and gpio-ac97. Don't forget to modprobe pxa-gpio and snd_pxa_ac97 or else it won't show up. Calvin |
From: Adam A K. <kumpf@MIT.EDU> - 2006-08-07 15:29:32
|
I'm setting up a new linux laptop with the tools I need to program the gumstix. I've got the buildroot working many times before on other systems, but when I checkout the latest version, I get some errors that make me think it may not be unique to my setup. I run "make defconfig", and then "make". it runs for a while, and then dies on this: ----------------------- /bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o libopcodes.la -rpath /GumStix/gumstix-buildroot/build_arm_nofpu/staging_dir/i386-pc-linux-gnu/arm-linux-uclibc/lib -release 2.17 dis-buf.lo disassemble.lo dis-init.lo arm-dis.lo libtool: link: `dis-buf.lo' is not a valid libtool object make[5]: *** [libopcodes.la] Error 1 ----------------------- Is there a problem with the current buildroot that can be fixed quickly? Or is it likely just on my end? Thanks for the help, Adam ku...@mi... |
From: Adam A K. <kumpf@MIT.EDU> - 2006-08-07 16:07:32
|
hmmm.. so I deleted the buildroot directory, started over, and it worked. Not sure where the previous error came from, but glad to see that the buildroot looks okay. sorry for the scare. :) If anything, I'm wondering if it has to do with my "dual core" machine. the make actually failed a time or two, but when I ran it again it made it through. perhaps some kind of strange race condition? Adam ku...@mi... Quoting Adam A Kumpf <kumpf@MIT.EDU>: > > I'm setting up a new linux laptop with the tools I need to program the > gumstix. I've got the buildroot working many times before on other > systems, but when I > checkout the latest version, I get some errors that make me think it > may not be > unique to my setup. > > I run "make defconfig", and then "make". it runs for a while, and then > dies on > this: > > ----------------------- > > /bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes > -Wmissing-prototypes -g -O2 -o libopcodes.la -rpath > /GumStix/gumstix-buildroot/build_arm_nofpu/staging_dir/i386-pc-linux-gnu/arm-linux-uclibc/lib > -release 2.17 dis-buf.lo disassemble.lo dis-init.lo arm-dis.lo > > libtool: link: `dis-buf.lo' is not a valid libtool object > > make[5]: *** [libopcodes.la] Error 1 > > ----------------------- > > Is there a problem with the current buildroot that can be fixed > quickly? Or is > it likely just on my end? > > Thanks for the help, > Adam > ku...@mi... > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |
From: Craig H. <cr...@gu...> - 2006-08-07 16:36:30
|
On Aug 7, 2006, at 7:30 AM, Leigh Gawne wrote: > Hi all, > > Is there an easy way for me to control the GPIO ports of the > UCB1400 as > broken out on the GPSStix board? On recent buildroots, the ucb1400 GPIOs show up under /proc/gpio/ UCB1400-0-n and can be programmed in the same way ("in","out","set","clear") as the PXA's GPIOs (except of course there are no alt function modes for the ucb GPIO lines). C |
From: Leigh G. <le...@or...> - 2006-08-07 20:06:36
|
I am currently using buildroot 1066 and can only see devices named GPIO* (0 -> 84) in the /proc/gpio folder. Are the UCB gpios any of these, or am I missing something from my build? Many thanks, Leigh -----Original Message----- From: gum...@li... [mailto:gum...@li...]On Behalf Of Craig Hughes Sent: 07 August 2006 17:36 To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] UCB1400 GPIO On Aug 7, 2006, at 7:30 AM, Leigh Gawne wrote: > Hi all, > > Is there an easy way for me to control the GPIO ports of the > UCB1400 as > broken out on the GPSStix board? On recent buildroots, the ucb1400 GPIOs show up under /proc/gpio/ UCB1400-0-n and can be programmed in the same way ("in","out","set","clear") as the PXA's GPIOs (except of course there are no alt function modes for the ucb GPIO lines). C ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Craig H. <cr...@gu...> - 2006-08-07 23:05:52
|
Did you load the ac97 module(s)? Those create the nodes under /proc/ gpio when they are loaded. C On Aug 7, 2006, at 1:05 PM, Leigh Gawne wrote: > I am currently using buildroot 1066 and can only see devices named > GPIO* > (0 -> 84) in the /proc/gpio folder. Are the UCB gpios any of these, > or am I > missing something from my build? > > Many thanks, > > Leigh > > -----Original Message----- > From: gum...@li... > [mailto:gum...@li...]On Behalf Of Craig > Hughes > Sent: 07 August 2006 17:36 > To: General mailing list for gumstix users. > Subject: Re: [Gumstix-users] UCB1400 GPIO > > > > On Aug 7, 2006, at 7:30 AM, Leigh Gawne wrote: > >> Hi all, >> >> Is there an easy way for me to control the GPIO ports of the >> UCB1400 as >> broken out on the GPSStix board? > > On recent buildroots, the ucb1400 GPIOs show up under /proc/gpio/ > UCB1400-0-n and can be programmed in the same way > ("in","out","set","clear") as the PXA's GPIOs (except of course there > are no alt function modes for the ucb GPIO lines). > > C > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Karl v. M. <ver...@gm...> - 2006-08-07 20:14:58
|
Hey Leigh, Have you run modprobe for the sound modules? I'm not sure exactly what they're called but might be the ac97 ones....could be wrong though. If not might be your build... On 8/8/06, Leigh Gawne <le...@or...> wrote: > > I am currently using buildroot 1066 and can only see devices named GPIO* > (0 -> 84) in the /proc/gpio folder. Are the UCB gpios any of these, or am > I > missing something from my build? > > Many thanks, > > Leigh > > -----Original Message----- > From: gum...@li... > [mailto:gum...@li...]On Behalf Of Craig > Hughes > Sent: 07 August 2006 17:36 > To: General mailing list for gumstix users. > Subject: Re: [Gumstix-users] UCB1400 GPIO > > > > On Aug 7, 2006, at 7:30 AM, Leigh Gawne wrote: > > > Hi all, > > > > Is there an easy way for me to control the GPIO ports of the > > UCB1400 as > > broken out on the GPSStix board? > > On recent buildroots, the ucb1400 GPIOs show up under /proc/gpio/ > UCB1400-0-n and can be programmed in the same way > ("in","out","set","clear") as the PXA's GPIOs (except of course there > are no alt function modes for the ucb GPIO lines). > > C > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |
From: Karl v. M. <ver...@gm...> - 2006-08-07 20:16:10
|
Typo on last email...its too early...i meant to say if you have run them it might be your build On 8/8/06, Karl von Muller <ver...@gm...> wrote: > > Hey Leigh, > > Have you run modprobe for the sound modules? I'm not sure exactly what > they're called but might be the ac97 ones....could be wrong though. If not > might be your build... > > > On 8/8/06, Leigh Gawne <le...@or...> wrote: > > > > I am currently using buildroot 1066 and can only see devices named GPIO* > > (0 -> 84) in the /proc/gpio folder. Are the UCB gpios any of these, or > > am I > > missing something from my build? > > > > Many thanks, > > > > Leigh > > > > -----Original Message----- > > From: gum...@li... > > [mailto: gum...@li...]On Behalf Of Craig > > Hughes > > Sent: 07 August 2006 17:36 > > To: General mailing list for gumstix users. > > Subject: Re: [Gumstix-users] UCB1400 GPIO > > > > > > > > On Aug 7, 2006, at 7:30 AM, Leigh Gawne wrote: > > > > > Hi all, > > > > > > Is there an easy way for me to control the GPIO ports of the > > > UCB1400 as > > > broken out on the GPSStix board? > > > > On recent buildroots, the ucb1400 GPIOs show up under /proc/gpio/ > > UCB1400-0-n and can be programmed in the same way > > ("in","out","set","clear") as the PXA's GPIOs (except of course there > > are no alt function modes for the ucb GPIO lines). > > > > C > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > |
From: Leigh G. <le...@or...> - 2006-08-07 20:37:54
|
Hi Karl, Modprobe'd for the sound modules and the following exist in my build: /lib/modules/2.6.17gum/kernel/sound/core/snd-pcm.ko /lib/modules/2.6.17gum/kernel/sound/core/snd.ko /lib/modules/2.6.17gum/kernel/sound/core/snd-timer.ko /lib/modules/2.6.17gum/kernel/sound/core/snd-page-alloc.ko /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-pcm-oss.ko /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-mixer-oss.ko /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-bus.ko /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-codec.ko /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-ac97.ko /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-pcm.ko not too sure if any of these modules will make the gpio devices available - I used insmod to attempt to load "snd-pxa2xx-ac97.ko" and it failed with "insmod: can't read 'snd-pxa2xx-ac97': No such file or directory". I noticed there is another kernel object named "soundcore.ko" in the root of the sound folder and this can be loaded successfully. No extra gpio devices devices made available though. Cheers, Leigh -----Original Message----- From: gum...@li... [mailto:gum...@li...]On Behalf Of Karl von Muller Sent: 07 August 2006 21:16 To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] UCB1400 GPIO Typo on last email...its too early...i meant to say if you have run them it might be your build On 8/8/06, Karl von Muller < ver...@gm...> wrote: Hey Leigh, Have you run modprobe for the sound modules? I'm not sure exactly what they're called but might be the ac97 ones....could be wrong though. If not might be your build... On 8/8/06, Leigh Gawne <le...@or...> wrote: I am currently using buildroot 1066 and can only see devices named GPIO* (0 -> 84) in the /proc/gpio folder. Are the UCB gpios any of these, or am I missing something from my build? Many thanks, Leigh -----Original Message----- From: gum...@li... [mailto: gum...@li...]On Behalf Of Craig Hughes Sent: 07 August 2006 17:36 To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] UCB1400 GPIO On Aug 7, 2006, at 7:30 AM, Leigh Gawne wrote: > Hi all, > > Is there an easy way for me to control the GPIO ports of the > UCB1400 as > broken out on the GPSStix board? On recent buildroots, the ucb1400 GPIOs show up under /proc/gpio/ UCB1400-0-n and can be programmed in the same way ("in","out","set","clear") as the PXA's GPIOs (except of course there are no alt function modes for the ucb GPIO lines). C ---------------------------------------------------------------------- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216 42 _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users ---------------------------------------------------------------------- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216 42 _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Dave H. <dhy...@gm...> - 2006-08-07 21:13:47
|
Hi Leigh, > /lib/modules/2.6.17gum/kernel/sound/core/snd-pcm.ko > /lib/modules/2.6.17gum/kernel/sound/core/snd.ko > /lib/modules/2.6.17gum/kernel/sound/core/snd-timer.ko > /lib/modules/2.6.17gum/kernel/sound/core/snd-page-alloc.ko > /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-pcm-oss.ko > /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-mixer-oss.ko > /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-bus.ko > /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-codec.ko > /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-ac97.ko > /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-pcm.ko > > not too sure if any of these modules will make the gpio devices available - > I used insmod to attempt to load "snd-pxa2xx-ac97.ko" and it failed with > "insmod: can't read 'snd-pxa2xx-ac97': No such file or directory". I noticed > there is another kernel object named "soundcore.ko" in the root of the sound > folder and this can be loaded successfully. No extra gpio devices devices > made available though. insmod requires an explicit path, and won't autoload dependencies. Use modprobe instead. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Leigh G. <le...@or...> - 2006-08-07 21:30:17
|
Thanks Dave. Loaded all the sound modules and gipo is now available for the UCB1400. Appear to have two /proc/gpio folders now though?! Maybe something to do with adding new devices to an existing device catagory through loading the module relevant module? Cheers, Leigh -----Original Message----- From: gum...@li... [mailto:gum...@li...]On Behalf Of Dave Hylands Sent: 07 August 2006 22:06 To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] UCB1400 GPIO Hi Leigh, > /lib/modules/2.6.17gum/kernel/sound/core/snd-pcm.ko > /lib/modules/2.6.17gum/kernel/sound/core/snd.ko > /lib/modules/2.6.17gum/kernel/sound/core/snd-timer.ko > /lib/modules/2.6.17gum/kernel/sound/core/snd-page-alloc.ko > /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-pcm-oss.ko > /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-mixer-oss.ko > /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-bus.ko > /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-codec.ko > /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-ac97.ko > /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-pcm.ko > > not too sure if any of these modules will make the gpio devices available - > I used insmod to attempt to load "snd-pxa2xx-ac97.ko" and it failed with > "insmod: can't read 'snd-pxa2xx-ac97': No such file or directory". I noticed > there is another kernel object named "soundcore.ko" in the root of the sound > folder and this can be loaded successfully. No extra gpio devices devices > made available though. insmod requires an explicit path, and won't autoload dependencies. Use modprobe instead. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Dave H. <dhy...@gm...> - 2006-08-07 22:59:02
|
Hi Leigh, On 8/7/06, Leigh Gawne <le...@or...> wrote: > Thanks Dave. Loaded all the sound modules and gipo is now available for the > UCB1400. Appear to have two /proc/gpio folders now though?! Maybe something > to do with adding new devices to an existing device catagory through loading > the module relevant module? Hmmm. Probably a bug in the driver... -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Craig H. <cr...@gu...> - 2006-08-07 23:12:27
|
Hmm -- I guess I'm creating /proc/gpio twice -- you would have thought that the correct kernel behavior would be to either fail the 2nd time, or else to return the original node, rather than creating 2 same-named nodes... I guess I'll have to modify the thing to first check if the node is there, and if not, create it, rather than just creating it. Maybe there's a helper function... C On Aug 7, 2006, at 2:29 PM, Leigh Gawne wrote: > Thanks Dave. Loaded all the sound modules and gipo is now available > for the > UCB1400. Appear to have two /proc/gpio folders now though?! Maybe > something > to do with adding new devices to an existing device catagory > through loading > the module relevant module? > > Cheers, > > Leigh > > -----Original Message----- > From: gum...@li... > [mailto:gum...@li...]On Behalf Of Dave > Hylands > Sent: 07 August 2006 22:06 > To: General mailing list for gumstix users. > Subject: Re: [Gumstix-users] UCB1400 GPIO > > > Hi Leigh, > >> /lib/modules/2.6.17gum/kernel/sound/core/snd-pcm.ko >> /lib/modules/2.6.17gum/kernel/sound/core/snd.ko >> /lib/modules/2.6.17gum/kernel/sound/core/snd-timer.ko >> /lib/modules/2.6.17gum/kernel/sound/core/snd-page-alloc.ko >> /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-pcm-oss.ko >> /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-mixer-oss.ko >> /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-bus.ko >> /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-codec.ko >> /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-ac97.ko >> /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-pcm.ko >> >> not too sure if any of these modules will make the gpio devices > available - >> I used insmod to attempt to load "snd-pxa2xx-ac97.ko" and it >> failed with >> "insmod: can't read 'snd-pxa2xx-ac97': No such file or directory". I > noticed >> there is another kernel object named "soundcore.ko" in the root of >> the > sound >> folder and this can be loaded successfully. No extra gpio devices >> devices >> made available though. > > insmod requires an explicit path, and won't autoload dependencies. > > Use modprobe instead. > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Leigh G. <le...@or...> - 2006-08-07 23:36:18
|
I looks like the 2nd node is being creating when installing "/lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-ac97.ko". When cd'ing to the gpio folder, it is only the UCB1400* gpios that are available. The pxa gpios seem to be hidden in the *other* unaccessible gpio folder. Could it be the file system itself which for some reason does not check for an existing table entry (such as when using a "mkdir" command) when creating new nodes? Cheers, Leigh -----Original Message----- From: gum...@li... [mailto:gum...@li...]On Behalf Of Craig Hughes Sent: 08 August 2006 00:12 To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] UCB1400 GPIO Hmm -- I guess I'm creating /proc/gpio twice -- you would have thought that the correct kernel behavior would be to either fail the 2nd time, or else to return the original node, rather than creating 2 same-named nodes... I guess I'll have to modify the thing to first check if the node is there, and if not, create it, rather than just creating it. Maybe there's a helper function... C On Aug 7, 2006, at 2:29 PM, Leigh Gawne wrote: > Thanks Dave. Loaded all the sound modules and gipo is now available > for the > UCB1400. Appear to have two /proc/gpio folders now though?! Maybe > something > to do with adding new devices to an existing device catagory > through loading > the module relevant module? > > Cheers, > > Leigh > > -----Original Message----- > From: gum...@li... > [mailto:gum...@li...]On Behalf Of Dave > Hylands > Sent: 07 August 2006 22:06 > To: General mailing list for gumstix users. > Subject: Re: [Gumstix-users] UCB1400 GPIO > > > Hi Leigh, > >> /lib/modules/2.6.17gum/kernel/sound/core/snd-pcm.ko >> /lib/modules/2.6.17gum/kernel/sound/core/snd.ko >> /lib/modules/2.6.17gum/kernel/sound/core/snd-timer.ko >> /lib/modules/2.6.17gum/kernel/sound/core/snd-page-alloc.ko >> /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-pcm-oss.ko >> /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-mixer-oss.ko >> /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-bus.ko >> /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-codec.ko >> /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-ac97.ko >> /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-pcm.ko >> >> not too sure if any of these modules will make the gpio devices > available - >> I used insmod to attempt to load "snd-pxa2xx-ac97.ko" and it >> failed with >> "insmod: can't read 'snd-pxa2xx-ac97': No such file or directory". I > noticed >> there is another kernel object named "soundcore.ko" in the root of >> the > sound >> folder and this can be loaded successfully. No extra gpio devices >> devices >> made available though. > > insmod requires an explicit path, and won't autoload dependencies. > > Use modprobe instead. > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: <And...@no...> - 2006-08-08 16:51:49
|
In the file /gumstix-buildroot/target/device/Gumstix/basix-connex-kernel-patches/ucb 1400-ac97-audio.patch Go to the line 207, you will see something like: + proc_gpio_parent =3D create_proc_entry("gpio", ... Change to=20 + proc_gpio_parent =3D create_proc_entry("gpio-ac97", ... I recommend download buildroot, make this change and compile it. After you boot your new image, when you load the audio driver w/ modprobe, it will create a /proc/gpio-ac97 When you load the PXA GPIO driver, it will create the /proc/gpio This procedure will avoid the duplicate gpio folder under /proc, making one of them inaccessible, now you will have /proc/gpio and /proc/gpio-ac97 Initially I supposed that the PXA and UCB1400 GPIOS could be in the same folder, but for some reason each device creates it's own folder. Hopefully this tip works for you. Regards, Gava -----Original Message----- From: gum...@li... [mailto:gum...@li...] On Behalf Of ext Leigh Gawne Sent: Monday, August 07, 2006 20:36 To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] UCB1400 GPIO I looks like the 2nd node is being creating when installing "/lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-ac97.ko". When cd'ing to the gpio folder, it is only the UCB1400* gpios that are available. The pxa gpios seem to be hidden in the *other* unaccessible gpio folder. Could it be the file system itself which for some reason does not check for an existing table entry (such as when using a "mkdir" command) when creating new nodes? Cheers, Leigh -----Original Message----- From: gum...@li... [mailto:gum...@li...]On Behalf Of Craig Hughes Sent: 08 August 2006 00:12 To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] UCB1400 GPIO Hmm -- I guess I'm creating /proc/gpio twice -- you would have thought that the correct kernel behavior would be to either fail the 2nd time, or else to return the original node, rather than creating 2 same-named nodes... I guess I'll have to modify the thing to first check if the node is there, and if not, create it, rather than just creating it. Maybe there's a helper function... C On Aug 7, 2006, at 2:29 PM, Leigh Gawne wrote: > Thanks Dave. Loaded all the sound modules and gipo is now available > for the > UCB1400. Appear to have two /proc/gpio folders now though?! Maybe > something > to do with adding new devices to an existing device catagory > through loading > the module relevant module? > > Cheers, > > Leigh > > -----Original Message----- > From: gum...@li... > [mailto:gum...@li...]On Behalf Of Dave > Hylands > Sent: 07 August 2006 22:06 > To: General mailing list for gumstix users. > Subject: Re: [Gumstix-users] UCB1400 GPIO > > > Hi Leigh, > >> /lib/modules/2.6.17gum/kernel/sound/core/snd-pcm.ko >> /lib/modules/2.6.17gum/kernel/sound/core/snd.ko >> /lib/modules/2.6.17gum/kernel/sound/core/snd-timer.ko >> /lib/modules/2.6.17gum/kernel/sound/core/snd-page-alloc.ko >> /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-pcm-oss.ko >> /lib/modules/2.6.17gum/kernel/sound/core/oss/snd-mixer-oss.ko >> /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-bus.ko >> /lib/modules/2.6.17gum/kernel/sound/pci/ac97/snd-ac97-codec.ko >> /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-ac97.ko >> /lib/modules/2.6.17gum/kernel/sound/arm/snd-pxa2xx-pcm.ko >> >> not too sure if any of these modules will make the gpio devices > available - >> I used insmod to attempt to load "snd-pxa2xx-ac97.ko" and it >> failed with >> "insmod: can't read 'snd-pxa2xx-ac97': No such file or directory". I > noticed >> there is another kernel object named "soundcore.ko" in the root of >> the > sound >> folder and this can be loaded successfully. No extra gpio devices >> devices >> made available though. > > insmod requires an explicit path, and won't autoload dependencies. > > Use modprobe instead. > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |