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

    Nanobsd boot slice selection via switch plugged on gpio port (for Alix) ?

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    2 Posts 1 Posters 2.6k Views
    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.
    • D
      df
      last edited by

      I use my alixes on the road, i like to have different kinds of setups on each slice (wifi to ethernet bridge / regular wan + wifi hotspot / etc)
      And i was struck by how beautifull it would be to just select what slice to boot, before applying power to the unit, by triggering a switch mounted on the case ..

      I guess this would involve making a simple schematic to hook a switch to the gpio port on Alix (or any GPIO enabled) motherboards.
      Could be 2 way switch or rotary switch (if more than 2 nanobsd images on the storage device)

      Only problem i have no clues what / how the active slice is setup for the next reboot.
      Nor if it is "easilly" possible to add some code (understand in my case php, or shell) somewhere

      Any advices are welcomed

      1 Reply Last reply Reply Quote 0
      • D
        df
        last edited by

        Another approach, still using GPIO, and possibly easier to do, would be to still hook a push button to the gpio, but, this time, while the board is lit..
        If the button is pressed, trigger the slice selection routine, than reboot the box
        But i really feel it'll be better if done before the board is turned on ..

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