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:59:59	1.2
+++ /var/www/www.edgebsd.org/wiki/port-lm32	2014/02/24 12:08:14	1.3
@@ -8,37 +8,21 @@
 <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>


+<h3>Test instructions</h3>

-<p>
-Run EdgeBSD/lm32 in qemu:
-
-</p><ul><li>
-	./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>
-
-
-<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
-&amp;&amp; ./configure --target-list=lm32-softmmu &amp;&amp; make
+<p>Build Qemu for Milkymist SoC with support for lm32-mmu:</p>
+<pre>$ git clone https://github.com/fallen/qemu.git
+$ cd qemu
+$ ./configure --target-list=lm32-softmmu
+$ make</pre>
+
+<p>Run EdgeBSD/lm32 in qemu:</p>
+<pre>$ ./lm32-softmmu/qemu-system-lm32 -M milkymist -cpu lm32-full-mmu -nographic -kernel /path/to/edgebsd-src/sys/arch/milkymist/compile/obj/GENERIC/netbsd</pre>
+
+
+<p>Debug with Qemu and GDB:</p>
+<ul><li>Build EdgeBSD kernel with debug information: <pre>$ DEBUG=-g ./build.sh -m milkymist -U kernel=GENERIC
+$ ./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
+$ 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</pre>
+and then inside gdb: <pre> target remote :1234</pre>
 </li></ul>
-
-
-<p>
-Debug with Qemu and GDB:
-</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
-/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
-/path/to/edgebsd-src/sys/arch/milkymist/compile/obj/GENERIC/netbsd.gdb
-</li><li>
-	(inside gdb) target remote :1234
-</li></ul>
\ No newline at end of file
Revisions
NameDateAuthorMessage
1.6 (diff)fallen
1.5 (diff)
1.4 (diff)
1.3 (diff)khorben
1.2 (diff)khorben
1.1fallen