Unable to use gpio478

Post Reply
Caleb P
Posts: 15
Joined: Sat May 16, 2020 5:29 pm
languages_spoken: english, spanish
ODROIDs: N2
Has thanked: 9 times
Been thanked: 2 times
Contact:

Unable to use gpio478

Post by Caleb P »

Greetings,

I´m using Odroid N2+ (Ubuntu 22.04.4 LTS) and after a general update, gpio 478 is no longer working.

It´s exported correctly and set as an output but the value seems to be fixed to 0.

I´ve tried the following commands:

Code: Select all

cat /sys/kernel/debug/gpio
gpiochip1: GPIOs 410-495, parent: platform/pinctrl@ff634480, periphs-banks:
 gpio-431 (                    |usb_hub             ) out lo
 gpio-432 (                    |usb_hub_en          ) out lo
 gpio-433 (                    |ffe09080.usb3phy    ) out lo
 gpio-448 (                    |amlsd               ) out hi
 gpio-458 (                    |amlsd               ) in  hi
 gpio-464 (                    |sysfs               ) in  hi
 gpio-472 (                    |sysfs               ) in  hi IRQ
 gpio-473 (                    |sysfs               ) in  hi IRQ
 gpio-478 (                    |sysfs               ) out lo
 gpio-479 (                    |sysfs               ) in  hi IRQ
 gpio-480 (                    |sysfs               ) in  hi
 gpio-481 (                    |sysfs               ) out lo
 gpio-482 (                    |sysfs               ) out lo
 gpio-483 (                    |sysfs               ) out lo
 gpio-484 (                    |sysfs               ) out lo
 gpio-485 (                    |sysfs               ) out lo
 gpio-486 (                    |sysfs               ) in  hi
 gpio-487 (                    |sysfs               ) out lo
 gpio-490 (                    |sysfs               ) in  hi IRQ
 gpio-491 (                    |sysfs               ) out lo
 gpio-493 (                    |sysfs               ) in  hi
 gpio-494 (                    |sysfs               ) out lo
 gpio-495 (                    |sysfs               ) in  hi

gpiochip0: GPIOs 496-511, parent: platform/pinctrl@ff800014, aobus-banks:
 gpio-505 (                    |amlsd               ) out lo
 gpio-506 (                    |pwm                 ) out lo
 gpio-507 (                    |?                   ) out lo
Also,

Code: Select all

lsmod
Module                  Size  Used by
i2c_meson_master       20480  0
sch_fq_codel           20480  2
amvdec_vp9            135168  0
amvdec_vc1             69632  0
amvdec_real            45056  0
amvdec_mmpeg4          40960  0
amvdec_mpeg4           65536  0
amvdec_mpeg12         106496  0
amvdec_mmjpeg          32768  0
amvdec_mjpeg           40960  0
amvdec_h265           155648  0
amvdec_h264mvc         61440  0
amvdec_mh264          163840  0
amvdec_h264           147456  0
amvdec_avs             69632  0
stream_input          192512  8 amvdec_h265,amvdec_mh264,amvdec_h264mvc,amvdec_real,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvdec_avs
decoder_common        204800  14 amvdec_h265,amvdec_mjpeg,amvdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_mmjpeg,amvdec_real,stream_input,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mpeg4
firmware               28672  15 amvdec_h265,amvdec_mjpeg,amvdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_mmjpeg,decoder_common,amvdec_real,stream_input,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mpeg4
media_clock            49152  9 amvdec_h265,amvdec_mh264,decoder_common,firmware,stream_input,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvdec_avs
fuse                  131072  1
ip_tables              32768  0
x_tables               49152  1 ip_tables
ipv6                  528384  30
I´ve checked phisycally and also in the console.

Here´s the output:

Code: Select all

root@x:~# cd /sys/class/gpio/gpio478
root@x:/sys/class/gpio/gpio478# ls
active_low  device  direction  edge  power  pull  subsystem  uevent  value
root@x:/sys/class/gpio/gpio478# cat direction
out
root@x:/sys/class/gpio/gpio478# cat value
0
root@x:/sys/class/gpio/gpio478# echo 1 >/sys/class/gpio/gpio478/value
root@x:/sys/class/gpio/gpio478# cat value
0
root@x:/sys/class/gpio/gpio478# echo 0 >/sys/class/gpio/gpio478/value
root@x:/sys/class/gpio/gpio478# cat value
0
root@x:/sys/class/gpio/gpio478# echo 1 >/sys/class/gpio/gpio478/value
root@x:/sys/class/gpio/gpio478# cat value
0
The relevant part of config.ini :

; Device Tree Overlay
overlay_resize=16384
overlay_profile=
overlays="i2c1"

[overlay_custom]
overlays="i2c0 i2c1"

[overlay_hktft32]
overlays="hktft32"

[overlay_hktft35]
overlays="hktft35"

Any ideas about what may be happening?

Thanks.

User avatar
mctom
Posts: 4217
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 622 times
Been thanked: 854 times
Contact:

Re: Unable to use gpio478

Post by mctom »

Hi,

I wonder if this is what might happen if you physically short this pin to ground. Could you check that?
These users thanked the author mctom for the post:
Caleb P (Mon May 27, 2024 6:06 pm)
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
tobetter
Posts: 13289
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 1022 times
Been thanked: 2313 times
Contact:

Re: Unable to use gpio478

Post by tobetter »

@Caleb P, please test with official Hardkernel image that runs with Linux kernel 4.9 with the same commands and the same pin.
These users thanked the author tobetter for the post:
Caleb P (Tue May 28, 2024 4:55 am)

Caleb P
Posts: 15
Joined: Sat May 16, 2020 5:29 pm
languages_spoken: english, spanish
ODROIDs: N2
Has thanked: 9 times
Been thanked: 2 times
Contact:

Re: Unable to use gpio478

Post by Caleb P »

mctom wrote:
Mon May 27, 2024 3:43 pm
Hi,

I wonder if this is what might happen if you physically short this pin to ground. Could you check that?
Thank you!, indeed this was the reason.

Do you think there could be any damage to the Odroid having this situation as permanent?

User avatar
mctom
Posts: 4217
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 622 times
Been thanked: 854 times
Contact:

Re: Unable to use gpio478

Post by mctom »

Yes, burnt out GPIO is often shorted to either GND or 3.3V rail.

Forcing the opposite logic state on a GPIO configured as output may indeed damage it.
These users thanked the author mctom for the post:
Caleb P (Mon May 27, 2024 6:30 pm)
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 3 guests