port-lm32

Wiki page by fallen on 24/02/2014 12:37:26
--- /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 &amp;&amp; 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 &amp;&amp; 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 &amp;&amp; cd qemu
+	git clone https://github.com/fallen/qemu.git &amp;&amp; cd qemu
 &amp;&amp; ./configure --target-list=lm32-softmmu &amp;&amp; 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
Revisions
NameDateAuthorMessage
1.6 (diff)fallen
1.5 (diff)
1.4 (diff)
1.3 (diff)khorben
1.2 (diff)khorben
1.1fallen