Go to advanced search

by rogerjames99
Thu Jan 09, 2020 5:55 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

Yabber Dabber Doo.

All working now. I you were here you would have witnessed the spectacle of a portly old git dancing around the room with joy.

Thanks for your time and patience Phil.

Roger
by rogerjames99
Thu Jan 09, 2020 5:38 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

Oh dear. My mess up. I was using the constants from dt-bindings/bcm2835.h. I removed them so I did not have to use c preprocessor to make the includes work. Dont know how I managed to get the ones and zeroes reversed. Didnt notice that it was was actually working on pin 17 (but the wrong way round)....
by rogerjames99
Thu Jan 09, 2020 4:40 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

Aargh. Did not work. // Overlay for rp41 gpio line names /dts-v1/; /plugin/; /{ compatible = "brcm,bcm2835"; [email protected] { target = <&leds>; __overlay__ { pinctrl-names = "default"; pinctrl-0 = <&rp41_pins>; }; }; [email protected] { target = <&gpio>; __overlay__ { gpio-line-names = "", "", "SelectEnable", ...
by rogerjames99
Thu Jan 09, 2020 3:40 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

This needs a younger brain. My apologies for being such a dumbo. Here is my latest try. // Overlay for rp41 gpio line names /dts-v1/; /plugin/; /{ compatible = "brcm,bcm2835"; [email protected] { target = <&leds>; __overlay__ { rp41_pins: rp41_pins { pinctrl-names = "default"; pinctrl-0 = <&rp41_gpio>; }; ...
by rogerjames99
Thu Jan 09, 2020 2:00 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

Nearer to 70 than 60 (well only just). Started in the industry 1972 working at place in Belgravia (SIA) that had a nice CDC6600 for me to play with. Ended up running my own software company (Boldon James) with my business partner Pete. Sold that in 1999. Been trying to fully retire ever since. :D Th...
by rogerjames99
Thu Jan 09, 2020 1:33 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

Thanks Phil for your excellent concise reply. I will use the leds node approach for the time being. In the future I might make a dummy driver module so that I can have a "rp41" node of my own to hang the pinctrl off, just for neatness and avoiding future conflicts. Things have certainly changed some...
by rogerjames99
Wed Jan 08, 2020 11:07 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

Hi Phil, Do you monitor this 24/7 ;) I am sat in the pub replying to it. I had found a presentation online that said that provided the node was a direct child of root then a platform device node would be created. But also found another reference that said "use the &leds node to hang your pinctrl nod...
by rogerjames99
Wed Jan 08, 2020 9:41 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

Phil , The config.txt approach isa working OK. However I am not going to let this device tree stuff defeat me! I tried my latest version of the overlay and it did not work. Any chance you can have a quick look at it and telll me what I am doing wrong. // Overlay for rp41 gpio line names /dts-v1/; /p...
by rogerjames99
Wed Jan 08, 2020 5:51 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

Thanks Phil,

I was wondering if that was the case.

Maybe my device tree approach had been working in the end :-)
Roger
by rogerjames99
Wed Jan 08, 2020 5:27 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

I tried the config.,txt setting. But once again cannot get things to work. Here is what I put at the end of config.txt. [all] #dtoverlay=vc4-fkms-v3d gpio=2-13=op,dl gpio=16=op,dl gpio=17=ip gpio=18-27=op,dl This is what gpioinfo shows. gpiochip0 - 54 lines: line 0: unnamed unused input active-high ...
by rogerjames99
Mon Jan 06, 2020 8:10 pm
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Re: Problem with gpio-hog

Thanks Phil, Sorry about the missing semicolons. I had not realised I had posted a slightly out of date version of the file. Thanks for the pointer to the kernel patch. I might not bother with hogs in the long run, as I am working on an embedded system with only one process accessing the gpio. I am ...
by rogerjames99
Mon Dec 30, 2019 3:05 am
Forum: Device Tree
Topic: Problem with gpio-hog
Replies: 19
Views: 515

Problem with gpio-hog

Hi, I am trying to gpio-hog using the following overlay. // Overlay for rp41 module /dts-v1/; /plugin/; /{ compatible = "brcm,bcm2708"; [email protected] { target = <&gpio>; __overlay__ { selectEnable-line { gpio-hog; gpios = <2 0>; output-low; line-name = "selectEnable" }; }; }; }; This gives rise to erro...
by rogerjames99
Sat Dec 28, 2019 7:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Where does the gpio chip label come from?
Replies: 2
Views: 213

Re: Where does the gpio chip label come from?

Thanks for confirming that. I had just about come to that conclusion. I am porting some software from the deprecated sysfs interface to the gpiod one. I was hoping to move some of the complexity of gpio pad reservation and setup from the code into device tree data to make the software more portable....
by rogerjames99
Sat Dec 28, 2019 3:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Where does the gpio chip label come from?
Replies: 2
Views: 213

Where does the gpio chip label come from?

When you run gpiodetect you get the following output (on a pi4). gpiochip0 [pinctrl-bcm2835] (54 lines) gpiochip1 [raspberrypi-exp-gpio] (8 lines) gpiochip2 [brcmvirt-gpio] (2 lines) The value inside the square brackets is the "chip label". Can anyone tell me it comes from? I have searched the devic...
by rogerjames99
Mon Jul 01, 2019 10:06 am
Forum: Advanced users
Topic: Raspberry pi 3b+ as an SDR without the SDR
Replies: 1
Views: 239

Re: Raspberry pi 3b+ as an SDR without the SDR

Ooops.

Just realised that I was using outdated instructions from the mobisys2018_nexmon_software_defined_radio repository.. I will go back and look at the the instructions in the main nexmon repository and revert to my original plan of making therm work in a cross compilation environment.

Roger
by rogerjames99
Sun Jun 30, 2019 6:10 pm
Forum: Advanced users
Topic: Raspberry pi 3b+ as an SDR without the SDR
Replies: 1
Views: 239

Raspberry pi 3b+ as an SDR without the SDR

Has anyone tried this.. https://hackaday.com/2018/04/14/the-raspberry-pi-3b-as-an-sdr-without-the-sdr/ .. and had any meaningful success? I can get as far as building the replacement firmware. But I am struggling to build any the of the userspace and kernel stuff to actually make use of it! The prog...
by rogerjames99
Wed Apr 17, 2019 9:11 am
Forum: Raspbian
Topic: Spurious carriage return output to tty1 about 25/30 seconds after first login prompt following a boot
Replies: 4
Views: 425

Re: Spurious carriage return output to tty1 about 25/30 seconds after first login prompt following a boot

Thanks Trevor

Do you have any more pointers that help be find the bug report over at Debian.

Roger
by rogerjames99
Tue Apr 16, 2019 6:17 pm
Forum: Raspbian
Topic: Spurious carriage return output to tty1 about 25/30 seconds after first login prompt following a boot
Replies: 4
Views: 425

Spurious carriage return output to tty1 about 25/30 seconds after first login prompt following a boot

Has anyone else noticed this? On a pi not running any graphical desktop. Boot or reboot and watch the boot log rolling up the screen. At the end of the boot sequence a login prompt appears on the first virtual console (tty1). Wait for about 30 seconds and a spurious carriage return is output to the ...
by rogerjames99
Thu Oct 11, 2018 6:13 pm
Forum: Raspbian
Topic: Pi Zero W - wpa_supplicant - p2p-dev-wlan0 scanning stops connection to normal access point
Replies: 1
Views: 756

Re: Pi Zero W - wpa_supplicant - p2p-dev-wlan0 scanning stops connection to normal access point

EDITED!!! I did a rebuild and ran a new version of wpa_supplicant. This allowed the connection to proceed. This unfortunately triggered another problem that I have come across before. If you are trying to connect to any access point that has a short psk authentication timeout. For example support pr...
by rogerjames99
Mon Oct 08, 2018 3:29 pm
Forum: Raspbian
Topic: Pi Zero W - wpa_supplicant - p2p-dev-wlan0 scanning stops connection to normal access point
Replies: 1
Views: 756

Pi Zero W - wpa_supplicant - p2p-dev-wlan0 scanning stops connection to normal access point

Hi, I have been trying to get a Pi Zero W to connect to an access point at boot up. The configuration I use works well on a Pi 3 on board wifi. However when the same config is run on the Pi Zero W it fails to work. Examining what is going on using iw and wpa_cli it would seem that a scan has been st...
by rogerjames99
Fri Apr 27, 2018 6:07 pm
Forum: Troubleshooting
Topic: Unable to setup Wifi access point on raspbian stretch
Replies: 32
Views: 29778

Re: Unable to setup Wifi access point on raspbian stretch

The latest version of hostapd does net play well with wpa_supplicant on stretch. The simplest way to to fix this is to disable wpa_supplicant on the wireless interfaces you want to run hostapd on. You can do this by adding the following line to to the relevant wlan interface stanzas in /etc/dhcpcd.c...
by rogerjames99
Thu Feb 11, 2016 12:14 pm
Forum: HATs and other add-ons
Topic: Velleman VM205 oscilloscope and logic analyser board
Replies: 21
Views: 7617

Re: Velleman VM205 oscilloscope and logic analyser board

I suggest you try the code at https://github.com/Velleman/VM205/tree/master/src first and see if that works. If it does then it it is likely that your code or the wiringpi library is not initialising the spi bus or the velleman board properly. Have a look at the source and see who is not doing what....
by rogerjames99
Wed Sep 09, 2015 11:43 pm
Forum: HATs and other add-ons
Topic: Velleman VM205 oscilloscope and logic analyser board
Replies: 21
Views: 7617

Re: Velleman VM205 oscilloscope and logic analyser board

Have fun. I sure hope someone may find a solution for my question above... You need to ensure one device is using ce0 (p1-24) and the other ce1(p1-26). This will mean a combination of hardware jumpers (or maybe firmware) on both boards and corresponding config for the software for both boards to re...
by rogerjames99
Tue Jun 02, 2015 7:23 pm
Forum: HATs and other add-ons
Topic: Velleman VM205 oscilloscope and logic analyser board
Replies: 21
Views: 7617

Re: Velleman VM205 oscilloscope and logic analyser board

As far as I know there is only one version. The vm205 provides both single channel scope and ten channel logic analyser functionality.

Roger

Go to advanced search