qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] system-ppcemb -M bamboo, troubles with RTC


From: nello martuscielli
Subject: [Qemu-ppc] system-ppcemb -M bamboo, troubles with RTC
Date: Sun, 30 Jun 2013 12:01:38 +0200

hi, i'm giving a try to have a working qemu-system-ppcemb -M bamboo but i've some troubles how to set RTC . I'm using qemu-1.5.1 on a real PowerPC 32bit machine (iBook G4). For my guest kernel i start from 44x/bamboo_defconfig .
 
This is my console output:
 
# qemu-system-ppcemb -M bamboo -m 192 \
        -kernel linux-3.9.7/arch/powerpc/boot/uImage \
        -dtb linux-3.9.7/arch/powerpc/boot/bamboo.dtb \
        -append "root=/dev/vda1 console=ttyS0,115200" \
        -localtime -nographic \
        -net nic,model=virtio -drive file=cruxppc.raw,if=virtio
QEMU 1.5.1 monitor - type 'help' for more information
(qemu)
Warning: vlan 0 is not connected to host network
Using PowerPC 44x Platform machine description
Linux version 3.9.7-bamboo (address@hidden) (gcc version 4.7.3 (CRUX PPC) ) #8 Sun Jun 30 09:09:14 CEST 2013
bootconsole [udbg0] enabled
setup_arch: bootmem
arch: exit
Zone ranges:
  DMA      [mem 0x00000000-0x0bffffff]
  Normal   empty
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x0bffffff]
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 48768
Kernel command line: root=/dev/vda1 console=ttyS0,115200
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 188896k/196608k available (4484k kernel code, 7712k reserved, 216k data, 1148k bss, 148k init)
Kernel virtual memory layout:
  * 0xfffdf000..0xfffff000  : fixmap
  * 0xfde00000..0xfe000000  : consistent mem
  * 0xfddfe000..0xfde00000  : early ioremap
  * 0xd1000000..0xfddfe000  : vmalloc & ioremap
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:512 nr_irqs:512 16
UIC0 (32 IRQ sources) at DCR 0xc0
clocksource: timebase mult[2800000] shift[24] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
NET: Registered protocol family 16
PCI host bridge /plb/address@hidden (primary) ranges:
 MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000
  IO 0x00000000e8000000..0x00000000e800ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
4xx PCI DMA window base to 0x0000000000000000
DMA window size 0x0000000080000000
PCI: Probing PCI hardware
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
pci_bus 0000:00: root bus resource [mem 0xa0000000-0xbfffffff]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: Hiding 4xx host bridge resources 0000:00:00.0
pci 0000:00:01.0: BAR 6: assigned [mem 0xa0000000-0xa003ffff pref]
pci 0000:00:02.0: BAR 0: assigned [io  0x1000-0x103f]
pci 0000:00:01.0: BAR 0: assigned [io  0x1040-0x105f]
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timebase
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 370
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered (default)
virtio-pci 0000:00:01.0: enabling device (0000 -> 0001)
virtio-pci 0000:00:02.0: enabling device (0000 -> 0001)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0xef600300 (irq = 16) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
ef600300.serial: ttyS0 at MMIO 0xef600300 (irq = 16) is a 16550
ef600400.serial: ttyS1 at MMIO 0xef600400 (irq = 17) is a 16550
brd: module loaded
 vda: vda1
PPC 4xx OCP EMAC driver, version 3.54
ZMII /plb/opb/address@hidden initialized
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mousedev: PS/2 mouse device common for all mice
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: address@hidden
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
kjournald starting.  Commit interval 5 seconds
EXT3-fs (vda1): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) readonly on device 254:1.
devtmpfs: mounted
Freeing unused kernel memory: 148k freed
INIT: version 2.88 booting
The system is coming up.  Please wait.
udevd[48]: starting version 182
  File-based locking initialisation failed.
  Reading all physical volumes.  This may take a while...
  No volume groups found
  No volume groups found
  File-based locking initialisation failed.
  No volume groups found
/dev/vda1: clean, 26097/524288 files, 186042/2096896 blocks
EXT3-fs (vda1): using internal journal
hostname: qemu
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
font: default
keyboard: us
INIT: Entering runlevel: 2
starting services: sysklogd crond

CRUX PPC (32 bit)  (qemu) (ttyS0)
login:
 
[...]
date# date
Thu Jan  1 00:04:20 UTC 1970
# hwclock --test
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
# ls /dev/rtc*
ls: cannot access /dev/rtc*: No such file or directory
 
 
that's from my guest kernel config:
 
address@hidden:/home/qemu/bamboo/linux-3.9.7# cat .config|grep RTC
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
# CONFIG_RTC_HCTOSYS is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set
# RTC interfaces
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
# SPI RTC drivers
# Platform RTC drivers
# CONFIG_RTC_DRV_CMOS is not set
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# on-CPU RTC drivers
CONFIG_RTC_DRV_GENERIC=y
# CONFIG_RTC_DRV_SNVS is not set
# HID Sensor RTC drivers
# CONFIG_RTC_DRV_HID_SENSOR_TIME is not set
 
 

thanks,
Nello
--
my blog: http://linuxpowerpc.blogspot.com
--
iBook 1.33GHz G4 - CRUX PPC 3.0 (32bit)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]