Hi all,
I tried to run the tudos-demo-cd.iso with qemu 'qemu -m 256 -cdrom tudos-demo-cd.iso -usbdevice mouse' and it's running perfectly with the usb mouse and keyboard.
but when i tried on the one i'm compiled. the mouse and keyboard not functioning at all and returns a kernel panic.
Please help.....
Regards, neohtm
Below are the output of the error.
Welcome to Fiasco(ia32)! DD-L4(v2)/ia32 microkernel (C) 1998-2009 TU Dresden Rev: r438 compiled with gcc 4.3.2 for Intel Pentium [] Performance-critical config option(s) detected: CONFIG_NDEBUG is off CONFIG_NO_FRAME_PTR is off
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: GenuineIntel (6:3:3:0) Model: Pentium II (Klamath) at 1795 MHz
32 KB L1 I Cache (8-way associative, 64 bytes per line) 32 KB L1 D Cache (8-way associative, 64 bytes per line) 2048 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)/boot/l4/l4env/roottask task modname "loader" allow_cli task modname "bmodfs" attached 5 modules"
261695kB ( 255MB) total RAM (reported by bootloader) 234760kB ( 230MB) received RAM from Sigma0 34212kB ( 34MB) 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 10 11 ]
Roottask: Parsing command line config. configured task 0x00 (loader): vm_offs:0 irq:3ffff lmcp:ffff allow_cli:1 mcp:ff prio:10 small:ff mods:0 configured task 0x00 (bmodfs): vm_offs:0 irq:3ffff lmcp:ffff allow_cli:0 mcp:ff prio:10 small:ff mods:5
Roottask: Loading 17 modules. #05: loading "(cd)/boot/l4/l4env/events" from [0612e000-0616fe99] to [01540000-01549190][0154a000-0155f590] entry at 0005f374 via trampoline page code symbols at [0eb74000-0eb76000] (8kB), lines at [0eb6d000-0eb74000] (28kB) #06: loading "(cd)/boot/l4/l4env/names --events" from [06170000-061b1c12] to [002d0000-002d6a37][002d7000-002e2000] entry at 0006037c via trampoline page code symbols at [0eb6b000-0eb6d000] (8kB), lines at [0eb65000-0eb6b000] (24kB) #07: loading "(cd)/boot/l4/l4env/log" from [061b2000-061efd07] to [00400000-00406eca][00407000-00439808] entry at 00061370 via trampoline page code symbols at [0eb63000-0eb65000] (8kB), lines at [0eb5d000-0eb63000] (24kB) #08: loading "(cd)/boot/l4/l4env/dm_phys --isa=0x00800000" from [061f0000-0628a8b4] to [01500000-01513cb7][01514000-0151e000] entry at 00062384 via trampoline page code symbols at [0eb58000-0eb5d000] (20kB), lines at [0eb4a000-0eb58000] (56kB) #09: loading "(cd)/boot/l4/l4env/simple_ts -t 300" from [0628b000-062d8310] to [01400000-01408dea][01409000-014185e8] entry at 0006337c via trampoline page code symbols at [0eb48000-0eb4a000] (8kB), lines at [0eb40000-0eb48000] (32kB) #0a: loading "(cd)/boot/l4/l4env/rtc" from [062d9000-06308a5c] to [01080000-010845c0][01085000-0108a000] entry at 00064370 via trampoline page code symbols at [0eb3e000-0eb40000] (8kB), lines at [0eb39000-0eb3e000] (20kB) #0b: loading "(cd)/boot/l4/l4env/l4io" from [06309000-0654a391] to [00c20000-00c45315][00c46000-00cb4000] entry at 00066370 via trampoline page code symbols at [0eae3000-0eb39000] (344kB), lines at [0eac9000-0eae3000] (104kB) #0c: loading "(cd)/boot/l4/l4env/l4dope" from [0654b000-066c2384] to [01b00000-01b45ef1][01b46000-01b8b000] entry at 00067374 via trampoline page code symbols at [0eabb000-0eac9000] (56kB), lines at [0ea8d000-0eabb000] (184kB) #0d: loading "(cd)/boot/l4/usb/usbcore" from [066c3000-068faac1] to [008e0000-0092600d][00927000-0094c000] entry at 00068374 via trampoline page code symbols at [0ea81000-0ea8d000] (48kB), lines at [0ea4b000-0ea81000] (216kB) #0e: loading "(cd)/boot/l4/usb/usbhid" from [068fb000-06aa0604] to [01900000-0193e269][0193f000-01966000] entry at 00069370 via trampoline page code symbols at [0ea42000-0ea4b000] (36kB), lines at [0ea17000-0ea42000] (172kB) #0f: loading "(cd)/boot/l4/l4env/bmodfs" from [06aa1000-06b48f8d] to [01220000-01238689][01239000-01250000] passing module (cd)/boot/l4/cfg/l4linux26.cfg [ 06b49000-06b49165 ] passing module (cd)/boot/l4/l4env/libloader.s.so [ 06b4a000-06be8f11 ] passing module (cd)/boot/l4/l4env/libld-l4.s.so [ 06be9000-06c62219 ] passing module (cd)/boot/l4/l4linux/vmlinuz [ 06c63000-07019183 ] passing module (cd)/boot/l4/l4linux/drops.rd [ 0701a000-0801a000 ] entry at 0006a46c via trampoline page code symbols at [0ea12000-0ea17000] (20kB), lines at [0e9ff000-0ea12000] (76kB) #10: loading "(cd)/boot/l4/l4env/loader --fprov=BMODFS l4linux26.cfg" from [0801a000-080f8b6d] to [01300000-013291c9][0132a000-01349000] entry at 0006b390 via trampoline page code symbols at [0e9f8000-0e9ff000] (28kB), lines at [0e9de000-0e9f8000] (104kB)
ROOT: Sending ports 0070-0070 to task #0a ROOT: Sending ports 0080-0080 to task #0a ROOT: Sending ports 0071-0071 to task #0a names | Starting thread listening for `exit' events rtc | Date:29.04.2009 Time:07:33:01 simplets| Configured for 300 tasks. loader | Can't map tbuf status page usbcore | main(): DDE USB CORE initiaizing: usbcore | main(): Initializing DDE base system. io | Using platform configuration 'x86' ROOT: Sending ports 0cfb-0cfb to task #0b ROOT: Sending ports 0cf8-0cfb to task #0b ROOT: Sending ports 0cfe-0cff to task #0b 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 #0b io | PCI: PIIX3: Enabling Passive Release on 00:01.0 io | Limiting direct PCI/PCI transfers. io | Activating ISA DMA hang workarounds. io | 00000000-ffffffff : PCI mem io | f0000000-f1ffffff : Cirrus Logic GD 5446 io | f2000000-f2000fff : Cirrus Logic GD 5446 io | 0000-ffff : PCI IO io | 0cf8-0cff : PCI conf1 io | b000-b03f : Intel Corporation 82371AB/EB/MB PIIX4 ACPI io | b100-b11f : Intel Corporation 82371AB/EB/MB PIIX4 ACPI io | c000-c00f : Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] io | c020-c03f : Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] io | c100-c1ff : Realtek Semiconductor Co., Ltd. RTL-8029(AS) bmodfs | Passed the following modules: bmodfs | module "(cd)/boot/l4/cfg/l4linux26.cfg" (1kB) bmodfs | module "(cd)/boot/l4/l4env/libloader.s.so" (636kB) bmodfs | module "(cd)/boot/l4/l4env/libld-l4.s.so" (485kB) bmodfs | module "(cd)/boot/l4/l4linux/vmlinuz" (3801kB) bmodfs | module "(cd)/boot/l4/l4linux/drops.rd" (16384kB) loader | sleeping for 1000 ms io | Available IRQs=[ <!0> 1 <!2> 3 <!4> 5 6 7 8 9 a b c d e f 10 11 ] 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 #0b l4dope | Failed to disable AUX port, but continuing anyway... Is this a SiS? l4dope | If AUX port is really absent please use the 'i8042.noaux' option. l4dope | serio: i8042 KBD port at 0x60,0x64 irq 1 l4dope | input: AT Raw 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 "AT Raw Set 2 keyboard", isa0060/serio0/input0 l4dope | connect "PC Speaker", isa0061/input0 l4dope | connect "L4 input event injector", l4/sys l4dope | SharedMem(alloc): hl.raw=100000, id=44, size=800 l4dope | SharedMem(get_adr): address = 0x5000 l4dope | SharedMem(alloc): hl.raw=100000, id=45, size=800 l4dope | SharedMem(get_adr): address = 0x6000 l4dope | SharedMem(alloc): hl.raw=100000, id=46, size=800 l4dope | SharedMem(get_adr): address = 0x7000 l4dope | SharedMem(alloc): hl.raw=100000, id=47, size=800 l4dope | SharedMem(get_adr): address = 0xd000 l4dope | SharedMem(alloc): hl.raw=100000, id=48, size=800 l4dope | SharedMem(get_adr): address = 0xe000 l4dope | SharedMem(alloc): hl.raw=100000, id=49, size=800 l4dope | SharedMem(get_adr): address = 0xf000 l4dope | SharedMem(alloc): hl.raw=100000, id=4b, size=800 l4dope | SharedMem(get_adr): address = 0x16000 usbcore | main(): Initializing DDE kmalloc. usbcore | main(): Initializing DDE process. usbcore | main(): Initializing DDE timers. usbhid | l4dde_mm_init(): Using ... usbhid | 16 kB at 0x00002000 (vmem) usbhid | 128 kB in 1 regions (kmem) l4dope | SharedMem(alloc): hl.raw=100000, id=55, size=484 l4dope | SharedMem(get_adr): address = 0x20000 l4dope | dope: paddr=f0000000 size=4096KiB l4dope | Mapped video memory at f0000000 to 00400000+000000 [4096kB] via L4IO l4dope | mapping: vaddr=0x400000 size=4194304(0x400000) offset=0(0x0) l4dope | Frame buffer base: 0x400000 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 usbcore | main(): Initializing DDE softirq. usbcore | Softirq daemon starting usbcore | main(): Doing initcalls... usbcore | Initializing DDE page cache usbcore | <6>usbcore: registered new interface driver hub usbhid | register_chrdev(): called input usbhid | register_chrdev(): called usb usbhid | usb: registered new driver hub usbhid | usb: $Revision: 238 $ time 17:10:21 Apr 11 2009 usbhid | usb: High bandwidth mode enabled io | PCI: Setting latency timer of device 00:01.2 to 64 usbhid | /home/user/Desktop/tudos/l4/pkg/usbhid/server/lib-linux/contrib/usb/h usbhid : ost/usb-uhci.c: USB UHCI at I/O 0xc020, IRQ 9 ROOT: Sending ports c030-c031 to task #0e ROOT: Sending ports c032-c033 to task #0e ROOT: Sending ports c034-c035 to task #0e usbhid | usb: Detected 2 ports ROOT: Cannot send port c030 to task #0b, owner is #0e io | [B.2] l4io/server/src/res.c:414:l4_io_request_region_component(): io | sigma0 request for I/O ports [c020,c040) failed (err=0 dw1=0) io |
--PANIC, 'g' for exit------------------------------------IP: 00c21185 [io] (b.02) jdb:
Hello,
IMO you're mixing not compatible components. l4/pkg/usbhid is the _old_ USB HID driver, which includes the USB host controller and core code. l4/pkg/usb is the new framework for USB, where the core and HCD are in l4/pkg/usb/server and the HID drivers in l4/pkg/usb/examples/usbhid. The resulting binaries are "usbcore" and "usbhid" <- Yes, there's a name clash... ;)
If you intend to use the new driver (what I recommend) remove l4/pkg/usbhid from your tree or put an empty file "obsolete" into the directory, which prevents compilation of the package.
Greets
Thanks Christian,
it works after i removed the l4/pkg/usbhid. recompiled the l4/pkg/usb and replaced them. it works perfectly on DOpE
but errors come out when i tried to load the l4linux26 inside
the usbcore disconnect the usb mouse when loading the l4linux. is it that i had did the wrong setup when compiling the l4linux?
Welcome to Fiasco(ia32)! DD-L4(v2)/ia32 microkernel (C) 1998-2009 TU Dresden Rev: r438 compiled with gcc 4.3.2 for Intel Pentium [] Performance-critical config option(s) detected: CONFIG_NDEBUG is off CONFIG_NO_FRAME_PTR is off
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: GenuineIntel (6:3:3:0) Model: Pentium II (Klamath) at 1796 MHz
32 KB L1 I Cache (8-way associative, 64 bytes per line) 32 KB L1 D Cache (8-way associative, 64 bytes per line) 2048 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)/boot/l4/l4env/roottask task modname "loader" allow_cli task modname "bmodfs" attached 5 modules"
261695kB ( 255MB) total RAM (reported by bootloader) 234336kB ( 229MB) received RAM from Sigma0 34636kB ( 34MB) 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 10 11 ]
Roottask: Parsing command line config. configured task 0x00 (loader): vm_offs:0 irq:3ffff lmcp:ffff allow_cli:1 mcp:ff prio:10 small:ff mods:0 configured task 0x00 (bmodfs): vm_offs:0 irq:3ffff lmcp:ffff allow_cli:0 mcp:ff prio:10 small:ff mods:5
Roottask: Loading 17 modules. #05: loading "(cd)/boot/l4/l4env/events" from [0612e000-0616fe99] to [01540000-01549190][0154a000-0155f590] entry at 0005f374 via trampoline page code symbols at [0eb74000-0eb76000] (8kB), lines at [0eb6d000-0eb74000] (28kB) #06: loading "(cd)/boot/l4/l4env/names --events" from [06170000-061b1c12] to [002d0000-002d6a37][002d7000-002e2000] entry at 0006037c via trampoline page code symbols at [0eb6b000-0eb6d000] (8kB), lines at [0eb65000-0eb6b000] (24kB) #07: loading "(cd)/boot/l4/l4env/log" from [061b2000-061efd07] to [00400000-00406eca][00407000-00439808] entry at 00061370 via trampoline page code symbols at [0eb63000-0eb65000] (8kB), lines at [0eb5d000-0eb63000] (24kB) #08: loading "(cd)/boot/l4/l4env/dm_phys --isa=0x00800000" from [061f0000-0628a8b4] to [01500000-01513cb7][01514000-0151e000] entry at 00062384 via trampoline page code symbols at [0eb58000-0eb5d000] (20kB), lines at [0eb4a000-0eb58000] (56kB) #09: loading "(cd)/boot/l4/l4env/simple_ts -t 300" from [0628b000-062d8310] to [01400000-01408dea][01409000-014185e8] entry at 0006337c via trampoline page code symbols at [0eb48000-0eb4a000] (8kB), lines at [0eb40000-0eb48000] (32kB) #0a: loading "(cd)/boot/l4/l4env/rtc" from [062d9000-06308a5c] to [01080000-010845c0][01085000-0108a000] entry at 00064370 via trampoline page code symbols at [0eb3e000-0eb40000] (8kB), lines at [0eb39000-0eb3e000] (20kB) #0b: loading "(cd)/boot/l4/l4env/l4io" from [06309000-0654a391] to [00c20000-00c45315][00c46000-00cb4000] entry at 00066370 via trampoline page code symbols at [0eae3000-0eb39000] (344kB), lines at [0eac9000-0eae3000] (104kB) #0c: loading "(cd)/boot/l4/l4env/l4dope" from [0654b000-066c2384] to [01b00000-01b45ef1][01b46000-01b8b000] entry at 00067374 via trampoline page code symbols at [0eabb000-0eac9000] (56kB), lines at [0ea8d000-0eabb000] (184kB) #0d: loading "(cd)/boot/l4/usb/usbcore" from [066c3000-068faac1] to [008e0000-0092600d][00927000-0094c000] entry at 00068374 via trampoline page code symbols at [0ea81000-0ea8d000] (48kB), lines at [0ea4b000-0ea81000] (216kB) #0e: loading "(cd)/boot/l4/usb/usbhid" from [068fb000-06b0a851] to [00cc0000-00cffecd][00d00000-00d24000] entry at 00069370 via trampoline page code symbols at [0ea40000-0ea4b000] (44kB), lines at [0ea11000-0ea40000] (188kB) #0f: loading "(cd)/boot/l4/l4env/bmodfs" from [06b0b000-06bb2f8d] to [01220000-01238689][01239000-01250000] passing module (cd)/boot/l4/cfg/l4linux26.cfg [ 06bb3000-06bb3165 ] passing module (cd)/boot/l4/l4env/libloader.s.so [ 06bb4000-06c52f11 ] passing module (cd)/boot/l4/l4env/libld-l4.s.so [ 06c53000-06ccc219 ] passing module (cd)/boot/l4/l4linux/vmlinuz [ 06ccd000-07083183 ] passing module (cd)/boot/l4/l4linux/drops.rd [ 07084000-08084000 ] entry at 0006a46c via trampoline page code symbols at [0ea0c000-0ea11000] (20kB), lines at [0e9f9000-0ea0c000] (76kB) #10: loading "(cd)/boot/l4/l4env/loader --fprov=BMODFS l4linux26.cfg" from [08084000-08162b6d] to [01300000-013291c9][0132a000-01349000] entry at 0006b390 via trampoline page code symbols at [0e9f2000-0e9f9000] (28kB), lines at [0e9d8000-0e9f2000] (104kB)
ROOT: Sending ports 0070-0070 to task #0a ROOT: Sending ports 0080-0080 to task #0a ROOT: Sending ports 0071-0071 to task #0a names | Starting thread listening for `exit' events rtc | Date:29.04.2009 Time:09:33:00 simplets| Configured for 300 tasks. bmodfs | Passed the following modules: bmodfs | module "(cd)/boot/l4/cfg/l4linux26.cfg" (1kB) bmodfs | module "(cd)/boot/l4/l4env/libloader.s.so" (636kB) bmodfs | module "(cd)/boot/l4/l4env/libld-l4.s.so" (485kB) bmodfs | module "(cd)/boot/l4/l4linux/vmlinuz" (3801kB) bmodfs | module "(cd)/boot/l4/l4linux/drops.rd" (16384kB) loader | Can't map tbuf status page usbcore | main(): DDE USB CORE initiaizing: usbcore | main(): Initializing DDE base system. loader | sleeping for 1000 ms io | Using platform configuration 'x86' ROOT: Sending ports 0cfb-0cfb to task #0b ROOT: Sending ports 0cf8-0cfb to task #0b ROOT: Sending ports 0cfe-0cff to task #0b 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 #0b usbhid | main(): DDEUSB client side initiaizing: io | PCI: PIIX3: Enabling Passive Release on 00:01.0 io | Limiting direct PCI/PCI transfers. io | Activating ISA DMA hang workarounds. io | 00000000-ffffffff : PCI mem io | f0000000-f1ffffff : Cirrus Logic GD 5446 io | f2000000-f2000fff : Cirrus Logic GD 5446 io | 0000-ffff : PCI IO io | 0cf8-0cff : PCI conf1 io | b000-b03f : Intel Corporation 82371AB/EB/MB PIIX4 ACPI io | b100-b11f : Intel Corporation 82371AB/EB/MB PIIX4 ACPI io | c000-c00f : Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] io | c020-c03f : Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] io | c100-c1ff : Realtek Semiconductor Co., Ltd. RTL-8029(AS) io | Available IRQs=[ <!0> 1 <!2> 3 <!4> 5 6 7 8 9 a b c d e f 10 11 ] usbhid | Softirq daemon starting usbhid | Initializing DDE page cache usbhid | <6>usbcore: registered new interface driver hub usbhid | <6>usbcore: registered new device driver usb usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | _add_ddekit_device: Detected device: 8086:7000 usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | _add_ddekit_device: Detected device: 8086:7010 usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | _add_ddekit_device: Detected device: 8086:7020 usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | _add_ddekit_device: Detected device: 8086:7113 usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | _add_ddekit_device: Detected device: 1013:b8 usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | _add_ddekit_device: Detected device: 10ec:8029 l4dope | L4INPUT native mode activated l4dope | L4INPUT: !!! W A R N I N G !!! usbcore | main(): Initializing DDE kmalloc. usbcore | main(): Initializing DDE process. usbcore | main(): Initializing DDE timers. 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 #0b usbcore | main(): Initializing DDE softirq. l4dope | Failed to disable AUX port, but continuing anyway... Is this a SiS? l4dope | If AUX port is really absent please use the 'i8042.noaux' option. l4dope | serio: i8042 KBD port at 0x60,0x64 irq 1 usbcore | Softirq daemon starting usbcore | main(): Doing initcalls... usbcore | Initializing DDE page cache usbhid | <6>/home/user/Desktop/tudos/l4/pkg/usb/lib/libddeusb26/src/ddeusb_vhc usbhid : d.c: driver ddeusb_vhcd, DDEUSB Virtual Host Controller usbhid | usbhid | <6>ddeusb_vhcd ddeusb_vhcd: DDEUSB Virtual Host Controller usbhid | <6>ddeusb_vhcd ddeusb_vhcd: new USB bus registered, assigned bus numb usbhid : er 1 usbhid | going to init root hub usbhid | <6>usb usb1: configuration #1 chosen from 1 choice usbhid | <6>hub 1-0:1.0: USB hub found usbhid | <6>hub 1-0:1.0: 13 ports detected usbcore | <6>usbcore: registered new interface driver hub usbcore | <6>usbcore: registered new device driver usb usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | _add_ddekit_device: Detected device: 8086:7000 usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | _add_ddekit_device: Detected device: 8086:7010 usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | _add_ddekit_device: Detected device: 8086:7020 usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | _add_ddekit_device: Detected device: 8086:7113 usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | _add_ddekit_device: Detected device: 1013:b8 usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | _add_ddekit_device: Detected device: 10ec:8029 usbcore | <6>usbcore: registered new interface driver ddeusb usbcore | <7>ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Dri usbcore : ver (PCI) usbcore | <6>USB Universal Host Controller Interface driver v3.0 ROOT: Sending ports c020-c03f to task #0b io | PCI: Setting latency timer of device 00:01.2 to 64 usbcore | <6>uhci_hcd 0000:00:02.0: UHCI Host Controller usbcore | <6>uhci_hcd 0000:00:02.0: new USB bus registered, assigned bus number usbcore : 1 usbcore | <6>uhci_hcd 0000:00:02.0: irq 9, io base 0x0000c020 usbcore | going to init root hub usbcore | <6>usb usb1: configuration #1 chosen from 1 choice usbcore | <6>hub 1-0:1.0: USB hub found usbcore | <6>hub 1-0:1.0: 2 ports detected l4dope | input: AT Raw 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 "AT Raw Set 2 keyboard", isa0060/serio0/input0 l4dope | connect "PC Speaker", isa0061/input0 l4dope | connect "L4 input event injector", l4/sys l4dope | SharedMem(alloc): hl.raw=100000, id=68, size=800 l4dope | SharedMem(get_adr): address = 0x5000 l4dope | SharedMem(alloc): hl.raw=100000, id=69, size=800 l4dope | SharedMem(get_adr): address = 0x6000 l4dope | SharedMem(alloc): hl.raw=100000, id=6a, size=800 l4dope | SharedMem(get_adr): address = 0x7000 l4dope | SharedMem(alloc): hl.raw=100000, id=6b, size=800 l4dope | SharedMem(get_adr): address = 0xd000 l4dope | SharedMem(alloc): hl.raw=100000, id=6c, size=800 l4dope | SharedMem(get_adr): address = 0xe000 l4dope | SharedMem(alloc): hl.raw=100000, id=6d, size=800 l4dope | SharedMem(get_adr): address = 0xf000 l4dope | SharedMem(alloc): hl.raw=100000, id=6f, size=800 l4dope | SharedMem(get_adr): address = 0x16000 l4dope | SharedMem(alloc): hl.raw=100000, id=74, size=484 l4dope | SharedMem(get_adr): address = 0x20000 l4dope | dope: paddr=f0000000 size=4096KiB l4dope | Mapped video memory at f0000000 to 00400000+000000 [4096kB] via L4IO l4dope | mapping: vaddr=0x400000 size=4194304(0x400000) offset=0(0x0) l4dope | Frame buffer base: 0x400000 l4dope | Resolution: 1024x768x16 l4dope | Bytes per scanline: 2048 usbhid | going to root:whub poll l4dope | Current video mode is 1024x768 red=11:5 green=5:6 blue=0:5 res=0:0 usbcore | going to root:whub poll usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | unimplemented: pci_fixup_device usbcore | main(): Registered at names. usbcore | main(): READY. usbhid | libddeusb_server_loop(): d_urbs @ 0x00180004 usbcore | ddeusb_core_ddeusb_setup_control_ds_component(): Attached control dat usbcore : a space (size :d5b88, offset: 4) returned 0 (mapped to 0x001 usbcore : 80004) usbhid | <6>usbcore: registered new interface driver usbhid usbhid | <6>/home/user/Desktop/tudos/l4/pkg/usb/examples/usbhid/src/contrib/dr usbhid : iver/usb/input/hid-core.c: v2.6:USB HID core driver usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | unimplemented: pci_fixup_device usbhid | main(): found l4i_proxy at c.6 usbcore | <6>usb 1-2: new full speed USB device using uhci_hcd and address 2 usbcore | <6>usb 1-2: configuration #1 chosen from 1 choice loader | vmlinuz: Starting application using libld-l4.s.so loader | vmlinuz,#11: Loading binary loader | vmlinuz,#11: Loading ldso loader | vmlinuz,#11: Starting libld-l4.s.so at 000138e0 via 0000cc40 usbhid | <6>usb 1-1: new full speed USB device using ddeusb_vhcd and address 2 usbhid | <6>usb 1-1: configuration #1 chosen from 1 choice l4lx | ======> L4Linux 2.6 starting... <======== l4lx | Linux version 2.6.28-l4-svn143 (user@debian) (gcc version 4.3.2 (Debi l4lx : an 4.3.2-1.1) ) #2 Fri Mar 6 21:57:21 MYT 2009 l4lx | Binary name: vmlinuz l4lx | Linux kernel command line (5 args): mem=64M load_ramdisk=1 ramdisk_si l4lx : ze=16384 root=/dev/ram l4env_rd=drops.rd l4lx | Image: 00400000 - 007f2000 [4040 KiB]. l4lx | Areas: Text: 00400000 - 006f6000 [3032kB] (a bit longer) l4lx | Data: 006f6000 - 0071d6d4 [157kB] l4lx | Initdata: 00720000 - 00761000 [260kB] l4lx | BSS: 00762000 - 007f1030 [572kB] l4lx | l4lx_thread_create: Created thread 11.03 (tamer0) l4lx | Tamer0 is 11.03 l4lx | Using tamed mode. ROOT: Sending all ports (for cli/sti) to task #10 l4lx | Got 65536 out of 65536 I/O ports l4lx | Connecting to l4io server. l4lx | l4env_linux_startup thread 4. l4lx | l4lx_thread_create: Created thread 11.04 (cpu0) l4lx | main thread will be 11.04 l4lx | l4env_register_pointer_section: addr = 006f6000 size = 1032192 l4lx | sec-w-init: virt: 0x006f6000 to 0x007f1fff [1008 KiB] l4lx | sec-w-init: Number of physical regions: 1, 1032192 Bytes l4lx | sec-w-init: 1: Phys: 0x01b8b000 to 0x01c87000, Size: 1032192 l4lx | main thread: received startup message. l4lx | memory_setup: mem=64M load_ramdisk=1 ramdisk_size=16384 root=/dev/ram l4lx : l4env_rd=drops.rd l4lx | setup_l4env_memory: Forcing superpages for main memory l4lx | Main thread running, waiting... l4lx | Main memory size: 64MB l4lx | Got 2048kB of ISA DMA memory. l4lx | ISA DMA memory: virt: 0x00800000 to 0x009fffff [2048 KiB] l4lx | ISA DMA memory: Number of physical regions: 1, 2097152 Bytes l4lx | ISA DMA memory: 1: Phys: 0x0043a000 to 0x0063a000, Size: 2097152 l4lx | Main memory: virt: 0x00c00000 to 0x04bfffff [65536 KiB] l4lx | Main memory: Number of physical regions: 1, 67108864 Bytes l4lx | Main memory: 1: Phys: 0x02400000 to 0x06400000, Size: 67108864 l4lx | Filling lower ptabs... l4lx | mainmem = c00000 usbhid | <6>input: QEMU 0.9.1 QEMU USB Mouse as /class/input/input0 usbhid | connect "QEMU 0.9.1 QEMU USB Mouse" usbhid | <6>input: USB HID v0.01 Mouse [QEMU 0.9.1 QEMU USB Mouse] on usb-ddeu usbhid : sb_vhcd-1 l4lx | Done (1481 entries). l4lx | l4env_register_pointer_section: addr = 006f6000 size = 1032192 l4lx | end: virt: 0x006f6000 to 0x007f1fff [1008 KiB] l4lx | end: Number of physical regions: 1, 1032192 Bytes l4lx | end: 1: Phys: 0x01b8b000 to 0x01c87000, Size: 1032192 l4lx | memory_setup done l4lx | l4env_rd_path: drops.rd l4lx | Loading: drops.rd l4lx | INITRD: Size of RAMdisk is 16384KiB l4lx | RAMdisk from 04c00000 to 05c00000 [16384KiB] l4lx | l4lx_thread_create: Created thread 11.05 (timer.i0) l4lx | Jumping over 4x 'hlt' at 0x729944 l4lx | idler0: utcb=0xbff00400 11.04 l4lx | l4lx_thread_create: Created thread 11.06 (idler0) l4lx | Starting L4FB via DOpE l4dope | SharedMem(alloc): hl.raw=100000, id=dc, size=96000 l4dope | SharedMem(get_adr): address = 0x800000 l4lx | l4lx_thread_create: Created thread 11.08 (DOpE refresher) l4lx | l4lx_thread_create: Created thread 11.09 (L4DOpEinput) usbcore | <6>usb 1-2: USB disconnect, address 2 l4lx | l4lx_irq_dev_startup_hw: Starting IRQ thread for IRQ 14. l4lx | l4lx_thread_create: Created thread 11.0a (IRQ14) l4lx | l4lx_irq_dev_startup_hw: Starting IRQ thread for IRQ 15. l4lx | l4lx_thread_create: Created thread 11.0b (IRQ15) l4lx | l4lx_irq_dev_startup_hw: Starting IRQ thread for IRQ 11. l4lx | l4lx_thread_create: Created thread 11.0c (IRQ11)
On Wed, Apr 29, 2009 at 3:42 PM, Neohtm neohtm@gmail.com wrote:
Hi all,
I tried to run the tudos-demo-cd.iso with qemu 'qemu -m 256 -cdrom tudos-demo-cd.iso -usbdevice mouse' and it's running perfectly with the usb mouse and keyboard.
but when i tried on the one i'm compiled. the mouse and keyboard not functioning at all and returns a kernel panic.
Please help.....
Regards, neohtm
Below are the output of the error.
Welcome to Fiasco(ia32)! DD-L4(v2)/ia32 microkernel (C) 1998-2009 TU Dresden Rev: r438 compiled with gcc 4.3.2 for Intel Pentium [] Performance-critical config option(s) detected: CONFIG_NDEBUG is off CONFIG_NO_FRAME_PTR is off
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: GenuineIntel (6:3:3:0) Model: Pentium II (Klamath) at 1795 MHz
32 KB L1 I Cache (8-way associative, 64 bytes per line) 32 KB L1 D Cache (8-way associative, 64 bytes per line) 2048 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)/boot/l4/l4env/roottask task modname "loader" allow_cli task modname "bmodfs" attached 5 modules"
261695kB ( 255MB) total RAM (reported by bootloader) 234760kB ( 230MB) received RAM from Sigma0 34212kB ( 34MB) 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 10 11 ]
Roottask: Parsing command line config. configured task 0x00 (loader): vm_offs:0 irq:3ffff lmcp:ffff allow_cli:1 mcp:ff prio:10 small:ff mods:0 configured task 0x00 (bmodfs): vm_offs:0 irq:3ffff lmcp:ffff allow_cli:0 mcp:ff prio:10 small:ff mods:5
Roottask: Loading 17 modules. #05: loading "(cd)/boot/l4/l4env/events" from [0612e000-0616fe99] to [01540000-01549190][0154a000-0155f590] entry at 0005f374 via trampoline page code symbols at [0eb74000-0eb76000] (8kB), lines at [0eb6d000-0eb74000] (28kB) #06: loading "(cd)/boot/l4/l4env/names --events" from [06170000-061b1c12] to [002d0000-002d6a37][002d7000-002e2000] entry at 0006037c via trampoline page code symbols at [0eb6b000-0eb6d000] (8kB), lines at [0eb65000-0eb6b000] (24kB) #07: loading "(cd)/boot/l4/l4env/log" from [061b2000-061efd07] to [00400000-00406eca][00407000-00439808] entry at 00061370 via trampoline page code symbols at [0eb63000-0eb65000] (8kB), lines at [0eb5d000-0eb63000] (24kB) #08: loading "(cd)/boot/l4/l4env/dm_phys --isa=0x00800000" from [061f0000-0628a8b4] to [01500000-01513cb7][01514000-0151e000] entry at 00062384 via trampoline page code symbols at [0eb58000-0eb5d000] (20kB), lines at [0eb4a000-0eb58000] (56kB) #09: loading "(cd)/boot/l4/l4env/simple_ts -t 300" from [0628b000-062d8310] to [01400000-01408dea][01409000-014185e8] entry at 0006337c via trampoline page code symbols at [0eb48000-0eb4a000] (8kB), lines at [0eb40000-0eb48000] (32kB) #0a: loading "(cd)/boot/l4/l4env/rtc" from [062d9000-06308a5c] to [01080000-010845c0][01085000-0108a000] entry at 00064370 via trampoline page code symbols at [0eb3e000-0eb40000] (8kB), lines at [0eb39000-0eb3e000] (20kB) #0b: loading "(cd)/boot/l4/l4env/l4io" from [06309000-0654a391] to [00c20000-00c45315][00c46000-00cb4000] entry at 00066370 via trampoline page code symbols at [0eae3000-0eb39000] (344kB), lines at [0eac9000-0eae3000] (104kB) #0c: loading "(cd)/boot/l4/l4env/l4dope" from [0654b000-066c2384] to [01b00000-01b45ef1][01b46000-01b8b000] entry at 00067374 via trampoline page code symbols at [0eabb000-0eac9000] (56kB), lines at [0ea8d000-0eabb000] (184kB) #0d: loading "(cd)/boot/l4/usb/usbcore" from [066c3000-068faac1] to [008e0000-0092600d][00927000-0094c000] entry at 00068374 via trampoline page code symbols at [0ea81000-0ea8d000] (48kB), lines at [0ea4b000-0ea81000] (216kB) #0e: loading "(cd)/boot/l4/usb/usbhid" from [068fb000-06aa0604] to [01900000-0193e269][0193f000-01966000] entry at 00069370 via trampoline page code symbols at [0ea42000-0ea4b000] (36kB), lines at [0ea17000-0ea42000] (172kB) #0f: loading "(cd)/boot/l4/l4env/bmodfs" from [06aa1000-06b48f8d] to [01220000-01238689][01239000-01250000] passing module (cd)/boot/l4/cfg/l4linux26.cfg [ 06b49000-06b49165 ] passing module (cd)/boot/l4/l4env/libloader.s.so [ 06b4a000-06be8f11 ] passing module (cd)/boot/l4/l4env/libld-l4.s.so [ 06be9000-06c62219 ] passing module (cd)/boot/l4/l4linux/vmlinuz [ 06c63000-07019183 ] passing module (cd)/boot/l4/l4linux/drops.rd [ 0701a000-0801a000 ] entry at 0006a46c via trampoline page code symbols at [0ea12000-0ea17000] (20kB), lines at [0e9ff000-0ea12000] (76kB) #10: loading "(cd)/boot/l4/l4env/loader --fprov=BMODFS l4linux26.cfg" from [0801a000-080f8b6d] to [01300000-013291c9][0132a000-01349000] entry at 0006b390 via trampoline page code symbols at [0e9f8000-0e9ff000] (28kB), lines at [0e9de000-0e9f8000] (104kB)
ROOT: Sending ports 0070-0070 to task #0a ROOT: Sending ports 0080-0080 to task #0a ROOT: Sending ports 0071-0071 to task #0a names | Starting thread listening for `exit' events rtc | Date:29.04.2009 Time:07:33:01 simplets| Configured for 300 tasks. loader | Can't map tbuf status page usbcore | main(): DDE USB CORE initiaizing: usbcore | main(): Initializing DDE base system. io | Using platform configuration 'x86' ROOT: Sending ports 0cfb-0cfb to task #0b ROOT: Sending ports 0cf8-0cfb to task #0b ROOT: Sending ports 0cfe-0cff to task #0b 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 #0b io | PCI: PIIX3: Enabling Passive Release on 00:01.0 io | Limiting direct PCI/PCI transfers. io | Activating ISA DMA hang workarounds. io | 00000000-ffffffff : PCI mem io | f0000000-f1ffffff : Cirrus Logic GD 5446 io | f2000000-f2000fff : Cirrus Logic GD 5446 io | 0000-ffff : PCI IO io | 0cf8-0cff : PCI conf1 io | b000-b03f : Intel Corporation 82371AB/EB/MB PIIX4 ACPI io | b100-b11f : Intel Corporation 82371AB/EB/MB PIIX4 ACPI io | c000-c00f : Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] io | c020-c03f : Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] io | c100-c1ff : Realtek Semiconductor Co., Ltd. RTL-8029(AS) bmodfs | Passed the following modules: bmodfs | module "(cd)/boot/l4/cfg/l4linux26.cfg" (1kB) bmodfs | module "(cd)/boot/l4/l4env/libloader.s.so" (636kB) bmodfs | module "(cd)/boot/l4/l4env/libld-l4.s.so" (485kB) bmodfs | module "(cd)/boot/l4/l4linux/vmlinuz" (3801kB) bmodfs | module "(cd)/boot/l4/l4linux/drops.rd" (16384kB) loader | sleeping for 1000 ms io | Available IRQs=[ <!0> 1 <!2> 3 <!4> 5 6 7 8 9 a b c d e f 10 11 ] 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 #0b l4dope | Failed to disable AUX port, but continuing anyway... Is this a SiS? l4dope | If AUX port is really absent please use the 'i8042.noaux' option. l4dope | serio: i8042 KBD port at 0x60,0x64 irq 1 l4dope | input: AT Raw 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 "AT Raw Set 2 keyboard", isa0060/serio0/input0 l4dope | connect "PC Speaker", isa0061/input0 l4dope | connect "L4 input event injector", l4/sys l4dope | SharedMem(alloc): hl.raw=100000, id=44, size=800 l4dope | SharedMem(get_adr): address = 0x5000 l4dope | SharedMem(alloc): hl.raw=100000, id=45, size=800 l4dope | SharedMem(get_adr): address = 0x6000 l4dope | SharedMem(alloc): hl.raw=100000, id=46, size=800 l4dope | SharedMem(get_adr): address = 0x7000 l4dope | SharedMem(alloc): hl.raw=100000, id=47, size=800 l4dope | SharedMem(get_adr): address = 0xd000 l4dope | SharedMem(alloc): hl.raw=100000, id=48, size=800 l4dope | SharedMem(get_adr): address = 0xe000 l4dope | SharedMem(alloc): hl.raw=100000, id=49, size=800 l4dope | SharedMem(get_adr): address = 0xf000 l4dope | SharedMem(alloc): hl.raw=100000, id=4b, size=800 l4dope | SharedMem(get_adr): address = 0x16000 usbcore | main(): Initializing DDE kmalloc. usbcore | main(): Initializing DDE process. usbcore | main(): Initializing DDE timers. usbhid | l4dde_mm_init(): Using ... usbhid | 16 kB at 0x00002000 (vmem) usbhid | 128 kB in 1 regions (kmem) l4dope | SharedMem(alloc): hl.raw=100000, id=55, size=484 l4dope | SharedMem(get_adr): address = 0x20000 l4dope | dope: paddr=f0000000 size=4096KiB l4dope | Mapped video memory at f0000000 to 00400000+000000 [4096kB] via L4IO l4dope | mapping: vaddr=0x400000 size=4194304(0x400000) offset=0(0x0) l4dope | Frame buffer base: 0x400000 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 usbcore | main(): Initializing DDE softirq. usbcore | Softirq daemon starting usbcore | main(): Doing initcalls... usbcore | Initializing DDE page cache usbcore | <6>usbcore: registered new interface driver hub usbhid | register_chrdev(): called input usbhid | register_chrdev(): called usb usbhid | usb: registered new driver hub usbhid | usb: $Revision: 238 $ time 17:10:21 Apr 11 2009 usbhid | usb: High bandwidth mode enabled io | PCI: Setting latency timer of device 00:01.2 to 64 usbhid | /home/user/Desktop/tudos/l4/pkg/usbhid/server/lib-linux/contrib/usb/h usbhid : ost/usb-uhci.c: USB UHCI at I/O 0xc020, IRQ 9 ROOT: Sending ports c030-c031 to task #0e ROOT: Sending ports c032-c033 to task #0e ROOT: Sending ports c034-c035 to task #0e usbhid | usb: Detected 2 ports ROOT: Cannot send port c030 to task #0b, owner is #0e io | [B.2] l4io/server/src/res.c:414:l4_io_request_region_component(): io | sigma0 request for I/O ports [c020,c040) failed (err=0 dw1=0) io |
--PANIC, 'g' for exit------------------------------------IP:
00c21185 [io] (b.02) jdb:
Hi neohtm,
the usbcore disconnect the usb mouse when loading the l4linux. is it that i had did the wrong setup when compiling the l4linux?
It seems like you have compiled L4Linux with native USB support. So L4 Linux tries to use the real HC hardware, and like that causes a reset of the host-controller. Actually L4IO should not allow L4Linux to access hw-ressources L4IO allready has given away. It seems this is not the case here, maybe because your linux is running on a higher privilege level caused by an 'allow_cli' in your L4Linux loader configuration. For now i suggest to compile L4Linux without USB support. A virtual host-controller driver for L4linux that uses usbcore is on the way.
Ciao, Dirk
l4-hackers@os.inf.tu-dresden.de