Üdv!
Fedora 22 x64-en szeretném az RPi-t elndítani:
~# sudo qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1" -hda 2015-05-05-raspbian-wheezy.img -net nic -net user -vnc :0 -net tap,ifname=vnet0,script=no,downscript=no
WARNING: Image format was not specified for '2015-05-05-raspbian-wheezy.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
Uncompressing Linux... done, booting the kernel.
Raspbian GNU/Linux 7 (none) ttyAMA0
(none) login: pi
Password:
Linux (none) 3.2.0 #1 Sun Jan 29 03:14:15 CST 2012 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
NOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config'
Raspbian GNU/Linux 7 (none) ttyAMA0
(none) login:
Raspbian GNU/Linux 7 (none) ttyAMA0
Ahogy fent látszódik, szépen indul is, belépek 'pi' userrel, de ki is dob. Mit lehet a gondja?
Mit rontok el?
A virtmanager-be is be lehet valahogy tenni? Csak azért, mert ott elegánsabb lenne. :)
- 6797 megtekintés
Hozzászólások
5) Patch Raspbian Image for QEMU
Use nano, to open the following file for edit:
nano /etc/ld.so.preload
- Comment out the first line by putting a # in front of it:
#/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
- A hozzászóláshoz be kell jelentkezni
Igen, valóban kellett valamit trükközni, csak nem tudok így bebootolni:
~$ sudo qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash" -hda 2015-05-05-raspbian-wheezy.img -net nic -net user -vnc :0 -net tap,ifname=vnet0,script=no,downscript=no
WARNING: Image format was not specified for '2015-05-05-raspbian-wheezy.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
Uncompressing Linux... done, booting the kernel.
...és itt megáll.
:(
- A hozzászóláshoz be kell jelentkezni
Megvan, ez az első login:
sudo qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash" -hda 2015-05-05-raspbian-wheezy.img
:)
Utána jöhet:
nano /etc/ld.so.preload
#/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
reboot
- A hozzászóláshoz be kell jelentkezni
A Pidora (Fedora 20 Remix) próbálom beizzítani, Első indításkor a grafikus beállító megy is, restart után megint jó az első login, de ezután már nem jó, belefagy.
Megpróbáltam újból Text bázisú boot móddal. Ha indítok egy startx-et a logban egy hibát látok (open /dev/dri/card0: No such file or directory):
# Xorg.0.log
...
X.Org X Server 1.14.4
Release Date: 2013-10-31
[ 394.649] X Protocol Version 11, Revision 0
[ 394.654] Build Operating System: 3.6.10-8.fc18.armv7hl.highbank
[ 394.659] Current Operating System: Linux pidora.local 3.10.26+ #2 Fri Jan 17 22:13:59 EST 2014 armv6l
[ 394.660] Kernel command line: root=/dev/sda2 panic=1 rootfstype=ext4 rw
[ 394.667] Build Date: 18 July 2014 11:42:24AM
[ 394.669] Build ID: xorg-x11-server 1.14.4-11.fc20
[ 394.672] Current version of pixman: 0.30.0
[ 394.676] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 394.676] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 394.694] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 9 08:15:34 2015
[ 394.703] (==) Using config file: "/etc/X11/xorg.conf"
[ 394.705] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 394.708] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 394.720] (==) No Layout section. Using the first Screen section.
[ 394.720] (**) |-->Screen "Default Screen" (0)
[ 394.721] (**) | |-->Monitor ""
[ 394.725] (==) No monitor specified for screen "Default Screen".
Using a default monitor configuration.
[ 394.726] (==) Automatically adding devices
[ 394.727] (==) Automatically enabling devices
[ 394.727] (==) Automatically adding GPU devices
[ 394.729] (==) FontPath set to:
catalogue:/etc/X11/fontpath.d,
built-ins
[ 394.729] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 394.729] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 394.730] (II) Loader magic: 0x1c2e9c
[ 394.730] (II) Module ABI versions:
[ 394.731] X.Org ANSI C Emulation: 0.4
[ 394.731] X.Org Video Driver: 14.1
[ 394.731] X.Org XInput driver : 19.2
[ 394.731] X.Org Server Extension : 7.0
[ 394.741] Initializing built-in extension Generic Event Extension
[ 394.744] Initializing built-in extension SHAPE
[ 394.746] Initializing built-in extension MIT-SHM
[ 394.752] Initializing built-in extension XInputExtension
[ 394.755] Initializing built-in extension XTEST
[ 394.758] Initializing built-in extension BIG-REQUESTS
[ 394.760] Initializing built-in extension SYNC
[ 394.763] Initializing built-in extension XKEYBOARD
[ 394.765] Initializing built-in extension XC-MISC
[ 394.767] Initializing built-in extension XINERAMA
[ 394.769] Initializing built-in extension XFIXES
[ 394.771] Initializing built-in extension RENDER
[ 394.773] Initializing built-in extension RANDR
[ 394.776] Initializing built-in extension COMPOSITE
[ 394.778] Initializing built-in extension DAMAGE
[ 394.779] Initializing built-in extension MIT-SCREEN-SAVER
[ 394.781] Initializing built-in extension DOUBLE-BUFFER
[ 394.786] Initializing built-in extension RECORD
[ 394.788] Initializing built-in extension DPMS
[ 394.790] Initializing built-in extension X-Resource
[ 394.792] Initializing built-in extension XVideo
[ 394.794] Initializing built-in extension XVideo-MotionCompensation
[ 394.796] Initializing built-in extension SELinux
[ 394.807] Initializing built-in extension XFree86-VidModeExtension
[ 394.809] Initializing built-in extension XFree86-DGA
[ 394.812] Initializing built-in extension XFree86-DRI
[ 394.813] Initializing built-in extension DRI2
[ 394.817] (II) LoadModule: "glx"
[ 394.830] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 394.836] (II) Module glx: vendor="X.Org Foundation"
[ 394.837] compiled for 1.14.4, module version = 1.0.0
[ 394.837] ABI class: X.Org Server Extension, version 7.0
[ 394.838] (==) AIGLX enabled
[ 394.840] Loading extension GLX
[ 394.842] (==) Matched modesetting as autoconfigured driver 0
[ 394.842] (==) Matched fbdev as autoconfigured driver 1
[ 394.842] (==) Assigned the driver to the xf86ConfigLayout
[ 394.843] (II) LoadModule: "modesetting"
[ 394.845] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 394.850] (II) Module modesetting: vendor="X.Org Foundation"
[ 394.850] compiled for 1.14.1, module version = 0.8.0
[ 394.851] Module class: X.Org Video Driver
[ 394.851] ABI class: X.Org Video Driver, version 14.1
[ 394.852] (II) LoadModule: "fbdev"
[ 394.854] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 394.856] (II) Module fbdev: vendor="X.Org Foundation"
[ 394.857] compiled for 1.14.2, module version = 0.4.3
[ 394.857] Module class: X.Org Video Driver
[ 394.857] ABI class: X.Org Video Driver, version 14.1
[ 394.858] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 394.858] (II) FBDEV: driver for framebuffer: fbdev
[ 394.859] (++) using VT number 1
[ 394.866] (WW) Falling back to old probe method for modesetting
[ 394.868] (EE) open /dev/dri/card0: No such file or directory
[ 394.868] (WW) Falling back to old probe method for fbdev
[ 394.869] (II) Loading sub module "fbdevhw"
[ 394.869] (II) LoadModule: "fbdevhw"
[ 394.871] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 394.873] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 394.873] compiled for 1.14.4, module version = 0.0.2
[ 394.873] ABI class: X.Org Video Driver, version 14.1
[ 394.876] (II) FBDEV(0): using default device
[ 394.893] (**) FBDEV(0): Depth 16, (--) framebuffer bpp 16
[ 394.894] (==) FBDEV(0): RGB weight 565
[ 394.894] (==) FBDEV(0): Default visual is TrueColor
[ 394.895] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 394.895] (II) FBDEV(0): hardware: CLCD FB (video memory: 1024kB)
[ 394.896] (II) FBDEV(0): checking modes against framebuffer device...
[ 394.897] (II) FBDEV(0): mode "800x600" ok
[ 394.898] (II) FBDEV(0): checking modes against monitor...
[ 394.898] (--) FBDEV(0): Virtual size is 800x600 (pitch 800)
[ 394.899] (**) FBDEV(0): Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[ 394.900] (II) FBDEV(0): Modeline "800x600"x0.0 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz d)
[ 394.900] (==) FBDEV(0): DPI set to (96, 96)
[ 394.921] (II) Loading sub module "fb"
[ 394.921] (II) LoadModule: "fb"
[ 394.923] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 394.927] (II) Module fb: vendor="X.Org Foundation"
[ 394.928] compiled for 1.14.4, module version = 1.0.0
[ 394.928] ABI class: X.Org ANSI C Emulation, version 0.4
[ 394.928] (**) FBDEV(0): using shadow framebuffer
[ 394.928] (II) Loading sub module "shadow"
[ 394.929] (II) LoadModule: "shadow"
[ 394.930] (II) Loading /usr/lib/xorg/modules/libshadow.so
[ 394.935] (II) Module shadow: vendor="X.Org Foundation"
[ 394.936] compiled for 1.14.4, module version = 1.1.0
[ 394.936] ABI class: X.Org ANSI C Emulation, version 0.4
[ 394.937] (II) UnloadModule: "modesetting"
[ 394.937] (II) Unloading modesetting
[ 395.090] (==) FBDEV(0): Backing store disabled
[ 395.113] (==) FBDEV(0): DPMS enabled
[ 395.114] (==) RandR enabled
[ 395.236] (II) SELinux: Disabled on system
[ 395.254] (II) AIGLX: Screen 0 is not DRI2 capable
[ 395.255] (II) AIGLX: Screen 0 is not DRI capable
[ 395.418] (II) AIGLX: Loaded and initialized swrast
[ 395.419] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 396.443] (II) config/udev: Adding input device AT Raw Set 2 keyboard (/dev/input/event0)
[ 396.445] (**) AT Raw Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[ 396.445] (**) AT Raw Set 2 keyboard: Applying InputClass "system-keyboard"
[ 396.446] (II) LoadModule: "evdev"
[ 396.447] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 396.452] (II) Module evdev: vendor="X.Org Foundation"
[ 396.453] compiled for 1.14.4, module version = 2.8.4
[ 396.453] Module class: X.Org XInput Driver
[ 396.453] ABI class: X.Org XInput driver, version 19.2
[ 396.454] (II) Using input driver 'evdev' for 'AT Raw Set 2 keyboard'
[ 396.455] (**) AT Raw Set 2 keyboard: always reports core events
[ 396.455] (**) evdev: AT Raw Set 2 keyboard: Device: "/dev/input/event0"
[ 396.457] (--) evdev: AT Raw Set 2 keyboard: Vendor 0x1 Product 0x2
[ 396.458] (--) evdev: AT Raw Set 2 keyboard: Found keys
[ 396.458] (II) evdev: AT Raw Set 2 keyboard: Configuring as keyboard
[ 396.458] (**) Option "config_info" "udev:/sys/devices/fpga:06/serio0/input/input0/event0"
[ 396.459] (II) XINPUT: Adding extended input device "AT Raw Set 2 keyboard" (type: KEYBOARD, id 6)
[ 396.459] (**) Option "xkb_rules" "evdev"
[ 396.460] (**) Option "xkb_model" "pc105"
[ 396.460] (**) Option "xkb_layout" "hu"
[ 396.460] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[ 397.018] (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/event1)
[ 397.018] (**) ImExPS/2 Generic Explorer Mouse: Applying InputClass "evdev pointer catchall"
[ 397.019] (II) Using input driver 'evdev' for 'ImExPS/2 Generic Explorer Mouse'
[ 397.019] (**) ImExPS/2 Generic Explorer Mouse: always reports core events
[ 397.020] (**) evdev: ImExPS/2 Generic Explorer Mouse: Device: "/dev/input/event1"
[ 397.020] (--) evdev: ImExPS/2 Generic Explorer Mouse: Vendor 0x2 Product 0x6
[ 397.020] (--) evdev: ImExPS/2 Generic Explorer Mouse: Found 9 mouse buttons
[ 397.021] (--) evdev: ImExPS/2 Generic Explorer Mouse: Found scroll wheel(s)
[ 397.021] (--) evdev: ImExPS/2 Generic Explorer Mouse: Found relative axes
[ 397.021] (--) evdev: ImExPS/2 Generic Explorer Mouse: Found x and y relative axes
[ 397.022] (II) evdev: ImExPS/2 Generic Explorer Mouse: Configuring as mouse
[ 397.022] (II) evdev: ImExPS/2 Generic Explorer Mouse: Adding scrollwheel support
[ 397.023] (**) evdev: ImExPS/2 Generic Explorer Mouse: YAxisMapping: buttons 4 and 5
[ 397.023] (**) evdev: ImExPS/2 Generic Explorer Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 397.024] (**) Option "config_info" "udev:/sys/devices/fpga:07/serio1/input/input1/event1"
[ 397.024] (II) XINPUT: Adding extended input device "ImExPS/2 Generic Explorer Mouse" (type: MOUSE, id 7)
[ 397.028] (II) evdev: ImExPS/2 Generic Explorer Mouse: initialized for relative axes.
[ 397.032] (**) ImExPS/2 Generic Explorer Mouse: (accel) keeping acceleration scheme 1
[ 397.033] (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration profile 0
[ 397.034] (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration factor: 2.000
[ 397.034] (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration threshold: 4
[ 397.040] (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/mouse0)
[ 397.040] (II) No input driver specified, ignoring this device.
[ 397.040] (II) This device may have been added with another device file.
[ 413.207] (II) evdev: ImExPS/2 Generic Explorer Mouse: Close
[ 413.220] (II) UnloadModule: "evdev"
[ 413.222] (II) evdev: AT Raw Set 2 keyboard: Close
[ 413.224] (II) UnloadModule: "evdev"
[ 413.418] (EE) Server terminated successfully (0). Closing log file.
Az /etc/X11/xorg.conf-ba ezt próbáltam csak:
Section "Screen"
Identifier "Default Screen"
SubSection "Display"
Depth 16
Modes "800x600"
EndSubSection
EndSection
Szóval qemu-ban mivel lehet xorg-ot használni Pidora esetén?
- A hozzászóláshoz be kell jelentkezni
Egy ide kapcsolódó kérdés foglalkoztat: miért jó architektúra emulációval elindítani az eredeti Rpi2 lapka helyett?
Hátrány: az architektúra emuláció költséges, szerintem kb. 5..10-szeres CPU teljesítményt igényel egy másik architektúra emulálása. Ennek az aránynak a kimérésére egyúttal megkérlek.
Tömörítési CPU teszteket lásd itt: http://hup.hu/node/141808
--> natív x86-os tömörítési tempó mérés (amikor még nincs elindítva qemu)
--> emulált Rpi-ben tömörítési tempó mérés
További hátrány: emuláció során nem kapom meg a GPIO lábakat.
- A hozzászóláshoz be kell jelentkezni