Hi,
I have some problems getting the serial console to work under qemu with ARM/realview-eb. I see the output from L4Linux but it does not get any input and also pressing escape does not enter jdb. I have tried qemu 1.0 and 0.12.5. I call it with
qemu-system-arm -M realview-eb -nographic -m 256 -kernel .../l4re/obj/l4/arm-rv/images/bootstrap_L4Linux_ARM.elf
Are there any options one need to pass with "-append"? "-append -serial_esc" does not make any difference. Any other ideas?
L4 version is from l4re-snapshot-2011081207.tar.xz
Output from qemu is below.
Cheers, Stefan
L4 Bootstrapper Build: #12 Thu Jan 26 11:26:11 CET 2012, 4.4.1 Scanning up to 256 MB RAM Memory size is 256MB (00000000 - 10000000) RAM: 0000000000000000 - 000000000fffffff: 262144kB Total RAM: 256MB mod09: 014bc000-017bc000: ramdisk-arm.rd mod08: 01201000-014bb524: vmlinuz.arm mod07: 01200000-012000bd: arm-rv.io mod06: 0111a000-011ff124: io mod05: 01119000-01119189: l4lx.cfg mod04: 010c3000-011186dc: ned mod03: 010a8000-010c23c8: l4re mod02: 0106d000-010a7ba0: moe mod01: 01063000-0106c6f4: sigma0 mod00: 01015000-01062954: fiasco Moving 10 modules to 1100000 with offset eb000 moving module 10 { 14bc000-17bc000 } -> { 15a7000-18a7000 } moving module 09 { 1201000-14bb524 } -> { 12ec000-15a6524 } moving module 08 { 1200000-12000bd } -> { 12eb000-12eb0bd } moving module 07 { 111a000-11ff124 } -> { 1205000-12ea124 } moving module 06 { 1119000-1119189 } -> { 1204000-1204189 } moving module 05 { 10c3000-11186dc } -> { 11ae000-12036dc } moving module 04 { 10a8000-10c23c8 } -> { 1193000-11ad3c8 } moving module 03 { 106d000-10a7ba0 } -> { 1158000-1192ba0 } moving module 02 { 1063000-106c6f4 } -> { 114e000-11576f4 } moving module 01 { 1015000-1062954 } -> { 1100000-114d954 } Scanning fiasco Scanning sigma0 Scanning moe rom/l4lx.cfg Relocated mbi to [0x100f000-0x100f151] Loading fiasco Loading sigma0 Loading moe find kernel info page... found kernel info page at 0x2000 Regions of list regions [ 1000, 193f] { 940} Kern fiasco [ 2000, 5cfff] { 5b000} Kern fiasco [ 90000, 968f3] { 68f4} Sigma0 sigma0 [ 98000, 9e17b] { 617c} Sigma0 sigma0 [ 140000, 175d1f] { 35d20} Root moe [ 178000, 18ecf7] { 16cf8} Root moe [ 1000000, 10143eb] { 143ec} Boot bootstrap [ 100f000, 100f24e] { 24f} Root Multiboot info [ 1193000, 18a6fff] { 714000} Root Modules Memory API Version: (87) experimental Sigma0 config ip:000900e0 sp:01013704 Roottask config ip:00140178 sp:00000000 Starting kernel fiasco at 00001000 Realview System ID: Rev=c HBI=140 Build=0 Arch=4 FPGA=00 Hello from Startup::stage2 Initialize page table Number of IRQs available at this GIC: 96 Vmem_alloc::init() Cache config: ON Welcome to Fiasco.OC (arm)! L4/Fiasco.OC arm microkernel (C) 1998-2011 TU Dresden Rev: rUNKNOWN compiled with gcc 4.4.1 for Realview [] Build: #3 Thu Jan 26 11:21:50 CET 2012
Calibrating timer loop... done. SIGMA0: Hello! KIP @ 2000 allocated 4KB for maintenance structures SIGMA0: Dump of all resource maps RAM:------------------------ [0:0;fff] [0:5d000;8ffff] [0:97000;97fff] [0:9f000;13ffff] [4:140000;175fff] [0:176000;177fff] [4:178000;18efff] [0:18f000;100efff] [4:100f000;100ffff] [0:1010000;1192fff] [4:1193000;18a6fff] [0:18a7000;effffff] IOMEM:---------------------- [0:10000000;ffffffff] MOE: Hello world MOE: found 237772 KByte free memory MOE: found RAM from 5d000 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: [1193000-11ad3c8] [C:503000] l4re BOOTFS: [11ae000-12036dc] [C:504000] ned BOOTFS: [1204000-1204189] [C:505000] l4lx.cfg BOOTFS: [1205000-12ea124] [C:506000] io BOOTFS: [12eb000-12eb0bd] [C:507000] arm-rv.io BOOTFS: [12ec000-15a6524] [C:508000] vmlinuz.arm BOOTFS: [15a7000-18a7000] [C:509000] ramdisk-arm.rd MOE: cmdline: moe rom/l4lx.cfg MOE: Starting: rom/ned rom/l4lx.cfg MOE: loading 'rom/ned' Ned says: Hi World! Ned: loading file: 'rom/l4lx.cfg' l4linux | libio: Warning: Query of 'vbus' failed! l4linux | PH 0 (t: 1) offs=00008000 vaddr=00100000 vend=0041d8f4 l4linux | phys=00100000 ephys=0041d8f4 l4linux | f_sz=0029e39c memsz=0031d8f4 flgs=rwx l4linux | PH 1 (t: 4) offs=002a6378 vaddr=0039e378 vend=0039e39c l4linux | phys=0039e378 ephys=0039e39c l4linux | f_sz=00000024 memsz=00000024 flgs=r-x l4linux | PH 2 (t: 1685382481) offs=00000000 vaddr=00000000 vend=00000000 l4linux | phys=00000000 ephys=00000000 l4linux | f_sz=00000000 memsz=00000000 flgs=rwx l4linux | Starting binary at 0x11c2f0, argc=7 argv=0x80007f8c *argv=0xb1007ff0 argv0=rom/vmlinuz.arm l4linux | External resolver is at 0xa80006a0 l4linux | ======> L4Linux 2.6 starting... <======== l4linux | Linux version 3.0.0-l4 (fritsch@dev) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #2 Thu Jan 26 11:25:33 CET 2012 l4linux | Binary name: rom/vmlinuz.arm l4linux | This is an AEABI build. l4linux | Linux kernel command line (6 args): mem=64M console=ttyLv0 l4x_rd=rom/ramdisk-arm.rd root=1:0 ramdisk_size=4000 init=/bin/sh l4linux | CPU mapping (l:p)[1]: 0:0 l4linux | Image: 00100000 - 00500000 [4096 KiB]. l4linux | Areas: Text: 00100000 - 00382000 [2568kB] (a bit longer) l4linux | Data: 00382000 - 00399460 [93kB] l4linux | Initdata: 00100000 - 0011b000 [108kB] l4linux | BSS: 0039e39c - 0041d8f4 [509kB] l4linux | Device scan: l4linux | l4lx_thread_create: Created thread 413 (cpu0) (u:b3000400, v:b3000600, sp:00383ff0) l4linux | main thread will be 413 l4linux | l4x_register_pointer_section: addr = 00100000 size = 3268608 l4linux | section-with-init: virt: 0x100000 to 0x41d8f3 [3190 KiB] l4linux | section-with-init: Phys: 0x00255000 to 0x005728f4, Size: 3266804 l4linux | l4x_linux_startup: thread 413. l4linux | Main thread running, waiting... l4linux | main thread: received startup message. l4linux | l4x_setup_memory: Forcing superpages for main memory l4linux | l4re_global_env: 0xb1007f0c l4linux | Main memory size: 64MB l4linux | Main memory: virt: 0x500000 to 0x44fffff [65536 KiB] l4linux | Main memory: Phys: 0x01900000 to 0x05900000, Size: 67108864 l4linux | Filling lower ptabs... l4linux | Done (480 entries). l4linux | l4x_register_pointer_section: addr = 004ff000 size = 4096 l4linux | end: virt: 0x4ff000 to 0x4fffff [4 KiB] l4linux | end: Phys: 0x00574000 to 0x00575000, Size: 4096 l4linux | l4x_rd_path: rom/ramdisk-arm.rd l4linux | Loading: rom/ramdisk-arm.rd l4linux | INITRD: Size of RAMdisk is 3072KiB l4linux | RAMdisk from 0c600000 to 0c900000 [3072KiB] l4linux | l4lx_thread_create: Created thread 419 (timer.i0) (u:b3000800, v:00000000, sp:003b7ff4) Linux version 3.0.0-l4 (fritsch@dev) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #2 Thu Jan 26 11:25:33 CET 2012 CPU: Fiasco [860f0001] revision 1 (ARMvundefined/unknown), cr=00000000 CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache l4linux | timer_irq_thread: Starting timer IRQ thread. cpu_arm926_proc_init Machine: L4 Memory policy: ECC disabled, Data cache writeback arm926_flush_kern_cache_all() INITRD: 0c600000 - 0c900000 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 17271 Kernel command line: mem=64M console=ttyLv0 l4x_rd=rom/ramdisk-arm.rd root=1:0 ramdisk_size=4000 init=/bin/sh PID hash table entries: 512 (order: -1, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 0MB 68MB = 68MB total Memory: 64808k/64808k available, 4828k reserved, 0K highmem Virtual kernel memory layout: vector : 0xbffff000 - 0xc0000000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) DMA : 0xffc00000 - 0xffe00000 ( 2 MB) vmalloc : 0x04600000 - 0x0c600000 ( 128 MB) lowmem : 0x00000000 - 0x04500000 ( 69 MB) modules : 0xff100000 - 0x00100000 ( 16 MB) .init : 0x00100000 - 0x0011b000 ( 108 kB) .text : 0x0011c000 - 0x003819e8 (2455 kB) .data : 0x00382000 - 0x00399460 ( 94 kB) .bss : 0x0039e39c - 0x0041d8f4 ( 510 kB) NR_IRQS:220 l4lx_irq_init: l4lx_irq_max = 220 l4lx_irq_dev_startup_timer(0) Console: colour dummy device 80x30 console [ttyLv0] enabled Calibrating delay loop... 315.80 BogoMIPS (lpj=1579008) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 bio: create slab <bio-0> at 0 Failed to create "l4x" debugfs directory: 1 Switching to clocksource kip NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 Trying to unpack rootfs image as initramfs... rootfs image is not initramfs (junk in compressed archive); looks like an initrd INITRD: Freeing memory. NetWinder Floating Point Emulator V0.97 (double precision) msgmni has been set to 126 io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) L4 serial driver ttyLv0 at MMIO 0x1 (irq = 210) is a L4 L4 shared mem serial driver l4cdds: No name given, not starting. brd: module loaded l4bdds: No name given, not starting. mousedev: PS/2 mouse device common for all mice TCP cubic registered NET: Registered protocol family 17 RAMDISK: ext2 filesystem found at block 0 RAMDISK: Loading 3072KiB [1 disk] into ram disk... done. VFS: Mounted root (ext2 filesystem) readonly on device 1:0. Freeing init memory: 108K /bin/sh: can't access tty; job control turned off #