Determine the file system by using the file-utility.
file image.imgUse mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0| 10 bbase=&FD00 | |
| 20 fbase=bbase-3584 | |
| 30 cbase=fbase-2048 | |
| 40 iobyte=&0003 | |
| 50 cdisk=&0004 | |
| 60 bdoscall=&0005 | |
| 70 bioscall=&0000 | |
| 80 DIM code 4096 | |
| 90 FOR pass=4 TO 7 STEP 3 | |
| 100 P%=0 |
| #!/bin/bash | |
| # | |
| # Make a FreeBSD bootable sdcard for NanoPi Neo3. | |
| # The idea is to mix an official ROCK64 snapshot with U-Boot for Neo3 board from Armbian project. | |
| # This script is based on the original forum post at | |
| # https://forums.FreeBSD.org/threads/nanopi-neo-3-rockchip-rk3328.76449/post-493043 | |
| # | |
| set -e | |
| if [[ $UID != 0 ]]; then |
Determine the file system by using the file-utility.
file image.imgUse mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0