On Sat, Jul 18, 2009 at 6:32 PM, xaxes<[email protected]> wrote:
> Thanks Andrew!
> Now my qemu shows me in the serial0-dialog "Entering Kernel.."
> But after this, there is no CMD-Shell. What did I wrong?

not sure...

Have you checked out the new version :) I've attached full output of
building all arm variants and running the arm-integrator build on osx.
Note I used my 'allconfig' script to configure all targets but only
built the arm targets. I passed the '-nographic' output to qemu to get
the output on the console to paste in an email, without this you get
output on the ctrl-alt-3 serial console.

1) check you are up to date:
$ git fetch origin

If you have a recently cloned tree this should update your master
branch to match origin/master

$ git checkout master
$ git show
commit d1de57d2c41db9eb254da85f17eb6560e3b4b185
Author: Andrew Dennison <[email protected]>
Date:   Wed Jul 15 21:58:15 2009 +1000

    Add missing __driver_entry tags to fix driver loading

diff --git a/dev/arm/integrator/rtc.c b/dev/arm/integrator/rtc.c
index 2559f05..3e5d04c 100644
--- a/dev/arm/integrator/rtc.c
+++ b/dev/arm/integrator/rtc.c
@@ -56,7 +56,7 @@ static int rtc_init(void);
 /*
  * Driver structure
  */
-struct driver rtc_drv = {
+struct driver rtc_drv __driver_entry = {
        /* name */      "Realtime Clock",
        /* order */     4,
        /* init */      rtc_init,

[output abbreviated]

If you don't get the above then your local branches may not be
'clean'. This isn't a problem, just needs a little manual
intervention. For now you could just create a new branch 'test' that
tracks origin/master:

$ git checkout -b test origin/master

If your local directory is not clean (has edits) you can just commit
all edits to a temporary branch 'tmp' first, then repeat the above
command:

$ git checkout -b tmp
$ git commit -a -m "hacking on prex"


Now to configure all targets to be build 'out of tree':

$ ./allconfig $HOME/src/build

Now build all arm variants silently (suppress normal make output) and
invoke make in parallel to speed up the build, using 'time' to show
how fast it is. Note there is only one warning in the build (I have a
pending commit to fix this):

$ for d in $HOME/src/build/arm* ; do  time make -sj3 BUILDDIR=$d ; done
pm.c:171: warning: 'idle_timeout' defined but not used
init
cmdbox
LICENSE
hello
prex
dev.ko
boot
proc
fs
exec
ramdisk.a

real    0m25.181s
user    0m22.833s
sys     0m18.674s
pm.c:171: warning: 'idle_timeout' defined but not used
init
cmdbox
LICENSE
hello
prex
dev.ko
boot
proc
fs
exec
ramdisk.a

real    0m25.076s
user    0m23.498s
sys     0m19.004s
pm.c:171: warning: 'idle_timeout' defined but not used
init
cmdbox
LICENSE
hello
prex
dev.ko
boot
proc
fs
exec
ramdisk.a

real    0m25.730s
user    0m24.005s
sys     0m19.482s

$ /Applications/Q.app/Contents/MacOS/arm-softmmu.app/Contents/MacOS/arm-softmmu
-L .  -nographic -kernel ../build/arm-integrator/prexos
2009-07-19 08:30:08.157 arm-softmmu[9685] KO
Prex Boot Loader V1.00
loading: hdr=00012008 module=00003164 name=prex
loading: hdr=0001b758 module=000031a0 name=dev.ko
add-symbol-file dev.ko 0008c034 -s .rodata 0008d778 -s .driver_table
0008d940 -s .data 0008d994 -s .bss 0008da38
loading: hdr=0001e4d0 module=000031dc name=boot
loading: hdr=0001f66c module=00003218 name=proc
loading: hdr=000238bc module=00003254 name=fs
loading: hdr=0002cc64 module=00003290 name=exec
bootdisk base=00030f10 size=0000de9c
kernel_entry=00080578
Entering kernel...

Prex version 0.8.1 for arm-integrator (Jul 19 2009)
Free pages:
 start      end      size
 --------   -------- --------
 00000000 - 00030000     192K
 0003f000 - 00080000     260K
 000a8000 - 00400000    3424K
 used=164K free=3876K total=4040K
Time slice is 50 msec
IRQ6 attached priority=10
Clock rate: 1000 ticks/sec
Load static drivers
Calibrating delay loop... (qemu) ok count=464251
Prex driver module built: Jul 19 2009
Initializing NULL device
Initializing Zero device
Initializing Power Management
pm: Default power policy is performance mode
Initializing Realtime Clock
Initializing Serial Console
IRQ1 attached priority=1
Initializing RAM disk
RAM disk at 0x80030f10 (55K bytes)
Initializing TTY device
Driver initialized
Loading task: boot
Loading task: proc
Loading task: fs
Loading task: exec
Starting Bootstrap Server
main:Starting Process Server
main:Starting File System Server
main:Starting Exec Server
main:boot: Mounting file systems
VFS: Mounting ramfs dev= dir=/
VFS: Mounting devfs dev= dir=/dev
main:VFS: Mounting arfs dev=/dev/ram0 dir=/boot
VFS: Mounting fifofs dev= dir=/fifo
main:boot: Run init process
Prex version 0.8.1 (arm-integrator)
[prex:/]#

------------------------------------------------------------------------------
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

Reply via email to