L4Re: unhandled exception while building Fiasco.OC-L4Re for ARM platform
Adam Lackorzynski
adam at os.inf.tu-dresden.de
Tue Aug 4 21:35:09 CEST 2015
Hi,
On Mon Aug 03, 2015 at 12:33:05 +0530, Raja Sekhar wrote:
> I'm getting unhandled exception while running clntsrv example
>
>
> I've build Fiasco-L4Re system with the following specifications
> *Fiasco.OC:*
> Architecture (ARM processor family)
> Platform (ARM RealView Platform)
> Realview Platform (PBX)
> Start of RAM (physical address) (0x00000000)
> CPU (ARM Cortex-A9 CPU)
> *L4Re:*
> Target Architecture (ARM architecture)
> CPU variant (ARMv4 type CPU)
Could you switch to ARMv7 here as this is the corresponding version for
a Cortex-A9.
> Platform Selection (ARM Realview PBX)
>
> and *trying to run examples/clntsrv* by adding the following entry in
> module.list
>
> entry clntsrv
> bootstrap bootstrap -serial
> kernel fiasco -serial_esc
> roottask moe rom/clntsrv.cfg
> module clntsrv.cfg
> module l4re
> module ned
> module ex_clntsrv-server
> module ex_clntsrv-client
>
> Creating image:
>
> make elfimage E=clntsrv
> MODULE_SEARCH_PATH=`pwd`/../Fiasco.OC:`pwd`/source/pkg/examples/clntsrv
>
> Running image on QEMU:
>
> qemu-system-arm -M realview-pbx-a9 --kernel images/bootstrap_clntsrv
> -m 256M -serial /dev/pts/4
>
> L4 Bootstrapper
> Build: #56 Thu Jul 30 23:21:33 IST 2015, 4.7.3 20130226 (prerelease)
> Scanning up to 256 MB RAM
> Memory size is 256MB (00000000 - 0fffffff)
> RAM: 0000000000000000 - 000000000fffffff: 262144kB
> Total RAM: 256MB
> mod07: 0113d000-011565bc: ex_clntsrv-client
> mod06: 01123000-0113c5c0: ex_clntsrv-server
> mod05: 010d0000-01122bf4: ned
> mod04: 010b6000-010cf49c: l4re
> mod03: 010b5000-010b52a6: clntsrv.cfg
> mod02: 01083000-010b4668: moe
> mod01: 01079000-01082380: sigma0
> mod00: 01015000-01078770: fiasco
> Moving up to 8 modules behind 1100000
> moving module 00 { 1015000-107876f } -> { 1242000-12a576f } [407408]
> moving module 01 { 1079000-108237f } -> { 12a6000-12af37f } [37760]
> moving module 02 { 1083000-10b4667 } -> { 12b0000-12e1667 } [202344]
> moving module 03 { 10b5000-10b52a5 } -> { 1157000-11572a5 } [678]
> moving module 04 { 10b6000-10cf49b } -> { 1158000-117149b } [103580]
> moving module 05 { 10d0000-1122bf3 } -> { 1172000-11c4bf3 } [338932]
> moving module 06 { 1123000-113c5bf } -> { 1100000-11195bf } [103872]
> moving module 07 { 113d000-11565bb } -> { 111a000-11335bb } [103868]
> moving module 03 { 1157000-11572a5 } -> { 1134000-11342a5 } [678]
> moving module 04 { 1158000-117149b } -> { 1135000-114e49b } [103580]
> moving module 05 { 1172000-11c4bf3 } -> { 114f000-11a1bf3 } [338932]
> Scanning fiasco -serial_esc
> Scanning sigma0
> Scanning moe rom/clntsrv.cfg
> Relocated mbi to [0x100e000-0x100e140]
> Loading fiasco
> Loading sigma0
> Loading moe
> find kernel info page...
> found kernel info page at 0x2000
> Regions of list 'regions'
> [ 1000, 1abf] { ac0} Kern fiasco
> [ 2000, 72fff] { 71000} Kern fiasco
> [ 90000, 9643b] { 643c} Sigma0 sigma0
> [ 98000, 9e17b] { 617c} Sigma0 sigma0
> [ 140000, 16becb] { 2becc} Root moe
> [ 170000, 186f0f] { 16f10} Root moe
> [ 1000000, 10143f7] { 143f8} Boot bootstrap
> [ 100e000, 100e23d] { 23e} Root Multiboot info
> [ 1100000, 11a1bf3] { a1bf4} Root Module
> API Version: (87) experimental
> Sigma0 config ip:00090100 sp:01013de4
> Roottask config ip:001401fc sp:00000000
> Starting kernel fiasco at 000012b4
> Realview System ID: Rev=0 HBI=178 Build=0 Arch=5 FPGA=00
> Hello from Startup::stage2
> Per_cpu_data_alloc: (orig: 0xf00605e8-0xf0060f68)
> Number of IRQs available at this GIC: 96
> Cache config: ON
> ID_PFR[01]: 00001031 00000001 ID_[DA]FR0: 00000000 00000000
> ID_MMFR[04]: 00100103 20000000 01230000 00002111
> L2: ID=410000c8 Type=1c100100 Aux=30520000 WMask=ff S=0
> L2: Type L2C-310 Size = 128kB
> SERIAL ESC: allocated IRQ 44 for serial uart
> Not using serial hack in slow timer handler.
> Welcome to Fiasco.OC (arm)!
> L4/Fiasco.OC arm microkernel (C) 1998-2013 TU Dresden
> Rev: rexported compiled with gcc 4.7.3 for Realview []
> Build: #4 Tue Jul 28 22:46:31 IST 2015
>
> Per_cpu_data_alloc: (orig: 0xf00605e8-0xf0060f68)
> Allocate 2432 bytes (2KB) for CPU[4] local storage (offset=1187a18,
> 0xf11e8000-0xf11e8980)
> Number of CPUs: 1
> Calibrating timer loop... done.
> SIGMA0: Hello!
> KIP @ 2000
> allocated 4KB for maintenance structures
> SIGMA0: Dump of all resource maps
> RAM:------------------------
> [0:0;fff]
> [0:73000;8ffff]
> [0:97000;97fff]
> [0:9f000;13ffff]
> [4:140000;16bfff]
> [0:16c000;16ffff]
> [4:170000;186fff]
> [0:187000;100dfff]
> [4:100e000;100efff]
> [0:100f000;10fffff]
> [4:1100000;11a1fff]
> [0:11a2000;effffff]
> IOMEM:----------------------
> [0:10000000;ffffffff]
> MOE: Hello world
> MOE: found 244324 KByte free memory
> MOE: found RAM from 73000 to f000000
> MOE: allocated 239 KByte for the page array @0x9f000
> MOE: virtual user address space [0-bfffffff]
> MOE: rom name space cap -> [C:501000]
> BOOTFS: [1134000-11342a6] [C:503000] clntsrv.cfg
> BOOTFS: [1135000-114e49c] [C:504000] l4re
> BOOTFS: [114f000-11a1bf4] [C:505000] ned
> BOOTFS: [1100000-11195c0] [C:506000] ex_clntsrv-server
> BOOTFS: [111a000-11335bc] [C:507000] ex_clntsrv-client
> MOE: cmdline: moe rom/clntsrv.cfg
> MOE: Starting: rom/ned rom/clntsrv.cfg
> MOE: loading 'rom/ned'
> Ned says: Hi World!
> ****I am in luaK_prefix()****
> L4Re: unhandled exception: pc=0x1021984
>
> I have gone through the code flow for "ned" and I found that the
> exception is raising while loading ned.lua script,
> At certain point luaK_prefix() is trying to call codearith() but
> failed to call codearith().
> both the function are located at l4re/pkg/lua/lib/contrib/src/lcode.c
>
> I'm able to get print statement which I placed before calling the
> codearith() in luaK_prefix(),
> But not printing the statement which I placed inside the codearith()
>
> Can you please get me out from this issue.
Please check whether this persists after recompiling for ARMv7.
If not, I'd like to know which instruction/code is at 0x1021984.
Adam
--
Adam adam at os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
More information about the l4-hackers
mailing list