I can't find a good solution to patch a broken port for pfSense which runs on ARMV7 chip.
I already tried/researched the following approaches:
How can you guys build port for your embedded device?
I already tried/researched the following approaches:
- Emulate ARMV7 pre-built image in QEMU. I can't make it boot out-of-the-box. It seem that I need to hack the kernel.
- Find a RPI2 to build it. It is too slow. I built a open-cv in Odroid XU4, which is much faster than RPI2. But it took me a day to compile.
- Read the cross build wiki. I tried the flag TARGET=arm TARGET_ARCH=armv6. But it doesn't work. It is still amd64 binary.
Code:
[Ricky@freebsd ~/repo/github/pfsense/FreeBSD-ports/security/barnyard2]$ make -j8 package TARGET=arm TARGET_ARCH=armv6
[Ricky@freebsd ~/repo/github/pfsense/FreeBSD-ports/security/barnyard2]$ file work/stage/usr/local/bin/barnyard2
work/stage/usr/local/bin/barnyard2: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.2, FreeBSD-style, stripped
How can you guys build port for your embedded device?