version 1.23, 2016/04/15 23:40:58 |
version 1.24, 2016/04/16 02:47:46 |
|
|
|
|
<p> |
<p> |
<b>Building from source:</b> |
<b>Building from source:</b> |
At this moment, the kernel has to be in the FAT boot partition, not the |
At this moment, the kernel has to be in the FAT or ext2 boot partition, not |
root of the file system like other OpenBSD platforms, and this kernel |
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. |
must be in a format required by the U-Boot boot loader. |
So, after building your kernel, you must go through some special steps: |
So, after building your kernel, you must go through some special steps: |
|
|
<blockquote><pre> |
<blockquote><pre> |
# <b>config GENERIC</b> |
# <b>config GENERIC</b> |
# <b>cd ../compile/GENERIC</b> |
# <b>cd ../compile/GENERIC</b> |
# <b>make clean; make</b> |
# <b>make clean</b> |
# <b>make bsd.OMAP.umg</b> |
# <b>make bsd.OMAP.umg</b> |
# <b>mount /dev/sd0i /mnt</b> <i># assuming your FAT partition is 'i'</i> |
# <b>mount /dev/sd0i /mnt</b> <i># assuming your FAT partition is 'i'</i> |
# <b>cp bsd.OMAP.umg /mnt/bsd.umg</b> |
# <b>cp bsd.OMAP.umg /mnt/bsd.umg</b> |
</pre></blockquote> |
</pre></blockquote> |
|
|
<b>No real time clock:</b> Many of the armv7 devices do not have a |
<b>No real time clock:</b> Many of the armv7 devices do not have a |
battery backed real time clock. |
battery-backed real time clock. For this reason, using the <tt>-s</tt> |
For this reason, using the "-s" option of |
option of <a href="faq/faq6.html#OpenNTPD">OpenNTPD</a> may be desirable. |
<a href="faq/faq6.html#OpenNTPD">OpenNTPD</a> may be desirable. |
|
|
|
<p> |
<p> |
<b>Distribution kernels must be converted before use:</b> |
<b>Using U-Boot:</b> |
The distribution kernels are standard kernels, which can be used |
|
for the <tt>-N</tt> option of |
|
<a href="http://man.openbsd.org/?query=ps">ps(1)</a>, |
|
<a href="http://man.openbsd.org/?query=vmstat">vmstat(8)</a>, |
|
<a href="http://man.openbsd.org/?query=dmesg">dmesg(8)</a>, |
|
<a href="http://man.openbsd.org/?query=iostat">iostat(8)</a> |
|
and similar applications, but cannot be booted directly by the U-Boot |
|
bootloader used on this platform. |
|
|
|
This can be done using |
|
<a href="http://man.openbsd.org/?query=mkuboot">mkuboot(8)</a> |
|
|
|
<p> |
|
Typical operation is something along these lines for OMAP/beagle: |
|
|
|
<blockquote><pre> |
|
# <b>mkuboot -a arm -o linux -e 0x80300000 -l 0x80300000 <i>bsd</i> bsd.umg</b> |
|
</pre></blockquote> |
|
|
|
for i.MX6: |
|
|
|
<blockquote><pre> |
|
# <b>mkuboot -a arm -o linux -e 0x10300000 -l 0x10300000 <i>bsd</i> bsd.umg</b> |
|
</pre></blockquote> |
|
|
|
where <i>bsd</i> is the name of the kernel you are converting. |
|
|
|
<p> |
|
<b>U-Boot tricks:</b> |
|
<ul> |
<ul> |
<li>Booting single user (OMAP/beagle): |
<li>Booting single user (OMAP/beagle): |
|
|
<blockquote><pre> |
<blockquote><pre> |
U-Boot# mmc rescan |
U-Boot# mmc rescan |
U-Boot# setenv bootargs sd0 -s |
U-Boot# setenv bootargs sd0 -s |
U-Boot# fatload mmc 0 0x82800000 bsd.umg |
U-Boot# load mmc 0 0x82800000 bsd.umg |
U-Boot# bootm 0x82800000 |
U-Boot# bootm 0x82800000 |
</pre></blockquote> |
</pre></blockquote> |
|
|
<li>Booting single user (i.MX6, mmc storage): |
|
|
|
<blockquote><pre> |
|
U-Boot# mmc rescan |
|
U-Boot# setenv bootargs sd0 -s |
|
U-Boot# fatload mmc 0 0x12000000 bsd.umg |
|
U-Boot# bootm 0x12000000 |
|
</pre></blockquote> |
|
|
|
<li>Booting single user (i.MX6, SATA storage): |
<li>Booting single user (i.MX6, SATA storage): |
|
|
<blockquote><pre> |
<blockquote><pre> |
U-Boot# sata init |
U-Boot# sata init |
U-Boot# setenv bootargs sd0 -s |
U-Boot# setenv bootargs sd0 -s |
U-Boot# fatload sata 0 0x12000000 bsd.umg |
U-Boot# load sata 0 0x12000000 bsd.umg |
U-Boot# bootm 0x12000000 |
U-Boot# bootm 0x12000000 |
</pre></blockquote> |
</pre></blockquote> |
|
|
|
|
|
|
<p> |
<p> |
The latest supported OpenBSD/armv7 release is |
The latest supported OpenBSD/armv7 release is |
<a href="58.html">OpenBSD 5.9</a>. |
<a href="59.html">OpenBSD 5.9</a>. |
Here are the |
Here are the |
<a href="http://ftp.OpenBSD.org/pub/OpenBSD/5.9/armv7/INSTALL.armv7"> |
<a href="http://ftp.OpenBSD.org/pub/OpenBSD/5.9/armv7/INSTALL.armv7"> |
OpenBSD/armv7 5.9 installation instructions</a>. |
OpenBSD/armv7 5.9 installation instructions</a>. |