L4Linux on fiasco UX problem

Jugwan Eom zugwan at postech.ac.kr
Thu Nov 24 21:55:27 CET 2005


Hi,

I tried runnig L4Linux on fiasco UX but it didn't work.
I enabled three options for the L4Linux. (Exception IPC /  Inter-task 
ex-regs syscall / Handle and preserve segments) I have no idea why 
l4linux causes the trap.
Anyone could help me?

Followings are log and disassembling of vmlinux.

Thanks in advance.
------------------------------------------------------------------------------------
$ ./lx con
/home/zugwan/boot/fiasco_ux/fiasco -m 256 -symbols 
/home/zugwan/boot/fiasco_ux/Symbols -lines 
/home/zugwan/boot/fiasco_ux/Lines -rmgr /home/zugwan/boot/l4bin/rmgr-ux 
-symbols -lines -sigma0 /home/zugwan/boot/l4bin/sigma0-ux -fb_program 
/home/zugwan/boot/fiasco_ux/ux_con -irq0 
/home/zugwan/boot/fiasco_ux/irq0 -t 32768 -G 640x480 at 16 -l 
/home/zugwan/boot/l4bin/names  -l /home/zugwan/boot/l4bin/log -l 
/home/zugwan/boot/l4bin/dm_phys  -l /home/zugwan/boot/l4bin/simple_ts  
-l /home/zugwan/boot/l4bin/fuxfprov -n9 -l 
/home/zugwan/boot/l4bin/rtc-ux -n10 -l /home/zugwan/boot/l4bin/l4exec -l 
/home/zugwan/boot/l4bin/con-ux  -n12 -l /home/zugwan/boot/l4bin/loader  
/home/zugwan/boot/l4bin/run /home/zugwan/boot/cfg/l4linux26.ux


Fiasco-UX on Linux 2.6.10-5-386 (i686)
Native Syscall Map: 0x1600
Mapped 256 MB Memory + 4096 KB Framebuffer + 4 MB Input Area on FD 3

Loading Module 0x00090000-0x00094dc0 [/home/zugwan/boot/l4bin/sigma0-ux]
Loading Module 0x00100000-0x001c61c0 [/home/zugwan/boot/l4bin/rmgr-ux]
Copying Module 0x0ea66000-0x0ea843d6 [/home/zugwan/boot/fiasco_ux/Symbols]
Copying Module 0x0ea33000-0x0ea6518f [/home/zugwan/boot/fiasco_ux/Lines]
Copying Module 0x0ea08000-0x0ea327ac [/home/zugwan/boot/l4bin/names]
Copying Module 0x0e9e1000-0x0ea0745f [/home/zugwan/boot/l4bin/log]
Copying Module 0x0e982000-0x0e9e000d [/home/zugwan/boot/l4bin/dm_phys]
Copying Module 0x0e953000-0x0e981b65 [/home/zugwan/boot/l4bin/simple_ts]
Copying Module 0x0e8b1000-0x0e95281f [/home/zugwan/boot/l4bin/fuxfprov]
Copying Module 0x0e88e000-0x0e8b0273 [/home/zugwan/boot/l4bin/rtc-ux]
Copying Module 0x0e7a1000-0x0e88dd64 [/home/zugwan/boot/l4bin/l4exec]
Copying Module 0x0e6d9000-0x0e7a0c7f [/home/zugwan/boot/l4bin/con-ux]
Copying Module 0x0e619000-0x0e6d8a04 [/home/zugwan/boot/l4bin/loader]

Bootstrapping...

Welcome to Fiasco(ux)!
DD-L4(v2)/x86 microkernel (C) 1998-2005 TU Dresden
Rev: Thu Nov 24 08:46:52 2005 compiled with gcc 3.4.4 for Intel Pentium

Starting Framebuffer: 640x480 at 16

CPU: GenuineIntel (F:4:1:0) Model: Pentium 4E (Prescott/Nocona) at 3190 MHz

  64 Entry I TLB (4K or 4M pages)
  64 Entry D TLB (4k or 4M pages)
 12K \uffff-ops T Cache (8-way associative)
  16 KB L1 D Cache (8-way associative, 64 bytes per line)
1024 KB L2 U Cache (8-way associative, 64 bytes per line)

Freeing init code/data: 24576 bytes (6 pages)

SIGMA0: Hello!
  Found Fiasco: KIP syscalls: no.
  Allocated 68kB for maintenance structures.

RMGR: Hello!
  running on Fiasco
  bootloader loaded 9 modules at 0e619000-0ea843d7
  L4 symbols at 0e5fa000-0e6183d8 (120kB), lines at 0e5c7000-0e5f918f 
(200kB)
  total RAM size = 261120 KB (reported by bootloader)
          received 239300 KB RAM from sigma0
                     1128 KB reserved for RMGR
  received no I/O ports
  attached irqs = [ <!0> 1 2 3 4 5 6 7 8 9 a b c d e f ]

RMGR: Starting tasks.
#05: loading "/home/zugwan/boot/l4bin/names "
     from 0ea08000-0ea327ac to [ 00240000-002467ea 00247000-00253000 ]
     starting at entry 00240000 via trampoline page code 0000c464
     symbols at 0ea86000-0ea88000 (8kB), lines at 0ea81000-0ea86000 (20kB)
#06: loading "/home/zugwan/boot/l4bin/log"
     from 0e9e1000-0ea0745f to [ 00400000-00406c11 00407000-00439510 ]
     starting at entry 00400000 via trampoline page code 0000d460
     symbols at 0ea7f000-0ea81000 (8kB), lines at 0ea7a000-0ea7f000 (20kB)
#07: loading "/home/zugwan/boot/l4bin/dm_phys "
     from 0e982000-0e9e000d to [ 01500000-01511baa 01512000-015193d0 ]
     starting at entry 01500000 via trampoline page code 0000e468
     symbols at 0ea76000-0ea7a000 (16kB), lines at 0ea6a000-0ea76000 (48kB)
#08: loading "/home/zugwan/boot/l4bin/simple_ts "
     from 0e953000-0e981b65 to [ 01400000-01407ede 01408000-01413830 ]
     starting at entry 01400000 via trampoline page code 0000f468
     symbols at 0ea68000-0ea6a000 (8kB), lines at 0ea62000-0ea68000 (24kB)
#09: loading "/home/zugwan/boot/l4bin/fuxfprov"
     from 0e8b1000-0e95281f to [ 00500000-00521c96 00522000-0053e000 ]
     starting at entry 00500000 via trampoline page code 00010468
     symbols at 0ea5d000-0ea62000 (20kB), lines at 0ea4a000-0ea5d000 (76kB)
#0a: loading "/home/zugwan/boot/l4bin/rtc-ux"
     from 0e88e000-0e8b0273 to [ 01080000-01084abd 01085000-0108a000 ]
     starting at entry 01080000 via trampoline page code 00011464
     symbols at 0ea48000-0ea4a000 (8kB), lines at 0ea44000-0ea48000 (16kB)
#0b: loading "/home/zugwan/boot/l4bin/l4exec"
     from 0e7a1000-0e88dd64 to [ 01100000-01127dee 01128000-01132000 ]
     starting at entry 01100000 via trampoline page code 00012464
     symbols at 0ea3c000-0ea44000 (32kB), lines at 0ea24000-0ea3c000 (96kB)
#0c: loading "/home/zugwan/boot/l4bin/con-ux "
     from 0e6d9000-0e7a0c7f to [ 00b00000-00b23fe2 00b24000-00b2f000 ]
     starting at entry 00b00000 via trampoline page code 00013464
     symbols at 0ea1d000-0ea24000 (28kB), lines at 0ea05000-0ea1d000 (96kB)
#0d: loading "/home/zugwan/boot/l4bin/loader  
/home/zugwan/boot/l4bin/run /home/zugwan/boot/cfg/l4linux26.ux"
     from 0e619000-0e6d8a04 to [ 01300000-01325306 01326000-01338000 ]
     starting at entry 01300000 via trampoline page code 000144a4
     symbols at 0e9ff000-0ea05000 (24kB), lines at 0e9e9000-0e9ff000 (88kB)

simplets| Configured for 64 tasks.
fuxfprov| OSKit support: using 128KB at 0x00100000 as heap (growing)
fuxfprov| File provider started, registered as 9.02
exec    | OSKit support: using 4096KB at 0x00400000 as heap (growing)
con     | OSKit support: using 128KB at 0x00100000 as heap
con     | Character size is 8x14, font has 256 characters
con     | VESA reports 640x480 at 16 1280bpl (0000) [4096kB]
con     | Color mapping: red=11:5 green=5:6 blue=0:5 res=0:0
con     | Found Fiasco/UX
con     | Found VHW descriptor, provider is 24195
con     | Mapping I/O UX video mem c0000000 => 00400000+000000 [4096kB]
con     | Using MMXEXT for colorspace transform
con     | map_inputmemory: paddr = 0xc0400000
con     | Input memory page mapped to 0x00c00000
loader  | OSKit support: using 128KB at 0x00100000 as heap
loader  | Can't map tbuf status page (map=00004000, error=00 
result=00004000)
con     | Started input interrupt thread C.03!
con     | Running as C.02. Video mode is 640x480 at 16.
fuxfprov| open "/home/zugwan/boot/l4bin/run" by D.02
loader  | "/home/zugwan/boot/l4bin/run" is a valid binary image
loader  | Setting libpath to /home/zugwan/boot/l4bin/
exec    | run: Loading
exec    | run: Merging psec 01312000-01314000 with psec 0130d000-01313000
exec    | run: Saved 14133 bytes of symbols
exec    | libloader.s.so: Loading
fuxfprov| open "/home/zugwan/boot/l4bin//libloader.s.so" by B.02
exec    | libloader.s.so: Saved 21533 bytes of symbols
exec    | libloader.s.so: Relocating to 00010000
exec    | libloader.s.so: Linking
exec    | libloader.s.so: Relocating entry 00004ff0 => 00014ff0
exec    | libloader.s.so: Setting section flag 0800
exec    | run: Setting section flag 0800
loader  | run: Starting l4env-style application
loader  | run,#e: Starting at l4loader_init (000156a0)
exec    | run: Linking
exec    | run: Relocating entry 01300000 => 01300000
exec    | run: Packed 25941 bytes of symbols
exec    | run: Packed 96567 bytes of lines
loader  | run,#e: Continue at l4env_init (000156b0, libloader.s.so)
fuxfprov| open "/home/zugwan/boot/cfg/l4linux26.ux" by D.02
loader  | sleeping for 1000 ms
run     | OSKit support: using 256KB at 0x00040000 as heap (growing)
con     | vc_loop(): vc[1] running as C.04
con     | vc_open_out(): vc[1] 640x480 at 16, gmode:0x15
run     | contxt_init(): 640x462, cols:80, lines:33, sb_lines:1033
fuxfprov| open "/home/zugwan/boot/lx/vmlinuz26.ux" by D.02
exec    | vmlinuz26.ux: Loading
exec    | vmlinuz26.ux: Interpreter section found, contains 
"/usr/lib/libc.so.1
exec    : "
exec    | vmlinuz26.ux: Saved 756346 bytes of symbols
exec    | libloader.s.so: Relocating to 00010000
exec    | libloader.s.so: Linking
exec    | libloader.s.so: Relocating entry 00004ff0 => 00014ff0
exec    | libloader.s.so: Setting section flag 0800
exec    | vmlinuz26.ux: Setting section flag 0800
loader  | vmlinuz26.ux: Starting l4env-style application
loader  | vmlinuz26.ux,#f: Starting at l4loader_init (000156a0)
exec    | vmlinuz26.ux: Linking
exec    | vmlinuz26.ux: Relocating entry 00400000 => 00400000
exec    | vmlinuz26.ux: Packed 600616 bytes of symbols
exec    | vmlinuz26.ux: Packed 1616968 bytes of lines
loader  | vmlinuz26.ux,#f: Continue at l4env_init (000156b0, libloader.s.so)
l4lx    | crt0_construction called.
l4lx    | ======> L4Linux 2.6 starting... <========
l4lx    | Binary name: vmlinuz26.ux
l4lx    | Kernel command line (8 args): mem=44M noreplacement root=1:0 
load_ram
l4lx    : disk=1 ramdisk_size=16384 l4env_rd=/home/zugwan/boot/rd/rd1 
panicblin
l4lx    : k=0 lang=us
l4lx    | Image: 00400000 - 0068a1a0 [2600 KiB].
l4lx    | Areas: Text:     00400000 - 005b5000 [1748kB] (a bit longer)
l4lx    |        Data:     005b5000 - 005f04cc [237kB]
l4lx    |        Initdata: 005f4000 - 00618000 [144kB]
l4lx    |        BSS:      00618008 - 0068a1a0 [456kB]
l4lx    | l4lx_thread_create: Created thread 0f.03 (server)
l4lx    | main thread will be 0f.03
l4lx    | l4env_register_pointer_section: addr = 005f2000 size = 159744
l4lx    |      sec-w-init: virt: 0x005f2000 to 0x00618fff [156 KiB]
l4lx    |      sec-w-init: Number of physical regions: 1, 159744 Bytes
l4lx    |      sec-w-init: 1: Phys: 0x00f69000 to 0x00f90000, Size:   159744
l4lx    | l4env_linux_startup thread 3.
l4lx    | main thread: received startup message.
l4lx    | setup_l4env_memory: Forcing superpages for main memory
l4lx    | Main memory size: 44MB
l4lx    |     Main memory: virt: 0x00800000 to 0x033fffff [45056 KiB]
l4lx    |     Main memory: Number of physical regions: 1, 46137344 Bytes
l4lx    |     Main memory: 1: Phys: 0x0b800000 to 0x0e400000, Size: 46137344
l4lx    | Filling lower ptabs...
l4lx    | Main thread running, waiting...
l4lx    | Done (1263 entries).
l4lx    | l4env_rd_path: /home/zugwan/boot/rd/rd1
l4lx    | Loading: /home/zugwan/boot/rd/rd1
fuxfprov| open "/home/zugwan/boot/rd/rd1" by F.03
l4lx    | INITRD: Size of RAMdisk is 16384KiB
l4lx    | RAMdisk from 03400000 to 04400000 [16384KiB]
l4lx    | l4lx_thread_create: Created thread 0f.04 (timer.i0)

KERNEL: f.3 (tcb=00000000203c1800) killed:
Unhandled trap  ip:60965b

EAX 00000001 EBX 00000001 ECX 0107fe80 EDX 00000cfb
ESI 00000000 EDI 00828000 EBP 00829fa4 ESP 00829f98
EIP 0060965b EFLAGS 00010046
CS 0002 SS 007b DS 007b ES 007b FS 0000 GS 0007
trap 13 (General Protection), error 00000000, from user mode
(internal event regarding GDT entry no. 0x00)

---------------------------------------------------------------------------------------------------

/home/zugwan/l4/l4linux-2.6/vmlinux:     file format elf32-i386

Disassembly of section .text:
Disassembly of section .plt:
Disassembly of section .init.text:

006095db <pci_sanity_check+0x3b>:
pci_sanity_check():
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:193
  6095db:    83 c4 18                 add    $0x18,%esp
  6095de:    85 c0                    test   %eax,%eax
  6095e0:    75 e4                    jne    6095c6 <pci_sanity_check+0x26>
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:195
  6095e2:    8b 45 f0                 mov    0xfffffff0(%ebp),%eax
  6095e5:    3d 00 06 00 00           cmp    $0x600,%eax
  6095ea:    0f 94 c2                 sete   %dl
  6095ed:    3d 00 03 00 00           cmp    $0x300,%eax
  6095f2:    0f 94 c0                 sete   %al
  6095f5:    09 d0                    or     %edx,%eax
  6095f7:    a8 01                    test   $0x1,%al
  6095f9:    75 2c                    jne    609627 <pci_sanity_check+0x87>
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:198
  6095fb:    56                       push   %esi
  6095fc:    6a 02                    push   $0x2
  6095fe:    6a 00                    push   $0x0
  609600:    53                       push   %ebx
  609601:    6a 00                    push   $0x0
  609603:    6a 00                    push   $0x0
  609605:    ff 17                    call   *(%edi)
  609607:    83 c4 18                 add    $0x18,%esp
  60960a:    85 c0                    test   %eax,%eax
  60960c:    75 b8                    jne    6095c6 <pci_sanity_check+0x26>
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:200
  60960e:    8b 45 f0                 mov    0xfffffff0(%ebp),%eax
  609611:    3d 86 80 00 00           cmp    $0x8086,%eax
  609616:    0f 94 c2                 sete   %dl
  609619:    3d 11 0e 00 00           cmp    $0xe11,%eax
  60961e:    0f 94 c0                 sete   %al
  609621:    09 d0                    or     %edx,%eax
  609623:    a8 01                    test   $0x1,%al
  609625:    74 9f                    je     6095c6 <pci_sanity_check+0x26>
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:201
  609627:    b8 01 00 00 00           mov    $0x1,%eax
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:206
  60962c:    8d 65 f4                 lea    0xfffffff4(%ebp),%esp
  60962f:    5b                       pop    %ebx
  609630:    5e                       pop    %esi
  609631:    5f                       pop    %edi
  609632:    5d                       pop    %ebp
  609633:    c3                       ret   
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:205
  609634:    31 c0                    xor    %eax,%eax
  609636:    eb f4                    jmp    60962c <pci_sanity_check+0x8c>
  609638:    90                       nop   
  609639:    8d b4 26 00 00 00 00     lea    0x0(%esi),%esi

00609640 <pci_check_type1>:
pci_check_type1():
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:209
  609640:    55                       push   %ebp
  609641:    89 e5                    mov    %esp,%ebp
  609643:    56                       push   %esi
  609644:    53                       push   %ebx
  609645:    51                       push   %ecx
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:214
  609646:    e8 a5 7c df ff           call   4012f0 <l4x_local_save_flags>
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:212
  60964b:    31 f6                    xor    %esi,%esi
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:214
  60964d:    89 c3                    mov    %eax,%ebx
  60964f:    e8 7c 7c df ff           call   4012d0 <l4x_local_irq_disable>
/home/zugwan/l4/l4linux-2.6/include/asm-l4/l4-arch/asm/io.h:395
  609654:    b0 01                    mov    $0x1,%al
  609656:    ba fb 0c 00 00           mov    $0xcfb,%edx
  60965b:    ee                       out    %al,(%dx)
/home/zugwan/l4/l4linux-2.6/include/asm-l4/l4-arch/asm/io.h:397
  60965c:    b2 f8                    mov    $0xf8,%dl
  60965e:    ed                       in     (%dx),%eax
  60965f:    89 45 f4                 mov    %eax,0xfffffff4(%ebp)
  609662:    b8 00 00 00 80           mov    $0x80000000,%eax
  609667:    ef                       out    %eax,(%dx)
  609668:    ed                       in     (%dx),%eax
  609669:    3d 00 00 00 80           cmp    $0x80000000,%eax
  60966e:    74 20                    je     609690 <pci_check_type1+0x50>
  609670:    ba f8 0c 00 00           mov    $0xcf8,%edx
  609675:    8b 45 f4                 mov    0xfffffff4(%ebp),%eax
  609678:    ef                       out    %eax,(%dx)
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:223
  609679:    53                       push   %ebx
  60967a:    e8 81 7c df ff           call   401300 <l4x_local_irq_restore>
  60967f:    58                       pop    %eax
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:226
  609680:    8d 65 f8                 lea    0xfffffff8(%ebp),%esp
  609683:    89 f0                    mov    %esi,%eax
  609685:    5b                       pop    %ebx
  609686:    5e                       pop    %esi
  609687:    5d                       pop    %ebp
  609688:    c3                       ret   
  609689:    8d b4 26 00 00 00 00     lea    0x0(%esi),%esi
/home/zugwan/l4/l4linux-2.6/include/asm-l4/l4-arch/asm/io.h:397
  609690:    68 58 82 5c 00           push   $0x5c8258
  609695:    e8 06 ff ff ff           call   6095a0 <pci_sanity_check>
  60969a:    5a                       pop    %edx
  60969b:    85 c0                    test   %eax,%eax
  60969d:    74 d1                    je     609670 <pci_check_type1+0x30>
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:220
  60969f:    66 be 01 00              mov    $0x1,%si
  6096a3:    eb cb                    jmp    609670 <pci_check_type1+0x30>
  6096a5:    8d 74 26 00              lea    0x0(%esi),%esi
  6096a9:    8d bc 27 00 00 00 00     lea    0x0(%edi),%edi

006096b0 <pci_check_type2>:
pci_check_type2():
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:229
  6096b0:    55                       push   %ebp
  6096b1:    89 e5                    mov    %esp,%ebp
  6096b3:    57                       push   %edi
  6096b4:    56                       push   %esi
  6096b5:    53                       push   %ebx
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:233
  6096b6:    e8 35 7c df ff           call   4012f0 <l4x_local_save_flags>
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:231
  6096bb:    31 f6                    xor    %esi,%esi
/home/zugwan/l4/l4linux-2.6/arch/l4/pci/../../i386/pci/direct.c:233
  6096bd:    89 c3                    mov    %eax,%ebx
  6096bf:    e8 0c 7c df ff           call   4012d0 <l4x_local_irq_disable>
/home/zugwan/l4/l4linux-2.6/include/asm-l4/l4-arch/asm/io.h:395
  6096c4:    31 c0                    xor    %eax,%eax
  6096c6:    ba fb 0c 00 00           mov    $0xcfb,%edx
  6096cb:    ee                       out    %al,(%dx)
  6096cc:    bf f8 0c 00 00           mov    $0xcf8,%edi
  6096d1:    89 fa                    mov    %edi,%edx
  6096d3:    ee                       out    %al,(%dx)
  6096d4:    b9 fa 0c 00 00           mov    $0xcfa,%ecx
  6096d9:    89 ca                    mov    %ecx,%edx
Disassembly of section .altinstr_replacement:
Disassembly of section .exit.text:









More information about the l4-hackers mailing list