Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Control SG-4860 status LED?

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    5 Posts 3 Posters 718 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      arf_668
      last edited by

      Is there a way to control/set the status LED on the Netgate SG-4860?

      I would like to be able to set the color of this LED from command line.

      Does anyone have any ideas? Is this LED tied to a something that can be set manually?

      Thanks

      S 1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        It is controllable. pfSense flashes if it detects the config reset button at boot.

        It's connected on GPIO pins 15 and 17 on the SoC. You can set it red with 15, green with 17 or orange with both.

        There is no user code included to do that though.

        I did have something at one time... no idea if it still works.

        Steve

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          arf_668 @stephenw10
          last edited by

          @stephenw10 Thanks for the reply.

          Is there some documentation on the SoC and how I might control GPIO pins?

          We are running ubuntu 16.04 (linux).

          Thanks

          stephenw10S 1 Reply Last reply Reply Quote 0
          • stephenw10S Offline
            stephenw10 Netgate Administrator @arf_668
            last edited by

            @arf_668 said in Control SG-4860 status LED?:

            ubuntu 16.04

            You should update! 😉

            I've never tried in Linux. I would probably start looking at OpenWRT where they have a bunch of LED control code. Back when I first started looking at this I used lcdproc as a reference where it was bit banging on the parallel port.

            The actual code I previously used was very similar to this:
            https://github.com/stephenw10/WGXepc/blob/master/WGXepc.c#L559

            Though I don't recommend anyone uses my terrible code!
            The gpiobase for C2K is 0x500. You can get those details from the Intel docs.

            Steve

            1 Reply Last reply Reply Quote 0
            • S Offline
              shahidmirza Banned @arf_668
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.