changeset 327:61c9df5bffce

Changed emulated board to cortex a8 board
author Windel Bouwman
date Sat, 01 Feb 2014 17:21:21 +0100
parents 2fa27c44e3c9
children 0bb16d2a5699
files test/bare/bare.bin test/bare/make.sh test/bare/qemutst.sh test/bare/test.c
diffstat 4 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
Binary file test/bare/bare.bin has changed
--- a/test/bare/make.sh	Sat Feb 01 16:54:33 2014 +0100
+++ b/test/bare/make.sh	Sat Feb 01 17:21:21 2014 +0100
@@ -1,7 +1,7 @@
 
 
-arm-none-eabi-as -mcpu=arm926ej-s -g startup.s -o startup.o
-arm-none-eabi-gcc -c -mcpu=arm926ej-s -g test.c -o test.o
+arm-none-eabi-as -mcpu=cortex-a8 -g startup.s -o startup.o
+arm-none-eabi-gcc -c -mcpu=cortex-a8 -g test.c -o test.o
 arm-none-eabi-ld -T test.ld test.o startup.o -o test.elf
 arm-none-eabi-objcopy -O binary test.elf bare.bin
 
--- a/test/bare/qemutst.sh	Sat Feb 01 16:54:33 2014 +0100
+++ b/test/bare/qemutst.sh	Sat Feb 01 17:21:21 2014 +0100
@@ -6,7 +6,7 @@
 
 echo "Trying to run versatilePB board"
 
-qemu-system-arm -M versatilepb -m 128M -nographic -kernel bare.bin \
+qemu-system-arm -M realview-pb-a8 -m 128M -nographic -kernel bare.bin \
     -monitor unix:vm.sock,server,nowait -serial file:output.txt &
 
 sleep 2
@@ -14,3 +14,7 @@
 # Send quit to the monitor application
 echo "quit" | socat stdio UNIX-CONNECT:vm.sock
 
+echo "Output from terminal:"
+cat output.txt
+echo ""
+
--- a/test/bare/test.c	Sat Feb 01 16:54:33 2014 +0100
+++ b/test/bare/test.c	Sat Feb 01 17:21:21 2014 +0100
@@ -1,5 +1,5 @@
 
-volatile unsigned int * const UART0DR = (unsigned int*)0x101f1000;
+volatile unsigned int * const UART0DR = (unsigned int*)0x10009000;
 
 void print_uart0(const char*s)
 {