I have FreeBSD 12.3 BananaPi image running and I upgraded to FreeBSD 13-RELEASE-GENERICSD-armv7 image.
Since this is a generic image it must be flashed with uboot after flashing FreeBSD 13-RELEASE to it.
Write FreeBSD image to SD card
dd if=FreeBSD-13.0-RELEASE-arm-armv7-GENERICSD.img of=/dev/da0 bs=1M conv=sync status=progress
You should
After I like to mount EFI partition and add uboot DTB file and delete /dtb and all root files except ubldr.bin
Then copy over the Uboot DTB file from ports to the root of EFI partition:
/usr/ports/sysutils/u-boot-bananapi/work/u-boot-2021.07/arch/arm/dts/sun7i-a20-bananapi.dtb
That's it for EFI partition. Now you can customize root mount.
Now if using an SATA drive you might want root on SATA.
If so don't waste time customizing partition mmcsd0s2a.
You will be flashing the GENERICSD image to the SATA drive.
I first boot up my new FreeBSD-13-RELEASE SD-Card to test and it boots up to login on serial console.
Now for the SATA drive work.
Return to Uboot by rebooting FreeBSD. Now enter u-boot command prompt on reboot.
We are checking out our devices.
OK No eMMC here. Only SD Card.
Lets check out SATA.
I see this this board uses SCSI. Lets try that.
Time to hook up the SATA drive to see if it shows...
Since this is a generic image it must be flashed with uboot after flashing FreeBSD 13-RELEASE to it.
Write FreeBSD image to SD card
dd if=FreeBSD-13.0-RELEASE-arm-armv7-GENERICSD.img of=/dev/da0 bs=1M conv=sync status=progress
You should
make
port sysutils/u-boot-bananapi. Now uboot flash. dd if=u-boot-sunxi-with-spl.bin of=/dev/da0 bs=1k seek=8 conv=sync
After I like to mount EFI partition and add uboot DTB file and delete /dtb and all root files except ubldr.bin
Then copy over the Uboot DTB file from ports to the root of EFI partition:
/usr/ports/sysutils/u-boot-bananapi/work/u-boot-2021.07/arch/arm/dts/sun7i-a20-bananapi.dtb
That's it for EFI partition. Now you can customize root mount.
Now if using an SATA drive you might want root on SATA.
If so don't waste time customizing partition mmcsd0s2a.
You will be flashing the GENERICSD image to the SATA drive.
I first boot up my new FreeBSD-13-RELEASE SD-Card to test and it boots up to login on serial console.
Code:
U-Boot SPL 2021.07 (Jan 14 2022 - 21:10:47 -0500)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1
U-Boot 2021.07 (Jan 14 2022 - 21:10:47 -0500) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
Model: LeMaker Banana Pi
I2C: ready
DRAM: 1 GiB
MMC: mmc@1c0f000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... Setting up a 720x576i composite-pal console (overscan 32x20)
In: serial
Out: vidconsole
Err: vidconsole
Net: eth0: ethernet@1c50000
starting USB...
Bus usb@1c14000: USB EHCI 1.00
Bus usb@1c14400: USB OHCI 1.0
Bus usb@1c1c000: USB EHCI 1.00
Bus usb@1c1c400: USB OHCI 1.0
scanning bus usb@1c14000 for devices... 1 USB Device(s) found
scanning bus usb@1c14400 for devices... 1 USB Device(s) found
scanning bus usb@1c1c000 for devices... 1 USB Device(s) found
scanning bus usb@1c1c400 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
Now for the SATA drive work.
Return to Uboot by rebooting FreeBSD. Now enter u-boot command prompt on reboot.
We are checking out our devices.
Code:
=> mmc list
mmc@1c0f000: 0 (SD)
Lets check out SATA.
Code:
=> sata
Unknown command 'sata' - try 'help'
I see this this board uses SCSI. Lets try that.
Code:
=> scsi
scsi - SCSI sub-system
Usage:
scsi reset - reset SCSI controller
scsi info - show available SCSI devices
scsi scan - (re-)scan SCSI bus
scsi device [dev] - show or set current device
scsi part [dev] - print partition table of one or all SCSI devices
scsi read addr blk# cnt - read `cnt' blocks starting at block `blk#'
to memory address `addr'
scsi write addr blk# cnt - write `cnt' blocks starting at block
`blk#' from memory address `addr'
Time to hook up the SATA drive to see if it shows...