<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">I'm guessing by device tree you mean the .dts file? I'm using a modified version of the mpc8313erdb.dts with minor changes (to the local bus only). Here is a copy of it.<br><br>/*<br> * MPC8313E RDB Device Tree Source<br> *<br> * Copyright 2005, 2006, 2007 Freescale Semiconductor Inc.<br> *<br> * This program is free software; you can redistribute it and/or modify it<br> * under the terms of the GNU General Public License as published by the<br> * Free Software Foundation; either version 2 of the License, or (at your<br> * option) any later version.<br> */<br><br>/dts-v1/;<br><br>/ {<br> model = "MPC8313ERDB";<br> compatible = "MPC8313ERDB", "MPC831xRDB", "MPC83xxRDB";<br> #address-cells = <1>;<br> #size-cells = <1>;<br><br> aliases {<br> ethernet0 = &enet0;<br> ethernet1 = &enet1;<br> serial0 = &serial0;<br> serial1 = &serial1;<br> pci0 = &pci0;<br> };<br><br> cpus {<br> #address-cells = <1>;<br> #size-cells = <0>;<br><br> PowerPC,8313@0 {<br> device_type = "cpu";<br> reg = <0x0>;<br> d-cache-line-size = <32>;<br> i-cache-line-size = <32>;<br> d-cache-size = <16384>;<br> i-cache-size = <16384>;<br> timebase-frequency = <0>; // from bootloader<br> bus-frequency = <0>; // from bootloader<br> clock-frequency = <0>; // from bootloader<br> };<br> };<br><br> memory {<br> device_type = "memory";<br> reg = <0x00000000 0x08000000>; // 128MB at 0<br> };<br><br> localbus@e0005000 {<br> #address-cells = <2>;<br> #size-cells = <1>;<br> compatible = "fsl,mpc8313-elbc", "fsl,elbc", "simple-bus";<br> reg = <0xe0005000 0x1000>;<br> interrupts = <77 0x8>;<br> interrupt-parent = <&ipic>;<br><br> // CS0 and CS1 are swapped when<br> // booting from nand, but the<br> // addresses are the same.<br>// ranges = <0x0 0x0 0xfe000000 0x00800000<br>// 0x1 0x0 0xe2800000 0x00008000<br>// 0x2 0x0 0xf0000000 0x00020000<br>// 0x3 0x0 0xfa000000 0x00008000>;<br> ranges = <0x0 0x0 0xe2800000 0x00008000>;<br><br>// flash@0,0 {<br>// #address-cells = <1>;<br>// #size-cells = <1>;<br>// compatible = "cfi-flash";<br>// reg = <0x0 0x0 0x800000>;<br>// bank-width = <2>;<br>// device-width = <1>;<br>// };<br><br>// nand@1,0 {<br> nand@0,0 {<br> #address-cells = <1>;<br> #size-cells = <1>;<br> compatible = "fsl,mpc8313-fcm-nand",<br> "fsl,elbc-fcm-nand";<br>// reg = <0x1 0x0 0x2000>;<br> reg = <0x0 0x0 0x2000>;<br><br> u-boot@0 {<br> reg = <0x0 0x100000>;<br> read-only;<br> };<br><br> kernel@100000 {<br> reg = <0x100000 0x300000>;<br> };<br><br> fs@400000 {<br> reg = <0x400000 0x1c00000>;<br> };<br> };<br> };<br><br> soc8313@e0000000 {<br> #address-cells = <1>;<br> #size-cells = <1>;<br> device_type = "soc";<br> compatible = "simple-bus";<br> ranges = <0x0 0xe0000000 0x00100000>;<br> reg = <0xe0000000 0x00000200>;<br> bus-frequency = <0>;<br><br> wdt@200 {<br> device_type = "watchdog";<br> compatible = "mpc83xx_wdt";<br> reg = <0x200 0x100>;<br> };<br><br> i2c@3000 {<br> #address-cells = <1>;<br> #size-cells = <0>;<br> cell-index = <0>;<br> compatible = "fsl-i2c";<br> reg = <0x3000 0x100>;<br> interrupts = <14 0x8>;<br> interrupt-parent = <&ipic>;<br> dfsrr;<br> rtc@68 {<br> compatible = "dallas,ds1339";<br> reg = <0x68>;<br> };<br> };<br><br> i2c@3100 {<br> #address-cells = <1>;<br> #size-cells = <0>;<br> cell-index = <1>;<br> compatible = "fsl-i2c";<br> reg = <0x3100 0x100>;<br> interrupts = <15 0x8>;<br> interrupt-parent = <&ipic>;<br> dfsrr;<br> };<br><br> spi@7000 {<br> cell-index = <0>;<br> compatible = "fsl,spi";<br> reg = <0x7000 0x1000>;<br> interrupts = <16 0x8>;<br> interrupt-parent = <&ipic>;<br> mode = "cpu";<br> };<br><br> /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */<br> usb@23000 {<br> compatible = "fsl-usb2-dr";<br> reg = <0x23000 0x1000>;<br> #address-cells = <1>;<br> #size-cells = <0>;<br> interrupt-parent = <&ipic>;<br> interrupts = <38 0x8>;<br> phy_type = "utmi_wide";<br> };<br><br> mdio@24520 {<br> #address-cells = <1>;<br> #size-cells = <0>;<br> compatible = "fsl,gianfar-mdio";<br> reg = <0x24520 0x20>;<br> phy1: ethernet-phy@1 {<br> interrupt-parent = <&ipic>;<br> interrupts = <19 0x8>;<br> reg = <0x1>;<br> device_type = "ethernet-phy";<br> };<br> phy4: ethernet-phy@4 {<br> interrupt-parent = <&ipic>;<br> interrupts = <20 0x8>;<br> reg = <0x4>;<br> device_type = "ethernet-phy";<br> };<br> };<br><br> enet0: ethernet@24000 {<br> cell-index = <0>;<br> device_type = "network";<br> model = "eTSEC";<br> compatible = "gianfar";<br> reg = <0x24000 0x1000>;<br> local-mac-address = [ 00 00 00 00 00 00 ];<br> interrupts = <37 0x8 36 0x8 35 0x8>;<br> interrupt-parent = <&ipic>;<br> phy-handle = < &phy1 >;<br> };<br><br> enet1: ethernet@25000 {<br> cell-index = <1>;<br> device_type = "network";<br> model = "eTSEC";<br> compatible = "gianfar";<br> reg = <0x25000 0x1000>;<br> local-mac-address = [ 00 00 00 00 00 00 ];<br> interrupts = <34 0x8 33 0x8 32 0x8>;<br> interrupt-parent = <&ipic>;<br> phy-handle = < &phy4 >;<br> };<br><br> serial0: serial@4500 {<br> cell-index = <0>;<br> device_type = "serial";<br> compatible = "ns16550";<br> reg = <0x4500 0x100>;<br> clock-frequency = <0>;<br> interrupts = <9 0x8>;<br> interrupt-parent = <&ipic>;<br> };<br><br> serial1: serial@4600 {<br> cell-index = <1>;<br> device_type = "serial";<br> compatible = "ns16550";<br> reg = <0x4600 0x100>;<br> clock-frequency = <0>;<br> interrupts = <10 0x8>;<br> interrupt-parent = <&ipic>;<br> };<br><br> crypto@30000 {<br> device_type = "crypto";<br> model = "SEC2";<br> compatible = "talitos";<br> reg = <0x30000 0x7000>;<br> interrupts = <11 0x8>;<br> interrupt-parent = <&ipic>;<br> /* Rev. 2.2 */<br> num-channels = <1>;<br> channel-fifo-len = <24>;<br> exec-units-mask = <0x0000004c>;<br> descriptor-types-mask = <0x0122003f>;<br> };<br><br> /* IPIC<br> * interrupts cell = <intr #, sense><br> * sense values match linux IORESOURCE_IRQ_* defines:<br> * sense == 8: Level, low assertion<br> * sense == 2: Edge, high-to-low change<br> */<br> ipic: pic@700 {<br> interrupt-controller;<br> #address-cells = <0>;<br> #interrupt-cells = <2>;<br> reg = <0x700 0x100>;<br> device_type = "ipic";<br> };<br> };<br><br> pci0: pci@e0008500 {<br> cell-index = <1>;<br> interrupt-map-mask = <0xf800 0x0 0x0 0x7>;<br> interrupt-map = <<br><br> /* IDSEL 0x0E -mini PCI */<br> 0x7000 0x0 0x0 0x1 &ipic 18 0x8<br> 0x7000 0x0 0x0 0x2 &ipic 18 0x8<br> 0x7000 0x0 0x0 0x3 &ipic 18 0x8<br> 0x7000 0x0 0x0 0x4 &ipic 18 0x8<br><br> /* IDSEL 0x0F - PCI slot */<br> 0x7800 0x0 0x0 0x1 &ipic 17 0x8<br> 0x7800 0x0 0x0 0x2 &ipic 18 0x8<br> 0x7800 0x0 0x0 0x3 &ipic 17 0x8<br> 0x7800 0x0 0x0 0x4 &ipic 18 0x8>;<br> interrupt-parent = <&ipic>;<br> interrupts = <66 0x8>;<br> bus-range = <0x0 0x0>;<br> ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000<br> 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000<br> 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;<br> clock-frequency = <66666666>;<br> #interrupt-cells = <1>;<br> #size-cells = <2>;<br> #address-cells = <3>;<br> reg = <0xe0008500 0x100>;<br> compatible = "fsl,mpc8349-pci";<br> device_type = "pci";<br> };<br>};<br><br></div><br>Ron<br><br><hr id="stopSpelling">> Date: Tue, 6 May 2008 16:19:25 -0500<br>> From: scottwood@freescale.com<br>> To: ron_madrid@hotmail.com<br>> CC: linuxppc-dev@ozlabs.org<br>> Subject: Re: ifconfig MPC8313<br>> <br>> Ronald Madrid wrote:<br>> > Hello all,<br>> > <br>> > I am working on porting linux 2.6.25 with a custom MPC8313 based board, <br>> > but am having a little bit of trouble with the ethernet, more <br>> > specifically ifconfig.<br>> > <br>> > after typing "ifconfig eth0 10.196.31.84" I receive the following error<br>> > ifconfig: SIOCSIFFLAGS: Cannot assign requested address<br>> > <br>> > after entering a MAC address via "ifconfig eth0 hw ether" I receive <br>> > this error.<br>> > e0024520:01 not found<br>> > eth0: Could not attach to PHY<br>> > ifconfig: SIOCSIFFLAGS: No such device<br>> <br>> It can't find the PHY for eth0. What does your device tree look like, <br>> and what is the relevant PHY address?<br>> <br>> -Scott<br><br /><hr />Windows Live SkyDrive lets you share files with faraway friends. <a href='http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_052008' target='_new'>Start sharing.</a></body>
</html>