<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.gmailquote
        {mso-style-name:gmail_quote;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>two things; I had better luck with the mpc8349mds (? don’t
remember exact file name) dts as opposed to the itx. I had to remove the bcsr
section or else the kernel hung during initialization . also, your u-boot is
not passing the correct kernel commandline:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>“</span>Kernel command line: root=/dev/nfs rw
nfsroot=192.168.200.230:/nfsroot/rootfs i0IPIC (128 IRQ sources) at fdffc700”<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>you’re trying to run a ramdisk and with tty I expect:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>“root=/dev/ram rw console=ttyS0,115200 “<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>check your environment variable bootargs in u-boot<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Junita Ajith
[mailto:ajijuni@gmail.com] <br>
<b>Sent:</b> Wednesday, December 09, 2009 10:58 AM<br>
<b>To:</b> Lee, Eric<br>
<b>Cc:</b> Linuxppc-dev@lists.ozlabs.org<br>
<b>Subject:</b> dts file for MPC8343EA - cuImage doesn't boot , but uImage with
DTS shows serial output<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Hi Eric,<br>
<br>
I am building the linux kernel V-2.6.27 based on MPC8349miTXGP dts file.<br>
I am still not able to boot the cuImage.<br>
<br>
But, I see serial outuput from kernel when I try to boot with <kernel>
<ramdisk> <dtb file><br>
<br>
Still the kernel hangs after "Dentry cache hash table entries: 32768
(order: 5, 131072 bytes)".<br>
<br>
Any clues ..?? We have DDR2 in this board and we are initializing it in U-Boot.
<br>
<br>
Please find the screen dump below:<br>
<br>
Thanks,<br>
Junita<br>
<br>
Screen shot:<br>
===========<br>
u-boot> bootm 0x2000000 0x3000000 0x4000000<br>
## Booting image at 02000000 ...<br>
Image Name: Linux-2.6.27.18-svn52-dirty8<br>
Created: 2009-12-08 23:49:28
UTC<br>
Image Type: PowerPC Linux Kernel Image (gzip
compressed)<br>
Data Size: 1416039 Bytes = 1.4 MB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Uncompressing Kernel Image ... OK<br>
## Current stack ends at 0x0FF9BD48 => set upper limit to 0x00800000<br>
## cmdline at 0x007FFF00 ... 0x007FFFA6<br>
bd address = 0x0FF9BFC4<br>
memstart = 0x00000000<br>
memsize = 0x10000000<br>
flashstart = 0xFE000000<br>
flashsize = 0x00080000<br>
flashoffset = 0x00034000<br>
sramstart = 0x00000000<br>
sramsize = 0x00000000<br>
bootflags = 0x00000001<br>
intfreq = 399.999 MHz<br>
busfreq = 266.666 MHz<br>
ethaddr = 00:E0:0C:00:8C:01<br>
IP addr = 192.168.201.199<br>
baudrate = 115200 bps<br>
Not skipping initrd<br>
## Loading RAMDisk Image at 03000000 ...<br>
Image Name: uboot ext2 ramdisk rootfs<br>
Created: 2009-10-30 20:15:22
UTC<br>
Image Type: PowerPC Linux RAMDisk Image (gzip
compressed)<br>
Data Size: 3889103 Bytes = 3.7 MB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Booting using the fdt at 0x4000000<br>
## initrd at 0x03000040 ... 0x033B580E (len=3889103=0x3B57CF)<br>
Loading Ramdisk to 0fbe5000, end 0ff9a7cf ... OK<br>
## device tree at 0x04000000 ... 0x04002FFF (len=12288=0x3000)<br>
Loading Device Tree to 007fc000, end 007fefff ... OK<br>
Updating property '/soc8349@e0000000/ethernet@24000/mac-address' = 00 e0
0c 001Updating property '/soc8349@e0000000/ethernet@24000/local-mac-address'
= 00 e01Updating property 'timebase-frequency' = 03 f9 40 aa<br>
Updating property 'bus-frequency' = 0f e5 02 a8<br>
Updating property 'clock-frequency' = 17 d7 83 fc<br>
Updating property 'bus-frequency' = 0f e5 02 a8<br>
Updating property 'clock-frequency' = 0f e5 02 a8<br>
## Transferring control to Linux (at address 00000000) ...<br>
Using MPC834x ITX machine description<br>
Linux version 2.6.27.18-svn52-dirty8 (root@localhost.localdomain) (gcc version
9Found initrd at 0xcfbe5000:0xcff9a7cf<br>
console [udbg0] enabled<br>
setup_arch: bootmem<br>
mpc834x_itx_setup_arch()<br>
arch: exit<br>
Zone PFN ranges:<br>
DMA 0x00000000 -> 0x00010000<br>
Normal 0x00010000 -> 0x00010000<br>
Movable zone start PFN for each node<br>
early_node_map[1] active PFN ranges<br>
0: 0x00000000 -> 0x00010000<br>
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024<br>
Kernel command line: root=/dev/nfs rw nfsroot=192.168.200.230:/nfsroot/rootfs
i0IPIC (128 IRQ sources) at fdffc700<br>
PID hash table entries: 1024 (order: 10, 4096 bytes)<br>
clocksource: timebase mult[3c00001] shift[22] registered<br>
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal><span class=gmailquote>On 12/9/09, <b>Lee, Eric</b> <<a
href="mailto:eric.lee@hp.com">eric.lee@hp.com</a>> wrote:</span><o:p></o:p></p>
<p class=MsoNormal>I would probably remove the bcsr region. this was
some cpld I believe on a reference board. with this dts it'll try to
write to some hardware registers that do not exist or are not mapped to the
same area.<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: linuxppc-dev-bounces+eric.lee=<a href="http://hp.com">hp.com</a>@<a
href="http://lists.ozlabs.org">lists.ozlabs.org</a> [mailto:<a
href="mailto:linuxppc-dev-bounces%2Beric.lee">linuxppc-dev-bounces+eric.lee</a>=<a
href="http://hp.com">hp.com</a>@<a href="http://lists.ozlabs.org">lists.ozlabs.org</a>]
On Behalf Of <a href="mailto:ajijuni@gmail.com">ajijuni@gmail.com</a><br>
Sent: Sunday, December 06, 2009 11:41 PM<br>
To: <a href="mailto:Linuxppc-dev@lists.ozlabs.org">Linuxppc-dev@lists.ozlabs.org</a><br>
Subject: dts file for MPC8343EA<br>
<br>
Hi<br>
<br>
We have an MPC8343EA based custom board.<br>
<br>
I am not able to get Linux up and running in this. No serial output to debug
further.<br>
U-boot shows correct 'bdinfo' & 'clocks' output.<br>
inux hangs at machine_probe.<br>
<br>
<br>
I doubt the DTS file in Linux. anyone has DTS file for MPC8343??<br>
<br>
u-boot version - 1.3.2<br>
linux-2.6.27<br>
The board base files are drived from MPC8349Imtx-GP since we have the reference
board in which we tested the linux image.<br>
<br>
My current DTS file<br>
/dts-v1/;<br>
<br>
/ {<br>
model = "MPC8343";<br>
compatible =
"MPC8349EMDS", "MPC834xMDS", "MPC83xxMDS";<br>
linux,phandle = <0x100>;<br>
#size-cells = <0x1>;<br>
#address-cells = <0x1>;<br>
<br>
aliases {<br>
ethernet0
= &enet0;<br>
ethernet1
= &enet1;<br>
serial0
= &serial0;<br>
serial1
= &serial1;<br>
pci0
= &pci0;<br>
pci1
= &pci1;<br>
};<br>
cpus {<br>
linux,phandle
= <0x200>;<br>
#cpus
= <0x1>;<br>
#address-cells
= <1>;<br>
#size-cells
= <0>;<br>
<br>
PowerPC,8343EA@0 {<br>
device_type
= "cpu";<br>
reg
= <0x0>;<br>
d-cache-line-size
= <20>;<br>
i-cache-line-size
= <20>;<br>
d-cache-size
= <8000>;<br>
i-cache-size
= <8000>;<br>
timebase-frequency
= <0>; // from bootloader<br>
bus-frequency
=
<0>; //
from bootloader<br>
clock-frequency
= <0>; // from
bootloader<br>
32-bit;<br>
};<br>
};<br>
<br>
<br>
memory {<br>
device_type
= "memory";<br>
reg
= <0x00000000 0x10000000>; // 256MB at 0<br>
};<br>
<br>
bcsr@e2400000 {<br>
device_type
= "board-control";<br>
reg
= <0xe2400000 0x8000>;<br>
};<br>
soc8343@e0000000 {<br>
bus-frequency
= <0x1>;<br>
reg
= <0xe0000000 0x200>;<br>
ranges
= <0x0 0xe0000000 0x100000>;<br>
device_type
= "soc";<br>
#interrupt-cells
= <0x2>;<br>
#size-cells
= <0x1>;<br>
#address-cells
= <0x1>;<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>
<br>
rtc@68
{<br>
compatible
= "dallas,ds1374";<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>
dma@82a8 {<br>
#address-cells
= <1>;<br>
#size-cells
= <1>;<br>
compatible
= "fsl,mpc8349-dma", "fsl,elo-dma";<br>
reg
= <0x82a8 4>;<br>
ranges
= <0 0x8100 0x1a8>;<br>
interrupt-parent
= <&ipic>;<br>
interrupts
= <71 8>;<br>
cell-index
= <0>;<br>
dma-channel@0
{<br>
compatible
= "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";<br>
reg
= <0 0x80>;<br>
interrupt-parent
= <&ipic>;<br>
interrupts
= <71 8>;<br>
};<br>
dma-channel@80
{<br>
compatible
= "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";<br>
reg
= <0x80 0x80>;<br>
interrupt-parent
= <&ipic>;<br>
interrupts
= <71 8>;<br>
};<br>
dma-channel@100
{<br>
compatible
= "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";<br>
reg
= <0x100 0x80>;<br>
interrupt-parent
= <&ipic>;<br>
interrupts
= <71 8>;<br>
};<br>
dma-channel@180
{<br>
compatible
= "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";<br>
reg
= <0x180 0x28>;<br>
interrupt-parent
= <&ipic>;<br>
interrupts
= <71 8>;<br>
};<br>
};<br>
/* phy type (ULPI or SERIAL) are only types supported for MPH */<br>
/*
port = 0 or 1 */<br>
usb@22000
{<br>
compatible
= "fsl-usb2-mph";<br>
reg
= <0x22000 0x1000>;<br>
#address-cells
= <1>;<br>
#size-cells
= <0>;<br>
interrupt-parent
= <&ipic>;<br>
interrupts
= <39 0x8>;<br>
phy_type
= "ulpi";<br>
port1;<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>
dr_mode
= "otg";<br>
phy_type
= "ulpi";<br>
};<br>
<br>
mdio@24520
{<br>
#address-cells
= <1>;<br>
#size-cells
= <0>;<br>
compatible
= "fsl,gianfar-mdio";<br>
reg
= <0x24520 0x20>;<br>
<br>
phy0:
ethernet-phy@0 {<br>
interrupt-parent
= <&ipic>;<br>
interrupts
= <17 0x8>;<br>
reg
= <0x0>;<br>
device_type
= "ethernet-phy";<br>
};<br>
phy1:
ethernet-phy@1 {<br>
interrupt-parent
= <&ipic>;<br>
interrupts
= <18 0x8>;<br>
reg
= <0x1>;<br>
device_type
= "ethernet-phy";<br>
};<br>
enet0: ethernet@24000 {<br>
cell-index
= <0>;<br>
device_type
= "network";<br>
model
= "TSEC";<br>
compatible
= "gianfar";<br>
reg
= <0x24000 0x1000>;<br>
local-mac-address
= [ 00 00 00 00 00 00 ];<br>
interrupts
= <32 0x8 33 0x8 34 0x8>;<br>
interrupt-parent
= <&ipic>;<br>
phy-handle
= <&phy0>;<br>
linux,network-index
= <0>;<br>
};<br>
<br>
enet1:
ethernet@25000 {<br>
cell-index
= <1>;<br>
device_type
= "network";<br>
model
= "TSEC";<br>
compatible
= "gianfar";<br>
reg
= <0x25000 0x1000>;<br>
local-mac-address
= [ 00 00 00 00 00 00 ];<br>
interrupts
= <35 0x8 36 0x8 37 0x8>;<br>
interrupt-parent
= <&ipic>;<br>
phy-handle
= <&phy1>;<br>
linux,network-index
= <1>;<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>
compatible
= "fsl,sec2.0";<br>
reg
= <0x30000 0x10000>;<br>
interrupts
= <11 0x8>;<br>
interrupt-parent
= <&ipic>;<br>
fsl,num-channels
= <4>;<br>
fsl,channel-fifo-len
= <24>;<br>
fsl,exec-units-mask
= <0x7e>;<br>
fsl,descriptor-types-mask
= <0x01010ebf>;<br>
};<br>
<br>
Thanks,<br>
agnel<br>
<br>
_______________________________________________<br>
Linuxppc-dev mailing list<br>
<a href="mailto:Linuxppc-dev@lists.ozlabs.org">Linuxppc-dev@lists.ozlabs.org</a><br>
<a href="https://lists.ozlabs.org/listinfo/linuxppc-dev">https://lists.ozlabs.org/listinfo/linuxppc-dev</a><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>