Go to advanced search

by b_welding
Thu Dec 15, 2016 4:03 pm
Forum: Device Tree
Topic: GPIO config via Device tree
Replies: 14
Views: 12778

Re: GPIO config via Device tree

hi, I've been able to get results on a RPI v1 with this code /dts-v1/; /plugin/; /{ compatible = "brcm,bcm2708"; [email protected] { target = <&gpio>; __overlay__ { push_buttons: push_buttons { brcm,pins = <14 18 23 25 12 16 4 17 22 9 11 6>; brcm,function = < 0 0 0 0 0 0 1 1 1 1 1 1>; /* in then out*/ brcm...
by b_welding
Wed Dec 14, 2016 8:29 am
Forum: Device Tree
Topic: GPIO config via Device tree
Replies: 14
Views: 12778

Re: GPIO config via Device tree

thanks, I will try this evening but as said in my latest post, I also tried and exact copy of the dpi18 and did not observe the right comportment. So I suspect an issue with the raspi zero which as I know, should be similar to B+. Anyway, I'll try. I suppose I would have to add [email protected] { target =...
by b_welding
Tue Dec 13, 2016 9:15 pm
Forum: Device Tree
Topic: GPIO config via Device tree
Replies: 14
Views: 12778

Re: GPIO config via Device tree

I also tested you example dpi18 but for me it does not work...
perhaps is there an issue with the compatible string ?
I'm using a raspberry pi zero.
by b_welding
Tue Dec 13, 2016 8:52 pm
Forum: Device Tree
Topic: GPIO config via Device tree
Replies: 14
Views: 12778

Re: GPIO config via Device tree

humm I installed raspi-gpio and it shows my overlay does not make the changes I asked to the system. does someone see the error in my code ? the log says : 001028.055: Loading 'bcm2708-rpi-b-plus.dtb' to 0x3f7fc8 size 0x37c1 001088.334: dtparam: audio=on 001107.197: Loaded overlay 'overlays/dtstest-...
by b_welding
Mon Dec 12, 2016 4:03 pm
Forum: Device Tree
Topic: GPIO config via Device tree
Replies: 14
Views: 12778

Re: GPIO config via Device tree

thanks for your answer. I followed your example and when I export a GPIO configured as output through the device tree, it seems to be in input mode $ echo 4 > /sys/class/gpio/export then $ cat /sys/class/gpio/gpio4/directions returns in here is my code. is it normal when exporting or is it a sign th...
by b_welding
Mon Dec 12, 2016 1:57 pm
Forum: Device Tree
Topic: GPIO config via Device tree
Replies: 14
Views: 12778

GPIO config via Device tree

hello, I'm trying to reconfigure the GPIOs of my RPI Zero during the boot procedure so that they have programmed comportment and pull configuration when rasbian is up. I've seen ans tried a lot of examples on the internet but none worked... do I have to modify the dts-blob.dts file provided in the d...
by b_welding
Thu Dec 06, 2012 8:58 am
Forum: Networking and servers
Topic: Accessing SSH outside local network
Replies: 47
Views: 200896

Re: Accessing SSH outside local network

ok I've found the solution... The problem was not my port forwarding. In fact when my PI boot, it is in dhcp mode and I changed the ipv4 address using ifconfig eth0 192.xxx.xxx.xxx. After that, there were no default gateway set in route settings and the pi was unable to communicate with the internet...
by b_welding
Thu Dec 06, 2012 12:19 am
Forum: Networking and servers
Topic: Accessing SSH outside local network
Replies: 47
Views: 200896

Re: Accessing SSH outside local network

Hello, I try to access my pi from outside my LAN network. I configured the sshd daemon on port 2223 modifying the file /etc/ssh/sshd_config I forwarded the port 2223 TCP to the ip of my PI. I can reach teh PI inside my LAN on port 2223 but can't reach it if I'm using the external ip addres when I'm ...

Go to advanced search