grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using grub on fuloong 6004


From: David Kuehling
Subject: Re: Using grub on fuloong 6004
Date: Mon, 25 Jul 2011 23:46:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

>>>>> "Vladimir" == Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden> 
>>>>> writes:

[..]
>> - keyoard still not working.  Tried plugging in after grub startup,
>> but doesn't help (for grub-diy.elf i had to shortly plug in the
>> keyboard to select it in pmon, so mayb that doesn't count).  Also
>> mouse was disconnected.
>> 
> I've been unable to recreate. Keyboard worked fine both when GRUB
> loaded as ELF and when GRUB is firmware. I've uploaded them to
> http://download-mirror.savannah.gnu.org/releases/grub/phcoder/grub.elf
> and
> http://download-mirror.savannah.gnu.org/releases/grub/phcoder/grub-fuloong.img.
> do you see any messages if you set debug=usb,ohci ?

If I use your grub.elf, it just prints something like 'Press Esc to skip
loading grub.cfg from hard-disk', then waits a few seconds, then the
screen gets black and the hdd led light flickers and it's trying to boot
something without success.  Pressing Esc on the keyboard doesn not have
any observable effect.

I tried with 4 different keyboards with no success.  

With my own grub.elf, adding debug=usb,ohci to my /boot/grub/grub.cfg
does not produce any output, but maybe it's just hidden by the menu
showing up?  Anything that I can do to be sure to see messages?
Redirect them to the serial port?

Just to be sure, I now updated my grub.cfg to contain

  insmod ohci
  insmod usb
  insmod usb_keyboard
  [..]
  terminal_input usb_keyboard

Which was generated from usr/local/etc/default/grub via the lines

  GRUB_TERMINAL_INPUT=usb_keyboard
  GRUB_PRELOAD_MODULES="ohci usb usb_keyboard"

The debug= lines I added before insmod ohci (but of course it's gone
after update-grub).

In case it is of any help, I attach 'lspci -vv' and 'lsusb -vv' output.

>> - menu looks a little grabled (lots of '@' instead of border), but
>> won't complain about that
>> 
> It just means that no unifont was supplied

Yeah, with my dm-crypt partitions, grub has no chance to access its
fonts.  Moved them to /boot and added 

  GRUB_FONT=/boot/grub/fonts/euro.pf2

to my default/grub, now that part is fixed (I wonder why you don't copy
fonts to /boot when you detect partitions unaccessible to grub in
00_header.  debian's grub.d/05_debian_theme applies such a handling to
the splash images, copying them if neccessary).

BTW the device.map file is still misgenerated by grub-mkdevmap on
loongson.  It writes 'hd0' where it should use 'ata0'.

cheers,

David
-- 
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40

00:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit 
Ethernet (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+ 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 64 (8000ns min, 16000ns max), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 36
        Region 0: I/O ports at 4000 [size=256]
        Region 1: Memory at 50072000 (32-bit, non-prefetchable) [size=256]
        Expansion ROM at 50040000 [size=128K]
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0-,D1+,D2+,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Kernel driver in use: r8169

00:08.0 VGA compatible controller: Silicon Integrated Systems [SiS] 315PRO 
PCI/AGP VGA Display Adapter (prog-if 00 [VGA controller])
        Subsystem: Device 3030:3030
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 71 (750ns min, 4000ns max)
        Interrupt: pin A routed to IRQ 38
        BIST result: 00
        Region 0: Memory at 40000000 (32-bit, prefetchable) [size=256M]
        Region 1: Memory at 50000000 (32-bit, non-prefetchable) [size=256K]
        Region 2: I/O ports at 4800 [size=128]
        Expansion ROM at 50060000 [size=64K]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Kernel driver in use: sisfb

00:0e.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA 
(rev 03)
        Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA
        Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Region 0: I/O ports at 4cf0 [size=8]
        Region 1: I/O ports at 4400 [size=256]
        Region 2: I/O ports at 4c80 [size=64]
        Region 4: I/O ports at 4880 [size=128]
        Region 5: I/O ports at 4cc0 [size=32]

00:0e.2 IDE interface: Advanced Micro Devices [AMD] CS5536 [Geode companion] 
IDE (rev 01) (prog-if 80 [Master])
        Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 64 (16000ns max), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 14
        Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) 
[size=8]
        Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) 
[size=1]
        Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) 
[size=8]
        Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) 
[size=1]
        Region 4: I/O ports at 4ce0 [size=16]
        Kernel driver in use: pata_amd

00:0e.3 Multimedia audio controller: Advanced Micro Devices [AMD] CS5536 [Geode 
companion] Audio (rev 01)
        Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] Audio
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 0 (16000ns max), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 9
        Region 0: I/O ports at 4c00 [size=128]
        Kernel driver in use: cs5535audio

00:0e.4 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] 
OHC (rev 02) (prog-if 10 [OHCI])
        Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 0 (16000ns max), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at 50070000 (32-bit, non-prefetchable) [size=4K]
        Kernel driver in use: ohci_hcd

00:0e.5 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] 
EHC (rev 02) (prog-if 20 [EHCI])
        Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 0 (16000ns max), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at 50071000 (32-bit, non-prefetchable) [size=4K]
        Kernel driver in use: ehci_hcd

Bus 002 Device 002: ID 0b51:0020 Comfort Keyboard Co. Comfort Keyboard
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0b51 Comfort Keyboard Co.
  idProduct          0x0020 Comfort Keyboard
  bcdDevice            1.00
  iManufacturer           1 Comfort Keyboard Company
  iProduct                2 Comfort Keyboard System
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      54
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              20
Device Status:     0x0000
  (Bus Powered)

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0001 1.1 root hub
  bcdDevice            2.06
  iManufacturer           3 Linux 2.6.39.3-dk5 ohci_hcd
  iProduct                2 OHCI Host Controller
  iSerial                 1 0000:00:0e.4
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x0002
    No power switching (usb 1.0)
    Ganged overcurrent protection
  bPwrOn2PwrGood       16 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
   Port 3: 0000.0100 power
   Port 4: 0000.0103 power enable connect
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            2.06
  iManufacturer           3 Linux 2.6.39.3-dk5 ehci_hcd
  iProduct                2 EHCI Host Controller
  iSerial                 1 0000:00:0e.5
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
   Port 3: 0000.0100 power
   Port 4: 0000.0100 power
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled

Attachment: pgpZG1kKCsrd_.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]