We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
I was wondering if it was possible to mimic the user LED’s on the BBB board with external LED’s, i have a nice project that i put inside a box, was thinking it would be nice to see the user LED’s on the front panel. my web search only came up with how to disable them or repurpose them, but nothing eve close to what i would like to do. any help would be great and links if possible
as my search continues i did find an older thread google groups that talks about this, however it is 5 years old so i am hesitant on trying it… but this is what i am wanting to do.
Just modify them to be pins used on the external headers and run your own wire/led to the box…
But remember, the pin’s on the processor can not fully source the current for the led’s so you’ll need to do something similar to what was done on the BBB…
now my am335x-bone-common.dtsi seams a bit different from the one you linked and it kinda confuses me some, it has an extra argument with a hexadecimal of 0x854, on line 71 of the file and I’m not exactly sure but i think its the pin 21, is there a chart for this or how do i find what it will be for my pin P8_7.
if you could please show me an example with the heartbeat moved to pin P8_7, also once the changes are made, is it just a reboot for the changes to take effect?
as for the circuit i was thinking of something like this but with different pins, which is what i think you were referring to for lighting the LED’s.
still no luck with this unfortunately, i have gone over every thing here many times to make sure i am not missing something, i even installed your latest release console Ubuntu Image 2019-06-15, after making the changes, running the make commands, rebooting, all the user leds light up for a few seconds then go out, my external led lights solid and i can ssh into it fine but no heartbeat on the external led and no user LED’s.
i have tried several variations when editing the file and different pins with no luck, every thing i do simply disables all the user LED’s and when i put a volts meter on the pin i get a solid 3.21v (3.3v) no heartbeat
No i do not but i did just order one … will be about a week or so and i will post the info for you.
the image is just an example of the circuit, i am actually using an AC to DC 5v power supply plugged into my bread board, BBB and power supply both share the common ground for the LED’s to work. thank you for the input.
got my usb-serial adapter in the mail today and after a bit of reading i was able to collect the data you needed.
unplugged all wires from both headers except a single GPIO P8_7 and a Ground for the breadboard for the circuit shown above
logged in, sudo apt update; sudo apt upgrade, yes there were a few updates.
logged out and powered down bbb
after changes to /opt/source/dtb-4.14-ti/src/arm/am335x-bone-common.dtsi
recompile and shutdown
Starting kernel …
[ 0.002216] timer_probe: no matching timers found
[ 1.120726] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 1.415674] pinctrl-single 44e10800.pinmux: pin PIN36 already requested by ocp:P8_07_pinmux; cannot claim for leds
[ 1.426559] pinctrl-single 44e10800.pinmux: pin-36 (leds) status -22
[ 1.433089] pinctrl-single 44e10800.pinmux: could not request pin 36 (PIN36) from group user_leds_s0 on device pinctrl-single
[ 1.445653] leds-gpio leds: Error applying setting, reverse things back
[ 1.484192] omap_voltage_late_init: Voltage driver support not added
[ 1.491355] PM: Cannot get wkup_m3_ipc handle
i do see where it tried to use P8_7 (pin36) but not sure what to do about it. i also have the output for a normal boot before i made any changes if that may help you any, let me know
any way again i would like to thank you for your help and time
Miles Dyson