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

    DevelopersBootStrapAndDevIso, pfSense 2.1

    Scheduled Pinned Locked Moved Development
    6 Posts 4 Posters 3.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.
    • M
      markky
      last edited by

      I feel like I'm either missing something obvious, or looking at the wrong document.

      Googling various keywords along the lines of "source code to pfSense" always comes up with
          http://devwiki.pfsense.org/DevelopersBootStrapAndDevIso
      pretty high in the list.

      The first option of just downloading a virtual machine is perfect.

      http://cvs.pfsense.org/~sullrich/pfSenseDevBuilder/pfSense.ova

      Unfortunately, it seems this virtual machine is out of date.

      When you boot up the machine, it runs /etc/rc.local which kicks off a bootstrap and build process which fails almost immediately.
      The first stumbling block is that the freebsd 8.1 ports area has been archived, so pkg_add -r couldn't find the requested packages.
      This is easy to work around, I chose to just ftp to ftp.freebsd.org, go to pub/FreeBSD/ports/i386/packages-8-stable/Latest
      grab fastest_cvsup.tbz and perl.tbz. and then run
        pkg_add perl.tbz
        pkg_add fastest_cvsup.tbz

      then edit /etc/rc.local and change RELENG_2_0 to RELENG_2_1 in both locations you get a match.  namely
        PFS_VERSION=RELENG_2_1
        …
        cd /home/pfsense/tools/pfPorts && ./buildports.RELENG_2_1

      At this point, reboot and see if the automated process now works.  Well yes and no, we get further but it doesn't
      look like they are happening as they are supposed to.

      For instance,
        >>> Finding patch rejects...

      WARNING!  Rejected patches found!  Please fix before building!

      /usr/pfSensesrc/src/ip_carp.c.rej
        /usr/pfSensesrc/src/pf.c.rej
        /usr/pfSensesrc/src/mbuf.h.rej

      I've only looked at the mbuf.h reject so far, but at the moment I can't see how it
      didn't match.  So whilst I can probably hack the patch so it does apply properly, it
      seems I'm somewhere I shouldn't be...  I think I can safely assume that this is
      obviously not how the automated build bootstraper is supposed to work.

      I've tried running set_version.sh or menu.sh, but ultimately with no success.

      Is RELENG_2_1 the correct release to get a build environment that somewhat matches the images on snapshot.pfsense.org?

      pfSense 2.0.1 runs fine on my soekris and almost suits my needs, except for the lack of v6.  Going to 2.1 snapshots I run into a shared problem with others running flash based root filesystems where there are frequent "hangs" and this makes it impossible to put into a "production" environment.

      So, I'd like to debug the problem, but can't recreate a starting point, let alone make changes to it.

      Any suggestions, ideally an updated ova or set of instructions would be appreciated.

      Thanks,

      • Mark
      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by

        The problem here is pf_route-to-crash_fixes.diff. It probably needs to be updated since something changed in the kernel source.

        1 Reply Last reply Reply Quote 0
        • P
          podilarius
          last edited by

          Thanks to ermalluci … it looks like we are going to be able to build 2.1 now.

          1 Reply Last reply Reply Quote 0
          • E
            Efonnes
            last edited by

            I think you need to match the FreeBSD version of the pfSense version you want to build.  Currently this is 8.3 for pfSense 2.1.

            1 Reply Last reply Reply Quote 0
            • P
              podilarius
              last edited by

              I am using 8.3 to build my 2.1 images. I have not tried to just FreeBSD version to build. Though I did try to build 2.1 on 9.0 (since it has some patches and at the time it was going that way) it was never successful.

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

                The patches were broken for a couple days but they should be fine again now.

                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.