I am trying to run xinit chromium-browser some_settings address:port in /home/pi/.bashrc file.
What it does in first version of "Jessie PIXEL" is open chromium browser on start up after console auto-login and opens the page address:port.
In new version of Jessie PIXEL I get the following error:
[ 513.403] X.Org X Server 1.18.4 Release Date:
2016-07-19< [ 513.403] X Protocol Version 11, Revision 0 [
513.403] Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian [ 513.403] Current Operating System: Linux raspberrypi 4.4.38-v7+
!!938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l [ 513.403] Kernel command line: 8250.nr_uarts=1 dma.dmachans=0x7f35
bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080
bcm2709.boardrev=0x2a02082 bcm2709.serial=0xff00$ [ 513.403]
Build Date: 11 November 2016 11:59:59AM [ 513.403] xorg-server
2:1.18.4-2+rpi1 (https://www.debian.org/support) [ 513.403]
Current version of pixman: 0.33.3 [ 513.403] Before
reporting problems, check http://wiki.x.org
to make sure that you have the latest version. [ 513.403] Markers: (--) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 513.403] (==) Log file:
"/home/pi/.local/share/xorg/Xorg.0.log", Time: Fri Dec 23 09:46:08
2016 [ 513.404] (==) Using system config directory
"/usr/share/X11/xorg.conf.d" [ 513.404] (==) No Layout section.
Using the first Screen section. [ 513.404] (==) No screen
section available. Using defaults. [ 513.405] () |-->Screen
"Default Screen Section" (0) [ 513.405] () | |-->Monitor
"" [ 513.405] (==) No device specified for
screen "Default Screen Section".
Using the first device section listed. [ 513.405] () | |-->Device "Allwinner A10/A13 FBDEV" [ 513.405] (==) No monitor
specified for screen "Default Screen Section".
Using a default monitor configuration. [ 513.405] (==) Automatically adding devices [ 513.405] (==) Automatically
enabling devices [ 513.405] (==) Automatically adding GPU
devices [ 513.405] (==) Max clients allowed: 256, resource
mask: 0x1fffff [ 513.405] (WW) The directory
"/usr/share/fonts/X11/misc" does not exist. [ 513.405] Entry
deleted from font path. [ 513.405] (WW) The directory
"/usr/share/fonts/X11/cyrillic" does not exist. [ 513.405]
Entry deleted from font path. [ 513.405] (WW) The directory
"/usr/share/fonts/X11/75dpi/" does not exist. [ 513.405]
Entry deleted from font path. [ 513.405] (WW) The directory
"/usr/share/fonts/X11/75dpi" does not exist. [ 513.405]
Entry deleted from font path. [ 513.405] (==) FontPath set
to:
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
built-ins [ 513.405] (==) ModulePath set to "/usr/lib/xorg/modules" [ 513.405] (II) The server relies on
udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices. [ 513.406] (II) Loader magic: 0x54d5cf20 [
513.406] (II) Module ABI versions: [ 513.406] X.Org ANSI C Emulation: 0.4 [ 513.406] X.Org Video Driver: 20.0 [
513.406] X.Org XInput driver : 22.1 [ 513.406] X.Org Server Extension : 9.0 [ 513.411] (II) systemd-logind: took
control of session /org/freedesktop/login1/session/c2 [
513.411] (II) no primary bus or device found [ 513.411] (II) LoadModule: "glx" [ 513.412] (II) Loading
/usr/lib/xorg/modules/extensions/libglx.so [ 513.416] (II)
Module glx: vendor="X.Org Foundation" [ 513.416] compiled
for 1.18.4, module version = 1.0.0 [ 513.416] ABI class:
X.Org Server Extension, version 9.0 [ 513.416] (==) AIGLX
enabled [ 513.416] (II) LoadModule: "fbturbo" [ 513.416]
(II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so [
513.417] (II) Module fbturbo: vendor="X.Org Foundation" [ 513.417] compiled for 1.18.4, module version = 0.5.1 [ 513.417] Module class: X.Org Video Driver [ 513.417] ABI class: X.Org Video Driver, version 20.0 [ 513.417] (II)
FBTURBO: driver for framebuffer: fbturbo [ 513.417] (EE)
Fatal server error: [ 513.417] (EE) parse_vt_settings: Cannot
open /dev/tty0 (Permission denied) [ 513.417] (EE) [
513.417] (EE) Please consult the The X.Org Foundation support
at http://wiki.x.org for help. [ 513.417] (EE) Please also check the log file at
"/home/pi/.local/share/xorg/Xorg.0.log" for additional
information. [ 513.417] (EE) [ 513.418] (WW)
xf86CloseConsole: KDSETMODE failed: Bad file descriptor [
513.418] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor [ 513.419] (EE) Server terminated with error (1).
Closing log file.
Does anybody know where lies the problem?
PS If You see '*' in the log it was '**' but that is bold text
Also there is '!!' in log that was '#' but thats bold
In particular, you want to add your user to the tty group to resolve this specific issue.
gpasswd -a pi tty
where pi is your user.
I encountered the same issue.
How I solve this was:
create new user named teacher
grant all groups that pi has
cp the /etc/suders.d/010_pi-nopasswd and rename the inner username to teacher
startx and it works.
Be careful:
don't run startx in byobu, some bugs.
I found a solution:
I don't use .bashrc anymore and I fully moved to rc.local.
sudo node /home/pi/server/server.js &
xinit /usr/bin/chromium-browser --no-sandbox --window-size=1920,1080 --noerrdialogs --start-fullscreen --start-maximized --disable-notifications --disable-infobars --kiosk --incognito http://localhost:3000 -- -nocursor &
exit 0
What this does is runs node.js server on port 3000 and runs chromium on localhost:3000 with no mouse cursor and fully sized chromium browser in something like 15-20 sec time.
Now working on showing it without going blank. Still no success, HELP!
EDIT:
If chromium appears with borders use this:
xinit /usr/bin/chromium-browser --no-sandbox --window-position=0,0 --window-size=1920,1080 --noerrdialogs --disable-notifications --disable-infobars --kiosk --incognito http://localhost:3000 -- -nocursor &
Related
I try to remote debug an ARM Linux embedded device with Native Debug in VSCode on a Windows host (no WSL).
Host launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "gdb",
"request": "attach",
"name": "gdb",
"executable": "${workspaceRoot}\\myprogram\\myprogram ",
"stopAtConnect": true,
"target": "192.168.xxx.xxx:2000",
"remote": true,
"cwd": "${workspaceRoot}/myprogram",
"gdbpath": "C:\\msys64\\mingw64\\bin\\gdb-multiarch.exe",
"debugger_args": ["-iex", "set osabi none"],
}
]
}
Target
debarm:~# gdbserver --version
GNU gdbserver (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
gdbserver is free software, covered by the GNU General Public License.
This gdbserver was configured as "arm-linux-gnueabi"
debarm:~# gdbserver :2000 --attach 1966
Attached; pid = 1966
Listening on port 2000
Remote debugging from host 192.168.xxx.xxx
However, stepping gives warning: Remote failure reply: E01 similar to: GDB remote debugging fails with error E01
I also tried the arm-none-eabi-gdb.exe from https://developer.arm.com/downloads/-/gnu-rm but it gives the same problem.
I also tried the arm-linux-gnueabi-gdb.exe from https://releases.linaro.org/components/toolchain/binaries/latest-5/arm-linux-gnueabi/ but it gives Error while reading shared library symbols for target:/lib/ld-linux.so.3.
Any suggestions for what the problem is with this approach?
Got it working with Linaro arm-linux-gnueabi-gdb.exe and adding "-iex", "set auto-solib-add 0" to debugger_args in launch.json.
I would like to run a Yocto image in QEMU but the way how it's described in the documentation doesn't work.
To verify I'm not doing anything wrong i followed the steps in the quick build guide:
install required packages
clone poky
checkout correct version
source build environment
set machine to qemux86 in local.conf
add sstate-mirrors and allow parallel build
start bitbake core-image-sato
do something else for the next few hours
when I try now to run that image in qemu like describe in the documentation:
runqemu qemux86
I just get the following output, nothing happens:
runqemu - INFO - Running MACHINE=qemux86 bitbake -e...
runqemu - INFO - Continuing with the following parameters:
KERNEL: [/mnt/wwn-0x50014ee0576fe9ef- part1/test_python3_in_yocto/build/tmp/deploy/images/qemux86/bzImage--4.14.76+git0+3435617380_2c5caa7e84-r0-qemux86-20190305114605.bin]
MACHINE: [qemux86]
FSTYPE: [ext4]
ROOTFS: [/mnt/wwn-0x50014ee0576fe9ef-part1/test_python3_in_yocto/build/tmp/deploy/images/qemux86/core-image-base-qemux86-20190305151244.rootfs.ext4]
CONFFILE: [/mnt/wwn-0x50014ee0576fe9ef-part1/test_python3_in_yocto/build/tmp/deploy/images/qemux86/core-image-base-qemux86-20190305151244.qemuboot.conf]
runqemu - INFO - Setting up tap interface under sudo
runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255.255.255.0
runqemu - INFO - Running /mnt/wwn-0x50014ee0576fe9ef-part1/test_python3_in_yocto/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -drive file=/mnt/wwn-0x50014ee0576fe9ef-part1/test_python3_in_yocto/build/tmp/deploy/images/qemux86/core-image-base-qemux86-20190305151244.rootfs.ext4,if=virtio,format=raw -vga vmware -show-cursor -usb -device usb-tablet -device virtio-rng-pci -cpu pentium2 -m 256 -serial mon:vc -serial null -kernel /mnt/wwn-0x50014ee0576fe9ef-part1/test_python3_in_yocto/build/tmp/deploy/images/qemux86/bzImage--4.14.76+git0+3435617380_2c5caa7e84-r0-qemux86-20190305114605.bin -append 'root=/dev/vda rw highres=off mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 vga=0 uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1 '
When I try to run qemu without graphics I get a kernel panic:
runqemu nographic qemux86
...
[ 6.171521] EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null)
[ 6.172937] VFS: Mounted root (ext4 filesystem) on device 253:0.
[ 6.175806] devtmpfs: error mounting -2
[ 6.237143] Freeing unused kernel memory: 852K
[ 6.238001] Write protecting the kernel text: 8752k
[ 6.238722] Write protecting the kernel read-only data: 2376k
[ 6.244382] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin.
[ 6.245455] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.76-yocto-standard #1
[ 6.245913] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.11.0-0-g63451fca13-prebuilt.qemu-project.org 04/01/4
[ 6.246730] Call Trace:
[ 6.247788] dump_stack+0x58/0x72
[ 6.248071] ? rest_init+0x90/0xc0
[ 6.248320] panic+0x94/0x1c6
[ 6.248529] ? rest_init+0xc0/0xc0
[ 6.248807] kernel_init+0xda/0xf0
[ 6.249046] ret_from_fork+0x2e/0x38
[ 6.249834] Kernel Offset: 0xd800000 from 0xc1000000 (relocation range: 0xc0000000-0xd07dbfff)
[ 6.250595] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentat.
Is there something missing in the documentation?
I also tried different images...
core-image-sato
core-image-base
core-image-minimal
and finally I tried it with version 2.5.2 (sumo) instead of 2.6.1 (thud)... but no change...
When I googled for that issue I didn't really find anything helpful except increasing the memory, which didn't change anything, so I hope anyone here someone knows whats wrong...
Probably missing an appendage to the second parameter.
Browse to the folder in the error message, and check the directory qemux86 exists, chances are it doesn't.
I had to
runqemu qemux86-64
and not
runqemu qemux86
If you haven't changed MACHINE variable in your local.conf file in build directory, check out the file and make sure your image name was identical.
I have installed the new release of Java Card Platform Development Kit, according to the following guide. This includes all the prerequisites, as well as version 3.0.5u2 of JCDK. As a heads up, I tried installing this on 2 different computers (one has Win7, the other Win10) and reinstalled everything on both.
The problem I'm encountering is that none of the sample projects will build properly. When I try to build the HelloWorld sample, for example, I get the following text printed in the build console:
[ INFO: ] Converter [v3.0.5]
[ INFO: ] Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
[ INFO: ] conversion completed with 0 errors and 0 warnings.
[ INFO: ] Converter [v3.0.5]
[ INFO: ] Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
[ INFO: ] conversion completed with 0 errors and 0 warnings.
Missing file containing component hashes.
usage: scriptgen [-options] -hashfile <hash file path> <cap File Path>
where options include:
-help Print this message and exit.
-o <filename> Output filename. default: stdout
-version Print version number and exit.
-nobanner Do not print banner.
-nobeginend Suppress "CAP_BEGIN", "CAP_END" APDU commands.
-package <pkgname> Package name.
While the regular console has this to say:
Executing "$JC_CLASSIC_HOME\bin/converter.bat" -debug -nobanner -out CAP JCA -classdir "$JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\bin" -d "$JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\deliverables" -exportpath "$JC_CLASSIC_HOME\api_export_files" -applet 0xA0:0x00:0x00:0x00:0x62:0x03:0x01:0x0C:0x01:0x01 com.sun.jcclassic.samples.helloworld.HelloWorld com.sun.jcclassic.samples.helloworld 0xA0:0x00:0x00:0x00:0x62:0x03:0x01:0x0C:0x01 1.0
Executing "$JC_CLASSIC_HOME\bin/scriptgen.bat" -package com.sun.jcclassic.samples.helloworld -o "$JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\apdu_scripts/cap-com.sun.jcclassic.samples.helloworld.script" "$JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\deliverables/com/sun/jcclassic/samples/helloworld/javacard/helloworld.cap"
java.io.FileNotFoundException: $JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\apdu_scripts\cap-com.sun.jcclassic.samples.helloworld.script (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
... (stack trace)
Now, I'm not 100% sure, but I think that when I had version 3.0.5u1 installed, I was able to build the sample projects.
It seems the build process of the Java Card Classic Development Kit 3.0.5u2 (jcdk) Eclipse Plugin is broken. During the build of an java card applet, three scripts located in the bin subdirectory of the jcdk installation directory are executed (if using default applet settings in eclipse):
converter.bat generating the export file *.exp
converter.bat generating cap (and jca) file
scriptgen.bat generating the script files for installing the applet to a java card.
The problem is, that scriptgen requires a hashfile containing hashes for the applet components. You can see this if you decompile the class com.sun.javacard.scriptgen.Main of tools.jar in jcdk lib folder.
This hashfile is not generated during the eclipse build process, neither is the scriptgen script called with the corresponding program option "-hashfile <hash-file>". The only workaround currently is using the jcdk tools on the console manually. Therefor you can use the output of console in eclipse and adopt it for your needs.
Example output for a simple test applet:
Executing E:\eclipse-oxygen-64bit\JCDKit_305u2\bin/converter.bat -i -debug -out EXP -classdir G:\eclipse_javacard\workspace\TestJCDKApplet\bin -d G:\eclipse_javacard\workspace\TestJCDKApplet\deliverables -exportpath E:\eclipse-oxygen-64bit\JCDKit_305u2\\api_export_files -applet 0xD0:0x00:0x00:0x00:0x01:0x01:0x01 test.jcdk.applet.TestApplet test.jcdk.applet 0xD0:0x00:0x00:0x00:0x01:0x01 1.0
Executing E:\eclipse-oxygen-64bit\JCDKit_305u2\bin/converter.bat -i -debug -out CAP JCA -classdir G:\eclipse_javacard\workspace\TestJCDKApplet\bin -d G:\eclipse_javacard\workspace\TestJCDKApplet\deliverables -exportpath E:\eclipse-oxygen-64bit\JCDKit_305u2\\api_export_files -applet 0xD0:0x00:0x00:0x00:0x01:0x01:0x01 test.jcdk.applet.TestApplet test.jcdk.applet 0xD0:0x00:0x00:0x00:0x01:0x01 1.0
Executing E:\eclipse-oxygen-64bit\JCDKit_305u2\bin/scriptgen.bat -package test.jcdk.applet -o G:\eclipse_javacard\workspace\TestJCDKApplet\apdu_scripts/cap-test.jcdk.applet.script G:\eclipse_javacard\workspace\TestJCDKApplet\deliverables/test/jcdk/applet/javacard/applet.cap
Modified to generate the required script files (listed only the last two, first two scripts do not change):
G:\eclipse_javacard\workspace\TestJCDKApplet>E:\eclipse-oxygen-64bit\JCDKit_305u2\bin\verifycap.bat -outfile applet.hash E:\eclipse-oxygen-64bit\JCDKit_305u2\api_export_files\java\lang\javacard\lang.exp E:\eclipse-oxygen-64bit\JCDKit_305u2\api_export_files\javacard\framework\javacard\framework.exp .\deliverables\test\jcdk\applet\javacard\applet.exp .\deliverables\test\jcdk\applet\javacard\applet.cap
[ INFO: ] Verifier [v3.0.5]
[ INFO: ] Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
[ INFO: ] Verifying CAP file .\deliverables\test\jcdk\applet\javacard\applet.cap
[ INFO: ] Digest for test/jcdk/applet/javacard/Header.cap [SHA-256: 22e589e7bbb45e420c2a17d5b8abcc437c52f00ecfb15b48ed3257f87eff62f9]
[ INFO: ] Digest for test/jcdk/applet/javacard/Directory.cap [SHA-256: bc72a8594664c9720c38afab7c87b7dda894088f53faefcac548463a4186fbe9]
[ INFO: ] Digest for test/jcdk/applet/javacard/Import.cap [SHA-256: e58492b256b4af8d7f1860f18e57c5336e254a618c2518c987dcefb33db0a8d0]
[ INFO: ] Digest for test/jcdk/applet/javacard/ConstantPool.cap [SHA-256: 6c5bf615cd3746d52c815e8264b910a41a94217161862a7520087799fd03098b]
[ INFO: ] Digest for test/jcdk/applet/javacard/StaticField.cap [SHA-256: 1ec76ec50280f5d8822179bb1b268ae7c2383d9fbe4d6c2beb427090dbf53dfd]
[ INFO: ] Digest for test/jcdk/applet/javacard/RefLocation.cap [SHA-256: b2b3f5e23eee662b8c406212d5cb291959a8eeddb92e58b9a45941c0b91388be]
[ INFO: ] Digest for test/jcdk/applet/javacard/Descriptor.cap [SHA-256: 292e4bd46d836b8501a19a9ea92b1ec976eca1b4920bb03499236284d17be2d7]
[ INFO: ] Digest for test/jcdk/applet/javacard/Class.cap [SHA-256: 6c68abd77e3481a00ae2462cfc8f416ae38d4d0e4b02c685145c39d30d132526]
[ INFO: ] Digest for test/jcdk/applet/javacard/Debug.cap [SHA-256: 7341f35fee494363bb8b84e8c132399a33a0bb4d39fd9192e92be680c08019d3]
[ INFO: ] Digest for test/jcdk/applet/javacard/Method.cap [SHA-256: 651231359c6bb65fbcb0e3a49f52cee1a682ed7e97610365b374583638757365]
[ INFO: ] Digest for test/jcdk/applet/javacard/Applet.cap [SHA-256: e1de8850f009796b9b991757dd378353128e10d4bc6400e5bbd970516bf187f1]
[ INFO: ] Verification completed with 0 warnings and 0 errors.
(Note: you have to add the path to the jcdk export files used by the applet, these you can find out by activating verbose output in the java card package settings and searching the console output for referenced exp files.)
Then at lease you can generate the install script with the command:
G:\eclipse_javacard\workspace\TestJCDKApplet>E:\eclipse-oxygen-64bit\JCDKit_305u2\bin/scriptgen.bat -package test.jcdk.applet -o
G:\eclipse_javacard\workspace\TestJCDKApplet\apdu_scripts/cap-test.jcdk.applet.script G:\eclipse_javacard\workspace\TestJCDKApplet\deliverables/test/jcdk/applet/javacard/applet.cap -hashfile applet.hash
ScriptGen [v3.0.5]
Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
APDU script file for CAP file download generated.
Drag and Drop isnt work, resizing too. Only copy-paste is work sometimes.
I thought that it is becouse vmblock errors, but after "emerge vmware-modules" vmblock errors gone and problem still exists.
Host OS - Windows.
al .cache # equery list -i xorg-server
* Searching for xorg-server ...
[IP-] [ ] x11-base/xorg-server-1.16.4:0/1.16.1
al log # lsmod | grep vm
vmblock 9176 0
vmci 57829 0
al log # eselect kernel list;
Available kernel symlink targets:
[1] linux-4.1.12-gentoo *
al log # ls /usr/src;
linux linux-4.1.12-gentoo
al vmblock # ls /proc/fs/vmblock
dev mountPoint
http://pastebin.com/jKSFqzrU
http://prntscr.com/9f6qzx
http://prntscr.com/9f6r4k
http://pastebin.com/ZcAa5CWG
http://pastebin.com/4AZRZPL8
http://pastebin.com/gDdn3FG5
Prototype mismatch: sub main::SIGVTALRM () vs none at /home/abhijay/pintos-os/pintos/src/utils/pintos line 934.
Constant subroutine SIGVTALRM redefined at /home/abhijay/pintos-os/pintos/src/utils/pintos line 926.
warning: can't find squish-pty, so terminal input will fail
bochs -q
========================================================================
Bochs x86 Emulator 2.4.6
Build from CVS snapshot, on February 22, 2011
Compiled at Jun 8 2013, 05:16:04
========================================================================
00000000000i[ ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
00000000000i[ ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[ ] reading configuration from bochsrc.txt
00000000000e[ ] user_shortcut: old-style syntax detected
00000000000i[ ] lt_dlhandle is 0x37ed0c0
00000000000i[PLGIN] loaded plugin libbx_x.so
00000000000i[ ] installing x module as the Bochs GUI
00000000000i[ ] using log file bochsout.txt
bochs-bin: symbol lookup error: /usr/lib/bochs/plugins/libbx_x.so: undefined symbol: XpmCreatePixmapFromData
Any workaround for this? I have installed build-essentials and bochs simulator.
You have to just go to the file /home/abhijay/pintos-os/pintos/src/utils/pintos and comment out the whole function SIGVTALRM () .It should work fine.