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

    Setting an alternate com port for serial output

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    10 Posts 4 Posters 1.9k 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.
    • I
      itwurx
      last edited by

      Hi, I currently have a device that only outputs to com2 (com1 is internal) and was wondering if there is a way to make it work without recompiling the kernel (as there are no tools or kernel configs available anymore)

      is there a way to do this or do I now have a $700 paperweight? :(

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

        If you're using Nano then there isn't an easy way to do this AFAIK. Please let me know if you find one.
        For a full install you just choose a different com port. What hardware are you using? What install type?

        Steve

        1 Reply Last reply Reply Quote 0
        • I
          itwurx
          last edited by

          Lanner 7573. has a comA port in front, then COMB1 and COMB2 pinouts on the board.

          uses the newest intel chipset that is in 2.1.3 (2.1.1 actually)

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

            So you're running Nano from a CF card then?

            Hmm, so three serial ports then? And ComA is not the default console? Can you change the arrangement in the bios?

            Other similar Lanner hardware works fine with the front console port.

            Steve

            1 Reply Last reply Reply Quote 0
            • I
              itwurx
              last edited by

              pfsense sees it as com2 for some reason.

              interesting enough, older netgate hakamua images display just fine and dandy.

              1 Reply Last reply Reply Quote 0
              • JeGrJ
                JeGr LAYER 8 Moderator
                last edited by

                I'm running a Lanner 7535 and new installs with 2.x did run fine with the default front console port. Did you check your BIOS if you can change a console setting or disable the other serial pin outs? Would seem strange, that 753x and 754x series run fine?

                Greets

                Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

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

                  Yep, check for bios options.
                  I have to say though we failed misarably to do exactly this with the XTM8 (a customised Lanner box). We did eventually get it going by just using the Nano+VGA image and temporarily hooking up a monitor.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    A couple things you'll need to do:

                    1. To get a login prompt/menu without boot message/log entries, you can edit the entry for the second COM port in /etc/ttys (copy ttyv0 line for ttyv1)
                    2: To get boot messages, you can change /boot/device.hints to set the flags to 0x30 for hint.uart.1.flags and set port 0 to 0x00.

                    I haven't tried that, but at least in theory it should work…

                    Used to be you had to recompile the kernel to set the serial port flags but that shouldn't be necessary these days.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

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

                      Ah, that's interesting Jim.
                      That's true for Nano? And for 2.1.3?

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        Should be true for either one, but there is code that alters the ttys file that may overwrite changes if you're not careful, and on nano I don't think /boot/device.hints is copied from slice to slice.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

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