Duy-Ky Nguyen | 1 Nov 20:24 2008
Picon

How to use eth0 of MPC8313E

Heelo,

I'm responding to my question.

I found there's mismatch in PHY id.

Best Regards,

Duy-Ky

----- Original Message ----- 
From: <linuxppc-embedded-request <at> ozlabs.org>
To: <linuxppc-embedded <at> ozlabs.org>
Sent: Friday, October 31, 2008 2:29 PM
Subject: Linuxppc-embedded Digest, Vol 51, Issue 1


> Send Linuxppc-embedded mailing list submissions to
> linuxppc-embedded <at> ozlabs.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> or, via email, send a message with subject or body 'help' to
> linuxppc-embedded-request <at> ozlabs.org
>
> You can reach the person managing the list at
> linuxppc-embedded-owner <at> ozlabs.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Linuxppc-embedded digest..."
(Continue reading)

Minh Tuan Duong | 3 Nov 04:16 2008
Picon

LSISAS3041E-R PCIe card bring up failed on AMCC Canyonlands

Hi all,

I am having some problems with AMCC Canyonlands' PCIe. I've tried to bring up LSISAS3041E-R PCIe card with Canyonlands but failed. It seems PCIe card can be detected in U-boot but Linux (kernel linux-2.6-denx). I also followed advice at http://marc.info/?l=linux-netdev&m=121602350226912&w=2 applying kernel 2.6.26 from kernel.org but nothing is progress. Log file is attached.
Please let me know if you have any idea.

--
Thanks and best regards,
Tuan

=====================================================================================================
CPU:   AMCC PowerPC 460EX Rev. A at 800 MHz (PLB=200, OPB=100, EBC=100 MHz)
       Security/Kasumi support
       Bootstrap Option B - Boot ROM Location EBC (16 bits)
       Internal PCI arbiter disabled
       32 kB I-Cache 32 kB D-Cache
Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 14
I2C:   ready
DTT:   1 is 48 C
DRAM:  512 MB (ECC not enabled, 400 MHz, CL3)
FLASH: 64 MB
NAND:  128 MiB
PCI:   Bus Dev VenId DevId Class Int
PCIE0: link is not up.
PCIE0: initialization as root-complex failed
PCIE1: successfully set as root-complex
        02  00  1000  0056  0100  00
        01  00  aaa1  bed1  0604  00
Net:   ppc_4xx_eth0, ppc_4xx_eth1

Type run flash_nfs to mount root filesystem over NFS

Hit any key to stop autoboot:  0
=> pci 1
Scanning PCI devices on bus 1
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
01.00.00   0xaaa1     0xbed1     Bridge device           0x04
=> pci 2
Scanning PCI devices on bus 2
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
02.00.00   0x1000     0x0056     Mass storage controller 0x00
=> run net_nfs
Waiting for PHY auto negotiation to complete.. done
ENET Speed is 100 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 10.38.12.201; our IP address is 10.38.12.229
Filename 'canyonlands/uImage'.
Load address: 0x400000
Loading: #################################################################
         ############################
done
Bytes transferred = 1352171 (14a1eb hex)
ENET Speed is 100 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 10.38.12.201; our IP address is 10.38.12.229
Filename 'canyonlands/canyonlands.dtb'.
Load address: 0xfc1e0000
Loading: #
done
Bytes transferred = 12288 (3000 hex)
## Booting kernel from Legacy Image at 00400000 ...
   Image Name:   Linux-2.6.26
   Created:      2008-10-31  10:38:58 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1352107 Bytes =  1.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Flattened Device Tree blob at fc1e0000
   Booting using the fdt blob at 0xfc1e0000
   Loading Device Tree to 007fc000, end 007ff188 ... OK
Using Canyonlands machine description
Linux version 2.6.26 (tuan <at> Saigon) (gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)) #2 Fri Oct 31 17:38:56 ICT 2008
Zone PFN ranges:
  DMA             0 ->   131072
  Normal     131072 ->   131072
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->   131072
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: root=/dev/nfs rw nfsroot=10.38.12.201:/opt/eldk/ppc_4xxFP ip=10.38.12.229:10.38.12.201:10.38.12.1:255.255.252.0:canyonlands:eth0:off panic=1 console=ttyS0,115200
UIC0 (32 IRQ sources) at DCR 0xc0
UIC1 (32 IRQ sources) at DCR 0xd0
UIC2 (32 IRQ sources) at DCR 0xe0
UIC3 (32 IRQ sources) at DCR 0xf0
PID hash table entries: 2048 (order: 11, 8192 bytes)
clocksource: timebase mult[500000] shift[22] registered
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 516608k/524288k available (2648k kernel code, 7440k reserved, 112k data, 128k bss, 148k init)
SLUB: Genslabs=10, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 192 bytes
NET: Registered protocol family 16
256k L2-cache enabled
PCIE0: Checking link...
PCIE0: No device detected.
PCI host bridge /plb/pciex <at> d00000000 (primary) ranges:
 MEM 0x0000000e00000000..0x0000000e7fffffff -> 0x0000000080000000
  IO 0x0000000f80000000..0x0000000f8000ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCIE0: successfully set as root-complex
PCIE1: Checking link...
PCIE1: Device detected, waiting for link...
PCIE1: link is up !
PCI host bridge /plb/pciex <at> d20000000 (primary) ranges:
 MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000
  IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCIE1: successfully set as root-complex
PCI host bridge /plb/pci <at> c0ec00000 (primary) ranges:
 MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000
  IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCI: Probing PCI hardware
PCI: Hiding 4xx host bridge resources 0000:40:00.0
PCI: Hiding 4xx host bridge resources 0001:80:00.0
PCI: Bridge: 0000:40:00.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
PCI: Bridge: 0001:80:00.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
SCSI subsystem initialized
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 1009
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
assign_interrupt_mode Found MSI capability
assign_interrupt_mode Found MSI capability
aer: probe of 0000:40:00.0:pcie01 failed with error -38
aer: probe of 0001:80:00.0:pcie01 failed with error -38
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 18) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 19) is a 16550A
serial8250.0: ttyS2 at MMIO 0x4ef600500 (irq = 29) is a 16550A
serial8250.0: ttyS3 at MMIO 0x4ef600600 (irq = 20) is a 16550A
4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 18) is a 16550A
4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 19) is a 16550A
4ef600500.serial: ttyS2 at MMIO 0x4ef600500 (irq = 29) is a 16550A
4ef600600.serial: ttyS3 at MMIO 0x4ef600600 (irq = 20) is a 16550A
brd: module loaded
PPC 4xx OCP EMAC driver, version 3.54
MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
ZMII /plb/opb/emac-zmii <at> ef600d00 initialized
RGMII /plb/opb/emac-rgmii <at> ef601500 initialized with MDIO support
TAH /plb/opb/emac-tah <at> ef601350 initialized
TAH /plb/opb/emac-tah <at> ef601450 initialized
/plb/opb/emac-rgmii <at> ef601500: input 0 in RGMII mode
eth0: EMAC-0 /plb/opb/ethernet <at> ef600e00, MAC 00:10:ec:00:f9:f6
eth0: found Generic MII PHY (0x00)
/plb/opb/emac-rgmii <at> ef601500: input 1 in RGMII mode
eth1: EMAC-1 /plb/opb/ethernet <at> ef600f00, MAC 00:10:ec:80:f9:f6
eth1: found Generic MII PHY (0x01)
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SPI Host driver 3.04.06
Fusion MPT FC Host driver 3.04.06
Fusion MPT SAS Host driver 3.04.06
Fusion MPT misc device (ioctl) driver 3.04.06
mptctl: Registered with Fusion MPT base driver
mptctl: /dev/mptctl <at> (major,minor=10,220)
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
eth0: link is down
IP-Config: Complete:
     device=eth0, addr=10.38.12.229, mask=255.255.252.0, gw=10.38.12.1,
     host=canyonlands, domain=, nis-domain=(none),
     bootserver=10.38.12.201, rootserver=10.38.12.201, rootpath=
Looking up port of RPC 100003/2 on 10.38.12.201
eth0: link is up, 100 FDX, pause enabled
Looking up port of RPC 100005/1 on 10.38.12.201
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 148k init
modprobe: FATAL: Could not load /lib/modules/2.6.26/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.26/modules.dep: No such file or directory

INIT: version 2.85 booting
                Welcome to DENX Embedded Linux Environment
                Press 'I' to enter interactive startup.
Building the cache [  OK  ]
 storage network audio done[  OK  ]
modprobe: FATAL: Could not load /lib/modules/2.6.26/modules.dep: No such file or directory

Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Setting clock : Thu Jan  1 00:00:05 UTC 1970 [  OK  ]
Setting hostname canyonlands:  [  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling swap space:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Bringing up loopback interface:  [  OK  ]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Starting portmap: [  OK  ]
Mounting NFS filesystems:  [  OK  ]
Mounting other filesystems:  [  OK  ]
Starting xinetd: [  OK  ]

DENX ELDK version 4.1 build 2007-01-19
Linux 2.6.26 on a ppc

canyonlands login: root
Last login: Sat Jul 12 02:53:28 on console
bash-3.00# uname -r
2.6.26
bash-3.00# lspci
40:00.0 PCI bridge: Unknown device aaa0:bed0 (rev 01)
80:00.0 PCI bridge: Unknown device aaa1:bed1 (rev 01)
bash-3.00# cat /proc/interrupts
           CPU0
 18:        252   UIC   Level     serial
 21:       6032   UIC   Level     MAL TX EOB
 22:      11737   UIC   Level     MAL RX EOB
 23:          0   UIC   Edge      L2C
 24:          0   UIC   Level     MAL SERR
 25:          0   UIC   Level     MAL TX DE
 26:          0   UIC   Level     MAL RX DE
 27:          0   UIC   Level     EMAC
BAD:          0
bash-3.00# cat /proc/devices
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
 10 misc
 21 sg
128 ptm
136 pts

Block devices:
  1 ramdisk
bash-3.00#

=====================================================================================================

CPU:   AMCC PowerPC 460EX Rev. A at 800 MHz (PLB=200, OPB=100, EBC=100 MHz)
       Security/Kasumi support
       Bootstrap Option B - Boot ROM Location EBC (16 bits)
       Internal PCI arbiter disabled
       32 kB I-Cache 32 kB D-Cache
Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 14
I2C:   ready
DTT:   1 is 48 C
DRAM:  512 MB (ECC not enabled, 400 MHz, CL3)
FLASH: 64 MB
NAND:  128 MiB
PCI:   Bus Dev VenId DevId Class Int
PCIE0: link is not up.
PCIE0: initialization as root-complex failed
PCIE1: successfully set as root-complex
        02  00  1000  0056  0100  00
        01  00  aaa1  bed1  0604  00
Net:   ppc_4xx_eth0, ppc_4xx_eth1

Type run flash_nfs to mount root filesystem over NFS

Hit any key to stop autoboot:  0
=> pci 1
Scanning PCI devices on bus 1
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
01.00.00   0xaaa1     0xbed1     Bridge device           0x04
=> pci 2
Scanning PCI devices on bus 2
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
02.00.00   0x1000     0x0056     Mass storage controller 0x00
=> run net_nfs
Waiting for PHY auto negotiation to complete.. done
ENET Speed is 100 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 10.38.12.201; our IP address is 10.38.12.229
Filename 'canyonlands/uImage'.
Load address: 0x400000
Loading: #################################################################
         ############################
done
Bytes transferred = 1352171 (14a1eb hex)
ENET Speed is 100 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 10.38.12.201; our IP address is 10.38.12.229
Filename 'canyonlands/canyonlands.dtb'.
Load address: 0xfc1e0000
Loading: #
done
Bytes transferred = 12288 (3000 hex)
## Booting kernel from Legacy Image at 00400000 ...
   Image Name:   Linux-2.6.26
   Created:      2008-10-31  10:38:58 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1352107 Bytes =  1.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Flattened Device Tree blob at fc1e0000
   Booting using the fdt blob at 0xfc1e0000
   Loading Device Tree to 007fc000, end 007ff188 ... OK
Using Canyonlands machine description
Linux version 2.6.26 (tuan <at> Saigon) (gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)) #2 Fri Oct 31 17:38:56 ICT 2008
Zone PFN ranges:
  DMA             0 ->   131072
  Normal     131072 ->   131072
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->   131072
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: root=/dev/nfs rw nfsroot=10.38.12.201:/opt/eldk/ppc_4xxFP
ip=10.38.12.229:10.38.12.201:10.38.12.1:255.255.252.0:canyonlands:eth0:off panic=1 console=ttyS0,115200
UIC0 (32 IRQ sources) at DCR 0xc0
UIC1 (32 IRQ sources) at DCR 0xd0
UIC2 (32 IRQ sources) at DCR 0xe0
UIC3 (32 IRQ sources) at DCR 0xf0
PID hash table entries: 2048 (order: 11, 8192 bytes)
clocksource: timebase mult[500000] shift[22] registered
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 516608k/524288k available (2648k kernel code, 7440k reserved, 112k data, 128k bss, 148k init)
SLUB: Genslabs=10, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 192 bytes
NET: Registered protocol family 16
256k L2-cache enabled
PCIE0: Checking link...
PCIE0: No device detected.
PCI host bridge /plb/pciex <at> d00000000 (primary) ranges:
 MEM 0x0000000e00000000..0x0000000e7fffffff -> 0x0000000080000000
  IO 0x0000000f80000000..0x0000000f8000ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCIE0: successfully set as root-complex
PCIE1: Checking link...
PCIE1: Device detected, waiting for link...
PCIE1: link is up !
PCI host bridge /plb/pciex <at> d20000000 (primary) ranges:
 MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000
  IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCIE1: successfully set as root-complex
PCI host bridge /plb/pci <at> c0ec00000 (primary) ranges:
 MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000
  IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCI: Probing PCI hardware
PCI: Hiding 4xx host bridge resources 0000:40:00.0
PCI: Hiding 4xx host bridge resources 0001:80:00.0
PCI: Bridge: 0000:40:00.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
PCI: Bridge: 0001:80:00.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
SCSI subsystem initialized
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 1009
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
assign_interrupt_mode Found MSI capability
assign_interrupt_mode Found MSI capability
aer: probe of 0000:40:00.0:pcie01 failed with error -38
aer: probe of 0001:80:00.0:pcie01 failed with error -38
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 18) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 19) is a 16550A
serial8250.0: ttyS2 at MMIO 0x4ef600500 (irq = 29) is a 16550A
serial8250.0: ttyS3 at MMIO 0x4ef600600 (irq = 20) is a 16550A
4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 18) is a 16550A
4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 19) is a 16550A
4ef600500.serial: ttyS2 at MMIO 0x4ef600500 (irq = 29) is a 16550A
4ef600600.serial: ttyS3 at MMIO 0x4ef600600 (irq = 20) is a 16550A
brd: module loaded
PPC 4xx OCP EMAC driver, version 3.54
MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
ZMII /plb/opb/emac-zmii <at> ef600d00 initialized
RGMII /plb/opb/emac-rgmii <at> ef601500 initialized with MDIO support
TAH /plb/opb/emac-tah <at> ef601350 initialized
TAH /plb/opb/emac-tah <at> ef601450 initialized
/plb/opb/emac-rgmii <at> ef601500: input 0 in RGMII mode
eth0: EMAC-0 /plb/opb/ethernet <at> ef600e00, MAC 00:10:ec:00:f9:f6
eth0: found Generic MII PHY (0x00)
/plb/opb/emac-rgmii <at> ef601500: input 1 in RGMII mode
eth1: EMAC-1 /plb/opb/ethernet <at> ef600f00, MAC 00:10:ec:80:f9:f6
eth1: found Generic MII PHY (0x01)
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SPI Host driver 3.04.06
Fusion MPT FC Host driver 3.04.06
Fusion MPT SAS Host driver 3.04.06
Fusion MPT misc device (ioctl) driver 3.04.06
mptctl: Registered with Fusion MPT base driver
mptctl: /dev/mptctl  <at>  (major,minor=10,220)
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
eth0: link is down
IP-Config: Complete:
     device=eth0, addr=10.38.12.229, mask=255.255.252.0, gw=10.38.12.1,
     host=canyonlands, domain=, nis-domain=(none),
     bootserver=10.38.12.201, rootserver=10.38.12.201, rootpath=
Looking up port of RPC 100003/2 on 10.38.12.201
eth0: link is up, 100 FDX, pause enabled
Looking up port of RPC 100005/1 on 10.38.12.201
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 148k init
modprobe: FATAL: Could not load /lib/modules/2.6.26/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.26/modules.dep: No such file or directory

INIT: version 2.85 booting
                Welcome to DENX Embedded Linux Environment
                Press 'I' to enter interactive startup.
Building the cache [  OK  ]
 storage network audio done[  OK  ]
modprobe: FATAL: Could not load /lib/modules/2.6.26/modules.dep: No such file or directory

Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Setting clock : Thu Jan  1 00:00:05 UTC 1970 [  OK  ]
Setting hostname canyonlands:  [  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling swap space:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Bringing up loopback interface:  [  OK  ]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Starting portmap: [  OK  ]
Mounting NFS filesystems:  [  OK  ]
Mounting other filesystems:  [  OK  ]
Starting xinetd: [  OK  ]

DENX ELDK version 4.1 build 2007-01-19
Linux 2.6.26 on a ppc

canyonlands login: root
Last login: Sat Jul 12 02:53:28 on console
bash-3.00# uname -r
2.6.26
bash-3.00# lspci
40:00.0 PCI bridge: Unknown device aaa0:bed0 (rev 01)
80:00.0 PCI bridge: Unknown device aaa1:bed1 (rev 01)
bash-3.00# cat /proc/interrupts
           CPU0
 18:        252   UIC   Level     serial
 21:       6032   UIC   Level     MAL TX EOB
 22:      11737   UIC   Level     MAL RX EOB
 23:          0   UIC   Edge      L2C
 24:          0   UIC   Level     MAL SERR
 25:          0   UIC   Level     MAL TX DE
 26:          0   UIC   Level     MAL RX DE
 27:          0   UIC   Level     EMAC
BAD:          0
bash-3.00# cat /proc/devices
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
 10 misc
 21 sg
128 ptm
136 pts

Block devices:
  1 ramdisk
bash-3.00#
Attachment (config): application/octet-stream, 25 KiB
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded <at> ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Pieter | 3 Nov 13:43 2008
Picon

MPC8540 performance counters missing

Hi

I have recently moved from kernel 2.6.19 to 2.6.24 ( both supplied by
DENX) and using the ppc architecture. I have found that the performance
counters that were available in /sys/devises/platform/fsl-perfmon.1 are
missing since switching to the newer kernel.

could someone pls. help with what i am missing
thanks pieter
Ayman El-Khashab | 3 Nov 16:49 2008

RE: LSISAS3041E-R PCIe card bring up failed on AMCC Canyonlands

Minh Tuan Duong <> said on Sunday, November 02, 2008 9:17 PM:

> I am having some problems with AMCC Canyonlands' PCIe. I've tried to
> bring up LSISAS3041E-R PCIe card with Canyonlands but failed. It
> seems PCIe card can be detected in U-boot but Linux (kernel
> linux-2.6-denx). I also followed advice at
> http://marc.info/?l=linux-netdev&m=121602350226912&w=2 applying
> kernel 2.6.26 from kernel.org but nothing is progress. Log file is
> attached. Please let me know if you have any idea.     

Looking at your log file it appears that your device has a host bridge
on it.  Recently we had the same problem and some patches have just 
been put in for handling PCI-E secondary busses.  You will have to
either
put the patches in or pull a recent tree.  The exact details and patch
are
on linuxppc-dev, subject "Workaround invalid P2P bridge bus numbers".
I've
confirmed that it does function on the Canyonlands using a couple of 
different devices.

Best Regards,
Ayman
saadia dhouib | 3 Nov 17:39 2008
Picon

linux 2.6 boot failure with rfs installed in the flash disk (xupv2p + ppc)


Hi all,

After booting successfully the kernel with the ramdisk, I tried to boot the
kernel with a root file system installed on the third partition of the flash
disk. 
Partition 1: Type = FAT16, Size = 32Mbyte
Partition 2 : Type = Linux Swap, Size = 256Mbyte
partition 3: Type=Linux, Size = 950 Mbyte

I installed the filesystem (using BusyBox 1.12.1, and the script mkrootfs.sh
written by Wofgang Klingauf), and I configured the kernel to support xsysace
driver.

I changed bootargs to "console=ttyUL0,9600 root=/dev/xsa3 rw"; /* it was
console=ttyS0, root=/dev/ram rw*/

I rebooted the kernel, it stops after "Warning: unable to open an initial
console."

The output of the console is as follows:

*****************************************************************************************
zImage starting: loaded at 0x00400000 (sp: 0x0059eefc)
Allocating 0x377124 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040c000:0x0059d133)...done 0x3545e8 bytes

Linux/PowerPC load: console=ttyUL0,9600 root=/dev/xsa3 rw
Finalizing device tree... flat tree at 0x40ae18
Using Xilinx Virtex machine description
Linux version 2.6.27-rc9 (dhouib <at> lo-lester-030) (gcc version 3.4.5) #29
PREEMPT Mon Nov 3 16:23:09 CET 2008
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   0x00010000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00010000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyUL0,9600 root=/dev/xsa3 rw
Xilinx intc at 0x41200000 mapped to 0xfdfff000
PID hash table entries: 1024 (order: 10, 4096 bytes)
clocksource: timebase mult[d55555] shift[22] registered
Console: colour dummy device 80x25
console [ttyUL0] enabled
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256000k/262144k available (3256k kernel code, 5832k reserved, 128k
data, 136k bss, 160k init)
Calibrating delay loop... 598.01 BogoMIPS (lpj=1196032)
Mount-cache hash table entries: 512
net_namespace: 756 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Installing knfsd (copyright (C) 1996 okir <at> monad.swb.de).
msgmni has been set to 500
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver4 ports, IRQ sharing disabled
40600000.serial: ttyUL0 at MMIO 0x40600003 (irq = 16) is a uartlite
brd: module loaded
loop: module loaded
xsysace 41800000.sysace: Xilinx SystemACE revision 1.0.12
xsysace 41800000.sysace: capacity: 3940272 sectors
 xsa: xsa1 xsa2 xsa3
Xilinx SystemACE device driver, major=254
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 160k init
Warning: unable to open an initial console.

*******************************************************************

I made a search in the net and I have found in (
http://rm-rfroot.net/files/courses/xupv2p/docs/carithers/report.pdf) that:
If we do not include the option to automatically mount the ‘/dev’ file
system, the init process will not be able to open a terminal since ‘console’
is listed in ‘/dev’ as a device. 

But there was no option in the kernel config that enable /dev Automatically
mount at boot.

My questions are:

1. can i configure the kernel to automatically mount /dev at boot?

2. how can I configure correctly the ram size (the default options
virtex4_defconfig are: CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=8192). But I have an SDRAM of 256 Megabytes size.

Thanks 

Saadia

--

-- 
View this message in context: http://www.nabble.com/linux-2.6-boot-failure-with-rfs-installed-in-the-flash-disk-%28xupv2p-%2B-ppc%29-tp20306038p20306038.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded <at> ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Ayman El-Khashab | 3 Nov 18:50 2008

Trouble booting a v1 device tree on canyonlands

I am having trouble booting the canyonlands with the recent (10/31) denx kernel tree and dts file.  I have mostly ruled out the kernel being incorrect as it does work fine with the same uImage but an older version (non-v1) device tree.  I pulled down the new code to get the new version device tree, canyonlands.dts.  It compiles fine with a recent (11/1) version of dtc but when the board goes to boot it gets to Loading ramdisk ..OK and then hangs.  If I do nothing more than put an older version of the device tree in (a pre v1), then it works fine. I do not have anything attached to the board other than ethernet and a serial port. 
 
Is there something special about the new version of the device tree file that I need to massage to get this to work?  Do I need to install a newer u-boot into the flash to handle this version of device tree?
 
Thanks,
- ame

_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded <at> ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
saadia dhouib | 3 Nov 19:27 2008
Picon

Re: linux 2.6 boot failure with rfs installed in the flash disk (xupv2p + ppc)


Finally I created a node for ttyUL0 in /dev
mknod /dev/ttyUL0 c 5 0
mknod /dev/console c 5 1

Then I modified /etc/inittab (from klingauf mkrootfs), I replaced the line
:12345:respawn:/sbin/getty 9600 tts/0
by 
ttyUL0:12345:respawn:/sbin/getty -L ttyUL0 9600 vt100

Then I rebooted the kernel, and there were errors:

zImage starting: loaded at 0x00400000 (sp: 0x0059eefc)
Allocating 0x377124 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040c000:0x0059d133)...done 0x3545e8 bytes

Linux/PowerPC load: console=ttyUL0,9600 root=/dev/xsa3 rw
Finalizing device tree... flat tree at 0x40ae18
Using Xilinx Virtex machine description
Linux version 2.6.27-rc9 (dhouib <at> lo-lester-030) (gcc version 3.4.5) #29
PREEMPT Mon Nov 3 16:23:09 CET 2008
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   0x00010000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00010000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyUL0,9600 root=/dev/xsa3 rw
Xilinx intc at 0x41200000 mapped to 0xfdfff000
PID hash table entries: 1024 (order: 10, 4096 bytes)
clocksource: timebase mult[d55555] shift[22] registered
Console: colour dummy device 80x25
console [ttyUL0] enabled
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256000k/262144k available (3256k kernel code, 5832k reserved, 128k
data, 136k bss, 160k init)
Calibrating delay loop... 598.01 BogoMIPS (lpj=1196032)
Mount-cache hash table entries: 512
net_namespace: 756 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Installing knfsd (copyright (C) 1996 okir <at> monad.swb.de).
msgmni has been set to 500
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver4 ports, IRQ sharing disabled
40600000.serial: ttyUL0 at MMIO 0x40600003 (irq = 16) is a uartlite
brd: module loaded
loop: module loaded
xsysace 41800000.sysace: Xilinx SystemACE revision 1.0.12
xsysace 41800000.sysace: capacity: 3940272 sectors
 xsa: xsa1 xsa2 xsa3
Xilinx SystemACE device driver, major=254
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 160k init
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: transfer failure
xsysace 41800000.sysace:     ctrl:  0000038a  seccnt/cmd: 0308      ver:100c
    status:0017e31a  mpu_lba:001f91e5  busmode:   1
    error: 00000014  cfg_lba:00000000  fatstat:0000
xsysace 41800000.sysace: transfer failure
xsysace 41800000.sysace:     ctrl:  0000038a  seccnt/cmd: 0308      ver:100c
    status:0017e31a  mpu_lba:001f91e5  busmode:   1
    error: 00000014  cfg_lba:00000000  fatstat:0000
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128

Could someone help me please?
Thanks

--

-- 
View this message in context: http://www.nabble.com/linux-2.6-boot-failure-with-rfs-installed-in-the-flash-disk-%28xupv2p-%2B-ppc%29-tp20306038p20307909.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
Felix Radensky | 3 Nov 22:09 2008

Accessing PCI-E resources on 460EX

Hi,

I'm currently struggling with some application
that tries to access PCI-E memory by mmaping
address found in /sys/bus/pci/devices/≤device>/resource

mmap() fails with "invalid argument" error, apparently
because on 460EX PCI addresses are 36-bit.

What is the correct way of accessing PCI-E from
userspace on this platform.

Thanks a lot.

Felix Radensky
Embedded Solutions Ltd.
http://www.embedded-sol.com
Ayman El-Khashab | 3 Nov 22:31 2008

RE: Accessing PCI-E resources on 460EX

linuxppc-embedded-bounces+aymane=tanisys.com <at> ozlabs.org <> said on :

> I'm currently struggling with some application that tries to
> access PCI-E memory by mmaping address found in
> /sys/bus/pci/devices/≤device>/resource
> 
> mmap() fails with "invalid argument" error, apparently
> because on 460EX PCI addresses are 36-bit.
> 
> What is the correct way of accessing PCI-E from userspace on this
> platform. 

What works for me is using the mmap64 as in the following example to
map the physical address, fd is the file descriptor for /dev/mem

off64_t offset = static_cast<off64_t>(your physical address);
void * const p =
mmap64(0,256,PROT_WRITE|PROT_READ,MAP_SHARED,fd,offset);

The only thing to note is that the address you pass should be aligned 
to the page boundry even though some devices are not.
Felix Radensky | 3 Nov 23:53 2008

Re: Accessing PCI-E resources on 460EX

Ayman El-Khashab wrote:
>
> What works for me is using the mmap64 as in the following example to
> map the physical address, fd is the file descriptor for /dev/mem
>
> off64_t offset = static_cast<off64_t>(your physical address);
> void * const p =
> mmap64(0,256,PROT_WRITE|PROT_READ,MAP_SHARED,fd,offset);
>
> The only thing to note is that the address you pass should be aligned 
> to the page boundry even though some devices are not.
>   

Thanks, Ayman. I've tried that, but I'm still getting the same error.
My physical address is 0xe80000000, length is 0x100000.

Felix.

Gmane