=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/armv7.html,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- www/armv7.html 2016/03/29 12:52:11 1.22 +++ www/armv7.html 2016/04/15 23:40:58 1.23 @@ -124,6 +124,88 @@ on imx, panda and sunxi +
+Building from source: +At this moment, the kernel has to be in the FAT boot partition, not the +root of the file system like other OpenBSD platforms, and this kernel +must be in a format required by the U-Boot boot loader. +So, after building your kernel, you must go through some special steps: + +
+ +No real time clock: Many of the armv7 devices do not have a +battery backed real time clock. +For this reason, using the "-s" option of +OpenNTPD may be desirable. + ++# config GENERIC +# cd ../compile/GENERIC +# make clean; make +# make bsd.OMAP.umg +# mount /dev/sd0i /mnt # assuming your FAT partition is 'i' +# cp bsd.OMAP.umg /mnt/bsd.umg +
+Distribution kernels must be converted before use: +The distribution kernels are standard kernels, which can be used +for the -N option of +ps(1), +vmstat(8), +dmesg(8), +iostat(8) +and similar applications, but cannot be booted directly by the U-Boot +bootloader used on this platform. + +This can be done using +mkuboot(8) + +
+Typical operation is something along these lines for OMAP/beagle: + +
+ +for i.MX6: + ++# mkuboot -a arm -o linux -e 0x80300000 -l 0x80300000 bsd bsd.umg +
+ +where bsd is the name of the kernel you are converting. + ++# mkuboot -a arm -o linux -e 0x10300000 -l 0x10300000 bsd bsd.umg +
+U-Boot tricks: +
+ ++U-Boot# mmc rescan +U-Boot# setenv bootargs sd0 -s +U-Boot# fatload mmc 0 0x82800000 bsd.umg +U-Boot# bootm 0x82800000 +
+ ++U-Boot# mmc rescan +U-Boot# setenv bootargs sd0 -s +U-Boot# fatload mmc 0 0x12000000 bsd.umg +U-Boot# bootm 0x12000000 +
+ ++U-Boot# sata init +U-Boot# setenv bootargs sd0 -s +U-Boot# fatload sata 0 0x12000000 bsd.umg +U-Boot# bootm 0x12000000 +
The latest supported OpenBSD/armv7 release is -OpenBSD 5.8. +OpenBSD 5.9. Here are the - -OpenBSD/armv7 5.8 installation instructions -. + +OpenBSD/armv7 5.9 installation instructions.
Snapshots are made available from time to time, in