Query

Stefan kalkowski stefan.kalkowski at ...1...
Wed May 30 10:13:51 CEST 2012


Hello Naveen,

the l4linux.run script is used as an automated test, just to see whether
l4linux boots through, and is able to do a HTTP request resp. whether
network is working. The automation is done via the run-script (TCL/TK
language) itself. It uses 'expect' to control the Linux terminal (a
serial console), which is redirected to the terminal you used to start
the run-script (see the second '-serial' argument when qemu is
executed). Moreover, you cannot see the typical qemu window
(representing the framebuffer) because qemu is called with the
'-nographic' argument.

As the output you've posted shows the test has succeeded. You can see
how the whole build process went fine, after that the initramfs image
(used as userland playground for Linux) is downloaded, an ISO image gets
created, and after that how qemu starts the image. The whole Linux
serial console is redirected to the same terminal you used to start the
script, that's why you can see all the kernel messages until the
run-script detects that the test succeeded. At that point it will stop qemu.

If you want to do something with the Linux instance interactively, you
might start the same image via qemu without using the run-script itself.
The correct qemu command line is already shown in your output listing.
or even better, you start to investigate how the l4linux.run script
works, and what the several qemu argument are doing in general.

BTW a very similar question was already raised in our issue tracker,
maybe reading that discussion will help you to get a better understanding:

  https://github.com/genodelabs/genode/issues/180#issuecomment-5215453

But, the mailing-list is a much better place to ask these kind of
questions, so thank you for asking it here, and not in the issue tracker
;-). Nevertheless, it's hard to re-find discussions we had without a
meaningful subject, and even with a lot of different subjects in one
long discussion-thread. So next time you've a new question, that is
unrelated to the previous discussion, would you please start a new
thread with a more meaningful subject (e.g. for this mail "L4Linux on
Fiasco.OC: no terminal" would have been fine).

Best regards
Stefan

On 30.05.2012 08:54, naveen chaubey wrote:
> Hello Norman,
> 
>    I was running l4linux on Fiasco kernel.And i did all the steps.But
> i'm not getting any terminal or GUI after running this kernel.
> 
> Here is the output after running.
> 
> root at ...115...:~/Downloads/genode-12.02/build.foc_x86_32# make run/l4linux
> using run script /home/naveen/Downloads/genode-12.02/base-foc/run/env
> using run script
> /home/naveen/Downloads/genode-12.02/ports-foc/run/l4linux.run
> building targets: core init drivers/timer drivers/uart
> drivers/framebuffer l4linux drivers/nic drivers/pci drivers/input/ps2
> spawn make core init drivers/timer drivers/uart drivers/framebuffer
> l4linux drivers/nic drivers/pci drivers/input/ps2
> make[1]: Entering directory
> `/home/naveen/Downloads/genode-12.02/build.foc_x86_32'
> checking library dependencies for core...
> Skip target core/arm because it requires arm
> checking library dependencies for init...
> checking library dependencies for drivers/timer...
> Skip target drivers/timer/okl4_x86 because it requires okl4
> Skip target drivers/timer/fiasco because it requires fiasco
> Skip target drivers/timer/okl4_arm because it requires okl4 arm
> Skip target drivers/timer/pistachio because it requires pistachio
> Skip target drivers/timer/nova because it requires nova
> Skip target drivers/timer/linux because it requires linux
> Skip target drivers/timer/codezero because it requires codezero
> checking library dependencies for drivers/uart...
> Skip target drivers/uart/pl011 because it requires pl011
> checking library dependencies for drivers/framebuffer...
> Skip target drivers/framebuffer/sdl because it requires linux sdl
> Skip target drivers/framebuffer/fiasco_ux because it requires fiasco
> Skip target drivers/framebuffer/pl11x/vea9x4 because it requires pl11x
> platform_vea9x4
> Skip target drivers/framebuffer/pl11x/vpb926 because it requires pl11x
> platform_vpb926
> Skip target drivers/framebuffer/pl11x/pbxa9 because it requires pl11x
> platform_pbxa9
> checking library dependencies for l4linux...
> Skip target l4linux/arm because it requires arm
> checking library dependencies for drivers/nic...
> Skip target drivers/nic/lan9118 because it requires lan9118
> Skip target drivers/nic/linux because it requires linux
> checking library dependencies for drivers/pci...
> checking library dependencies for drivers/input/ps2...
> Skip target drivers/input/ps2/pl050 because it requires pl050
>   Library platform
>   Library syscalls
>   Library ipc
>   Library slab
>   Library avl_tree
>   Library allocator_avl
>   Library heap
>   Library console
>   Library log_console
>   Library lock
>   Library env
>   Library cxx
>   Library thread
>   Library server
>   Library elf
>   Library process
>   Library startup
>   Program init/init
>   Program drivers/timer/foc/timer
>   Library signal
>   Program drivers/uart/i8250/uart_drv
>   Program drivers/framebuffer/pl11x/
>   Library blit
>   Program drivers/framebuffer/vesa/vesa_drv
>   Library l4lx
>   Library l4sys
>   Program l4linux/x86_32/vmlinux
> ===============================================
>   For quick build instructions, please visit:
>     http://wiki.tudos.org/Quickstart
>     http://l4linux.org/build.shtml
> ===============================================
>   Using /home/naveen/Downloads/genode-12.02/ports-foc/contrib/l4linux as
> source for kernel
>   GEN    
> /home/naveen/Downloads/genode-12.02/build.foc_x86_32/l4linux/Makefile
>   CHK     include/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CALL   
> /home/naveen/Downloads/genode-12.02/ports-foc/contrib/l4linux/scripts/checksyscalls.sh
>   CHK     include/generated/compile.h
>   OBJCOPY arch/l4/boot/Image
>   Kernel: arch/l4/boot/Image is ready
>   Building modules, stage 2.
>   MODPOST 98 modules
>   Library alarm
>   Library dde_kit
>   Library dde_ipxe_support
>   Library dde_ipxe_nic
>   Program drivers/nic/nic_drv
>   Program drivers/pci/x86/pci_drv
>   Program drivers/input/ps2/x86/ps2_drv
>   Library core_printf
>   Library pager
>   Library raw_signal
>   Library raw_server
>   Program core/x86/core
> make[1]: Leaving directory
> `/home/naveen/Downloads/genode-12.02/build.foc_x86_32'
> genode build completed
> Download initramfs ...
> using fiasco kernel
> /home/naveen/Downloads/genode-12.02/build.foc_x86_32/kernel/fiasco.oc/fiasco
> using sigma0/bootstrap at
> /home/naveen/Downloads/genode-12.02/build.foc_x86_32/l4
> creating ISO image...
> spawn qemu -no-kvm -m 128 -nographic -serial
> unix:/tmp/qemu-pipe,server,nowait -serial mon:stdio -net nic,model=e1000
> -net user -cdrom var/run/l4linux.iso
> qemu: pci_add_option_rom: failed to find romfile "pxe-e1000.bin"
> [    0.000000] Linux version 3.0.0-l4+ (root at ...115...) (gcc version 4.6.1
> (GCC) ) #1 Wed May 30 12:14:50 IST 2012
> [    0.000000] BIOS-provided physical RAM map:
> [    0.000000]  L4Lx-Memory: 0000000000000000 - 0000000000401000 (reserved)
> [    0.000000]  L4Lx-Memory: 0000000000401000 - 00000000007f2000 (usable)
> [    0.000000]  L4Lx-Memory: 00000000007f2000 - 0000000004000000 (unusable)
> [    0.000000]  L4Lx-Memory: 0000000004000000 - 0000000008000000 (usable)
> [    0.000000] Notice: NX (Execute Disable) protection missing in CPU!
> [    0.000000] last_pfn = 0x8000 max_arch_pfn = 0x100000
> [    0.000000] init_memory_mapping: 0000000000000000-0000000008000000
> [    0.000000] INITRD: 00c00000 - 00f86000
> [    0.000000] 128MB LOWMEM available.
> [    0.000000]   mapped low ram: 0 - 08000000
> [    0.000000]   low ram: 0 - 08000000
> [    0.000000] Zone PFN ranges:
> [    0.000000]   DMA      0x00000401 -> 0x00000000
> [    0.000000]   Normal   0x00000000 -> 0x00008000
> [    0.000000] Movable zone start PFN for each node
> [    0.000000] early_node_map[2] active PFN ranges
> [    0.000000]     0: 0x00000401 -> 0x000007f2
> [    0.000000]     0: 0x00004000 -> 0x00008000
> [    0.000000] Allocating PCI resources starting at 8000000 (gap:
> 8000000:f8000000)
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on. 
> Total pages: 17145
> [    0.000000] Kernel command line: mem=64M console=ttyS0 l4x_rd=initrd.gz
> [    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
> [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536
> bytes)
> [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
> [    0.000000] Initializing CPU#0
> [    0.000000] Memory: 64460k/131072k available (2251k kernel code,
> 1140k reserved, 984k data, 160k init, 0k highmem)
> [    0.000000] virtual kernel memory layout:
> [    0.000000]     fixmap  : 0x00100000 - 0x0011a000   ( 104 kB)
> [    0.000000]     vmalloc : 0x08000000 - 0x10000000   ( 128 MB)
> [    0.000000]     lowmem  : 0x00000000 - 0x08000000   ( 128 MB)
> [    0.000000]       .init : 0x00736000 - 0x0075e000   ( 160 kB)
> [    0.000000]       .data : 0x00632ea4 - 0x007290fc   ( 984 kB)
> [    0.000000]       .text : 0x00400000 - 0x00632ea4   (2251 kB)
> [    0.000000] SLUB: Genslabs=15, HWalign=32, Order=0-3, MinObjects=0,
> CPUs=1, Nodes=1
> [    0.000000] NR_IRQS:192
> [    0.000000] Console: colour dummy device 80x25
> [    0.000000] console [ttyS0] enabled
> [    0.000000] Detected 1995.126 MHz processor.
> [    0.000481] Calibrating delay loop (skipped), value calculated using
> timer frequency.. 3990.25 BogoMIPS (lpj=19951260)
> [    0.030111] pid_max: default: 32768 minimum: 301
> [    0.040000] Security Framework initialized
> [    0.040000] AppArmor: AppArmor initialized
> [    0.040000] Mount-cache hash table entries: 512
> [    0.093748] CPU: Intel QEMU Virtual CPU version 0.14.1 stepping 03
> [    0.125111] Performance Events: Broken PMU hardware detected, using
> software events only.
> [    0.170324] devtmpfs: initialized
> [    0.192040] NET: Registered protocol family 16
> [    0.224126] bio: create slab <bio-0> at 0
> [    0.243830] SCSI subsystem initialized
> [    0.255071] Switching to clocksource l4kipclk
> [    0.261499] AppArmor: AppArmor Filesystem Enabled
> [    0.303550] NET: Registered protocol family 2
> [    0.318647] IP route cache hash table entries: 1024 (order: 0, 4096
> bytes)
> [    0.324000] TCP established hash table entries: 4096 (order: 3, 32768
> bytes)
> [    0.324000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
> [    0.324000] TCP: Hash tables configured (established 4096 bind 4096)
> [    0.324000] TCP reno registered
> [    0.324000] UDP hash table entries: 256 (order: 0, 4096 bytes)
> [    0.324000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> [    0.428957] NET: Registered protocol family 1
> [    0.437000] Unpacking initramfs...
> [    0.571349] INITRD: Freeing memory.
> [    0.652967] platform rtc_cmos: registered platform RTC device (no PNP
> device found)
> [    0.677579] audit: initializing netlink socket (disabled)
> [    0.682000] type=2000 audit(1338360583.670:1): initialized
> [    0.729316] msgmni has been set to 125
> [    0.747511] Block layer SCSI generic (bsg) driver version 0.4 loaded
> (major 253)
> [    0.765284] io scheduler noop registered
> [    0.775115] io scheduler deadline registered
> [    0.785000] io scheduler cfq registered (default)
> [    0.808169] mousedev: PS/2 mouse device common for all mice
> [    0.822932] ttyS0 at MMIO 0x1 (irq = 64) is a L4
> [    0.832000] rtc-genode rtc-genode.0: rtc core: registered rtc-genode
> as rtc0
> [    0.832000] genode_fb:framebuffer at 0x00c00000, size 4096k
> [    0.832000] genode_fb: mode is 1024x768x16
> [    2.184132] Switching to clocksource tsc
> [    2.193000] Console: switching to colour frame buffer device 128x48
> [    2.193000] input: Genode input key as /devices/virtual/input/input0
> [    2.193000] input: Genode input mouse as /devices/virtual/input/input1
> [    2.325486] initcall genodefb_init+0x0/0x41 returned with disabled
> interrupts
> [    2.351696] Genode blk-file driver initialized
> [    3.593847] TCP cubic registered
> [    3.602577] NET: Registered protocol family 17
> [    3.612487] NET: Registered protocol family 15
> [    3.628223] rtc-genode rtc-genode.0: setting system clock to
> 2012-05-30 06:49:46 UTC (1338360586)
> [    3.658470] Freeing unused kernel memory: 160k freed
> [    3.686374] Write protecting the kernel text: 2252k
> [    3.699688] Write protecting the kernel read-only data: 832k
> Mount everything
> Setup networking
> / # sleep 5
> login[37]: root login on 'tty1'
> [    6.938803] ------------[ cut here ]------------
> [    6.943683] WARNING: at
> /home/naveen/Downloads/genode-12.02/ports-foc/contrib/l4linux/kernel/softirq.c:159
> local_bh_enable+0x75/0x80()
> [    6.943683] Modules linked in:
> [    6.943683] Pid: 48, comm: route Not tainted 3.0.0-l4+ #1
> [    6.943683] Call Trace:
> [    6.943683]  [<00600923>] ? printk+0x18/0x1a
> [    6.943683]  [<0041f2af>] warn_slowpath_common+0x5f/0x80
> [    6.943683]  [<00423935>] ? local_bh_enable+0x75/0x80
> [    6.943683]  [<00423935>] ? local_bh_enable+0x75/0x80
> [    6.943683]  [<0041f2ed>] warn_slowpath_null+0x1d/0x20
> [    6.943683]  [<00423935>] local_bh_enable+0x75/0x80
> [    6.943683]  [<005d50e7>] udp_destroy_sock+0x27/0x50
> [    6.943683]  [<0058ecd2>] sk_common_release+0x12/0x90
> [    6.943683]  [<005d4068>] udp_lib_close+0x8/0x10
> [    6.943683]  [<005dca73>] inet_release+0x33/0x60
> [    6.943683]  [<0058b1f3>] sock_release+0x13/0x60
> [    6.943683]  [<0058b8c2>] sock_close+0x12/0x30
> [    6.943683]  [<00487370>] fput+0xb0/0x1d0
> [    6.943683]  [<00484886>] filp_close+0x46/0x70
> [    6.943683]  [<0041d438>] ? __mmdrop+0x28/0x30
> [    6.943683]  [<00421a53>] put_files_struct+0x63/0xb0
> [    6.943683]  [<00421ade>] exit_files+0x1e/0x20
> [    6.943683]  [<00421f7c>] do_exit+0x49c/0x670
> [    6.943683]  [<00412750>] ? l4x_do_page_fault+0x150/0x370
> [    6.943683]  [<004223af>] do_group_exit+0x2f/0x70
> [    6.943683]  [<004223f0>] ? do_group_exit+0x70/0x70
> [    6.943683]  [<00422403>] sys_exit_group+0x13/0x20
> [    6.943683]  [<00403b98>] l4x_dispatch_exception+0xb8/0x490
> [    6.943683]  [<004038eb>] ? l4x_parse_ptabs+0x1b/0xb0
> [    6.943683]  [<00404892>] l4x_vcpu_entry+0xc2/0x5d0
> [    6.943683]  [<004040ee>] ? l4x_vcpu_iret+0x17e/0x570
> [    6.943683] ---[ end trace 25345e114e8653ff ]---
> / # wget http://genode.org/
> Connecting to genode.org <http://genode.org> (88.198.56.169:80
> <http://88.198.56.169:80>)
> index.html           100% |*******************************| 14638  
> 0:00:00 ETA
> / #Test succeeded
> root at ...115...:~/Downloads/genode-12.02/build.foc_x86_32#
> 
> 
> 
> Thank You,
> Naveen
> 
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> 
> 
> 
> _______________________________________________
> Genode-main mailing list
> Genode-main at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main




More information about the users mailing list