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

    How to build pfSense on FreeBSD V10

    Scheduled Pinned Locked Moved Development
    35 Posts 9 Posters 15.1k 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.
    • _Adrian__
      _Adrian_
      last edited by

      Hey guys…
      I just got some of the free time i wanted so bad LOL ( Got laid off )

      Which now gives me time to thinker a bit :P
      NOW...

      I searched around and only found this: https://devwiki.pfsense.org/BuildingpFSense…
      But it seems a bit "ancient" LOL

      and a deeper search was fruitfull
      http://devwiki.pfsense.org/DevelopersBootStrapAndDevIso

      Any updates or hints ?

      If it ain't broken, fix it till it is :P

      1 Reply Last reply Reply Quote 0
      • _Adrian__
        _Adrian_
        last edited by

        This is a bit of a rough "sketch" but I'm keeping track of everything as I go along…

        NOTES:

        On FreeBSD10 you have to install the following packages manually

        GIT

        #pkg install git

        FASTEST_CVSUP

        #pkg install fastest_cvsup

        Next step:

        mkdir /home

        mkdir /home/pfsense

        git clone git://github.com/pfsense/pfsense-tools.git tools

        git clone git://github.com/pfsense/freesbie2.git freesbie2

        If it ain't broken, fix it till it is :P

        1 Reply Last reply Reply Quote 0
        • _Adrian__
          _Adrian_
          last edited by

          And a wall….

          No files present in the directories or for that matter any files in the folders

          If it ain't broken, fix it till it is :P

          1 Reply Last reply Reply Quote 0
          • _Adrian__
            _Adrian_
            last edited by

            @_Adrian_:

            mkdir /home

            mkdir /home/pfsense

            git clone git://github.com/pfsense/pfsense-tools.git tools

            git clone git://github.com/pfsense/freesbie2.git freesbie2

            Got it !!!
            Make sure you are in # /home/pfsense and not in # /root !!

            Moving along…

            If it ain't broken, fix it till it is :P

            1 Reply Last reply Reply Quote 0
            • _Adrian__
              _Adrian_
              last edited by

              And stuck again…
              https://devwiki.pfsense.org/DevelopersBootStrapAndDevIso#hn_4._Ensure_FreeBSD_sources_are_present

              Even after editing /usr/share/examples/cvsup/standard-supfile
              From:

              *default host=CHANGE_THIS.FreeBSD.org

              To:

              *default host=cvsup.FreeBSD.org

              I still get the following Error :

              Name Lookup failure for "fastest_cvsup -c tld -q": hostname nor servname provided, or not known

              Will retry at xx:xx:xx (time)

              If it ain't broken, fix it till it is :P

              1 Reply Last reply Reply Quote 0
              • _Adrian__
                _Adrian_
                last edited by

                Quickly rolled up my sleeves and started into seeing if its my network or the host…
                And what do you know :P

                C:\Users\Admin>ping cvsup.freebsd.org

                Pinging bsn0-0.edmz.cwu.edu [72.233.193.64] with 32 bytes of data:
                Request timed out.
                Request timed out.
                Request timed out.
                Request timed out.

                Ping statistics for 72.233.193.64:
                    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

                I guess this ones down :/
                Next…

                C:\Users\Admin>ping cvsup3.us.freebsd.org

                Pinging xyz.csail.mit.edu [128.31.0.28] with 32 bytes of data:
                Reply from 128.31.0.28: bytes=32 time=651ms TTL=51
                Reply from 128.31.0.28: bytes=32 time=108ms TTL=51
                Reply from 128.31.0.28: bytes=32 time=109ms TTL=51
                Reply from 128.31.0.28: bytes=32 time=110ms TTL=51

                Ping statistics for 128.31.0.28:
                    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
                Approximate round trip times in milli-seconds:
                    Minimum = 108ms, Maximum = 651ms, Average = 244ms

                Looks like I have some editing to do again…
                Hope this works :/

                If it ain't broken, fix it till it is :P

                1 Reply Last reply Reply Quote 0
                • _Adrian__
                  _Adrian_
                  last edited by

                  And still nothing >:(

                  DEV / MODS…

                  Any input ???

                  If it ain't broken, fix it till it is :P

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

                    @_Adrian_:

                    I just got some of the free time i wanted so bad LOL ( Got laid off )

                    Ouch!  :(

                    So you're trying to build 2.2 effectively?

                    It's not possible to build 2.1 on top of FreeBSD 10. Most of the work that has gone into the 2.2 branch is to allow it to be built on 10.

                    Not that I've tried myself of course!  ;)

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • _Adrian__
                      _Adrian_
                      last edited by

                      Yeah… I'm trying my FreeBsd skills out LOL

                      I figured and try my hand at a 2.2 build with the OFED Stack

                      If it ain't broken, fix it till it is :P

                      1 Reply Last reply Reply Quote 0
                      • _Adrian__
                        _Adrian_
                        last edited by

                        Well… some progress is made !
                        Last night I was too tired and hopped up on Mountain Dew Voltage LOL

                        I was using

                        csup -h fastest_cvsup -c tld -q /usr/share/examples/cvsup/standard-supfile

                        This morning i looked closer to the Wiki and saw this…

                        Some ports require sources in /usr/src to build correctly.

                        So instead really should have been using this

                        csup -h fastest_cvsup -c tld -q /usr/src

                        Now I get the following message

                        Release not specified for collection "s"

                        I guess im on the right track …
                        Moving on and omitting the message for now LOL

                        If it ain't broken, fix it till it is :P

                        1 Reply Last reply Reply Quote 0
                        • _Adrian__
                          _Adrian_
                          last edited by

                          Well.. so far so good…
                          I choose the RELENG_8_3 :D

                          Right now its at :

                          Obtaining FreeBSD Sources RELENG_8_3-supfile. . .

                          Keeping fingers crossed and hopeing it works !!

                          If it ain't broken, fix it till it is :P

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

                            Trying and failing is better than not trying at all. You've got me beat already.  :)

                            Steve

                            1 Reply Last reply Reply Quote 0
                            • _Adrian__
                              _Adrian_
                              last edited by

                              DONE !!
                              Woohohohooo

                              Not a single error too !!

                              Moving onto Step 5.2A…

                              Now on 5.2B

                              If it ain't broken, fix it till it is :P

                              1 Reply Last reply Reply Quote 0
                              • _Adrian__
                                _Adrian_
                                last edited by

                                Ugh… errors galore !!!

                                However...

                                Plan for failure
                                It is expected that the first try to build the ports, and the first try to build an ISO will fail, but subsequent attempts work. This is because certain parts expect files or binaries to be present that get built on the first run but not fully used until the second. This may get fixed eventually, but because the workaround is easy (just run the build again), it's not a priority.

                                I ran it again and still full of errors…
                                guessing thats due to V10 but i mainly think its because of this first initial error:

                                Operation ./build_pfPorts.sh has started at Sun Jan 26 12:26:30 MST
                                  –> Preparing for pfPorts build buildports.RELENG_2_1
                                  --> WARNING! We are about to run make includes.
                                  --> Press CTRL-C to abort this operation. . . . .
                                ==> Starting make includes operation. . .
                                make: "/usr/pfSensesrc/src/Makefile" line 178: warning : Couldn't read shell's output for "find /usr/pfSensesrc/src/sys/sys/param.h -mtime -0s"
                                make[2]: "/usr/pfSensesrc/src/Makefile" line 178: warning : Couldn't read shell's output for "find /usr/pfSensesrc/src/sys/sys/param.h -mtime -0s"
                                make[2]: "/usr/pfSensesrc/src/Makefile" line 178: warning : Couldn't read shell's output for "find /usr/pfSensesrc/src/sys/sys/param.h -mtime -0s"

                                ==> Compiling pfPorts. . .

                                Executing Build ports.RELENG_2_1
                                Setting ports List : '/home/pfSense/tools/builder_scripts/../builder_scripts/conf/pfPorts/buildports.RELENG_2_1'
                                Setting MAKEJ_ports (-j) to ' '
                                Setting ports make.conf: '/tmp/pfPorts_make.conf'

                                After this everything is a catastrophe :/

                                Build [PACKAGE] (filename). . . Failed to build. Error log in /tmp/pfPorts/buildlogs/[PACKAGE]

                                If it ain't broken, fix it till it is :P

                                1 Reply Last reply Reply Quote 0
                                • _Adrian__
                                  _Adrian_
                                  last edited by

                                  After a bit of messing around I got to menu.sh and found that there is an option that's not displayed on the wiki…
                                  RELENG_10_0

                                  Also edited and instead of merging with head I forced it to merge with 8.3
                                  I Will try again...

                                  Right now its at
                                  " Obtaining FreeBSD sources RELENG_10_0-supfile. . . "

                                  If it ain't broken, fix it till it is :P

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

                                    Thanks for posting your progress on this.

                                    I'm interested in building for freeBSD 10, for the improved Xen support that 10 has.

                                    I just started downloading a v10 ISO to set up a build environment.

                                    1 Reply Last reply Reply Quote 0
                                    • _Adrian__
                                      _Adrian_
                                      last edited by

                                      No luck yet…
                                      Just chasing my tail here... I'm pretty close, but something is causing the build to fail.
                                      So will have to keep poking at it until I either figure it out or someone drops in with a few words of wisdom...

                                      If it ain't broken, fix it till it is :P

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        phil.davis
                                        last edited by

                                        After a bit of messing around I got to menu.sh and found that there is an option that's not displayed on the wiki…
                                        RELENG_10_0

                                        Since FreeBSD 10 and pfSense 2.2 is brand new, the detail of the build instructions in the WiKi is going to talk about (FreeBSD 8.1 and pfSense 2.0.n) or (FreeBSD 8.3 and pfSense 2.1.n). So you will definitely have to always change anything like that, and use an educated guess to do a similar thing for (FreeBSD 10 and pfSense 2.2). And then work out what underlying stuff has changed in some non-obvious way also (either in FreeBSD itself, or the way it is built for pfSense).
                                        Once the devs actually have a reasonable (FreeBSD 10 and pfSense 2.2) build themselves then I'm sure the WiKi will get updated, and there will be public snapshots.

                                        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                                        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                                        1 Reply Last reply Reply Quote 0
                                        • _Adrian__
                                          _Adrian_
                                          last edited by

                                          Thanks for the input phil.davis !

                                          From what read / heard 2.2 will be built on V9 not on V10.
                                          Mainly I'm after a running OFED stack…

                                          If it ain't broken, fix it till it is :P

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            phil.davis
                                            last edited by

                                            From what read / heard 2.2 will be built on V9 not on V10.

                                            pfSense 2.2 is definitely now based on FreeBSD 10 (there will not be any pfSense for FreeBSD 9).
                                            You have already posted to this thread: https://forum.pfsense.org/index.php/topic,69856.0.html - which has a few people interested and waiting for a useable FreeBSD 10 + pfSense 2.2 build to pop out.

                                            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                                            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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