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

Console port on Netgate/Lanner device

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
15 Posts 3 Posters 6.4k 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
    last edited by Dec 4, 2013, 9:40 PM

    Hmm, that's an odd place for the boot sequence to stop when it is actually booting correctly. It often stops there if it can't find root, not the case here. It often stops at the bootloader if the console setup is incorrect.
    How did you tell it to use 115200bps for the console, via the gui or manually editing a file?
    Anything on the console at 9600bps?
    Did you use the serial console on your previous install?

    Steve

    1 Reply Last reply Reply Quote 0
    • D
      dzeanah
      last edited by Dec 4, 2013, 9:48 PM

      I did not use the console on the previous install.

      I changed the speed from 9600 to 115200 using the webgui - no files directly edited yet.

      If I open the terminal @ 9600, I see some garbledygook, then a few lines from the boot sequence, the last of which is /boot/defaults/loader.conf (if I copied it correctly), then more garbledygook, then nothing.

      Once the system is running I find that hitting the enter button a few times returns nothing, whether I configure the terminal @ 9600, 38400, or 115200.

      1 Reply Last reply Reply Quote 0
      • H
        hfs
        last edited by Dec 5, 2013, 6:20 PM

        You can change the BIOS-Setting Advanced->Remote Access Configuration->Redirection After BIOS POST to [Boot Loader], otherwise the Lanner-device redirects the VGA-stream to the serial console.

        HTH

        1 Reply Last reply Reply Quote 0
        • D
          dzeanah
          last edited by Dec 5, 2013, 6:47 PM

          @hfs:

          You can change the BIOS-Setting Advanced->Remote Access Configuration->Redirection After BIOS POST to [Boot Loader], otherwise the Lanner-device redirects the VGA-stream to the serial console.

          HTH

          Thanks.  It was set to Always, and I trued Disabled and Boot Loader, and in each case I'm seeing the same behavior: the serial console goes nonresponsive at the same point in the boot sequence.

          1 Reply Last reply Reply Quote 0
          • H
            hfs
            last edited by Dec 5, 2013, 7:37 PM

            Strange…

            Just to verify:

            1. BIOS is set to "[Boot Loader]" 115200,n,8,n
            2. pfSense is set (via GUI) to "Enables the first serial port with 9600/8/N/1 by default, or another speed selectable below" and "115200"

            You can verify the pfSense-settings in /boot/loader.conf, it should contain:

            
            boot_multicons="YES"
            boot_serial="YES"
            comconsole_speed="115200"
            console="comconsole,vidconsole"
            
            

            /boot.config should contain this line:

            
            -D
            
            
            1 Reply Last reply Reply Quote 0
            • D
              dzeanah
              last edited by Dec 5, 2013, 7:54 PM

              1. Correct.
              2. Correct, though the labeling is different (advanced config page)

              You can verify the pfSense-settings in /boot/loader.conf, it should contain:

              
              boot_multicons="YES"
              boot_serial="YES"
              comconsole_speed="115200"
              console="comconsole,vidconsole"
              
              

              Mine only contains```
              boot_multicons="YES"
              hw.usb.no_pf="1"

              
              > /boot.config should contain this line:
              > ```
              > 
              > -D
              > 
              > ```
              
              We're good there.
              1 Reply Last reply Reply Quote 0
              • H
                hfs
                last edited by Dec 5, 2013, 8:08 PM

                @Derek:

                Mine only contains

                boot_multicons="YES"
                hw.usb.no_pf="1"
                

                I'm assuming making changes to what you listed will help?

                You might give it a shot.

                You don't have flow-control enabled on your terminal?

                1 Reply Last reply Reply Quote 0
                • D
                  dzeanah
                  last edited by Dec 5, 2013, 10:59 PM

                  That fixed it.  :)

                  Thanks!

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Dec 5, 2013, 11:05 PM

                    If you're doing manual file editing then use /boot/loader.conf.local instead. You will have to create that file but anything you add there won't be overwritten.
                    NanoBSD is hardcoded to use com1 for it's console. On my nano box if I set the console to 115200 the only line I see in the loader.conf is:
                    comconsole_speed="115200"

                    I am not sure but Netgate (who are VERY close to the project  ;)) may have their own images for that box configured slightly differently. I'm sure if you dropped them a line they'd sort this for you quickly. Point them at this thread.

                    Steve

                    Edit: What was the fix?

                    1 Reply Last reply Reply Quote 0
                    • D
                      dzeanah
                      last edited by Dec 5, 2013, 11:11 PM

                      Edit: What was the fix?

                      I made the changes suggested by HFS.

                      They may go away on upgrade though, you're right about that.  :-[

                      1 Reply Last reply Reply Quote 0
                      • H
                        hfs
                        last edited by Dec 6, 2013, 8:43 AM

                        You're right, there's a difference between full-install and embedded.

                        On full-installs (several lanner devices e.g. 7535, 7568, etc. ) it looks like that:

                        /boot/loader.conf:

                        
                        boot_multicons="YES"
                        boot_serial="YES"
                        comconsole_speed="115200"
                        console="comconsole,vidconsole"
                        
                        

                        /boot.config:

                        
                        -D
                        
                        

                        On embedded installs (Alix with 9600,n,8,1) it looks like that:

                        /boot/loader.conf:

                        
                        comconsole_speed="9600"
                        
                        

                        /boot.config:

                        
                        -h
                        
                        

                        The embedded install is based on the serial-console embedded .img file.

                        Both embedded and full install survived several upgrades (from 2.0 to 2.0.x… to 2.1-RELEASE) without any further modifications regarding serial console.

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Dec 6, 2013, 3:15 PM

                          Ah interesting.
                          This is explained here: https://www.freebsd.org/doc/handbook/serialconsole-setup.html
                          Specifically:

                          The boot loader will determine whether the internal video or the serial port should become the console by examining the state of -h. This means that if -D is specified but -h is not specified in /boot.config, the serial port can be used as the console only during the boot block as the boot loader will use the internal video display as the console.

                          It seems as though the Netgate box is setup for dual console (special image) and that somehow in restoring your old config file you ended up removing some part of that setup. Not sure how though.  :-\

                          Steve

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