linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Richard Danter <richard.danter@ntlworld.com>
To: linuxppc-embedded@ozlabs.org
Subject: Trying to understand initsenses and pci_irq_table
Date: Tue, 22 Nov 2005 10:20:34 +0000	[thread overview]
Message-ID: <4382F0F2.4040807@ntlworld.com> (raw)

Hi all,

I am trying to port a 2.6.14.2 kernel to a 74xx/107 board and am having 
some problems which I think may be interrupt related. I have based my 
board support on the Sandpoint but realise that I do not really 
understand the initsenses or pci_irq_table structures and was hoping 
someone could either explain it or point me in the direction of some docs.

So far the kernel does boot and mount a NFS root filesystem, but crashes 
soon after. Whilst it boots the serial is very slow. It is at 9600 baud 
as expected, but it seems the characters are being spaced out in time 
which makes me think the serial is running in a polled mode rather than 
interrupt driven.

The board is very simple. There are several versions and the one I am 
working on now has a 7400 CPU, a 107 mem controller, a couple of PCI 
slots, serial port and some LED's.

Interrupts A, B, C and D from the PCI slots are connected to IRQ 0..3 on 
the 107. The serial port chip (16550 compatible) is wired directly to 
IRQ 4. There are no other PIC's or any other logic to confuse things.

U-Boot is running just fine and shows the following when I use the "pci" 
command:

Scanning PCI devices on bus 0
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
00.00.00   0x1057     0x0004     Bridge device           0x00
00.10.00   0x8086     0x1030     Network controller      0x00
00.12.00   0x1011     0x0026     Bridge device           0x04


How should these be mapped with the structures in the kernel?

The fact that NFS seems to be working and that the network card 
(EEPRO100) says it is using IRQ 16 is just pure luck I think!

The kernel crashes after starting init. I see some random characters on 
the serial and then nothing. Looking in the log buffer via JTAG I can 
see that the init process exited with signal 11. I assume this is 
unrelated to the above, but any suggestions where I should look?

Many thanks,
Rich

             reply	other threads:[~2005-11-22 12:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 10:20 Richard Danter [this message]
2005-11-22 19:43 ` Trying to understand initsenses and pci_irq_table Richard Danter
2005-11-30  7:11   ` Kumar Gala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4382F0F2.4040807@ntlworld.com \
    --to=richard.danter@ntlworld.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).