On Tue, Jul 14, 2009 at 7:21 PM, Andrew Dennison<[email protected]> wrote: > On Tue, Jul 14, 2009 at 5:40 PM, xaxes<[email protected]> wrote: >> I got the black screen, the qemu-mon and the serial console, but only on >> the qemu-mon I am able to type sth. And I have no idea how to get it >> over. " Note: Ctrl-alt-3 opens a terminal," => few lines above he wrote >> it'll oben the serial console.. Iam very confused ;) >> >> In the official #prex -Channel on Freenode "core-ix" wrote me: >> >> " >> 19:47:39 < core-ix> it does not work for some reason >> 19:47:48 < core-ix> even when moving serial to a tcp socket >> " >> I hope there is sb who could tell me where I had to start over, cause I >> dont know the default behavior of qemu with -kernel flag ;) > > Hi Phil, > > Sounds like a good question, I briefly tried to run the arm build with > Q (qemu for osx) and got similar behaviour. I decided to just push my > changes and let someone else test, it the spirit of "works for me" :) > > I suspect you need to hook up gdb and go from there but emulators are > boring - I need to get some arm hardware... > > Andrew >
I had a quick look and it seems that qemu is fairly easy to use after all. I'm experimenting on my laptop (OSX) so here is the command I used to start prex (Q is qemu for osx): /Applications/Q.app/Contents/MacOS/arm-softmmu.app/Contents/MacOS/arm-softmmu -L . -s -S -kernel prexos note I added -s -S to start gdbserver and wait for gdb to connect I build arm-elf-gdb so I could see what was going on: $ cd ~/src $ tar -jxf ~/Desktop/gdb-6.8.tar.bz2 $ mkdir gdb-arm && cd gdb-arm $ ../gdb-6.8/configure --target=arm-elf --prefix=$HOME --disable-nls $ make -s && make install Now use gdb: $ cd ~/src/build/arm-integrator $ arm-elf-gdb (gdb) target remote localhost:1234 (gdb) symbol-file boot/bootldr.elf (gdb) etc... Turns out that the link order for the bootloader has changed, and boot_entry was in the wrong location. The existing prex linker scripts and head.S located boot_entry implicitly, hardly ideal and probably broken by makefile changes. I have pushed up a experimental branch: http://github.com/AndrewD/prex/commits/arm-fixes First fix is committed and allows the bootloader to start, by explicitly linking boot_entry at the start of .text. ctrl-alt 3 now shows the prex loader starting, but it stops when loading the first task. I'll do more debugging tomorrow unless someone else beats me to it. Andrew ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Prex-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/prex-devel
