Basic L4-Linux setup & run
Tiago Lopes
tiagojclopes at gmail.com
Fri Aug 31 03:47:06 CEST 2007
Hi,
I removed all ore stubs from kernel, and no more ore related errors appear.
I think you misunderstood me Bjoern, I never said the system hang or
crashed... It just doesn't display no more messages after that log, and
L4-linux doesn't show-up on dope. If I understand how L4-linux works, after
loading the ramdisk to memory, control should be passed to the kernel and
some call yould be made to /sbin/init on the ramdisk to start the boot
process.
I'm using the DROPS ramdisk on the L4_linux page @ (
http://os.inf.tu-dresden.de/L4/LinuxOnL4/download.shtml#ramdisk) with this
config:
task "l4linux2.6.21" "mem=64M load_ramdisk=1 ramdisk_size=16384
root=/dev/ram l4env_rd=drops-rd.rd earlyprintk=yes video=l4fb:800x600 at 16,
xpos:214, ypos:140, refreshsleep:75, title:LegacyLinux"
all_sects_writable
allow_vga
I'm supposed to modify this "drops-rd.rd" to make the l4-linux boot work? I
need to modify something to see a dope window where L4-linux will output?
I'm puzzled because there is so little starting info...
Also, I've noticed this warning on the output: "*loader | l4linux2.6.21,#e:
Not allowed to perform any I/O". It appears if I don't use "allow_cli" on
the above config file, is this relevant?
Thanks for your help and time.
Tiago Lopes
-------- output
----------------------------------------------------------------------
Welcome to Fiasco(ia32)!
DD-L4(v2)/x86 microkernel (C) 1998-2007 TU Dresden
Rev: rUNKNOWN compiled with gcc 4.1.2 for Intel Pentium
Performance-critical config option(s) detected:
CONFIG_ASSEMBLER_IPC_SHORTCUT is off
CONFIG_NDEBUG is off
CONFIG_NO_FRAME_PTR is off
CONFIG_FINE_GRAINED_CPUTIME is on
Enabling special fully nested mode for PIC
Using the PIT (i8254) on IRQ 0 for scheduling
SERIAL ESC: allocated IRQ 4 for serial uart
SERIAL ESC: allocated IRQ 4 for serial uart
Not using serial hack in slow timer handler.
Absolute KIP Syscalls using: Sysenter
CPU: AuthenticAMD (6:8:0:0) Model: Athlon (Thoroughbred) at 696 MHz
16/256 Entry I TLB (4K pages) 8 Entry I TLB (4M pages)
32/256 Entry D TLB (4K pages) 8 Entry D TLB (4M pages)
64 KB L1 I Cache (2-way associative, 64 bytes per line)
64 KB L1 D Cache (2-way associative, 64 bytes per line)
256 KB L2 U Cache (8-way associative, 64 bytes per line)
Freeing init code/data: 24576 bytes (6 pages)
Calibrating timer loop... done.
SIGMA0: Hello!
KIP @ 1000
Found Fiasco: KIP syscalls: yes
allocated 4KB for maintenance structures
Roottask.
Command line found: "(cd)/tcb/roottask -sigma0 -configfile task modname
"bmodfs" attached 5 modules"
409150kB ( 399MB) total RAM (reported by bootloader)
370768kB ( 363MB) received RAM from Sigma0
38032kB ( 38MB) reserved RAM for RMGR
Received I/O ports 0000-ffff
Attached irqs = [ <!0> 1 <!2> 3 <!4> 5 6 7 8 9 A B C D E F ]
Roottask: Parsing config file.
configured task 0x02 ():
vm_offs:0 irq:ffff lmcp:ffff allow_cli:0 mcp:ff prio:a0 small:ff mods:0
configured task 0x04 ():
vm_offs:0 irq:ffff lmcp:ffff allow_cli:0 mcp:ff prio:a0 small:ff mods:0
configured task 0x00 (events):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:0 mcp:ff prio:a0 small:ff mods:0
configured task 0x00 (names):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:0 mcp:ff prio:a0 small:ff mods:0
configured task 0x00 (dm_phys):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:0 mcp:ff prio:a0 small:ff mods:0
configured task 0x00 (simple_ts):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:0 mcp:ff prio:a0 small:ff mods:0
configured task 0x00 (rtc):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:1 mcp:ff prio:10 small:ff mods:0
configured task 0x00 (l4io):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:1 mcp:ff prio:a0 small:ff mods:0
configured task 0x00 (ore):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:1 mcp:ff prio:a0 small:ff mods:0
configured task 0x00 (l4dope):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:1 mcp:ff prio:a0 small:ff mods:0
configured task 0x00 (bmodfs):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:0 mcp:ff prio:a0 small:ff mods:0
configured task 0x00 (loader):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:1 mcp:ff prio:a0 small:ff mods:0
Roottask: Parsing command line config.
configured task 0x00 (bmodfs):
vm_offs:0 irq:ffff lmcp:ffff allow_cli:0 mcp:ff prio:10 small:ff mods:5
Roottask: Loading 14 modules.
#05: loading "(cd)/tcb/events"
from [0212c000-0216e66c] to [01540000-01548c10][01549000-0155e5d0]
entry at 00062368 via trampoline page code
symbols at [18ffe000-19000000] (8kB), lines at [18ff7000-18ffe000]
(28kB)
#06: loading "(cd)/tcb/names --events"
from [0216f000-021ae253] to [002d0000-002d5e6a][002d6000-002e1000]
entry at 00063370 via trampoline page code
symbols at [18ff5000-18ff7000] (8kB), lines at [18fef000-18ff5000]
(24kB)
#07: loading "(cd)/tcb/dm_phys -v --events"
from [021af000-0223b38c] to [01500000-015121ca][01513000-0151d000]
entry at 00064378 via trampoline page code
symbols at [18fea000-18fef000] (20kB), lines at [18fdd000-18fea000]
(52kB)
#08: loading "(cd)/tcb/simple_ts --events -t 380"
from [0223c000-02287d04] to [01400000-014080ea][01409000-01418608]
entry at 0006537c via trampoline page code
symbols at [18fdb000-18fdd000] (8kB), lines at [18fd3000-18fdb000]
(32kB)
#09: loading "(cd)/tcb/rtc --events"
from [02288000-022b8ec1] to [01080000-010840e0][01085000-0108a000]
entry at 00066370 via trampoline page code
symbols at [18fd1000-18fd3000] (8kB), lines at [18fcc000-18fd1000]
(20kB)
#0a: loading "(cd)/tcb/l4io --events"
from [022b9000-02511e28] to [00b80000-00ba22a5][00ba3000-00c0a000]
entry at 00067370 via trampoline page code
symbols at [18f7a000-18fcc000] (328kB), lines at [18f60000-18f7a000]
(104kB)
#0b: loading "(cd)/tcb/l4dope --events"
from [02512000-0267fe76] to [01b00000-01b411a1][01b42000-01b83000]
entry at 00069374 via trampoline page code
symbols at [18f52000-18f60000] (56kB), lines at [18f26000-18f52000]
(176kB)
#0c: loading "(cd)/tcb/bmodfs"
from [02680000-0271f5d0] to [01220000-01235659][01236000-0124d000]
passing module (cd)/tcb/libloader.s.so [
02720000-027bec02 ]
passing module (cd)/tcb/libld-l4.s.so [
027bf000-028389c9 ]
passing module (cd)/tcb/task_config.cfg [
02839000-0283934c ]
passing module (cd)/tcb/l4linux2.6.21 [
0283a000-033d783d ]
passing module (cd)/tcb/drops-rd.rd [
033d8000-043d8000 ]
entry at 0006a434 via trampoline page code
symbols at [18f21000-18f26000] (20kB), lines at [18f0f000-18f21000]
(72kB)
#0d: loading "(cd)/tcb/loader --events --fprov=BMODFS task_config.cfg"
from [043d8000-044b09e4] to [01300000-01324ef9][01325000-01343000]
entry at 0006b390 via trampoline page code
symbols at [18f09000-18f0f000] (24kB), lines at [16eec000-16f05000]
(100kB)
names | Starting thread listening for `exit' events
ROOT: Sending ports 0070-0070 to task #09
ROOT: Sending ports 0080-0080 to task #09
ROOT: Sending ports 0071-0071 to task #09
*simplets| Configured for 380 tasks.
*DMphys | DMphys memory map:
*DMphys | phys. memory 0x00000000-0x19000000 (from L4 kernel info page)
*DMphys | using 0x00100000-0x19000000
*DMphys | Memory area Pool PS Flags
*DMphys | 0x00000000-0x0009f000 -- -- RESERVED
*DMphys | 0x00100000-0x00161000 -- -- RESERVED
*DMphys | 0x00161000-0x001c6000 -- -- DENIED
*DMphys | 0x001c6000-0x002d0000 0 12 MAPPED
*DMphys | 0x002d0000-0x002e1000 -- -- DENIED
*DMphys | 0x002e1000-0x00400000 0 12 MAPPED
*DMphys | 0x00400000-0x00800000 0 22 MAPPED
*DMphys | 0x00800000-0x00b80000 0 12 MAPPED
*DMphys | 0x00b80000-0x00c0a000 -- -- DENIED
*DMphys | 0x00c0a000-0x01080000 0 12 MAPPED
*DMphys | 0x01080000-0x0108a000 -- -- DENIED
*DMphys | 0x0108a000-0x01220000 0 12 MAPPED
*DMphys | 0x01220000-0x0124d000 -- -- DENIED
*DMphys | 0x0124d000-0x01300000 0 12 MAPPED
*DMphys | 0x01300000-0x01343000 -- -- DENIED
*DMphys | 0x01343000-0x01400000 0 12 MAPPED
*DMphys | 0x01400000-0x01419000 -- -- DENIED
*DMphys | 0x01419000-0x01500000 0 12 MAPPED
*DMphys | 0x01500000-0x0151c000 -- -- RESERVED
*DMphys | 0x0151c000-0x01540000 0 12 MAPPED
*DMphys | 0x01540000-0x0155f000 -- -- DENIED
*DMphys | 0x0155f000-0x01b00000 0 12 MAPPED
*DMphys | 0x01b00000-0x01b83000 -- -- DENIED
*DMphys | 0x01b83000-0x01c00000 0 12 MAPPED
*DMphys | 0x01c00000-0x02400000 0 22 MAPPED
*DMphys | 0x02400000-0x02720000 0 12 MAPPED
*DMphys | 0x02720000-0x043d8000 -- -- DENIED
*DMphys | 0x043d8000-0x04400000 0 12 MAPPED
*DMphys | 0x04400000-0x16c00000 0 22 MAPPED
*DMphys | 0x16c00000-0x16eec000 0 12 MAPPED
*DMphys | 0x16eec000-0x18ef0000 -- -- DENIED
*DMphys | 0x18f00000-0x18f09000 0 12 MAPPED
*DMphys | 0x18f09000-0x19000000 -- -- DENIED
*DMphys |
*DMphys | DMphys memory pools:
*DMphys | pool 0 (Default memory pool):
*DMphys | size: 342572KB total, 342572KB free, 32KB reserved
*DMphys | 0x001c6000-0x002d0000 ( 1064KB, 1MB) free DS:
*DMphys | 0x002e1000-0x00b80000 ( 8828KB, 9MB) free DS:
*DMphys | 0x00c0a000-0x01080000 ( 4568KB, 4MB) free DS:
*DMphys | 0x0108a000-0x01220000 ( 1624KB, 2MB) free DS:
*DMphys | 0x0124d000-0x01300000 ( 716KB, 1MB) free DS:
*DMphys | 0x01343000-0x01400000 ( 756KB, 1MB) free DS:
*DMphys | 0x01419000-0x01500000 ( 924KB, 1MB) free DS:
*DMphys | 0x0151c000-0x01540000 ( 144KB, 0MB) free DS:
*DMphys | 0x0155f000-0x01b00000 ( 5764KB, 6MB) free DS:
*DMphys | 0x01b83000-0x02720000 ( 11892KB, 12MB) free DS:
*DMphys | 0x043d8000-0x16eec000 (306256KB, 299MB) free DS:
*DMphys | 0x18f00000-0x18f09000 ( 36KB, 0MB) free DS:
*rtc | Date:31.08.2007 Time:01:09:12
*l4dope | DOpE(init): using events mechanism
*io | Enabling events support.
*bmodfs | Passed the following modules:
*bmodfs | module "(cd)/tcb/libloader.s.so" (636kB)
*bmodfs | module "(cd)/tcb/libld-l4.s.so" (487kB)
*bmodfs | module "(cd)/tcb/task_config.cfg" (1kB)
*bmodfs | module "(cd)/tcb/l4linux2.6.21" (11895kB)
ROOT: Sending ports 0cfb-0cfb to task #0a
ROOT: Sending ports 0cf8-0cfb to task #0a
*bmodfs | module "(cd)/tcb/drops-rd.rd" (16384kB)
ROOT: Sending ports 0cfe-0cff to task #0a
*io | PCI: Using configuration type 1
*io | PCI: Probing PCI hardware
*io | PCI: Probing PCI hardware (bus 00)
ROOT: Sending ports 0cfc-0cff to task #0a
*io | PCI: Cannot allocate resource region 4 of device 00:07.1
*io | Limiting direct PCI/PCI transfers.
*io | 00000000-ffffffff : PCI mem
*io | e8000000-ebffffff : Intel Corporation 440BX/ZX/DX -
82443BX/ZX/DX H
*io : ost bridge
*io | ec000000-ec7fffff : VMware Inc [VMware SVGA II] PCI Display
Adapter
*io | ec800000-ec800fff : LSI Logic / Symbios Logic 53c1030 PCI-X
Fusion-
*io : MPT Dual Ultra320 SCSI
*io | f0000000-f7ffffff : VMware Inc [VMware SVGA II] PCI Display
Adapter
*io | 0000-ffff : PCI IO
*io | 0cf8-0cff : PCI conf1
*io | 1000-103f : Intel Corporation 82371AB/EB/MB PIIX4 ACPI
*io | 1040-105f : Intel Corporation 82371AB/EB/MB PIIX4 ACPI
*io | 1060-106f : VMware Inc [VMware SVGA II] PCI Display Adapter
*io | 1070-107f : Intel Corporation 82371AB/EB/MB PIIX4 IDE
*io | 1080-10ff : LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT
Dual
*io : Ultra320 SCSI
*io | 1400-147f : Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
*io | Available IRQs=[ <!0> 1 <!2> 3 <!4> 5 6 7 8 9 a b c d e f ]
*l4dope | L4INPUT native mode activated
*l4dope | L4INPUT: !!! W A R N I N G !!!
*l4dope | L4INPUT: Please, do not use Fiasco's "-esc" with L4INPUT.
*l4dope | L4INPUT: !!! W A R N I N G !!!
ROOT: Sending ports 0060-006f to task #0a
*l4dope | serio: i8042 AUX port at 0x60,0x64 irq 12
*l4dope | serio: i8042 KBD port at 0x60,0x64 irq 1
*l4dope | input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
*l4dope | input: AT Translated Set 2 keyboard on isa0060/serio0
*l4dope | input: PC Speaker
*l4dope | input: L4 input event injector
*l4dope | L4 input event injector: IRQ handler up
*l4dope | connect "ImPS/2 Generic Wheel Mouse", isa0060/serio1/input0
*l4dope | connect "AT Translated Set 2 keyboard", isa0060/serio0/input0
*l4dope | connect "PC Speaker", isa0061/input0
*l4dope | connect "L4 input event injector", l4/sys
*loader | sleeping for 2000 ms
*l4dope | SharedMem(alloc): hl.raw=e0000, id=3a, size=800
*l4dope | SharedMem(get_adr): address = 0x6000
*l4dope | SharedMem(alloc): hl.raw=e0000, id=3b, size=800
*l4dope | SharedMem(get_adr): address = 0x7000
*l4dope | SharedMem(alloc): hl.raw=e0000, id=3c, size=800
*l4dope | SharedMem(get_adr): address = 0xd000
*l4dope | SharedMem(alloc): hl.raw=e0000, id=3d, size=800
*l4dope | SharedMem(get_adr): address = 0xe000
*l4dope | SharedMem(alloc): hl.raw=e0000, id=3e, size=800
*l4dope | SharedMem(get_adr): address = 0xf000
*l4dope | SharedMem(alloc): hl.raw=e0000, id=40, size=800
*l4dope | SharedMem(get_adr): address = 0x16000
*l4dope | SharedMem(alloc): hl.raw=e0000, id=41, size=800
*l4dope | SharedMem(get_adr): address = 0x17000
*l4dope | dope: paddr=f0000000 size=16384KiB
*l4dope | Mapped video memory at f0000000 to 03000000+000000 [16384kB] via
L4IO
*l4dope | mapping: vaddr=0x3000000 size=16777216(0x1000000) offset=0(0x0)
*l4dope | Frame buffer base: 0x3000000
*l4dope | Resolution: 1024x768x16
*l4dope | Bytes per scanline: 2048
*l4dope | Current video mode is 1024x768 red=11:5 green=5:6 blue=0:5
res=0:0
*loader | l4linux2.6.21: Starting application using libld-l4.s.so
*loader | l4linux2.6.21,#e: Loading binary
*loader | l4linux2.6.21,#e: Loading ldso
*loader | l4linux2.6.21,#e: Starting libld-l4.s.so at 00013800 via 0000cbd8
*l4lx | ======> L4Linux 2.6 starting... <========
*l4lx | Linux version 2.6.21-l4 (tjcl at fx242) (gcc version 4.1.2) #3 Wed
Aug 2
*l4lx : 9 22:21:43 WEST 2007
*l4lx | Binary name: l4linux2.6.21
*l4lx | Kernel command line (11 args): mem=64M load_ramdisk=1
ramdisk_size=16
*l4lx : 384 root=/dev/ram l4env_rd=drops-rd.rd earlyprintk=yes
video=l4fb:800
*l4lx : x600 at 16, xpos:214, ypos:140, refreshsleep:75, title:LegacyLinux
*l4lx | Image: 00400000 - 0067f000 [2556 KiB].
*l4lx | Areas: Text: 00400000 - 005e6000 [1944kB] (a bit longer)
*l4lx | Data: 005e6000 - 005fb2cc [84kB]
*l4lx | Initdata: 005fe000 - 006210a0 [140kB]
*l4lx | BSS: 00624000 - 0067c7b0 [353kB]
*l4lx | l4lx_thread_create: Created thread 0e.03 (tamer)
*l4lx | Using tamed mode.
ROOT: Sending all ports (for cli/sti) to task #0d
*loader | l4linux2.6.21,#e: Not allowed to perform any I/O
*l4lx | Got 0 out of 65536 I/O ports
*l4lx | l4env_linux_startup thread 4.
*l4lx | l4lx_thread_create: Created thread 0e.04 (server)
*l4lx | main thread will be 0e.04
*l4lx | l4env_register_pointer_section: addr = 005e6000 size = 249856
*l4lx | sec-w-init: virt: 0x005e6000 to 0x00622fff [244 KiB]
*l4lx | sec-w-init: Number of physical regions: 1, 249856 Bytes
*l4lx | sec-w-init: 1: Phys: 0x01196000 to 0x011d3000, Size:
249856
*l4lx | main thread: received startup message.
*l4lx | Main thread running, waiting...
*l4lx | setup_l4env_memory: Forcing superpages for main memory
*l4lx | Main memory size: 64MB
*l4lx | Main memory: virt: 0x00800000 to 0x047fffff [65536 KiB]
*l4lx | Main memory: Number of physical regions: 1, 67108864 Bytes
*l4lx | Main memory: 1: Phys: 0x12c00000 to 0x16c00000, Size:
67108864
*l4lx | Filling lower ptabs...
*l4lx | Done (1342 entries).
*l4lx | l4env_rd_path: drops-rd.rd
*l4lx | Loading: drops-rd.rd
*l4lx | INITRD: Size of RAMdisk is 16384KiB
*l4lx | RAMdisk from 04800000 to 05800000 [16384KiB]
*l4lx | l4lx_thread_create: Created thread 0e.05 (timer.i0)
*l4lx | l4lx_thread_create: Created thread 0e.06 (Idler)
---------- end of output
------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20070831/d09f7d99/attachment.htm>
More information about the l4-hackers
mailing list