[beagleboard] Re: GPIO toggle Kernel Module for Beaglebone
Hi Wesley, I'm interested in checking this out! The download links are broken, are you able to post new links? Hope you're having a top day :D -Rudy. On Friday, August 31, 2012 at 7:04:39 AM UTC+10, Wesley wrote: > > Hey, > > So I tested to see how fast the GPIO toggle rate of the Beaglebone could > get when using a kernel module. When using user space it was only about 4-5 > MHz and once I did the kernel module it got up to 25 MHz. Since I had a > difficult time getting the kernel source tree on the beaglebone and > compiling everything here is some documentation and code for those who want > to build kernel modules/device drivers on the beaglebone and also user > program interaction with the kernel module. > > gpio.c is the kernel code > gpio.h is the header file for both gpio.c and ioctl.c > ioctl.c is the user code > > Here is my Makefile in case you want it also > > ~ > obj-m := gpio.o > > KERNELDIR := /usr/src/linux-3.2.23 > > default: > $(MAKE) -C $(KERNELDIR) M=$(PWD) modules > ~ > > Also, the websites that I used that helped me get here were mainly these: > https://groups.google.com/forum/#!msg/beagleboard/BKnNkP3qzQs/PNloua3737MJ > http://www.cemetech.net/forum/viewtopic.php?t=7814 > and the Linux Device Drivers book > > ~Wesley > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/a282b742-f1db-4fc6-afa9-2c15599c5f59%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Static IP with connman solved
I was getting the same error changing from DHCP to manual Just in case anyone else has this issue, I still had to set the gateway to 0.0.0.0 if it wasn't used root@beaglebone:/# connmanctl services *AO Wiredethernet_985dad474bf3_cable Error: root@beaglebone:/# connmanctl config ethernet_985dad474bf3_cable --ipv4 manual 192.168.1.184 255.255.255.0 --nameservers 8.8.8.8 8.8.8.4 Error '8.8.8.8': Invalid argument Error '8.8.8.4': Invalid argument Error ethernet_985dad474bf3_cable: Method "SetProperty" with signature "sv" on interface "net.connman.Service" doesn't exist Solved: root@beaglebone:/# connmanctl config ethernet_985dad474bf3_cable --ipv4 manual 192.168.1.184 255.255.255.0 0.0.0.0 --nameservers 8.8.8.8 8.8.8.4 Peace!! On Thursday, July 20, 2017 at 2:07:53 AM UTC+10, William B wrote: > > Hi! > > I just wanted to report an error that occurred to me and how I solved it. > > I installed a new version of Debian on Beaglebone Black, which was made > available at https://rcn-ee.net/rootfs/bb.org/testing/2017-07-01/iot/ by > Robert Nelson. > I use static IP on Ethernet and configure it via connman as follows: > > 1) Discover the identification of the ethernet interface: > ls -la /var/lib/connman > drwx-- 2 root root 4096 Jul 19 15:37 ethernet_b0d5ccfbbc59_cable > <=== this is my MAC Address > > 2) Configure static IP: > connmanctl config ethernet_b0d5ccfbbc59_cable --ipv4 manual 192.168.137.2 > 255.255.255.0 192.168.137.1 > > 3) Configure DNS (this can be done together with the previous command): > connmanctl config ethernet_b0d5ccfbbc59_cable --nameservers 192.168.1.1 > 8.8.8.8 > > *ERROR*: > When executing item 1, the following error was displayed: > Method "SetProperty" with signature "sv" on interface > "net.connman.Service" doesn't exist > > Running "connmanctl services" no interface was displayed: > root@beaglebone:~# connmanctl > connmanctl> services > <== Here should appear > "ethernet_b0d5ccfbbc59_cable" or "ethernet", I do not know ... > connmanctl> > > > *SOLUTION*: > The connman is already configured for dynamic ip, so I did the following: > 1- connect the Beaglebone to the router; > 2- check which IP the Beaglebone registered; > 3) access the Beaglebone for this dynamic IP; > 4) run the command: connmanctl config ethernet_b0d5ccfbbc59_cable --ipv4 > manual 192.168.137.2 255.255.255.0 192.168.137.1 > 5) You will lose the connection after executing item 4, then just access > the BBB again using the new IP, which in my case is 192.168.137.2. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/ac57b99c-fc1b-43a9-a328-ddd222a1d3f3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Can't get SPI0 MOSI to idle low - Debian Jessie?
Not sure what I'm doing wrong here, the MOSI pin stays high after the BB-SPIDEV0-00A0.dtbo is loaded. Have it working fine on Wheezy, but want to move to Jessie. The .dtbo from Wheezy (BB-SPI0-01-00A0.dbto) won't load on Jessie so I'm not able to verify that the dtbo is the issue. Does anyone know what is going on here? I need the MOSI pin to idle low. -Rudy. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/50699e25-ec7c-487d-ae11-5ff14c08187e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Static IP on eth0
Thanks Brian!! This worked for me. Was tearing my hair out going from Wheezy to Jessie -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Use hardware Timer4 (P8_7) as 10MHz output BBB
Hey... Can anyone out there provide some info on setting up and starting timer 4? I'd like to run it at 10MHz to use it as a clock for a LED driver IC I've been googling for a while and haven't been able to find much. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black
Had a similar problem following the same tutorial, used Emile's answer, the DT overlay loads every time. To check: cat /sys/devices/bone_capemgr.*/slots root@beaglebone:~# cat /sys/devices/bone_capemgr.*/slots 0: 54:PF--- 1: 55:PF--- 2: 56:PF--- 3: 57:PF--- 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI 8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPI0-01 On Wednesday, June 17, 2015 at 12:39:14 AM UTC+10, Brendan Merna wrote: > > I'm trying to enable SPI on boot up on my Beaglebone Black. I followed > the wiki link below under the title > SPI1 D1 Output and D0 Input > > I created the .dts file and compiled it. I then moved it to /lib/firmware/ > and then enabled the device overlay tree. Finally, I changed the uenv.txt > file by adding the text shown and I removed a pound sign at the end of the > document. I did this because the boot command to enable the SPI wasn't > working and I thought it wasn't reading the last command because of the > pound sign. Unfortunately, now that I removed it, I reset my Beaglebone > Black and it gets stuck in a state with the Power LED and USR0,USR1, USR2, > and USR3 all stuck on. No blinking and my computer doesn't recognize its > there. I'm powering through the USB port and have tried resetting and > powering down numerous times. This same state keeps coming up. Can anyone > help? > > Tutorial Link: > http://elinux.org/BeagleBone_Black_Enable_SPIDEV > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.