# newfs_msdos /dev/rsd1i
/dev/rsd1i: 130780 sectors in 32695 FAT16 clusters (2048 bytes/cluster)
bps=512 spc=4 res=1 nft=2 rde=512 mid=0xf8 spf=128 spt=63 hds=255 hid=2048 bsec=131072
# mount_msdos -l /dev/sd1i /mnt
# mkdir -p /mnt/efi/boot
# cd /mnt/efi/boot
# ftp http://ftp.jaist.ac.jp/pub/OpenBSD/snapshots/armv7/BOOTARM.EFI
Trying 150.65.7.130...
Requesting http://ftp.jaist.ac.jp/pub/OpenBSD/snapshots/armv7/BOOTARM.EFI
100% |**************************************************| 65556 00:00
65556 bytes received in 0.12 seconds (523.64 KB/s)
# cp /path/to/u-boot-2016.05/arch/arm/dts/sun7i-a20-bananapi.dtb /mnt
# cd
# umount /mnt
#
# disklabel -E sd1
Label editor (enter '?' for help at any prompt)
> p
OpenBSD area: 133120-15523840; size: 15390720; free: 15390720
# size offset fstype [fsize bsize cpg]
c: 15523840 0 unused
i: 131072 2048 MSDOS
> a b
offset: [133120]
size: [15390720] 1G
Rounding size to cylinder (16065 sectors): 2099915
FS type: [swap]
> a a
offset: [2233035]
size: [13290805]
FS type: [4.2BSD]
Rounding offset to bsize (32 sectors): 2233056
Rounding size to bsize (32 sectors): 13290784
> p
OpenBSD area: 133120-15523840; size: 15390720; free: 21
# size offset fstype [fsize bsize cpg]
a: 13290784 2233056 4.2BSD 2048 16384 1
b: 2099915 133120 swap
c: 15523840 0 unused
i: 131072 2048 MSDOS
> w
> q
No label changes.
# newfs /dev/rsd1a
/dev/rsd1a: 6489.6MB in 13290784 sectors of 512 bytes
33 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
super-block backups (for fsck -b #) at:
32, 414688, 829344, 1244000, 1658656, 2073312, 2487968, 2902624, 3317280,
3731936, 4146592, 4561248, 4975904, 5390560, 5805216, 6219872, 6634528,
7049184, 7463840, 7878496, 8293152, 8707808, 9122464, 9537120, 9951776,
10366432, 10781088, 11195744, 11610400, 12025056, 12439712, 12854368,
13269024,
# mount /dev/sd1a /mnt
# cd /mnt
# ftp http://ftp.jaist.ac.jp/pub/OpenBSD/snapshots/armv7/bsd
Trying 150.65.7.130...
Requesting http://ftp.jaist.ac.jp/pub/OpenBSD/snapshots/armv7/bsd
100% |**************************************************| 4424 KB 00:04
4530384 bytes received in 4.30 seconds (1.01 MB/s)
# ftp http://ftp.jaist.ac.jp/pub/OpenBSD/snapshots/armv7/bsd.rd
Trying 150.65.7.130...
Requesting http://ftp.jaist.ac.jp/pub/OpenBSD/snapshots/armv7/bsd.rd
100% |**************************************************| 10198 KB 00:06
10443500 bytes received in 6.21 seconds (1.60 MB/s)
# cd
# umount /mnt
#
|