From: Chuck C. <vap...@gm...> - 2006-04-26 05:07:52
|
On 2.6.11, I can't load these two modules. I untar'd i2c-modules-2.6.11.tar.gz at / and find the files (+.ko) in: # find / -name i2c-pxa.ko /lib/modules/2.6.11gum/kernel/drivers/i2c/busses/i2c-pxa.ko # find / -name i2c-dev.ko /lib/modules/2.6.11gum/kernel/drivers/i2c/i2c-dev.ko but when I try to modprobe them I get: # modprobe i2c-dev modprobe: module i2c-dev not found. modprobe: failed to load module i2c-dev # modprobe i2c-pxa modprobe: module i2c-pxa not found. modprobe: failed to load module i2c-pxa # Even changing to the module directory doesn't work. I'm probably missing something minor. I had this working with a previous buildroot. It was the same kernel. Any suggestions? chuck |
From: Dave H. <dhy...@gm...> - 2006-04-26 05:56:52
|
Hi Chuck, On 4/25/06, Chuck Colht <vap...@gm...> wrote: > On 2.6.11, I can't load these two modules. I untar'd > i2c-modules-2.6.11.tar.gz at / and find the files (+.ko) in: > > # find / -name i2c-pxa.ko > /lib/modules/2.6.11gum/kernel/drivers/i2c/busses/i2c-pxa.ko > # find / -name i2c-dev.ko > /lib/modules/2.6.11gum/kernel/drivers/i2c/i2c-dev.ko > > but when I try to modprobe them I get: > > # modprobe i2c-dev > modprobe: module i2c-dev not found. > modprobe: failed to load module i2c-dev > # modprobe i2c-pxa > modprobe: module i2c-pxa not found. > modprobe: failed to load module i2c-pxa > # > > Even changing to the module directory doesn't work. > > I'm probably missing something minor. I had this working with a previous > buildroot. It was the same kernel. > > Any suggestions? There are instructions at the top of this page: http://gumstix.org/tikiwiki/tiki-index.php?page=3DI2CQuickstart You probably forgot to update the modules.dep and modules.symbols files. These are used by modprobe to map module names to .ko files. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Chuck C. <vap...@gm...> - 2006-04-26 06:07:51
|
Arrrggg! That was it! I remember doing that before (now :) ) Thanks for the quick response. Speaking of i2c, I would like to code some timer interupt routines to handle an ultrasonic sensor (sf04) so I thought I'd coble it into i2c-io. Is there at least 1 free timer when using this code? Thanks Again! chuck On 4/25/06, Dave Hylands <dhy...@gm...> wrote: > > Hi Chuck, > > On 4/25/06, Chuck Colht <vap...@gm...> wrote: > > On 2.6.11, I can't load these two modules. I untar'd > > i2c-modules-2.6.11.tar.gz at / and find the files (+.ko) in: > > > > # find / -name i2c-pxa.ko > > /lib/modules/2.6.11gum/kernel/drivers/i2c/busses/i2c-pxa.ko > > # find / -name i2c-dev.ko > > /lib/modules/2.6.11gum/kernel/drivers/i2c/i2c-dev.ko > > > > but when I try to modprobe them I get: > > > > # modprobe i2c-dev > > modprobe: module i2c-dev not found. > > modprobe: failed to load module i2c-dev > > # modprobe i2c-pxa > > modprobe: module i2c-pxa not found. > > modprobe: failed to load module i2c-pxa > > # > > > > Even changing to the module directory doesn't work. > > > > I'm probably missing something minor. I had this working with a previou= s > > buildroot. It was the same kernel. > > > > Any suggestions? > > There are instructions at the top of this page: > http://gumstix.org/tikiwiki/tiki-index.php?page=3DI2CQuickstart > > You probably forgot to update the modules.dep and modules.symbols > files. These are used by modprobe to map module names to .ko files. > > -- > 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 Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |
From: Dave H. <dhy...@gm...> - 2006-04-26 06:34:41
|
Hi Chuck, On 4/25/06, Chuck Colht <vap...@gm...> wrote: > Arrrggg! That was it! I remember doing that before (now :) ) Thanks for t= he > quick response. Speaking of i2c, I would like to code some timer interupt > routines to handle an ultrasonic sensor (sf04) so I thought I'd coble it > into i2c-io. Is there at least 1 free timer when using this code? i2c-io uses Timer 0 (to blink the LED). The remaining 3 timers are availabl= e. Depending on what kind of timer resolution you're looking for, you may be able to use Timer0. The Timer0 interrupt is fired once per millisecond, and there is a way of hooking in your own code. if you want to persue this let me know. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Chuck C. <vap...@gm...> - 2006-04-27 05:20:39
|
On to the next problem :( I can load hex files to the robostix but i2c-io doesn't work. This is what = I get: # uisp --erase --upload if=3Di2c-io.hex Atmel AVR ATmega128 is found. Erasing device ... Reinitializing device Atmel AVR ATmega128 is found. Uploading: flash # # i2c-io 0x0b info ERROR: I2cTransfer: ioctl failed: Remote I/O error (121) ERROR: I2cReadBlock failed ERROR: Unable to retrieve information from i2c address 0x0b Do I need the jumpers shown on the Robostix/Gumstix ISP page all the time? I've tried it with and without... On 4/25/06, Dave Hylands <dhy...@gm...> wrote: > > Hi Chuck, > > On 4/25/06, Chuck Colht <vap...@gm...> wrote: > > Arrrggg! That was it! I remember doing that before (now :) ) Thanks for > the > > quick response. Speaking of i2c, I would like to code some timer > interupt > > routines to handle an ultrasonic sensor (sf04) so I thought I'd coble i= t > > into i2c-io. Is there at least 1 free timer when using this code? > > i2c-io uses Timer 0 (to blink the LED). The remaining 3 timers are > available. > > Depending on what kind of timer resolution you're looking for, you may > be able to use Timer0. > > The Timer0 interrupt is fired once per millisecond, and there is a way > of hooking in your own code. if you want to persue this let me know. > > -- > 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 Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |
From: Dave H. <dhy...@gm...> - 2006-04-27 06:00:49
|
Hi Chuck, On 4/26/06, Chuck Colht <vap...@gm...> wrote: > On to the next problem :( > > I can load hex files to the robostix but i2c-io doesn't work. This is wha= t I > get: > > # uisp --erase --upload if=3Di2c-io.hex > Atmel AVR ATmega128 is found. > Erasing device ... > Reinitializing device > Atmel AVR ATmega128 is found. > Uploading: flash > # Use uisp to load the bootloader, but then use i2-load to load i2c-io-hex. i2c-io.hex takes advantage of some functionality in the bootloader. Using uisp to upload i2c-io.hex wipes out the bootloader. > Do I need the jumpers shown on the Robostix/Gumstix ISP page all the time= ? > I've tried it with and without... The jumpers are only needed when using uisp. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Chuck C. <vap...@gm...> - 2006-04-27 19:13:48
|
Duh! On 4/26/06, Dave Hylands <dhy...@gm...> wrote: > > Hi Chuck, > > On 4/26/06, Chuck Colht <vap...@gm...> wrote: > > On to the next problem :( > > > > I can load hex files to the robostix but i2c-io doesn't work. This is > what I > > get: > > > > # uisp --erase --upload if=3Di2c-io.hex > > Atmel AVR ATmega128 is found. > > Erasing device ... > > Reinitializing device > > Atmel AVR ATmega128 is found. > > Uploading: flash > > # > > Use uisp to load the bootloader, but then use i2-load to load i2c-io-hex. > > i2c-io.hex takes advantage of some functionality in the bootloader. > Using uisp to upload i2c-io.hex wipes out the bootloader. > > > Do I need the jumpers shown on the Robostix/Gumstix ISP page all the > time? > > I've tried it with and without... > > The jumpers are only needed when using uisp. > > -- > 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 Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |