Dear Adam/L4hackers,

I've tried running realview-eb against L4 kernel built for arm926EJ and it runs smoothly without any glitches :)
I was trying to run L4 for the smp variant (esp cortex a9 to be precise).

As per the qemu documentation 

"realview-eb" - doesn't support support cortex a9, the one which i needed was with smp more than 1 (2 or 4)
{ Eg: novino@naveen-linux:~/L4/l4re-core-2011020417/src/l4/mybuild-realview-eb-a9/images$ qemu-system-arm -M realview-eb -cpu cortex-a9 -kernel bootstrap_hello.elf -m 256 -nographic -net nic -net user -smp 4
Number of SMP cpus requested (4), exceeds max cpus supported by machine `realview-eb' (1)
}

However when i try to run any variant of L4 built for cortex a9 i'm getting stuck at the time of execution.

The three variants i've tried are 

1) L4 - Cortex A9, realview-eb, other settings default. Qemu Board - realview-eb
novino@naveen-linux:~/L4/l4re-core-2011020417/src/l4/mybuild-realview-eb-a9/images$ qemu-system-arm -M realview-eb -cpu cortex-a9 -kernel bootstrap_hello.elf -m 256 -nographic -net nic -net user

L4 Bootstrapper
  Build: #3 Fri Feb 11 15:32:49 MVT 2011, 4.5.1
  Scanning up to 256 MB RAM
  Memory size is 256MB (00000000 - 10000000)
  RAM: 0000000000000000 - 000000000fffffff: 262144kB
  Total RAM: 256MB
  mod04: 010d3000-010f4450: hello
  mod03: 010b1000-010d2488: l4re
  mod02: 01073000-010b066c: moe
  mod01: 01061000-01072304: sigma0
  mod00: 01015000-010608b8: fiasco
  Moving 5 modules to 1100000 with offset eb000
  moving module 05 { 10d3000-10f4450 } -> { 11be000-11df450 }
  moving module 04 { 10b1000-10d2488 } -> { 119c000-11bd488 }
  moving module 03 { 1073000-10b066c } -> { 115e000-119b66c }
  moving module 02 { 1061000-1072304 } -> { 114c000-115d304 }
  moving module 01 { 1015000-10608b8 } -> { 1100000-114b8b8 }
  Scanning fiasco
  Scanning sigma0
  Scanning moe --init=rom/hello
  Relocated mbi to [0x100f000-0x100f0d6]
  Loading fiasco
  Loading sigma0
  Loading moe
  find kernel info page...
  found kernel info page at 0x2000
Regions of list regions
    [     1000,      19bf] {      9c0} Kern   fiasco
    [     2000,     5cfff] {    5b000} Kern   fiasco
    [    90000,     9e193] {     e194} Sigma0 sigma0
    [   140000,    18b48b] {    4b48c} Root   moe
    [  1000000,   10143eb] {    143ec} Boot   bootstrap
    [  100f000,   100f1d3] {      1d4} Root   Multiboot info
    [  119c000,   11df44f] {    43450} Root   Modules Memory
  API Version: (87) experimental
  Sigma0 config    ip:00090000 sp:01013044
  Roottask config  ip:00140088 sp:00000000
  Starting kernel fiasco at 00001000
----- Halts here, prior to cache config & board check

2) L4 - Cortex A9, realview-pbx-a9, other settings default. Qemu Board - realview-pbx
novino@naveen-linux:~/L4/l4re-core-2011020417/src/l4/mybuild-realview-pbx-a9/images$ qemu-system-arm -M realview-pbx-a9 -cpu cortex-a9 -kernel bootstrap_hello.elf -m 1024 -nographic -net nic -net user -smp 1

L4 Bootstrapper
  Build: #3 Thu Feb 10 19:06:41 MVT 2011, 4.5.1
  Scanning up to 256 MB RAM
  Memory size is 256MB (00000000 - 10000000)
  RAM: 0000000000000000 - 000000000fffffff: 262144kB
  Total RAM: 256MB
  mod04: 010d3000-010f4450: hello
  mod03: 010b1000-010d2488: l4re
  mod02: 01073000-010b066c: moe
  mod01: 01061000-01072304: sigma0
  mod00: 01015000-010608f8: fiasco
  Moving 5 modules to 1100000 with offset eb000
  moving module 05 { 10d3000-10f4450 } -> { 11be000-11df450 }
  moving module 04 { 10b1000-10d2488 } -> { 119c000-11bd488 }
  moving module 03 { 1073000-10b066c } -> { 115e000-119b66c }
  moving module 02 { 1061000-1072304 } -> { 114c000-115d304 }
  moving module 01 { 1015000-10608f8 } -> { 1100000-114b8f8 }
  Scanning fiasco
  Scanning sigma0
  Scanning moe --init=rom/hello
  Relocated mbi to [0x100f000-0x100f0d6]
  Loading fiasco
  Loading sigma0
  Loading moe
  find kernel info page...
  found kernel info page at 0x2000
Regions of list regions
    [     1000,      19ff] {      a00} Kern   fiasco
    [     2000,     5cfff] {    5b000} Kern   fiasco
    [    90000,     9e193] {     e194} Sigma0 sigma0
    [   140000,    18b48b] {    4b48c} Root   moe
    [  1000000,   10143eb] {    143ec} Boot   bootstrap
    [  100f000,   100f1d3] {      1d4} Root   Multiboot info
    [  119c000,   11df44f] {    43450} Root   Modules Memory
  API Version: (87) experimental
  Sigma0 config    ip:00090000 sp:01013044
  Roottask config  ip:00140088 sp:00000000
  Starting kernel fiasco at 00001000
Cache config: ON
Realview System ID: Rev=0 HBI=178 Build=0 Arch=5 FPGA=00
 <<Commented by naveen>> Invalid System ID for this kernel config
  Expected (01780500 & ffffff00) == 1182f500
  Stopping.
Hello from Startup::stage2
Initialize page table
Number of IRQs available at this GIC: 96
Number of IRQs available at this GIC: 32
Vmem_alloc::init()
qemu: fatal: Unimplemented cp15 register write (c9, c14, {0, 0})

R00=00000000 R01=00000000 R02=80000000 R03=00000001
R04=f00487b0 R05=00054004 R06=00215406 R07=00115406
R08=00015406 R09=00002000 R10=00000000 R11=0100f058
R12=ffffffff R13=f0048670 R14=f005bd3c R15=f005bd28
PSR=a00001d3 N-C- A svc32
Aborted
novino@naveen-linux:~/L4/l4re-core-2011020417/src/l4/mybuild-realview-pbx-a9/images$ qemu-system-arm -M realview-pbx-a9 -cpu cortex-a9 -kernel bootstrap_hello.elf -m 1024 -nographic -net nic -net user -smp 4
qemu: fatal: Trying to execute code outside RAM or ROM at 0xe0001000

R00=00000000 R01=00000000 R02=00000000 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=e0001000
PSR=400001d3 -Z-- A svc32
Aborted

3) L4 - Cortex A9, realview-pbx-a9, other settings default. Qemu Board - realview-pbx, smp 4
novino@naveen-linux:~/L4/l4re-core-2011020417/src/l4/mybuild-realview-pbx-a9/images$ qemu-system-arm -M realview-pbx-a9 -cpu cortex-a9 -kernel bootstrap_hello.elf -m 1024 -nographic -net nic -net user -smp 4
qemu: fatal: Trying to execute code outside RAM or ROM at 0xe0001000

R00=00000000 R01=00000000 R02=00000000 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=e0001000
PSR=400001d3 -Z-- A svc32
Aborted

If any working combination is there which has been tested/tried for Cortex A9 please let me know :).

PS: I don't have TI/Nvidia board but if it has been tried to be working on them, i can plan to get one. However wanted qemu to be my first choice, because of the ease of usage of gdb to debug L4.

Warm Regards,
Naveen

On Fri, Feb 11, 2011 at 3:04 AM, Adam Lackorzynski <adam@os.inf.tu-dresden.de> wrote:
Hi,

On Thu Feb 10, 2011 at 19:44:07 +0530, Naveen Chandrakar wrote:
> I was attempting to run fiasco built for CortexA9/realview-pbx board on
> qemu.
> "qemu-system-arm" version used for this experimentation is "QEMU PC emulator
> version 0.12.5 (qemu-kvm-0.12.5)"
> L4 Code used "l4re-core-2011020417" with hello world example.
>
> Below are the messages which i got when i tried to run fiasco on qemu - 1st
> set of logs
> I tried to comment the check inside Board_check::check_board() in the hope
> that it might boot up, but later i got crash for qemu (hw mismatch ?) - 2nd
> set of logs

The board-check passes on the real board. If I remember right it didn't
really work as the real board last time I tried but that's some time
ago. Things might have changed, I should retry.
Anyway, any particular reason you want to use that config? 'realview-eb'
should just work fine.



Adam
--
Adam                 adam@os.inf.tu-dresden.de
 Lackorzynski         http://os.inf.tu-dresden.de/~adam/

_______________________________________________
l4-hackers mailing list
l4-hackers@os.inf.tu-dresden.de
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers