Skip to content

Commit

Permalink
qemu: Create console node
Browse files Browse the repository at this point in the history
On some hosts, ISAR running in QEMU fails with error:

/init: 326: /init: cannot open /root/dev/console: No such file
[    2.126445] Kernel panic - not syncing: Attempted to kill init!
[    2.127695] [<800140c4>] (unwind_backtrace+0x0/0xe0) from [<802a1920>] (panic+0x50/0x190)
[    2.128443] [<802a1920>] (panic+0x50/0x190) from [<80035144>] (do_exit+0xa0/0x704)
[    2.129161] [<80035144>] (do_exit+0xa0/0x704) from [<800359f8>] (do_group_exit+0x0/0xc4)
[    2.129998] [<800359f8>] (do_group_exit+0x0/0xc4) from [<76f5c010>] (0x76f5c010)

So, create this device node in configuration script.

Signed-off-by: Alexander Smirnov <asmirnov@ilbers.de>
  • Loading branch information
alexbluesman authored and ismagulb committed Oct 8, 2016
1 parent 2e63120 commit e7e5915
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meta-isar/recipes-core/images/files/debian-configscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ devtmpfs /dev devtmpfs mode=0755,nosuid 0 0
# End /etc/fstab
EOF

# Create console device
if [ ! -e /dev/console ]; then
mknod /dev/console c 5 1
fi

# Enable tty
echo "T0:23:respawn:/sbin/getty -L $1 9600 vt100" >> /etc/inittab

Expand Down

0 comments on commit e7e5915

Please sign in to comment.