OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of gondox »
  • Show Posts »
  • Topics
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Topics - gondox

Pages: [1]
1
Development and Code Review / OPNsense 22.7 on RPI4 CM only boots after boot file transfer
« on: August 19, 2022, 09:14:50 pm »
Hi,

I have been toiling with this for quite some time, but I was finally able to compile OPNsense for my DFRobot routerboard with a RPI4 CM!  ;D

Code: [Select]
=====
Message from opnsense-22.7.1_20:

--
Yes, I'm back in black
>>> Begin extra: arm_hook
rc.loader: assembling banner
rc.loader: assembling brand
rc.loader: assembling misc
rc.loader: assembling modules
>>> End extra: arm_hook
>>> Setting up entropy in /usr/obj/usr/tools/config/22.7/OpenSSL:aarch64
1+0 records in
1+0 records out
4096 bytes transferred in 0.000429 secs (9542425 bytes/sec)
1+0 records in
1+0 records out
4096 bytes transferred in 0.000397 secs (10309668 bytes/sec)
Creating `/usr/obj/usr/tools/config/22.7/OpenSSL:aarch64/efiboot.img'
/usr/obj/usr/tools/config/22.7/OpenSSL:aarch64/efiboot.img: 65528 sectors in 65528 FAT32 clusters (512 bytes/cluster)
BytesPerSec=512 SecPerClust=1 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=66584 FATsecs=512 RootCluster=2 FSInfo=1 Backup=2
Populating `/usr/obj/usr/tools/config/22.7/OpenSSL:aarch64/efiboot.img'
Image `/usr/obj/usr/tools/config/22.7/OpenSSL:aarch64/efiboot.img' complete
>>> Building arm image... done

Code: [Select]
Fri Aug 19 17:43:59 UTC 2022

*** OPNsense.localdomain: OPNsense 22.7.1_20 (aarch64/OpenSSL) ***

 LAN (re0)       -> v4: 192.168.1.1/24
 WAN (genet0)    ->

 HTTPS: SHA256 F4 F5 E1 90 61 4D D0 B4 78 B9 D6 21 58 0C C8 CA
               70 A5 AC B8 E1 EE B7 DD AA B3 8C EE D8 B1 DC 5D

FreeBSD/arm64 (OPNsense.localdomain) (ttyu0)

login: root
Password:
----------------------------------------------
|      Hello, this is OPNsense 22.7          |         @@@@@@@@@@@@@@@
|                                            |        @@@@         @@@@
| Website:      https://opnsense.org/        |         @@@\\\   ///@@@
| Handbook:     https://docs.opnsense.org/   |       ))))))))   ((((((((
| Forums:       https://forum.opnsense.org/  |         @@@///   \\\@@@
| Code:         https://github.com/opnsense  |        @@@@         @@@@
| Twitter:      https://twitter.com/opnsense |         @@@@@@@@@@@@@@@
----------------------------------------------

*** OPNsense.localdomain: OPNsense 22.7.1_20 (aarch64/OpenSSL) ***

 LAN (re0)       -> v4: 192.168.1.1/24
 WAN (genet0)    ->

 HTTPS: SHA256 F4 F5 E1 90 61 4D D0 B4 78 B9 D6 21 58 0C C8 CA
               70 A5 AC B8 E1 EE B7 DD AA B3 8C EE D8 B1 DC 5D

  0) Logout                              7) Ping host
  1) Assign interfaces                   8) Shell
  2) Set interface IP address            9) pfTop
  3) Reset the root password            10) Firewall log
  4) Reset to factory defaults          11) Reload all services
  5) Power off system                   12) Update from console
  6) Reboot system                      13) Restore a backup

Enter an option:

One remaining problem is, that booting with the the files in the MSDOSBOOT FAT partition does not work. After building the image, I transferred the files from a Freebsd 13.1 RPI image to the OPNsense Partition and lo and behold: It worked!

Could it be that the build tools use the package: "u-boot-rpi4-2022.04_1" and Freebsd 13.1 uses: "u-boot-rpi-arm64-2022.04_1" ?

If so: where would I need to look next? Can I simply change the package name in some tools scripts?

2
Development and Code Review / build error: "sqlite error while executing INSERT"
« on: July 21, 2022, 11:05:45 am »
I keep on trying to build an image for my raspberry pi cm4 and this time I ran into an sqlite error while running "make arm DEVICE=RPI" both on a x86 machine as well as on a raspberry pi:

Code: [Select]
Nothing to do.
Installing pkg-1.17.5_1...
the most recent version of pkg-1.17.5_1 is already installed
Installing iperf3-3.11...
Extracting iperf3-3.11: 100%
Installing ruby-2.7.6_2,1...
`-- Installing libyaml-0.2.5...
`-- Extracting libyaml-0.2.5: 100%
`-- Installing libunwind-20211201_1...
`-- Extracting libunwind-20211201_1: 100%
`-- Installing libedit-3.1.20210910,1...
`-- Extracting libedit-3.1.20210910,1: 100%
Extracting ruby-2.7.6_2,1: 100%
=====
Message from ruby-2.7.6_2,1:

--
Some of the standard commands are provided as separate ports for ease
of upgrading:

        devel/ruby-gems:                gem - RubyGems package manager
        devel/rubygem-irb:              irb - Interactive Ruby
        devel/rubygem-rake:             rake - Ruby Make
        devel/rubygem-rdoc:             rdoc - Ruby Documentation System
        sysutils/rubygem-bundler:       bundler - Tool that manages gem dependencies for ruby applications

And some of the standard libraries are provided as separate ports
since they require extra dependencies:

        databases/rubygem-dbm:  DBM module
        databases/rubygem-gdbm: GDBM module

Install them as occasion demands.
--
===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Please migrate to newer versions. Ruby 2.7 will reach its EoL on April 12, 2023.

It is scheduled to be removed on or after 2023-04-12.
pkg: warning: database version 36 is newer than libpkg(3) version 35, but still compatible
pkg: sqlite error while executing INSERT OR IGNORE INTO mtree(content) VALUES(?1) in file pkgdb.c:115: no such table: mtree
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01   
Fetching packagesite.pkg: 100%    6 MiB   3.2MB/s    00:02   
Processing entries: 100%
FreeBSD repository update completed. 30551 packages processed.
All repositories are up to date.
pkg: warning: database version 36 is newer than libpkg(3) version 35, but still compatible
pkg: sqlite error while executing INSERT OR IGNORE INTO mtree(content) VALUES(?1) in file pkgdb.c:115: no such table: mtree
*** Error code 1

Stop.
make[1]: stopped in /usr/plugins/benchmarks/iperf
*** Error code 1

Stop.
make: stopped in /usr/tools
root@generic:/usr/tools #

Any idea how this can happen or be fixed?

EDIT: I tried to find all sqlite db files in / and tried the .selftest command on all of them as suggested here: https://forum.opnsense.org/index.php?topic=15868.msg72658#msg72658 but it found no error in any of them.

3
Development and Code Review / Build fail on Freebsd 13.0 RPi4 for DEVICE=RPI with Error code 1
« on: June 16, 2022, 10:18:34 am »
Hi,

I tried to compile DEVICE=ARM64 images in the past, which had some issues. Now I try to build a DEVICE=RPI serial image on my Raspberry Pi 4 which has Freebsd 13.0 installed.

The compilation ran for two days but got stuck today and so far I do not know what is missing. I would appreciate any help.

This is the error I see:

Code: [Select]
configure: loading site script /tmp/opnsense/ports/Templates/config.site
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for minix/config.h... (cached) no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of cc... gcc3
checking for cc option to accept ISO C99... none needed
checking whether __clang__ is declared... yes
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking pkg-config is at least version 0.9.0... yes
checking build system type... aarch64-portbld-freebsd13.0
checking host system type... aarch64-portbld-freebsd13.0
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking if cc supports -Werror=unknown-warning-option... yes
checking if cc supports -Werror=unused-command-line-argument... yes
checking if cc supports -Wall... yes
checking if cc supports -Wpointer-arith... yes
checking if cc supports -Wmissing-declarations... yes
checking if cc supports -Wformat=2... yes
checking if cc supports -Wstrict-prototypes... yes
checking if cc supports -Wmissing-prototypes... yes
checking if cc supports -Wnested-externs... yes
checking if cc supports -Wbad-function-cast... yes
checking if cc supports -Wold-style-definition... yes
checking if cc supports -Wdeclaration-after-statement... yes
checking if cc supports -Wunused... yes
checking if cc supports -Wuninitialized... yes
checking if cc supports -Wshadow... yes
checking if cc supports -Wmissing-noreturn... yes
checking if cc supports -Wmissing-format-attribute... yes
checking if cc supports -Wredundant-decls... yes
checking if cc supports -Wlogical-op... no
checking if cc supports -Werror=implicit... yes
checking if cc supports -Werror=nonnull... yes
checking if cc supports -Werror=init-self... yes
checking if cc supports -Werror=main... yes
checking if cc supports -Werror=missing-braces... yes
checking if cc supports -Werror=sequence-point... yes
checking if cc supports -Werror=return-type... yes
checking if cc supports -Werror=trigraphs... yes
checking if cc supports -Werror=array-bounds... yes
checking if cc supports -Werror=write-strings... yes
checking if cc supports -Werror=address... yes
checking if cc supports -Werror=int-to-pointer-cast... yes
checking if cc supports -Werror=pointer-to-int-cast... yes
checking if cc supports -pedantic... yes
checking if cc supports -Werror... yes
checking if cc supports -Werror=attributes... yes
checking whether make supports nested variables... (cached) yes
checking for gzopen in -lz... yes
checking for vasprintf... (cached) yes
checking for MKFONTSCALE... yes
checking for X11... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[20220616005411] ===> Building for mkfontscale-1.2.1
--- all ---
/usr/bin/make  all-recursive
--- all-recursive ---
Making all in man
--- mkfontdir.1 ---
--- mkfontscale.1 ---
--- mkfontdir.1 ---
/usr/bin/sed -e 's|__vendorversion__|"mkfontscale 1.2.1" "X Version 11"|' -e 's|__xorgversion__|"mkfontscale 1.2.1" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr/local|g' -e 's|__apploaddir__||g' -e 's|__appmansuffix__|1|g' -e 's|__drivermansuffix__|4|g' -e 's|__adminmansuffix__|8|g' -e 's|__libmansuffix__|3|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5|g' < mkfontdir.man > mkfontdir.1
--- mkfontscale.1 ---
/usr/bin/sed -e 's|__vendorversion__|"mkfontscale 1.2.1" "X Version 11"|' -e 's|__xorgversion__|"mkfontscale 1.2.1" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr/local|g' -e 's|__apploaddir__||g' -e 's|__appmansuffix__|1|g' -e 's|__drivermansuffix__|4|g' -e 's|__adminmansuffix__|8|g' -e 's|__libmansuffix__|3|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5|g' < mkfontscale.man > mkfontscale.1
--- constlist.o ---
--- hash.o ---
--- ident.o ---
--- list.o ---
--- constlist.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT constlist.o -MD -MP -MF .deps/constlist.Tpo -c -o constlist.o constlist.c
--- hash.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.c
--- ident.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT ident.o -MD -MP -MF .deps/ident.Tpo -c -o ident.o ident.c
--- list.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT list.o -MD -MP -MF .deps/list.Tpo -c -o list.o list.c
--- constlist.o ---
mv -f .deps/constlist.Tpo .deps/constlist.Po
--- mkfontscale.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT mkfontscale.o -MD -MP -MF .deps/mkfontscale.Tpo -c -o mkfontscale.o mkfontscale.c
--- hash.o ---
mv -f .deps/hash.Tpo .deps/hash.Po
--- mkfontdir ---
/usr/bin/sed -e 's|@bindir[@]|/usr/local/bin|g' < ./mkfontdir.in > mkfontdir
--- list.o ---
mv -f .deps/list.Tpo .deps/list.Po
--- mkfontscale.o ---
mkfontscale.c:779:66: warning: declaration shadows a variable in the global scope [-Wshadow]
doDirectory(const char *dirname_given, int numEncodings, ListPtr encodingsToDo)
                                                                 ^
mkfontscale.c:115:16: note: previous declaration is here
static ListPtr encodingsToDo;
               ^
mkfontscale.c:1293:23: warning: declaration shadows a variable in the global scope [-Wshadow]
readEncodings(ListPtr encodings, char *dirname)
                      ^
mkfontscale.c:92:21: note: previous declaration is here
static ConstListPtr encodings, extra_encodings;
                    ^
--- ident.o ---
mv -f .deps/ident.Tpo .deps/ident.Po
--- mkfontscale.o ---
2 warnings generated.
mv -f .deps/mkfontscale.Tpo .deps/mkfontscale.Po
--- mkfontscale ---
cc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -fstack-protector-strong -o mkfontscale constlist.o hash.o  ident.o list.o mkfontscale.o -L/usr/local/lib -lfontenc -lfreetype -lz
[20220616005414] ===> Staging for mkfontscale-1.2.1
===>   mkfontscale-1.2.1 depends on file: /usr/local/libdata/pkgconfig/fontenc.pc - found
[20220616005414] ===> Generating temporary packing list
Making install in man
 /bin/mkdir -p '/usr/obj/tmp/opnsense/ports/x11-fonts/mkfontscale/work/stage/usr/local/man/man1'
 install  -m 0644 mkfontdir.1 mkfontscale.1 '/usr/obj/tmp/opnsense/ports/x11-fonts/mkfontscale/work/stage/usr/local/man/man1'
 /bin/mkdir -p '/usr/obj/tmp/opnsense/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
  install  -s -m 555 mkfontscale '/usr/obj/tmp/opnsense/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
 /bin/mkdir -p '/usr/obj/tmp/opnsense/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
 install  -m 555 mkfontdir '/usr/obj/tmp/opnsense/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
[20220616005415] ====> Compressing man pages (compress-man)
[20220616005415] ===> Installing for mkfontscale-1.2.1
[20220616005415] ===> Checking if mkfontscale is already installed
[20220616005415] ===> Registering installation for mkfontscale-1.2.1 as automatic
Installing mkfontscale-1.2.1...
===>   urwfonts-1.0_8 depends on executable: mkfontscale - found
===>   Returning to build of urwfonts-1.0_8
[20220616005415] ===> Generating temporary packing list
install  -m 0644 /usr/obj/tmp/opnsense/ports/x11-fonts/urwfonts/work/URW/Fontmap /usr/obj/tmp/opnsense/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/tmp/opnsense/ports/x11-fonts/urwfonts/work/URW/*.pfb /usr/obj/tmp/opnsense/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/tmp/opnsense/ports/x11-fonts/urwfonts/work/URW/*.afm /usr/obj/tmp/opnsense/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/tmp/opnsense/ports/x11-fonts/urwfonts/work/URW/*.pfm /usr/obj/tmp/opnsense/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
[20220616005415] ====> Compressing man pages (compress-man)
[20220616005416] ===> Installing for urwfonts-1.0_8
[20220616005416] ===> Checking if urwfonts is already installed
[20220616005416] ===> Registering installation for urwfonts-1.0_8
Installing urwfonts-1.0_8...
You'll have to add /usr/local/share/fonts/urwfonts
to your X font path by either:

$ xset fp+ /usr/local/share/fonts/urwfonts
$ xset fp rehash

or by adding it to your X-server configuration file (usually
/etc/X11/xorg.conf) and restarting the X-server.

[20220616005417] ====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
[20220616005417] ===> No pkg-plist issues found (check-plist)
Creating package for expat-2.4.8
expat-2.4.8 already packaged, skipping...
Creating package for fontconfig-2.13.94_2,1
fontconfig-2.13.94_2,1 already packaged, skipping...
Creating package for freetype2-2.12.1
freetype2-2.12.1 already packaged, skipping...
Creating package for libfontenc-1.1.4
Creating package for mkfontscale-1.2.1
Creating package for pkg-1.17.5_1
pkg-1.17.5_1 already packaged, skipping...
Creating package for pkgconf-1.8.0,1
pkgconf-1.8.0,1 already packaged, skipping...
Creating package for png-1.6.37_1
png-1.6.37_1 already packaged, skipping...
Creating package for urwfonts-1.0_8
Creating package for xorg-macros-1.19.3
xorg-macros-1.19.3 already packaged, skipping...
Creating package for xorgproto-2021.5
xorgproto-2021.5 already packaged, skipping...
>>> Locking package dependency: pkgconf
>>> Locking package dependency: pkg
>>> Locking package dependency: urwfonts
Updating database digests format: .......... done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages:

Installed packages to be REMOVED:
xorg-macros: 1.19.3
xorgproto: 2021.5

Number of packages to be removed: 2

The operation will free 1 MiB.
[1/2] Deinstalling xorg-macros-1.19.3...
[1/2] Deleting files for xorg-macros-1.19.3: ...... done
[2/2] Deinstalling xorgproto-2021.5...
[2/2] Deleting files for xorgproto-2021.5: .......... done
>>> Saving runtime package: libfontenc
>>> Saving runtime package: mkfontscale
>>> Saving runtime package: urwfonts
[20220616005440] ===> Cleaning for mkfontscale-1.2.1
[20220616005440] ===> Cleaning for libfontenc-1.1.4
[20220616005440] ===> Cleaning for urwfonts-1.0_8
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 9 packages:

Installed packages to be REMOVED:
expat: 2.4.8
fontconfig: 2.13.94_2,1
freetype2: 2.12.1
libfontenc: 1.1.4
mkfontscale: 1.2.1
pkg: 1.17.5_1
pkgconf: 1.8.0,1
png: 1.6.37_1
urwfonts: 1.0_8

Number of packages to be removed: 9

The operation will free 20 MiB.
[1/9] Deinstalling urwfonts-1.0_8...
[1/9] Deleting files for urwfonts-1.0_8: .......... done
[2/9] Deinstalling fontconfig-2.13.94_2,1...
[2/9] Deleting files for fontconfig-2.13.94_2,1: .......... done
[3/9] Deinstalling mkfontscale-1.2.1...
[3/9] Deleting files for mkfontscale-1.2.1: ....... done
[4/9] Deinstalling freetype2-2.12.1...
[4/9] Deleting files for freetype2-2.12.1: .......... done
[5/9] Deinstalling expat-2.4.8...
[5/9] Deleting files for expat-2.4.8: .......... done
[6/9] Deinstalling libfontenc-1.1.4...
[6/9] Deleting files for libfontenc-1.1.4: ......... done
[7/9] Deinstalling pkg-1.17.5_1...
[7/9] Deleting files for pkg-1.17.5_1: .......... done
[8/9] Deinstalling pkgconf-1.8.0,1...
[8/9] Deleting files for pkgconf-1.8.0,1: .......... done
[9/9] Deinstalling png-1.6.37_1...
[9/9] Deleting files for png-1.6.37_1: .......... done
Creating repository in /usr/obj/tmp/opnsense/tools/config/22.1/OpenSSL:aarch64/.pkg-new/: .......... done
Packing files for repository: .... done
>>> Running build step: clean
>>> Passing arguments: packages
>>> Removing packages set
>>> Creating package mirror set for 22.1.8_170-OpenSSL-aarch64... done
-rw-r--r--  1 root  wheel   678M Jun 16 00:58 packages-22.1.8_170-OpenSSL-aarch64.tar
>>> WARNING: The build provided additional info.
>>> Package list inconsistency for emulators/qemu-guest-agent
>>> ERROR: The build encountered fatal issues!
>>> Aborted version 196.04 for net/realtek-re-kmod
>>> Aborted version 3.3.5_1 for net/shadowsocks-libev
>>> Aborted version 2,1 for net/wireguard
>>> Aborted version 0.0.20211105_1 for net/wireguard-kmod
>>> Aborted version 1.12a for sysutils/cciss_vol_status
*** Error code 1

Stop.
make: stopped in /tmp/opnsense/tools

I have checked whether qemu-guest-agent is installed:
Code: [Select]
root@generic:/tmp/opnsense # pkg install qemu-guest-agent
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed

and it already was.

kind regards,
Gondox

4
Development and Code Review / How to build 22.7 with opnsense tools?
« on: June 08, 2022, 10:07:23 am »
Hi,

I found out that freebsd 13.0 works well with a raspberry pi 4 but has problems to boot on a raspberry pi 4 CM.
Freebsd 13.1 does not have that problem and boots fine.
22.7 is supposed to be based on 13.1 and I would like to compile it with opnsense tools.
What would I need to do to build a 22.7 version of OPNsense?
make arm VER="22.7" DEVICE="ARM64" ?

kind regards,
Gondox

5
Hardware and Performance / OPNSense Compilation stuck for generic ARM64
« on: March 22, 2022, 10:19:49 am »
Hi,
i try to set up OPNSense on a DFRobot Routerboard ( https://wiki.dfrobot.com/Compute_Module_4_IoT_Router_Board_Mini_SKU_DFR0767 ) using a CM4 Module with onboard eMMC flash.
I flashed the rpi4-uefi onto it ( https://rpi4-uefi.dev/ ), because I want to run the generic arm64 version of OPNSense instead of the specific Raspberry Pi 4 version.

That is the reason why I tried to compile "make searial DEVICE=ARM64" in a Freebsd13 VM.
It took me 4 days compilation time to get to this error: "Cannot create repository catalogue"

Any ideas what may have caused this? I did not deviate from the commands here: https://github.com/opnsense/tools

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2