Hi yrzr,I found a good documentation on https://github.com/sreinhardt/armada-8040-imagesi think with this item you can generate img
DDR version 1.16 20190528ID:0x805 NInDDR4333MHzBus Width=32 Col=10 Bank=4 Bank Group=2 Row=15 CS=1 Die Bus-Width=16 Size=1024MBddrconfig:14OUTBoot1 Release Time: May 13 2019 17:34:36, version: 2.50ChipType = 0x11, 248mmc2:cmd1,20emmc reinitmmc2:cmd1,20emmc reinitmmc2:cmd1,20SdmmcInit=2 1mmc0:cmd5,20SdmmcInit=0 0BootCapSize=0UserCapSize=3781MBFwPartOffset=2000 , 0StorageInit ok = 34120Raw SecureMode = 0SecureInit read PBA: 0x4SecureInit read PBA: 0x404SecureInit read PBA: 0x804SecureInit read PBA: 0xc04SecureInit read PBA: 0x1004SecureInit ret = 0, SecureMode = 0atags_set_bootdev: ret:(0)GPT 0x337a9f0 signature is wrongrecovery gpt...GPT part: 0, name: , start:0x800, size:0x762000recovery gpt success!no find partition:uboot.LoadTrust Addr:0x4000No find bl30.binNo find bl32.binLoad uboot, ReadLba = 2000hdr 000000000337a3b0 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,Load OK, addr=0x200000, size=0xab950RunBL31 0x40000INFO: Preloader serial: 2NOTICE: BL31: v1.3(debug):403e0b816NOTICE: BL31: Built : 14:13:08, Aug 11 2020NOTICE: BL31:Rockchip release version: v1.3INFO: ARM GICv2 driver initializedINFO: Using opteed sec cpu_context!INFO: boot cpu mask: 1INFO: plat_rockchip_pmu_init: pd status 0xeINFO: BL31: Initializing runtime servicesWARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNKERROR: Error initializing runtime service opteed_fastINFO: BL31: Preparing for EL3 exit to normal worldINFO: Entry point address = 0x200000INFO: SPSR = 0x3c9U-Boot 2020.10-armbian (May 06 2021 - 18:04:51 +0000)Model: FriendlyElec NanoPi R2SDRAM: 1022 MiBPMIC: RK8050 (on=0x40, off=0x01)MMC: mmc@ff500000: 1Loading Environment from MMC... MMC Device 0 not found*** Warning - No MMC card found, using default environmentIn: serial@ff130000Out: serial@ff130000Err: serial@ff130000Model: FriendlyElec NanoPi R2SNet: eth0: ethernet@ff540000Hit any key to stop autoboot: 0switch to partitions #0, OKmmc1 is current deviceScanning mmc 1:1...Found EFI removable media binary efi/boot/bootaa64.efilibfdt fdt_check_header(): FDT_ERR_BADMAGICScanning disk mmc@ff500000.blk...** Unrecognized filesystem type **Found 3 disksNo EFI system partitionBootOrder not definedEFI boot manager: Cannot load any image393216 bytes read in 68 ms (5.5 MiB/s)libfdt fdt_check_header(): FDT_ERR_BADMAGICBooting /efi\boot\bootaa64.efi>> FreeBSD EFI boot block Loader path: /boot/loader.efi Initializing modules: ZFS UFS Load Path: /efi\boot\bootaa64.efi Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(1,0x01,0,0x800,0x19000) Probing 3 block devices...... done ZFS found no pools UFS found no partitionsFailed to load '/boot/loader.efi'panic: No bootable partitions found!## Application failed, r = 1EFI LOAD FAILED: continuing...MMC Device 0 not foundno mmc device at slot 0starting USB...No working controllers foundUSB is stopped. Please issue 'usb start' first.starting USB...No working controllers foundethernet@ff540000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
There is a working image gor freebsd and opnsense for NanoPi R2S as since the rtl drivers were recently merged in freebsd.https://personalbsd.org/images/OPNsense-21.1-OpenSSL-aarch64-NanoPi-R2S-20210612.img.xz.Please donate to sergey for all his effort at personalbsd.orgFeel free to join telegram chat for opnsense on arm @personalbsdThanks.
I would like to try the image on R4S, @spikerguy Can you link to the telegram chat? I couldn't find it.
I have recently built a version 21.1 test image for rpi3 (may also work on rpi4).Feel free to try it, and don't forget to modify config.txt before the first run .------------update on 2021-02-24An updated image is now out, which works properly on rpi3b+ with the advice of @testo_cz.Moreover, after the first boot, add `hw.uart.console=""` to /boot/loader.conf.local or the console will goes nowhere in the next boot.Finally, you can use https://ftp.yrzr.tk/opnsense/ as the Repo to get almost all the plugins as if on amd64. Edit /usr/local/etc/pkg/repos/OPNsense.conf:Code: [Select]OPNsense: { fingerprints: "/usr/local/etc/pkg/fingerprints/OPNsense", url: "https://ftp.yrzr.tk/opnsense/${ABI}/21.1/latest", signature_type: "NONE", mirror_type: "NONE", priority: 11, enabled: yes}------------update on 2021-03-25Thanks to @nekoprog's code and @testo_cz's advice, the RPI3 images now work fine with the serial console.I have also made a rough introduction to the images on https://www.yrzr.tk/opnsense-images-for-aarch64.
OPNsense: { fingerprints: "/usr/local/etc/pkg/fingerprints/OPNsense", url: "https://ftp.yrzr.tk/opnsense/${ABI}/21.1/latest", signature_type: "NONE", mirror_type: "NONE", priority: 11, enabled: yes}
FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 06:06:55 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
mmcsd0: Error indicated: 1 Timeoutmmcsd0: Error indicated: 1 Timeoutmmcsd0: Error indicated: 1 Timeoutmmcsd0: Error indicated: 1 Timeoutmmcsd0: Error indicated: 1 Timeoutmountroot: waiting for device /dev/ufs/OPNsense...Mounting from ufs:/dev/ufs/OPNsense failed with error 19.Loader variables: vfs.root.mountfrom=ufs:/dev/ufs/OPNsense vfs.root.mountfrom.options=rwManual root filesystem specification: <fstype>:<device> [options] Mount <device> using filesystem <fstype> and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:zroot/ROOT/default cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) <empty line> Abort manual inputmountroot>
Quote from: yrzr on February 09, 2021, 11:04:24 amI have recently built a version 21.1 test image for rpi3 (may also work on rpi4).Feel free to try it, and don't forget to modify config.txt before the first run .------------update on 2021-02-24An updated image is now out, which works properly on rpi3b+ with the advice of @testo_cz.Moreover, after the first boot, add `hw.uart.console=""` to /boot/loader.conf.local or the console will goes nowhere in the next boot.Finally, you can use https://ftp.yrzr.tk/opnsense/ as the Repo to get almost all the plugins as if on amd64. Edit /usr/local/etc/pkg/repos/OPNsense.conf:Code: [Select]OPNsense: { fingerprints: "/usr/local/etc/pkg/fingerprints/OPNsense", url: "https://ftp.yrzr.tk/opnsense/${ABI}/21.1/latest", signature_type: "NONE", mirror_type: "NONE", priority: 11, enabled: yes}------------update on 2021-03-25Thanks to @nekoprog's code and @testo_cz's advice, the RPI3 images now work fine with the serial console.I have also made a rough introduction to the images on https://www.yrzr.tk/opnsense-images-for-aarch64.Thanks @yrzr for this amazing work and for hosting the arm64 repo! I have opnsense 21.7 up and running happily on my rpi4 under ESXi.Only thing I was wondering is if there is a reason the "os-vmware" plugin isn't available in your repo? It would be great to get vmware tools going too. I can have a go at compiling and installing vmwtools by hand, but it would be even better if this was possible through opnsense's ui.Many thanks!
The plugin depends on open-vm-tools-nox11, currently not supported on aarch64.However, there are patches out there that you can install on aarch64. See https://vincerants.com/open-vm-tools-on-freebsd-under-vmware-esxi-arm-fling/.Quote from: dsbibby on August 06, 2021, 09:47:58 amQuote from: yrzr on February 09, 2021, 11:04:24 amI have recently built a version 21.1 test image for rpi3 (may also work on rpi4).Feel free to try it, and don't forget to modify config.txt before the first run .------------update on 2021-02-24An updated image is now out, which works properly on rpi3b+ with the advice of @testo_cz.Moreover, after the first boot, add `hw.uart.console=""` to /boot/loader.conf.local or the console will goes nowhere in the next boot.Finally, you can use https://ftp.yrzr.tk/opnsense/ as the Repo to get almost all the plugins as if on amd64. Edit /usr/local/etc/pkg/repos/OPNsense.conf:Code: [Select]OPNsense: { fingerprints: "/usr/local/etc/pkg/fingerprints/OPNsense", url: "https://ftp.yrzr.tk/opnsense/${ABI}/21.1/latest", signature_type: "NONE", mirror_type: "NONE", priority: 11, enabled: yes}------------update on 2021-03-25Thanks to @nekoprog's code and @testo_cz's advice, the RPI3 images now work fine with the serial console.I have also made a rough introduction to the images on https://www.yrzr.tk/opnsense-images-for-aarch64.Thanks @yrzr for this amazing work and for hosting the arm64 repo! I have opnsense 21.7 up and running happily on my rpi4 under ESXi.Only thing I was wondering is if there is a reason the "os-vmware" plugin isn't available in your repo? It would be great to get vmware tools going too. I can have a go at compiling and installing vmwtools by hand, but it would be even better if this was possible through opnsense's ui.Many thanks!