启动过程停止,直到按下 PS/2 键?

Dan*_*com 5 grub boot gentoo keyboard

我正在开发基于 Gentoo linux 3.6.6 的嵌入式产品,该产品在 Mini-ITX 主板上运行。我们正在考虑更换主板(从 Jetway NF9D-2550 到 Advantech EIMB-214),并测试我正在尝试从新主板启动我们现有的 SATA 开发驱动器。

当我尝试时,系统通过 BIOS 和 GRUB 引导,直到我收到以下两条消息:

[0.588839] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[0.588902] EDD information not available.
Run Code Online (Sandbox Code Playgroud)

然后系统挂起,不再继续。我已经对 BIOS 设置(AHCI 与 IDE、USB、SATA 启用/禁用等)和引导参数(edd=off, verbose)进行了很多尝试,但都无济于事。

这是我发现有帮助的一件事。如果我插入 PS/2 键盘并等待引导过程到达其通常的挂点,那么大多数情况下,当我按下某个键时,引导过程会前进一两步。

每次我按一个键(除非我按得太快)都会出现一个或多个新的日志行。每个日志行左侧的时间戳继续合理增加,例如如果我等待十秒钟然后按下一个键,则新消息时间戳比以前的大10秒。我等待的时间与按键出现的消息数量之间存在某种关联:我等待的时间越长,出现的消息就越多。

我按什么键似乎并不重要;甚至 SHIFT 或 CAPS-LOCK 也能工作。即使按下外部软电源按钮也有效!USB 键盘什么也不做;只有一个 PS/2 键盘。而且,没有插入键盘只是挂在通常的位置。

如果我坚持足够长的时间,我会得到一个引导提示,并且可以登录,但即使这样,事情也会反复锁定,直到我按下一个键。

任何线索可能会出现什么问题?

编辑:从开发SSD启动原始主板,并安装生产SATA-DOM,输出sudo parted -l为:

Model: ATA OCZ-VERTEX3 (scsi)
Disk /dev/sda: 90.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system     Flags
 1      1049kB  5370MB  5369MB  primary  ext2            boot
 2      5370MB  14.0GB  8590MB  primary  linux-swap(v1)
 3      14.0GB  90.0GB  76.1GB  primary  ext3


Model: ATA SATADOM D150SV-L (scsi)
Disk /dev/sdb: 1011MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start  End     Size   Type     File system  Flags
 1      512B   165MB   165MB  primary  ext3         boot
 2      165MB  1003MB  839MB  primary  ext3
Run Code Online (Sandbox Code Playgroud)

开发 SSD/boot/grub/grub.conf

default 0
timeout 2
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gento Linux 3.6.6-pa
kernel /boot/kernel-3.6.6-pa root=/dev/sda3

title Gentoo Linux 3.6.6-stable7-patched
kernel /boot/kernel-3.6.6-stable7-patched root=/dev/sda1

title 3.6.6-stable7
kernel /boot/kernel-3.6.6-stable7 root=/dev/sda1

# vim:ft=conf:
Run Code Online (Sandbox Code Playgroud)

编辑 2:输出uname -a, 再次在开发 SSD 的原始主板上:

Linux 257platform 3.6.6-pa #2 SMP PREEMPT Sun Mar 2 19:41:15 EST 2014 i686 Intel(R) Atom(TM) CPU D2700 @ 2.13GHz GenuineIntel GNU/Linux
Run Code Online (Sandbox Code Playgroud)

编辑3:目录内容/boot

total 13168
-rw-r--r-- 1 root root 1641624 Mar  2  2014 System.map-3.6.6-pa
-rw-r--r-- 1 root root 1635218 Feb  7  2013 System.map-3.6.6-stable7
-rw-r--r-- 1 root root 1635218 Feb 13  2013 System.map-3.6.6-stable7-patched
lrwxrwxrwx 1 root root       1 Feb  7  2013 boot -> ./
-rw-r--r-- 1 root root   70513 Mar  2  2014 config-3.6.6-pa
-rw-r--r-- 1 root root   69921 Feb  7  2013 config-3.6.6-stable7
drwxr-xr-x 2 root root    4096 Mar 14  2014 grub/
-rw-r--r-- 1 root root 2789424 Mar  2  2014 kernel-3.6.6-pa
-rw-r--r-- 1 root root 2782576 Feb  7  2013 kernel-3.6.6-stable7
-rw-r--r-- 1 root root 2782544 Feb 13  2013 kernel-3.6.6-stable7-patched
drwx------ 2 root root   16384 Feb  4  2013 lost+found/
Run Code Online (Sandbox Code Playgroud)

...和目录的内容/boot/grub

-rw-r--r-- 1 root root    197 Feb  5  2013 default
-rw-r--r-- 1 root root     30 Feb  5  2013 device.map
-rw-r--r-- 1 root root   8616 Feb  5  2013 e2fs_stage1_5
-rw-r--r-- 1 root root   7904 Feb  5  2013 fat_stage1_5
-rw-r--r-- 1 root root   7164 Feb  5  2013 ffs_stage1_5
-rw-r--r-- 1 root root    680 Mar 14  2014 grub.conf
-rw-r--r-- 1 root root   7180 Feb  5  2013 iso9660_stage1_5
-rw-r--r-- 1 root root   8616 Feb  5  2013 jfs_stage1_5
lrwxrwxrwx 1 root root      9 Feb  5  2013 menu.lst -> grub.conf
-rw-r--r-- 1 root root   7332 Feb  5  2013 minix_stage1_5
-rw-r--r-- 1 root root   9564 Feb  5  2013 reiserfs_stage1_5
-rw-r--r-- 1 root root   8488 Mar  7  2013 splash.xpm.gz
-rw-r--r-- 1 root root    512 Feb  5  2013 stage1
-rw-r--r-- 1 root root 104624 Feb  5  2013 stage2
-rw-r--r-- 1 root root 104624 Feb  5  2013 stage2_eltorito
-rw-r--r-- 1 root root   7432 Feb  5  2013 ufs2_stage1_5
-rw-r--r-- 1 root root   6796 Feb  5  2013 vstafs_stage1_5
-rw-r--r-- 1 root root   9264 Feb  5  2013 xfs_stage1_5
Run Code Online (Sandbox Code Playgroud)

编辑4:

我尝试了一些建议,但无济于事。以下没有改变:

  • 添加isapnp_reserve_irq=5到内核​​命令行

  • 将 BIOS 完全重置为默认值

编辑5:

还有一个证据:一旦我查看bash命令行(在控制台/VGA 显示器上)并输入命令,我会时不时地看到来自内核的大量日志消息,看起来像调用跟踪. 省略时间戳信息和指令偏移量,这是一个:

kernel: Call Trace:
kernel: ? rcu_pending
kernel: ? rcu_check_callbacks
kernel: ? update_process_times
kernel: ? tick_sched_timer
kernel: ? tick_mohz_handler
kernel: ? __run_hrtimer.clone.22
kernel: ? hrtimer_interrupt
kernel: ? smp_apic_timer_interrupt
kernel: ? apic_timer_interrupt
kernel: ? calc_global_load
kernel: ? acpi_idle_enter_simple
kernel: ? cpuidle_enter
kernel: ? cpuidle_enter_state
kernel: ? cpuidle_idle_call
kernel: ? cpu_idle
kernel: Clocksource tsc unstable (delta = 299966219294 ns)
kernel: Switching to clocksource hpet
Run Code Online (Sandbox Code Playgroud)

顺便说一句,299966219294 ns 大约只有 5 分钟。

编辑6:

我一直在从各种 LiveCD 引导。结果:

  • GParted 0.14.0-1 Live x86 CD:工作正常,包括带有重复输出的 shell 脚本

  • Ubuntu 桌面 12.04.1 x386:启动,但具有相同的“等待事件”疾病。在启动过程中不得不反复敲击键。完成启动到 Xwindows 后,打开终端窗口,创建每秒打印一次消息的 shell 脚本,然后运行;每输出一行后,必须按一个键(例如SHIFT)才能继续。有趣的是:如果我打开两个运行此脚本的终端窗口,两者都会锁定,但是当我按下一个键时,两者都会向前迈进。大约运行了二十分钟后,整个系统就锁定了。

  • Gentoo Live DVD livevd-x86-amd64-32ul-20140826.iso,启动 x86:一切正常。

在 Ubuntu 12.04.1 中,我设法获取了一些硬件报告:

$sudo lshw -short
H/W path               Device      Class       Description
==========================================================
                                   system      To be filled by O.E.M. (To be filled by O.E.M.)
/0                                 bus         Tiger Hill
/0/0                               memory      64KiB BIOS
/0/4                               processor   Intel(R) Atom(TM) CPU N2600   @ 1.60GHz
/0/4/5                             memory      24KiB L1 cache
/0/4/6                             memory      512KiB L2 cache
/0/4/1.1                           processor   Logical CPU
/0/4/1.2                           processor   Logical CPU
/0/4/1.3                           processor   Logical CPU
/0/4/1.4                           processor   Logical CPU
/0/28                              memory      1GiB System Memory
/0/28/0                            memory      SODIMM [empty]
/0/28/1                            memory      1GiB SODIMM DDR3 Synchronous 800 MHz (1.2 ns)
/0/1                               processor   
/0/1/1.1                           processor   Logical CPU
/0/1/1.2                           processor   Logical CPU
/0/1/1.3                           processor   Logical CPU
/0/1/1.4                           processor   Logical CPU
/0/100                             bridge      Atom Processor D2xxx/N2xxx DRAM Controller
/0/100/2                           display     Atom Processor D2xxx/N2xxx Integrated Graphics Controller
/0/100/1b                          multimedia  N10/ICH 7 Family High Definition Audio Controller
/0/100/1c                          bridge      N10/ICH 7 Family PCI Express Port 1
/0/100/1c/0                        storage     ASM1061 SATA IDE Controller
/0/100/1c.2                        bridge      N10/ICH 7 Family PCI Express Port 3
/0/100/1c.2/0          eth0        network     82574L Gigabit Network Connection
/0/100/1c.3                        bridge      N10/ICH 7 Family PCI Express Port 4
/0/100/1c.3/0          eth1        network     82583V Gigabit Network Connection
/0/100/1d                          bus         N10/ICH 7 Family USB UHCI Controller #1
/0/100/1d.1                        bus         N10/ICH 7 Family USB UHCI Controller #2
/0/100/1d.2                        bus         N10/ICH 7 Family USB UHCI Controller #3
/0/100/1d.3                        bus         N10/ICH 7 Family USB UHCI Controller #4
/0/100/1d.7                        bus         N10/ICH 7 Family USB2 EHCI Controller
/0/100/1e                          bridge      82801 Mobile PCI Bridge
/0/100/1f                          bridge      NM10 Family LPC Controller
/0/100/1f.2            scsi0       storage     N10/ICH7 Family SATA Controller [IDE mode]
/0/100/1f.2/0.0.0      /dev/cdrom  disk        DVD-RW DH24AS
/0/100/1f.2/0.0.0/0    /dev/cdrom  disk        
/0/100/1f.2/0.0.0/0/1              volume      695MiB Hidden HPFS/NTFS partition
/0/100/1f.3                        bus         N10/ICH 7 Family SMBus Controller
/0/2                   scsi2       storage     
/0/2/0.0.0             /dev/sda    disk        8004MB SCSI Disk
/0/2/0.0.0/1           /dev/sda1   volume      7633MiB Windows FAT volume

$ sudo lspci
00:00.0 Host bridge: Intel Corporation Atom Processor D2xxx/N2xxx DRAM Controller (rev 04)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D2xxx/N2xxx Integrated Graphics Controller (rev 0b)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1c.2 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 02)
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA Controller [IDE mode] (rev 02)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
01:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)
02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
03:00.0 Ethernet controller: Intel Corporation 82583V Gigabit Network Connection

$ sudo dmidecode
# dmidecode 2.11
SMBIOS 2.7 present.
51 structures occupying 1989 bytes.
Table at 0x3F2E9010.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
    Vendor: American Megatrends Inc.
    Version: 4.6.5
    Release Date: 05/20/2015
    Address: 0xF0000
    Runtime Size: 64 kB
    ROM Size: 1024 kB
    Characteristics:
        PCI is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        Boot from CD is supported
        Selectable boot is supported
        BIOS ROM is socketed
        EDD is supported
        5.25"/1.2 MB floppy services are supported (int 13h)
        3.5"/720 kB floppy services are supported (int 13h)
        3.5"/2.88 MB floppy services are supported (int 13h)
        Print screen service is supported (int 5h)
        8042 keyboard services are supported (int 9h)
        Serial services are supported (int 14h)
        Printer services are supported (int 17h)
        ACPI is supported
        USB legacy is supported
        BIOS boot specification is supported
        Targeted content distribution is supported
        UEFI is supported
    BIOS Revision: 4.6

Handle 0x0001, DMI type 1, 27 bytes
System Information
    Manufacturer: To be filled by O.E.M.
    Product Name: To be filled by O.E.M.
    Version: To be filled by O.E.M.
    Serial Number: To be filled by O.E.M.
    UUID: 03000200-0400-0500-0006-000700080009
    Wake-up Type: Power Switch
    SKU Number: To be filled by O.E.M.
    Family: To be filled by O.E.M.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
    Manufacturer: INTEL Corporation
    Product Name: Tiger Hill
    Version: To be filled by O.E.M.
    Serial Number: To be filled by O.E.M.
    Asset Tag: To be filled by O.E.M.
    Features:
        Board is a hosting board
        Board is replaceable
    Location In Chassis: To be filled by O.E.M.
    Chassis Handle: 0x0003
    Type: Motherboard
    Contained Object Handles: 0

Handle 0x0003, DMI type 3, 22 bytes
Chassis Information
    Manufacturer: To Be Filled By O.E.M.
    Type: Desktop
    Lock: Not Present
    Version: To Be Filled By O.E.M.
    Serial Number: To Be Filled By O.E.M.
    Asset Tag: To Be Filled By O.E.M.
    Boot-up State: Safe
    Power Supply State: Safe
    Thermal State: Safe
    Security Status: None
    OEM Information: 0x00000000
    Height: Unspecified
    Number Of Power Cords: 1
    Contained Elements: 0
    SKU Number: To be filled by O.E.M.

Handle 0x0004, DMI type 4, 42 bytes
Processor Information
    Socket Designation: CPU 1
    Type: Central Processor
    Family: Other
    Manufacturer: Intel            
    ID: 61 06 03 00 FF FB EB BF
    Version: Intel(R) Atom(TM) CPU N2600   @ 1.60GHz
    Voltage: 0.8 V
    External Clock: 400 MHz
    Max Speed: 1600 MHz
    Current Speed: 1600 MHz
    Status: Populated, Enabled
    Upgrade: Other
    L1 Cache Handle: 0x0005
    L2 Cache Handle: 0x0006
    L3 Cache Handle: Not Provided
    Serial Number: To Be Filled By O.E.M.
    Asset Tag: To Be Filled By O.E.M.
    Part Number: To Be Filled By O.E.M.
    Core Count: 2
    Core Enabled: 1
    Thread Count: 2
    Characteristics:
        64-bit capable

Handle 0x0005, DMI type 7, 19 bytes
Cache Information
    Socket Designation: L1-Cache
    Configuration: Enabled, Not Socketed, Level 1
    Operational Mode: Write Back
    Location: Internal
    Installed Size: 24 kB
    Maximum Size: 24 kB
    Supported SRAM Types:
        Other
    Installed SRAM Type: Other
    Speed: Unknown
    Error Correction Type: None
    System Type: Unified
    Associativity: Other

Handle 0x0006, DMI type 7, 19 bytes
Cache Information
    Socket Designation: L2-Cache
    Configuration: Enabled, Not Socketed, Level 2
    Operational Mode: Varies With Memory Address
    Location: Internal
    Installed Size: 512 kB
    Maximum Size: 512 kB
    Supported SRAM Types:
        Other
    Installed SRAM Type: Other
    Speed: Unknown
    Error Correction Type: None
    System Type: Unified
    Associativity: 8-way Set-associative

Handle 0x0007, DMI type 126, 19 bytes
Inactive

Handle 0x0008, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J1A1
    Internal Connector Type: None
    External Reference Designator: PS2Mouse
    External Connector Type: PS/2
    Port Type: Mouse Port

Handle 0x0009, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J1A1
    Internal Connector Type: None
    External Reference Designator: Keyboard
    External Connector Type: PS/2
    Port Type: Keyboard Port

Handle 0x000A, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J2A1
    Internal Connector Type: None
    External Reference Designator: TV Out
    External Connector Type: Mini Centronics Type-14
    Port Type: Other

Handle 0x000B, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J2A2A
    Internal Connector Type: None
    External Reference Designator: COM A
    External Connector Type: DB-9 male
    Port Type: Serial Port 16550A Compatible

Handle 0x000C, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J2A2B
    Internal Connector Type: None
    External Reference Designator: Video
    External Connector Type: DB-15 female
    Port Type: Video Port

Handle 0x000D, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J3A1
    Internal Connector Type: None
    External Reference Designator: USB1
    External Connector Type: Access Bus (USB)
    Port Type: USB

Handle 0x000E, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J3A1
    Internal Connector Type: None
    External Reference Designator: USB2
    External Connector Type: Access Bus (USB)
    Port Type: USB

Handle 0x000F, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J3A1
    Internal Connector Type: None
    External Reference Designator: USB3
    External Connector Type: Access Bus (USB)
    Port Type: USB

Handle 0x0010, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J9A1 - TPM HDR
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x0011, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J9C1 - PCIE DOCKING CONN
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x0012, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J2B3 - CPU FAN
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x0013, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J6C2 - EXT HDMI
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x0014, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J3C1 - GMCH FAN
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x0015, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J1D1 - ITP
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x0016, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J9E2 - MDC INTPSR
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x0017, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J9E4 - MDC INTPSR
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x0018, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J9E3 - LPC HOT DOCKING
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x0019, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J9E1 - SCAN MATRIX
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x001A, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J9G1 - LPC SIDE BAND
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x001B, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J8F1 - UNIFIED
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x001C, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J6F1 - LVDS
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x001D, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J2F1 - LAI FAN
    Internal Connector Type: Other
    External Reference Designator: Not Specified
    External Connector Type: None
    Port Type: Other

Handle 0x001E, DMI type 8, 9 bytes
Port Connector

use*_*929 3

我敢打赌这与您的硬盘磁头或 MBR 有关,而且您的问题实际上经常发生。

由于标准不同,某些 BIOS 可以从 MBR 上方的地址读取,这可能会导致您的问题,解决该问题的方法是尝试使用parted某些 WD 驱动器具有令人困惑的磁头。

您可以为初学者发布 grub.cfg 的输出吗parted -l?您可以阅读维基百科关于 MBR(主引导记录)和https://en.wikipedia.org/wiki/INT_13H的内容,因为这将有助于此过程很多。

您的硬盘品牌和存储容量是什么?