--- /var/www/www.edgebsd.org/wiki/port-lm32 2014/02/24 11:37:26 1.1
+++ /var/www/www.edgebsd.org/wiki/port-lm32 2014/02/24 11:59:59 1.2
@@ -1,17 +1,11 @@
-<p>
-How to build EdgeBSD/lm32:
-
-</p><ul><li>
- Fetch the source: git clone http://git.edgebsd.org/EdgeBSD/edgebsd-src.git
-</li><li>
- Go to my branch: cd edgebsd-src && git checkout fallen-port-milkymist
-</li><li>
- Build the lm32 cross toolchain: ./build.sh -m milkymist -U tools
-</li><li>
- Build EdgeBSD kernel: ./build.sh -m milkymist -U kernel=GENERIC
-</li></ul>
+<h3>Build instructions</h3>
+<p>How to build EdgeBSD/lm32:</p>
+<ul><li>Fetch the source: <pre>$ git clone http://git.edgebsd.org/EdgeBSD/edgebsd-src.git</pre></li>
+<li>Go to my branch: <pre>$ cd edgebsd-src && git checkout fallen-port-milkymist</pre></li>
+<li>Build the lm32 cross toolchain: <pre>$ ./build.sh -m milkymist -U tools</pre></li>
+<li>Build EdgeBSD kernel: <pre>$ ./build.sh -m milkymist -U kernel=GENERIC</pre></li></ul>
-Note, if you are rebuilding after a modification or a git pull, this is faster: ./build.sh -m milkymist -U -u kernel=GENERIC
+<p>Note, if you are rebuilding after a modification or a <tt>git pull</tt>, this is faster: <pre>$ ./build.sh -m milkymist -U -u kernel=GENERIC</pre></p>
@@ -19,8 +13,8 @@
Run EdgeBSD/lm32 in qemu:
</p><ul><li>
- ./lm32-softmmu/qemu-system-lm32 -M milkymist -cpu lm32-full-mmu
--nographic -kernel
+ ./lm32-softmmu/qemu-system-lm32 -M milkymist -cpu lm32-full-mmu
+-nographic -kernel
/path/to/edgebsd-src/sys/arch/milkymist/compile/obj/GENERIC/netbsd
</li></ul>
@@ -28,7 +22,7 @@
<p>
Build Qemu for Milkymist SoC with support for lm32-mmu:
</p><ul><li>
- git clone https://github.com/fallen/qemu.git && cd qemu
+ git clone https://github.com/fallen/qemu.git && cd qemu
&& ./configure --target-list=lm32-softmmu && make
</li></ul>
@@ -38,12 +32,12 @@
</p><ul><li>
Build EdgeBSD kernel with debug information: DEBUG=-g ./build.sh -m milkymist -U kernel=GENERIC
</li><li>
- ./lm32-softmmu/qemu-system-lm32 -M milkymist -cpu lm32-full-mmu
--nographic -s -S -kernel
+ ./lm32-softmmu/qemu-system-lm32 -M milkymist -cpu lm32-full-mmu
+-nographic -s -S -kernel
/path/to/edgebsd-src/sys/arch/milkymist/compile/obj/GENERIC/netbsd.gdb
</li><li>
- gdb -x
-/path/to/edgebsd-src/sys/arch/milkymist/compile/obj/GENERIC/.gdbinit
+ gdb -x
+/path/to/edgebsd-src/sys/arch/milkymist/compile/obj/GENERIC/.gdbinit
/path/to/edgebsd-src/sys/arch/milkymist/compile/obj/GENERIC/netbsd.gdb
</li><li>
(inside gdb) target remote :1234