Multiple problems with RS/6000 (2.4.18 and probably 2.4.20 too)

Krzysiek Taraszka dzimi at
Sat Feb 1 22:47:27 EST 2003

I've got multiple problems with my RS/6000 and some devices witch should
work on ppc platworm.

My machine is:
# uname -a
Linux pldmachine 2.4.18 #1 Sun Sep 29 23:53:08 UTC 2002 ppc
CHRP_IBM,7046-B50 PLD Linux

first problem exist when i need get cpuinfo, its look like this:

cpu    : 604r
clock  : 374MHz
revision  : 49.2 (pvr 0009 3102)
bogomips  : 373.55
machine   : CHRP IBM,7046-B50

should be:

processor       : 0
cpu             : 604r
clock           : 374MHz
revision        : 49.2 (pvr 0009 3102)
bogomips        : 373.55
machine         : CHRP IBM,7046-B50

here My fix:

[dzimi at cyborg SOURCES]$ cat linux-2.4-ppc-procesor.patch | less
--- linux-2.4.20/arch/ppc/kernel/    Sat Feb  1 09:59:25 2003
+++ linux-2.4.20/arch/ppc/kernel/setup.c        Sat Feb  1 10:08:58 2003
@@ -158,6 +158,7 @@
        pvr = mfspr(PVR);
        lpj = loops_per_jiffy;
+       seq_printf(m, "processor\t: %lu\n", i);

        seq_printf(m, "cpu\t\t: ");

without this small fix top won't work.

second problem exist when i want to load advansys driver :

[root at pldmachine /root]# modprobe advansys
\/lib/modules/2.4.18-8/kernel/drivers/scsi/advansys.o: init_module: No
such device
Hint: insmod errors can be caused by incorrect module parameters,
including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.18-8/kernel/drivers/scsi/advansys.o: insmod
/lib/modules/2.4.18-8/kernel/drivers/scsi/advansys.o failed
/lib/modules/2.4.18-8/kernel/drivers/scsi/advansys.o: insmod advansys
[root at pldmachine /root]#

here is output from dmesg:

Memory BAT mapping: BAT2=256Mb, BAT3=0Mb, residual: 0Mb
Total memory = 256MB; using 1024kB for hash table (at c0300000)
Linux version 2.4.18 (builder at an2) (gcc version 2.95.4 20010319
(prerelease)) #1 Sun Sep 29 23:53:08 UTC 2002
PCI bus 0 controlled by pci at 80000000
Warning: no mac-io found
OpenPIC addrs: fcec0000 c0283f7c d
RTAS Event Scan Rate: 1 (2999 jiffies)
On node 0 totalpages: 65536
zone(0): 65536 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/sda2 ro console=ttyS0,9600
OpenPIC Version 1.0 (4 CPUs and 16 IRQ sources) at f73be000
time_init: decrementer frequency = 20.781946 MHz
Console: colour dummy device 80x25
Calibrating delay loop... 373.55 BogoMIPS
Memory: 253852k available (1484k kernel code, 812k data, 312k init, 0k
Dentry-cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 0 of PCI bridge 0
PCI: resource is 0..bfffff (100), parent c01bcf2c
PCI:00:0d.0: Resource 0: fcec0000-fcefffff (f=200)
PCI:00:0b.1: Resource 0: 00bfe400-00bfe407 (f=101)
PCI:00:0b.1: Resource 1: 00bfdc00-00bfdc03 (f=101)
PCI:00:0b.1: Resource 2: 00bfe800-00bfe807 (f=101)
PCI:00:0b.1: Resource 3: 00bfe000-00bfe003 (f=101)
PCI:00:0b.1: Resource 4: 00bfec00-00bfec0f (f=101)
PCI:00:0b.1: Resource 5: 00bff000-00bff00f (f=101)
PCI:00:0c.0: Resource 0: 00bff400-00bff41f (f=101)
PCI:00:0c.0: Resource 1: fce9c000-fce9c01f (f=200)
PCI:00:0c.0: Resource 1: fce9c000-fce9c01f (f=200)
PCI:00:10.0: Resource 0: 00bff800-00bff8ff (f=101)
PCI:00:10.0: Resource 1: fce9d000-fce9d0ff (f=200)
PCI:00:10.0: Resource 2: fce9f000-fce9ffff (f=200)
PCI:00:12.0: Resource 0: 00bffc00-00bffcff (f=101)
PCI:00:12.0: Resource 1: fce9e000-fce9e0ff (f=200)
PCI:00:16.0: Resource 0: fceb0000-fcebffff (f=200)
Don't know how to access NVRAM with 4 addresses
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Thermal assist unit not available
Starting kswapd
VFS: Diskquotas version dquot_6.5.1 initialized
devfs: v1.10 (20020120) Richard Gooch (rgooch at
devfs: boot_options: 0x0
initialize_kbd: Keyboard reset failed, no ACK
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
keyboard: Timeout - AT keyboard not present?(ed)
keyboard: Timeout - AT keyboard not present?(f4)
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
PCI: Enabling device 00:16.0 (0000 -> 0002)
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with
W82C105: IDE controller on PCI bus 00 dev 59
PCI: Enabling device 00:0b.1 (0140 -> 0141)
W82C105: chipset revision 5
W82C105: 100% native mode on irq 255
    ide0: BM-DMA at 0xbfec00-0xbfec07, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xbfec08-0xbfec0f, BIOS settings: hdc:DMA, hdd:DMA
Macintosh non-volatile memory driver v1.0
Warning: no ADB interface detected
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8 Andreas Gal, Vojtech Pavlik <vojtech at>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 148k freed
VFS: Mounted root (romfs filesystem) readonly.
SCSI subsystem driver Revision: 1.00
PCI: Enabling device 00:10.0 (0140 -> 0143)
sym.0.16.0: setting PCI_COMMAND_MASTER...
sym.0.16.0: setting PCI_COMMAND_INVALIDATE.
sym0: <875> rev 0x4 on pci bus 0 device 16 function 0 irq 23
sym0: No NVRAM, ID 7, Fast-20, SE, parity checking
sym0: SCSI BUS has been reset.
scsi0 : sym-2.1.17a
sym0:2: FAST-20 WIDE SCSI 40.0 MB/s ST (50.0 ns, offset 16)
  Vendor: IBM       Model: DNES-309170W      Rev: SAGU
  Type:   Direct-Access                      ANSI SCSI revision: 03
sym0:2:0: tagged command queuing enabled, command queue depth 16.
Attached scsi disk sda at scsi0, channel 0, id 2, lun 0
SCSI device sda: 17774160 512-byte hdwr sectors (9100 MB)
Partition check:
 /dev/scsi/host0/bus0/target2/lun0: p1 p2 p3 p4 < p5 >
VFS: Mounted root (ext2 filesystem) readonly.
change_root: old root has d_count=2
Trying to unmount old root ... okay
Freeing unused kernel memory: 312k init 56k pmac 8k prep
Real Time Clock Driver v1.10e
Adding Swap: 525304k swap-space (priority -1)
pcnet32_probe_pci: found device 0x001022.0x002000
PCI: Enabling device 00:0c.0 (0140 -> 0143)
    ioaddr=0xbff400  resource_flags=0x000101
eth%d: PCnet/FAST 79C971 at 0xbff400, warning PROM address does not match
CSR address

eth%d: using PROM address: 00 04 ac 97 66 a6
    tx_start_pt(0x0c00):~220 bytes, BCR18(6821):BurstWrEn NoUFlow
    SRAMSIZE=0x7f00, SRAM_BND=0x4000,
pcnet32: pcnet32_private lp=cf944000 lp_dma_addr=0xf944000 assigned IRQ
pcnet32.c:v1.25kf 17.11.2001 tsbogend at
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
Installing knfsd (copyright (C) 1996 okir at
eth0: no IPv6 routers present
PCI: Enabling device 00:12.0 (0140 -> 0143)
advansys: AscInitGetConfig: board 0 error: init_state 0x1, err_code 0x200

this two lines :

PCI: Enabling device 00:12.0 (0140 -> 0143)
advansys: AscInitGetConfig: board 0 error: init_state 0x1, err_code 0x200

come from advansys.o, when i try to load driver.
I looked into driver, IMHO he is ppc specyfic, so where is problem ?

and the latest problem exist when i want to get access to equinox serial
card, well, hmm, anyone get it work ? Seems to i need to rewrote they
driver ...

Oh, lspci, and output messages from uname -a, dmesg and modprobe
advansys are attachment :)

Krzysiek Taraszka			(dzimi at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linuxppc-dev.tar.bz2
Type: application/x-bzip2
Size: 4644 bytes
Desc: dmesg, lspci and others
URL: <>

More information about the Linuxppc-dev mailing list