public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] initramfs - kbd_mode: can't open console
@ 2008-05-28  6:53 Markus Rothe
  0 siblings, 0 replies; only message in thread
From: Markus Rothe @ 2008-05-28  6:53 UTC (permalink / raw
  To: gentoo-embedded


[-- Attachment #1.1: Type: text/plain, Size: 707 bytes --]

Hello,

I built a kernel image containing an initramfs based on busybox, openrc and
stuff.  It works fairly well, except one small error I do not understand.
While /etc/init.d/keymaps starts I'm getting the following error:

kbd_mode: can't open console

Please see the attached output for a full listing of the boot process and a
run of "/etc/init.d/keymaps -d restart" (debug output).

Might the problem be, that there is no graphics cards attached to this device?
Although it boots without error, if I run the full Gentoo installation.  It's
a Genesi Efika ([1]) by the way. 

Does anybody know what's causing this error?

Regards,

-markus

[1] http://www.pegasosppc.com/efika.php

[-- Attachment #1.2: netboot-output.txt --]
[-- Type: text/plain, Size: 7431 bytes --]

ok boot eth:192.168.0.3,efika.img,192.168.0.1 efika.img console=ttyPSC0
 
zImage starting: loaded at 0x00400000 (sp: 0x017ffd40)
Allocating 0x7b520c bytes for kernel ...
OF version = 'EFIKA5K2,1.3'
gunzipping (0x01800000 <- 0x00407000:0x009f1b32)...done 0x7932d8 bytes

Linux/PowerPC load: console=ttyPSC0
Finalizing device tree... using OF tree (promptr=01003ed8)
OF stdout device is: /failsafe
command line: console=ttyPSC0
memory layout at init:
  alloc_bottom : 01fba000
  alloc_top    : 30000000
  alloc_top_hi : f000c000
  rmo_top      : 30000000
  ram_top      : f000c000
Looking for displays
instantiating rtas at 0x07ffb000 ... done
Applying EFIKA device tree fixups
Fixing bestcomm interrupts property
Adding Ethernet MDIO node
Adding Ethernet PHY node
copying OF device tree ...
Building dt strings...
Building dt structure...
Device tree strings 0x01fbb000 -> 0x01fbb77f
Device tree struct  0x01fbc000 -> 0x01fbe000
Calling quiesce ...
returning from prom_init
Using Efika machine description
Only using first contiguous memory region<5>Linux version 2.6.25.4-efika (root@macmini) (gcc version 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.1)) #27 Sun May 25 14:38:17 CEST 2008
Efika: PCI bus 0 controlled by /pci@80000000

PCI host bridge /pci@80000000  ranges:
  IO 0x00000000f8000000..0x00000000f800ffff -> 0x0000000000000000
 MEM 0x0000000080000000..0x00000000bfffffff -> 0x0000000080000000 
Zone PFN ranges:
  DMA             0 ->    32768
  Normal      32768 ->    32768
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyPSC0
MPC52xx PIC is up and running!
PID hash table entries: 512 (order: 9, 2048 bytes)
clocksource: timebase mult[79364d9] shift[22] registered
Console: colour dummy device 80x25
console [ttyPSC0] enabled
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 121840k/131072k available (7600k kernel code, 9084k reserved, 124k data, 132k bss, 4844k init)
SLUB: Genslabs=12, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 152 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
DMA: MPC52xx BestComm driver
DMA: MPC52xx BestComm engine @f0001200 ok !
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
Linux agpgart interface v0.103
[drm] Initialized drm 1.1.0 20060810
Serial: MPC52xx PSC UART driver
f0002000.serial: ttyPSC0 at MMIO 0xf0002000 (irq = 129) is a MPC52xx PSC
brd: module loaded
loop: module loaded
mpc52xx MII bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Driver 'sd' needs updating - please use bus_type methods
ata: MPC52xx IDE/ATA libata driver
scsi0 : mpc52xx_ata
ata1: PATA max PIO4 ata_regs 0xf0003a00 irq 135
ata1.00: CFA: SanDisk SDCFH-1024, HDX 4.04, max MWDMA2
ata1.00: 2001888 sectors, multi 0: LBA 
ata1.00: configured for PIO4
scsi 0:0:0:0: Direct-Access     ATA      SanDisk SDCFH-10 HDX  PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors (1025 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI removable disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
ppc-of-ohci f0001000.usb: OF OHCI
ppc-of-ohci f0001000.usb: new USB bus registered, assigned bus number 1
ppc-of-ohci f0001000.usb: irq 134, io mem 0xf0001000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Freeing unused kernel memory: 4844k init
INIT: version 2.86 booting

   OpenRC 0.2.4 is starting up Gentoo Linux (ppc)

Press I to enter interactive boot mode

 * Mounting /proc ...
 [ ok ]
 * Mounting /sys ...
 [ ok ]
 * Mounting /dev for mdev ...
fstabinfo is a tracked alias for /lib/rc/bin/fstabinfo
 [ ok ]
 * Setting up proper hotplug agent ...
 *   Setting /sbin/mdev as hotplug agent ...
 [ ok ]
 * Populating /dev with existing devices with mdev -s ...
 [ ok ]
 * Mounting /dev/pts ...
 [ ok ]
 * Mounting /dev/shm ...
 [ ok ]
 * Device initiated services:
 * Caching service dependencies ...
 [ ok ]
 * Setting system clock using the hardware clock [UTC] ...
 [ ok ]
 * Checking local filesystems  ...
 [ ok ]
 * Updating /etc/mtab ...
 [ ok ]
 * Mounting local filesystems ...
 [ ok ]
 * Setting hostname to netboot ...
 [ ok ]
 * Configuring kernel parameters ...
 [ ok ]
 * Creating user login records ...
 [ ok ]
 * Cleaning /var/run ...
 [ ok ]
 * Wiping /tmp directory ...
 [ ok ]
 * Setting terminal encoding [UTF-8] ...
 [ ok ]
 * Setting console font [default8x16] ...
 [ ok ]
 * Loading key mappings [us] ...
 [ ok ]
 * Setting keyboard mode [UTF-8] ...
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
kbd_mode: can't open console
 [ ok ]
 * Bringing up interface lo
 *   Caching network module dependencies
 *   127.0.0.1/8 ...
 [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127systems ...
 [ ok ]
 * Starting local ...
 [ ok ]

The latest version of the Handbook is always available from the Gentoo web site
by typing "links http://www.gentoo.org/doc/en/handbook/handbook.xml".

To start an ssh server on this system, type "/etc/init.d/dropbear start".  If
you need to log in remotely as root, type "passwd root" to reset root's
password to a known value.

Please report any bugs you find to http://bugs.gentoo.org. Be sure to include
detailed information about how to reproduce the bug you are reporting.  Thank
you for using Gentoo Linux!

root@netboot $

[-- Attachment #1.3: kbd_error.txt --]
[-- Type: text/plain, Size: 4027 bytes --]

root@netboot $ /etc/init.d/keymaps -d restart
 * WARNING: you are stopping a boot service
+ _conf_d=/etc/init.d/../conf.d
+ _c=keymaps
+ [ -n keymaps -a keymaps != keymaps ]
+ unset _c
+ [ -e /etc/init.d/../conf.d/keymaps.default ]
+ [ -e /etc/init.d/../conf.d/keymaps ]
+ . /etc/init.d/../conf.d/keymaps
+ keymap=us
+ windowkeys=NO
+ extended_keymaps=
+ dumpkeys_charset=
+ fix_euro=NO
+ unset _conf_d
+ [ -e /etc/rc.conf ]
+ . /etc/rc.conf
+ rc_parallel=NO
+ rc_interactive=YES
+ rc_depend_strict=YES
+ rc_hotplug=YES
+ rc_coldplug=YES
+ rc_plug_services=
+ rc_logger=NO
+ unicode=YES
+ net_fs_list=afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs smbfs
+ rc_tty_number=12
+ rc_device_tarball=NO
+ dmesg_level=1
+ [ -n  ]
+ . /etc/init.d/keymaps
+ description=Applies a keymap for the consoles.
+ ttyn=12
+ unicode=YES
+ keymap=us
+ extended_keymaps=
+ windowkeys=NO
+ fix_euro=NO
+ dumpkeys_charset=
+ unset _d
+ unset _f
+ [ -n stop ]
+ [ describe = stop ]
+ [ start = stop ]
+ [ stop = stop ]
+ command -v stop
+ [ stop = stop ]
+ yesno
+ [ -z  ]
+ return 1
+ unset _cmd
+ command -v stop_pre
+ [  = stop_pre ]
+ stop
+ [ -n  -o -n  -o -n  ]
+ return 0
+ command -v stop_post
+ [  = stop_post ]
+ shift
+ continue 2
+ [ -n  ]
+ _conf_d=/etc/init.d/../conf.d
+ _c=keymaps
+ [ -n keymaps -a keymaps != keymaps ]
+ unset _c
+ [ -e /etc/init.d/../conf.d/keymaps.default ]
+ [ -e /etc/init.d/../conf.d/keymaps ]
+ . /etc/init.d/../conf.d/keymaps
+ keymap=us
+ windowkeys=NO
+ extended_keymaps=
+ dumpkeys_charset=
+ fix_euro=NO
+ unset _conf_d
+ [ -e /etc/rc.conf ]
+ . /etc/rc.conf
+ rc_parallel=NO
+ rc_interactive=YES
+ rc_depend_strict=YES
+ rc_hotplug=YES
+ rc_coldplug=YES
+ rc_plug_services=
+ rc_logger=NO
+ unicode=YES
+ net_fs_list=afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs smbfs
+ rc_tty_number=12
+ rc_device_tarball=NO
+ dmesg_level=1
+ [ -n  ]
+ . /etc/init.d/keymaps
+ description=Applies a keymap for the consoles.
+ ttyn=12
+ unicode=YES
+ keymap=us
+ extended_keymaps=
+ windowkeys=NO
+ fix_euro=NO
+ dumpkeys_charset=
+ unset _d
+ unset _f
+ [ -n start ]
+ [ describe = start ]
+ [ start = start ]
+ command -v start
+ [ start = start ]
+ yesno
+ [ -z  ]
+ return 1
+ unset _cmd
+ command -v start_pre
+ [  = start_pre ]
+ start
+ [ -z us ]
+ local ttydev=/dev/tty n=
+ [ -d /dev/vc ]
+ [ -f /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes ]
+ ebegin Loading key mappings [us]
 * Loading key mappings [us] ...
+ local loadkeys_uni= wkeys= kmode=-a msg=ASCII
+ yesno YES
+ [ -z YES ]
+ return 0
+ loadkeys_uni=--unicode
+ kmode=-u
+ msg=UTF-8
+ yesno NO
+ [ -z NO ]
+ return 1
+ loadkeys -q --unicode us
+ eend 0 Error loading key mappings
 [ ok ]
+ yesno NO
+ [ -z NO ]
+ return 1
+ ebegin Setting keyboard mode [UTF-8]
 * Setting keyboard mode [UTF-8] ...
+ yesno YES
+ [ -z YES ]
+ return 0
+ dumpkeys
+ loadkeys --unicode
+ n=1
+ [ 1 -le 12 ]
+ kbd_mode -u -C /dev/tty1
kbd_mode: can't open console
+ n=2
+ [ 2 -le 12 ]
+ kbd_mode -u -C /dev/tty2
kbd_mode: can't open console
+ n=3
+ [ 3 -le 12 ]
+ kbd_mode -u -C /dev/tty3
kbd_mode: can't open console
+ n=4
+ [ 4 -le 12 ]
+ kbd_mode -u -C /dev/tty4
kbd_mode: can't open console
+ n=5
+ [ 5 -le 12 ]
+ kbd_mode -u -C /dev/tty5
kbd_mode: can't open console
+ n=6
+ [ 6 -le 12 ]
+ kbd_mode -u -C /dev/tty6
kbd_mode: can't open console
+ n=7
+ [ 7 -le 12 ]
+ kbd_mode -u -C /dev/tty7
kbd_mode: can't open console
+ n=8
+ [ 8 -le 12 ]
+ kbd_mode -u -C /dev/tty8
kbd_mode: can't open console
+ n=9
+ [ 9 -le 12 ]
+ kbd_mode -u -C /dev/tty9
kbd_mode: can't open console
+ n=10
+ [ 10 -le 12 ]
+ kbd_mode -u -C /dev/tty10
kbd_mode: can't open console
+ n=11
+ [ 11 -le 12 ]
+ kbd_mode -u -C /dev/tty11
kbd_mode: can't open console
+ n=12
+ [ 12 -le 12 ]
+ kbd_mode -u -C /dev/tty12
kbd_mode: can't open console
+ n=13
+ [ 13 -le 12 ]
+ eend 0
 [ ok ]
+ command -v start_post
+ [  = start_post ]
+ shift
+ continue 2
+ [ -n  ]
root@netboot $ ls /dev/tty9 -l
crw-rw----    1 root     root       4,   9 May 25 11:55 /dev/tty9
root@netboot $

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-28  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28  6:53 [gentoo-embedded] initramfs - kbd_mode: can't open console Markus Rothe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox