What is the trick to get the networking active with the Linaro QEMU
emulating a beaglexm running Linaro Alpha 3? ifconfig -a only shows the loopback interface.

        I am creating the boot image with:

#!/bin/sh

# Ref: http://snapshots.linaro.org/11.05-daily/linaro-nano/latest/0/images/tar/ # Ref: http://snapshots.linaro.org/11.05-daily/linaro-hwpacks/omap3/latest/0/images/hwpack/

linaro-media-create \
        --rootfs ext3 \
        --hwpack-force-yes \
        --dev beagle \
        --binary ~/Downloads/linaro-natty-nano-tar-20110305-0.tar.gz \
--hwpack ~/Downloads/hwpack_linaro-omap3_20110305-0_armel_supported.tar.gz \
        --image_file beagle_sd.img

        QEMU is being run with the following options:

#!/bin/sh

DISK=beagle_sd.img

qemu-system-arm \
        -nographic \
        -M beaglexm \
        -m 512 \
        -net nic \
        -net user,hostfwd=tcp::5555-:22 \
        -usb \
        -sd ${DISK}

        The head of my git tree for the Linaro
        QEMU (git://git.linaro.org/qemu/qemu-linaro.git) is:

commit c67ccff50fd53723302c47a233f3daec2807cf0d
Author: Peter Maydell <peter.mayd...@linaro.org>
Date:   Fri Mar 4 11:56:20 2011 +0000

    Changelog.LINARO: add note about prlimit64 emulation

    Add entry to Changelog.LINARO about prlimit64 (a fix added
    to the 2011.03-0 release at the last minute).

        ifconfig -a only shows the following:

root@linaro:~# ifconfig -a
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

        Here is the dmesg output:

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.38-1000-linaro-omap (buildd@crabapple) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-3ubuntu3) ) #1-Ubuntu SMP Thu Feb 24 04:55:52 UTC 2011 (Ubuntu 2.6.38-1000.1-linaro-omap 2.6.38-rc6) [ 0.000000] CPU: ARMv7 Processor [412fc083] revision 3 (ARMv7), cr=10c53c7f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: OMAP3 Beagle Board
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Reserving 12582912 bytes SDRAM for VRAM
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] OMAP3630 ES1.1 (iva sgx neon isp 192mhz_clk )
[    0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
[    0.000000] On node 0 totalpages: 128000
[ 0.000000] free_area_init_node: node 0, pgdat c07ff740, node_mem_map c08c8000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 126976 pages, LIFO batch:31
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c0ccc000 s9760 r8192 d14816 u32768
[    0.000000] pcpu-alloc: s9760 r8192 d14816 u32768 alloc=8*4096
[    0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 126976 [ 0.000000] Kernel command line: console=tty0 console=ttyO2,115200n8 root=UUID=9b622030-94f8-4f64-987d-ccfc3120b386 rootwait ro earlyprintk fixrtc nocompcache vram=12M omapfb.mode=dvi:1280x720MR-16@60
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 2621440 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 500MB = 500MB total
[ 0.000000] Memory: 491836k/491836k available, 32452k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xe0800000 - 0xf8000000   ( 376 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc005b000   ( 332 kB)
[    0.000000]       .text : 0xc005b000 - 0xc079bf58   (7428 kB)
[    0.000000]       .data : 0xc079c000 - 0xc0801190   ( 405 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU-based detection of stalled CPUs is disabled.
[    0.000000] NR_IRQS:402
[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
[    0.000000] Reprogramming SDRC clock to 332000000 Hz
[    0.000000] GPMC revision 5.0
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[    0.000000] Total of 96 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty0] enabled
[    0.014160] Calibrating delay loop... 271.01 BogoMIPS (lpj=1060864)
[    0.203094] pid_max: default: 32768 minimum: 301
[    0.204101] Security Framework initialized
[    0.205688] AppArmor: AppArmor initialized
[    0.205871] Yama: becoming mindful.
[    0.208282] Mount-cache hash table entries: 512
[    0.214416] Initializing cgroup subsys ns
[ 0.214752] ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup.
[    0.215148] Initializing cgroup subsys cpuacct
[    0.215454] Initializing cgroup subsys memory
[    0.215972] Initializing cgroup subsys devices
[    0.216247] Initializing cgroup subsys freezer
[    0.216888] CPU: Testing write buffer coherency: ok
[ 0.223419] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 1 counters available
[    0.228790] Brought up 1 CPUs
[    0.229003] SMP: Total of 1 processors activated (271.01 BogoMIPS).
[    0.231567] devtmpfs: initialized
[    0.245605] print_constraints: dummy:
[    0.247314] NET: Registered protocol family 16
[ 0.252960] omap_device: omap_gpio.0: new worst case activate latency 0: 61035
[    0.253784] OMAP GPIO hardware version 2.5
[    0.256195] OMAP GPIO hardware version 2.5
[    0.256774] OMAP GPIO hardware version 2.5
[    0.257049] OMAP GPIO hardware version 2.5
[    0.257354] OMAP GPIO hardware version 2.5
[    0.257659] OMAP GPIO hardware version 2.5
[    0.261901] omap_mux_init: Add partition: #1: core, flags: 0
[    0.266876] OMAP3 Beagle Rev: xM
[    0.269042] omap_device: omap_dss: clk_add_alias for tv_clk failed
[    0.269348] omap_device: omap_dss: clk_add_alias for video_clk failed
[    0.269622] omap_device: omap_dss: clk_add_alias for sys_clk failed
[ 0.271697] omap_device: omap_uart.0: new worst case activate latency 0: 30517 [ 0.272430] omap_device: omap_uart.0: new worst case deactivate latency 0: 30517
[    0.279479] Found NAND on CS0
[    0.279663] Registering NAND on CS0
[    0.282562] hw-breakpoint: debug architecture 0x0 unsupported.
[    0.291198] OMAP DMA hardware revision 5.0
[    0.306701] bio: create slab <bio-0> at 0
[    0.312622] SCSI subsystem initialized
[    0.313751] libata version 3.00 loaded.
[    0.314880] usbcore: registered new interface driver usbfs
[    0.315429] usbcore: registered new interface driver hub
[    0.316009] usbcore: registered new device driver usb
[ 0.317077] omap_device: omap_i2c.1: new worst case activate latency 0: 61035
[    0.317810] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz
[    0.322845] twl4030: PIH (irq 7) chaining IRQs 368..375
[    0.323211] twl4030: power (irq 373) chaining IRQs 376..383
[    0.324401] twl4030: gpio (irq 368) chaining IRQs 384..401
[    0.328308] print_constraints: VUSB1V5: 1500 mV normal standby
[    0.329681] print_constraints: VUSB1V8: 1800 mV normal standby
[    0.330780] print_constraints: VUSB3V1: 3100 mV normal standby
[ 0.333343] print_constraints: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby
[    0.334533] print_constraints: VDAC: 1800 mV normal standby
[    0.335662] print_constraints: VPLL2: 1800 mV normal standby
[ 0.336914] print_constraints: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby [ 0.337890] omap_device: omap_i2c.1: new worst case deactivate latency 0: 61035
[    0.338531] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz
[    0.341278] Advanced Linux Sound Architecture Driver Version 1.0.23.
[    0.346160] NetLabel: Initializing
[    0.346313] NetLabel:  domain hash size = 128
[    0.346496] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.347473] NetLabel:  unlabeled traffic allowed by default
[    0.351867] DMA-API: preallocated 4096 debug entries
[    0.352233] DMA-API: debugging enabled by kernel config
[    0.352630] Switching to clocksource 32k_counter
[    0.360626] Switched to NOHz mode on CPU #0
[    0.388580] AppArmor: AppArmor Filesystem Enabled
[    0.420135] NET: Registered protocol family 2
[ 0.421661] IP route cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.425720] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.426635] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[    0.427581] TCP: Hash tables configured (established 16384 bind 16384)
[    0.427917] TCP reno registered
[    0.428131] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.428497] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.430236] NET: Registered protocol family 1
[    0.430908] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.433380] PMU: registered new PMU device of type 0
[    0.435638] audit: initializing netlink socket (disabled)
[    0.436340] type=2000 audit(0.429:1): initialized
[    0.702423] Trying to unpack rootfs image as initramfs...
[    1.019592] VFS: Disk quotas dquot_6.5.2
[    1.020599] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.035339] fuse init (API version 7.16)
[    1.039001] Btrfs loaded
[    1.039337] msgmni has been set to 960
[ 1.065185] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    1.065582] io scheduler noop registered
[    1.065795] io scheduler deadline registered
[    1.066192] io scheduler cfq registered (default)
[    1.129028] OMAP DSS rev 2.0
[    1.413360] Freeing initrd memory: 4068K
[    1.457336] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.461151] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0 [ 1.462402] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1 [ 1.463531] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[    1.464813] console [ttyO2] enabled, bootconsole disabled
[ 1.466217] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3
[    1.487701] brd: module loaded
[    1.496826] loop: module loaded
[    1.498931] i2c-core: driver [adp5520] using legacy suspend method
[    1.499267] i2c-core: driver [adp5520] using legacy resume method
[    1.502166] omap2-nand driver initializing
[ 1.504119] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit)
[    1.505035] Creating 5 MTD partitions on "omap2-nand.0":
[    1.505584] 0x000000000000-0x000000080000 : "X-Loader"
[    1.510437] 0x000000080000-0x000000260000 : "U-Boot"
[    1.513916] 0x000000260000-0x000000280000 : "U-Boot Env"
[    1.516479] 0x000000280000-0x000000680000 : "Kernel"
[    1.520996] 0x000000680000-0x000010000000 : "File System"
[    1.636413] PPP generic driver version 2.4.2
[ 1.637420] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled). [ 1.637908] CSLIP: code copyright 1989 Regents of the University of California.
[    1.638305] SLIP linefill/keepalive option.
[    1.638916] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.650268] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 3.651214] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
[    3.652862] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[    3.665954] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 0.00
[    3.672302] hub 1-0:1.0: USB hub found
[    3.672943] hub 1-0:1.0: 0 ports detected
[    3.675048] udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)
[    3.677001] mousedev: PS/2 mouse device common for all mice
[    3.679779] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 3.680267] omap_device: omap_i2c.1: new worst case activate latency 0: 91552
[    3.680816] twl_rtc twl_rtc: Power up reset detected.
[    3.682434] twl_rtc twl_rtc: Enabling TWL-RTC.
[    3.684295] device-mapper: uevent: version 1.0.3
[ 3.685882] device-mapper: ioctl: 4.19.1-ioctl (2011-01-07) initialised: dm-de...@redhat.com
[    3.687011] device-mapper: multipath: version 1.2.0 loaded
[    3.687408] device-mapper: multipath round-robin: version 1.0.0 loaded
[    3.689941] cpuidle: using governor ladder
[    3.690246] cpuidle: using governor menu
[    3.690643] sdhci: Secure Digital Host Controller Interface driver
[    3.690979] sdhci: Copyright(c) Pierre Ossman
[    3.805572] OMAP3 Beagle/Devkit8000 SoC init
[ 3.969055] mmc0: host does not support reading read-only switch. assuming write-enable.
[    3.969940] mmc0: new SDHC card at address 4567
[    3.972229] mmcblk0: mmc0:4567 QEMU! 2.00 GiB
[    3.985229]  mmcblk0: p1 p2
[    4.090179] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
[    4.093994] ALSA device list:
[    4.094268]   #0: omap3beagle
[    4.097564] TCP cubic registered
[    4.100189] NET: Registered protocol family 10
[    4.108520] NET: Registered protocol family 17
[    4.109191] Registering the dns_resolver key type
[ 4.110565] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
[    4.119323] ThumbEE CPU extension supported.
[ 4.125976] omap_device: omap_i2c.1: new worst case activate latency 0: 732421 [ 4.127990] omap_device: omap_i2c.1: new worst case deactivate latency 0: 335693
[    4.134277] Power Management for TI OMAP3.
[ 4.136993] omap_init_power_states: core off state C7 disabled due to i583
[    4.138763] sr_init: No PMIC hook to init smartreflex
[ 4.140014] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized [ 4.140930] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized
[    4.141662] SmartReflex Class3 initialized
[    4.154327] clock: disabling unused clocks to save power
[    4.164459] registered taskstats version 1
[    4.166198] fbcvt: 1280x720@60: CVT Name - .921M9-R
[    4.209442] Console: switching to colour frame buffer device 160x45
[ 4.232391] regulator_init_complete: VDAC: incomplete constraints, leaving on [ 4.233093] regulator_init_complete: VUSB3V1: incomplete constraints, leaving on [ 4.233764] regulator_init_complete: VUSB1V8: incomplete constraints, leaving on [ 4.234436] regulator_init_complete: VUSB1V5: incomplete constraints, leaving on [ 4.236999] twl_rtc twl_rtc: setting system clock to 2011-03-05 13:13:15 UTC (1299330795)
[    4.244659] Freeing init memory: 332K
[    5.032348] udev[65]: starting version 167
[    9.643524] EXT3-fs: barriers not enabled
[    9.647216] kjournald starting.  Commit interval 5 seconds
[ 9.648773] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[   14.814971] EXT3-fs (mmcblk0p2): using internal journal
[   14.879119] udev[227]: starting version 167
[   17.981445] Registered led device: beagleboard::usr0
[   17.981903] Registered led device: beagleboard::usr1
[   17.983337] Registered led device: beagleboard::pmu_stat
[ 18.165283] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
[   18.363891] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 18.363983] omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30517
[   18.400451] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 18.668334] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1
[   19.357727] twl4030_usb twl4030_usb: Initialized TWL4030 USB module

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to