<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Felix Titling";
panose-1:4 6 5 5 6 2 2 2 10 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-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.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal">Greetings All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am working on P1022RDK (P1022 Processor). I am trying to bring up LTIB Linux only on Core1 of the processor. I have configured the “cpus” node in the device tree file as following way<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Cpus {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> #address-cells = <1>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> #size-cells = <0>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> PowerPC,P1022@1 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Device_type = “cpu”;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Ret = <0x1>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Next-level-cache = <&L2>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Mpic: pic@40000 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Interrupt-controller;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> #address-cells = <0>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> #interrupt-cells = <2>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Reg = <0x40000 0x40000>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Compatible = “chrp,open-pic”;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Device_type = “open-pic”;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Pic-no-reset;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> Protected-sources = <<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> 16 // l2-cache-controller@20000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> >;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">};<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am loading the kernel from Uboot as following way<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Setenv bootm_low 0x10000000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Setenv bootm_size 0x10000000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Setenv bootm boot=/dev/mmcblk0p3 ro debug rootdelay=5<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Interrupts off<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Bootm start $load1addr - $fdt1addr<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Bootm loados<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Bootm fdt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Fdt boardsetup<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Fdt chosen<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Bootm prep<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Bootm go</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Using above configuration when the kernel boots it fails giving following message<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 2.057448] WM8960 I2C Codec 1-001a: No platform data supplied<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.062314] WM8960 I2C Codec 1-001a: Failed to issue reset<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.067816] WM8960 I2C Codec: probe of 1-001a failed with error -110<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.074528] No device for DAI WM8990 ADC/DAC Primary<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.079834] ALSA device list:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.082821] No soundcards found.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.087561] IPv4 over IPv4 tunneling driver<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.092757] GRE over IPv4 tunneling driver<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.097871] TCP cubic registered<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.101124] Initializing XFRM netlink socket<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.105405] NET: Registered protocol family 17<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.109869] NET: Registered protocol family 15<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.114734] SCTP: Hash tables configured (established 8192 bind 8192)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.122984] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 3.129329] Waiting 5sec before mounting root device...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 8.138471] Root-NFS: No NFS server available, giving up.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 8.143896] VFS: Unable to mount root fs via NFS, trying floppy.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 8.150150] VFS: Cannot open root device "mmcblk0p3" or unknown-block(2,0)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 8.157038] Please append a correct "root=" boot option; here are the available partitions:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 8.165410] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 8.173681] Rebooting in 180 seconds..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 11.994301] mmc0: Timeout waiting for hardware interrupt.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 11.999870] sdhci: ============== REGISTER DUMP ==============<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.005697] sdhci: Sys addr: 0x00000000 | Version: 0x00001201<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.011523] sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000001<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.017349] sdhci: Argument: 0x00000000 | Trn mode: 0x00000000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.023175] sdhci: Present: 0xff8d0008 | Host ctl: 0x00000020<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.029001] sdhci: Power: 0x00000003 | Blk gap: 0x00000000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.034828] sdhci: Wake-up: 0x00000000 | Clock: 0x000010ff<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.040654] sdhci: Timeout: 0x00000000 | Int stat: 0x00000001<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.046479] sdhci: Int enab: 0x007f0003 | Sig enab: 0x007f0003<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.052305] sdhci: AC12 err: 0x00000000 | Slot int: 0x00001201<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.058130] sdhci: Caps: 0x05f30000 | Max curr: 0x00000000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[ 12.063955] sdhci: ===========================================<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I boot the same kernel using 2 CPUs in the device tree file, it boots successfully. Any thoughts on what I am missing.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best Regards<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Felix Titling";color:#943634">Farrukh</span></b><b><span style="font-size:10.0pt;font-family:"Felix Titling""> Arshad<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Sr. Software Development Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Mentor Graphics Pakistan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Ph: +92 – 423 – 609 – 92 - 09<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Cell: +92 – 303 – 444 – 77 – 05<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>