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

boot/device.hints

Scheduled Pinned Locked Moved Hardware
20 Posts 4 Posters 2.7k 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.
  • S
    stephenw10 Netgate Administrator @cgi2099
    last edited by stephenw10 Aug 31, 2022, 11:53 AM Aug 30, 2022, 5:44 PM

    You can set device hints in loader.conf.local and they will be kept.

    Neither device.hints nor device.hints.local is retained though as far as I'm aware. I spent some time testing it a while ago.

    Steve

    C F 3 Replies Last reply Aug 31, 2022, 11:41 AM Reply Quote 1
    • C
      cgi2099 @stephenw10
      last edited by Aug 31, 2022, 11:41 AM

      @stephenw10
      Thank you so much :) !

      1 Reply Last reply Reply Quote 0
      • C
        cgi2099 @stephenw10
        last edited by Aug 31, 2022, 12:36 PM

        @stephenw10

        Do I just copy the entire contents of device.hints to loader.conf.local?

        My problem is I can't boot unless I comment out:

        #hint.uart.0.at="isa"
        #hint.uart.0.port="0x3F8"
        #hint.uart.0.flags="0x10"
        #hint.uart.0.irq="4"
        #hint.uart.1.at="isa"
        #hint.uart.1.port="0x2F8"
        #hint.uart.1.irq="3"
        
        1 Reply Last reply Reply Quote 0
        • F
          fireodo @stephenw10
          last edited by fireodo Aug 31, 2022, 1:13 PM Aug 31, 2022, 1:12 PM

          @stephenw10 said in boot/device.hints:

          You can set device hints in loader.conf.local and they will be kept.

          I read this thread and something is not quiet clear to me: setting device hints in loader.conf.local - OK, but how deactivate existent hints (in /boot/device.hints) in loader.conf local? In my opinion the deactivation has to be done every time a update/upgrade is taking place.

          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
          pfsense 2.8.0 CE
          Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Aug 31, 2022, 1:58 PM

            Indeed, I can't see any way to unset a hint. But you could set it to something else. Or in this case if it won't boot with the uarts setup at the standard locations you could disable them entirely:

            hint.uart.0.disabled="1"
            hint.uart.1.disabled="1"
            

            Steve

            C 1 Reply Last reply Aug 31, 2022, 2:10 PM Reply Quote 1
            • C
              cgi2099 @stephenw10
              last edited by Aug 31, 2022, 2:10 PM

              @stephenw10

              This is what I do to get it to boot initially and then edit the device.hints for future reboots but it doesn't stick through upgrades/updates.

              Here is the link I found to help me to get it to bootup the first time. It was a head scratcher for a little while:

              https://www.neelc.org/posts/hp-t740-freebsd/

              I was just checking to see if there was a way to not have to do this through upgrades. I'm not even sure what those are for lol

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Aug 31, 2022, 2:22 PM

                Ok, well I would try:

                hint.uart.0.at="0"
                hint.uart.1.at="0"
                

                But setting it disabled there is probably just as good. There is probably some resource conflict caused by the serial ports on the device for some reason.

                Steve

                C 1 Reply Last reply Aug 31, 2022, 2:27 PM Reply Quote 1
                • C
                  cgi2099 @stephenw10
                  last edited by Aug 31, 2022, 2:27 PM

                  @stephenw10

                  Yes these work for first boot if you interrupt no problem, they just don't persist without commenting out the above lines and those don't persist through updates/upgrades.

                  Just a pain because this is setup in a closet without a keyboard and monitor, so there is no way to update/upgrade without taking it out of the closet etc...

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Aug 31, 2022, 2:40 PM

                    Right which is why you need to put them in /boot/loader.conf.local which is maintained across an upgrade.

                    C ? 2 Replies Last reply Aug 31, 2022, 2:44 PM Reply Quote 1
                    • C
                      cgi2099 @stephenw10
                      last edited by cgi2099 Aug 31, 2022, 2:45 PM Aug 31, 2022, 2:44 PM

                      @stephenw10

                      Ohhh okay, took me a while to get there lol

                      So just add:

                      hint.uart.0.disabled="1"
                      hint.uart.1.disabled="1"
                      

                      to the loader.conf.local and all should be good?

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Aug 31, 2022, 2:47 PM

                        You'll have to test to know if that works. Be sure to have console access in case it doesn't boot! 😉

                        C 2 Replies Last reply Aug 31, 2022, 2:51 PM Reply Quote 1
                        • C
                          cgi2099 @stephenw10
                          last edited by Aug 31, 2022, 2:51 PM

                          @stephenw10

                          I will give it a shot this evening

                          Thank you so much :)

                          1 Reply Last reply Reply Quote 0
                          • C
                            cgi2099 @stephenw10
                            last edited by Sep 2, 2022, 2:59 AM

                            @stephenw10
                            This did work!

                            Thank you so much :)

                            1 Reply Last reply Reply Quote 1
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Sep 2, 2022, 11:53 AM

                              Great to hear. 👍

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User @stephenw10
                                last edited by Sep 2, 2022, 10:23 PM

                                @stephenw10 said in boot/device.hints:

                                Right which is why you need to put them in /boot/loader.conf.local which is maintained across an upgrade.

                                Would you please so friendly and take a minute on top to this file called /boot/loader.conf.local please.

                                If I write something in, like the thread opener his line,
                                and I have several different line to put in for several things
                                and I want comment this line for what they are standing,
                                how to do this without problems? as an example:

                                set CPU Frequent high up to 1400 MHz
                                hint.p4tcc.0.disabled=1
                                hint.acpi_throttle.0.disabled=1
                                hint.acpi_perf.0.disabled=1
                                
                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Sep 3, 2022, 3:07 AM

                                  The octothorpe # indicates a comment so you could do:

                                  # CPU Power and Frequency settings
                                  set CPU Frequent high up to 1400 MHz
                                  hint.p4tcc.0.disabled=1
                                  hint.acpi_throttle.0.disabled=1
                                  hint.acpi_perf.0.disabled=1
                                  
                                  ? 1 Reply Last reply Sep 3, 2022, 3:39 AM Reply Quote 0
                                  • ?
                                    A Former User @stephenw10
                                    last edited by Sep 3, 2022, 3:39 AM

                                    @stephenw10
                                    Thank you!

                                    Here is none active and;

                                    # set CPU Frequent high up to 1400 MHz
                                    #hint.p4tcc.0.disabled=1
                                    #hint.acpi_throttle.0.disabled=1
                                    #hint.acpi_perf.0.disabled=1
                                    

                                    here are all active, is this rigt?

                                    # set CPU Frequent high up to 1400 MHz
                                    hint.p4tcc.0.disabled=1
                                    hint.acpi_throttle.0.disabled=1
                                    hint.acpi_perf.0.disabled=1
                                    

                                    I will try out this for my new installation on CP Engines APU to tune the CPU is able going something between
                                    1000Mhz and 1400Mhz against default 600Mhz to 1000Mhz.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by Sep 3, 2022, 11:48 AM

                                      That's correct.

                                      ? 1 Reply Last reply Sep 3, 2022, 3:58 PM Reply Quote 0
                                      • ?
                                        A Former User @stephenw10
                                        last edited by Sep 3, 2022, 3:58 PM

                                        @stephenw10

                                        Thank you very much for that information.

                                        1 Reply Last reply Reply Quote 0
                                        20 out of 20
                                        • First post
                                          20/20
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                          This community forum collects and processes your personal information.
                                          consent.not_received