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.
    • C
      cgi2099 @stephenw10
      last edited by

      @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
      • fireodoF
        fireodo @stephenw10
        last edited by fireodo

        @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
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          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 Reply Quote 1
          • C
            cgi2099 @stephenw10
            last edited by

            @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
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              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 Reply Quote 1
              • C
                cgi2099 @stephenw10
                last edited by

                @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
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  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 Reply Quote 1
                  • C
                    cgi2099 @stephenw10
                    last edited by cgi2099

                    @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
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      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 Reply Quote 1
                      • C
                        cgi2099 @stephenw10
                        last edited by

                        @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

                          @stephenw10
                          This did work!

                          Thank you so much :)

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

                            Great to hear. 👍

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @stephenw10
                              last edited by

                              @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
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                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 Reply Quote 0
                                • ?
                                  A Former User @stephenw10
                                  last edited by

                                  @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
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    That's correct.

                                    ? 1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @stephenw10
                                      last edited by

                                      @stephenw10

                                      Thank you very much for that information.

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