From 350a4c4d3f6fb57288d67536c2634db1d37f1d26 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 18 May 2018 15:20:48 +0100 Subject: [PATCH] readme: give concreate graphic mode arm commands Document that it does not work without -K. --- README.adoc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.adoc b/README.adoc index a7dc3f6..5aa0b92 100644 --- a/README.adoc +++ b/README.adoc @@ -292,6 +292,39 @@ cat /dev/urandom > /dev/fb0 https://stackoverflow.com/questions/50364863/how-to-get-graphical-gui-output-and-user-touch-keyboard-mouse-input-in-a-ful/50364864#50364864 +More concretely: + +.... +git checkout gem5-arm +./build -aa -lg -K linux/arch/arm/configs/gem5_defconfig +.... + +and then on another shell: + +.... +vinagre localhost:5900 +.... + +TODO: without the `-K` it fails even though we have added to link:kernel_config_fragment/default[] on the branch: + +.... +CONFIG_DRM=y +CONFIG_DRM_HDLCD=y +CONFIG_DRM_VIRT_ENCODER=y +.... + +so what other options are missing from `gem5_defconfig`? The failing dmesg is: + +.... +[ 0.121078] [drm] found ARM HDLCD version r0p0 +[ 0.121117] hdlcd 2b000000.hdlcd: bound virt-encoder (ops drm_vencoder_ops) +[ 0.121122] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). +[ 0.121126] [drm] No driver support for vblank timestamp query. +[ 0.121156] hdlcd 2b000000.hdlcd: Failed to set initial hw configuration. +[ 0.121190] hdlcd 2b000000.hdlcd: master bind failed: -12 +[ 0.121197] hdlcd: probe of 2b000000.hdlcd failed with error -12 +.... + === Automatic startup commands When debugging a module, it becomes tedious to wait for build and re-type: