<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 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:"Courier New";
        mso-fareast-language:DE;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-GB>Dear All,<o:p></o:p></span></p><pre><span lang=EN-GB>I'm trying with buildroot to build the linux-4.4.3 for an iomega 150d<o:p></o:p></span></pre><pre><span lang=EN-GB>machine mounting the mpc8347E sys.<o:p></o:p></span></pre><pre><span lang=EN-GB>Due the old U-Boot version is not possible to use the standard uImage, but<o:p></o:p></span></pre><pre><span lang=EN-GB>it is needed to set the cuImage target (the one embedding the device tree).<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>I start using the default configuration<o:p></o:p></span></pre><pre><span lang=EN-GB>arch/powerpc/configs/mpc83xx_defconfig,<o:p></o:p></span></pre><pre><span lang=EN-GB>and the default device tree mpc834x_mds.<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>In order to enable the console  output during the first linux boot stage I<o:p></o:p></span></pre><pre><span lang=EN-GB>added the following line at the end of the device tree file:<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>        chosen {<o:p></o:p></span></pre><pre><span lang=EN-GB>                linux,stdout-path = "/soc8349/</span><a href="http://lists.busybox.net/mailman/listinfo/buildroot"><span lang=EN-GB>serial at 4500</span></a><span lang=EN-GB>";<o:p></o:p></span></pre><pre><span lang=EN-GB>        };<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>The kernel is compiled and I get the cuImage.mpc834x_mds image.<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>Then I load it on the machine and execute:<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>tftp 0x10000000 cuImage.mpc834x_mds<o:p></o:p></span></pre><pre><span lang=EN-GB>Speed: 1000, full duplex<o:p></o:p></span></pre><pre><span lang=EN-GB>Using Freescale TSEC0 device<o:p></o:p></span></pre><pre><span lang=EN-GB>TFTP from server 192.168.178.36; our IP address is 192.168.178.10<o:p></o:p></span></pre><pre><span lang=EN-GB>Filename 'cuImage.mpc834x_mds'.<o:p></o:p></span></pre><pre><span lang=EN-GB>Load address: 0x10000000<o:p></o:p></span></pre><pre><span lang=EN-GB>Loading: #################################################################<o:p></o:p></span></pre><pre><span lang=EN-GB>         #################################################################<o:p></o:p></span></pre><pre><span lang=EN-GB>         #################################################################<o:p></o:p></span></pre><pre><span lang=EN-GB>         #################################################################<o:p></o:p></span></pre><pre><span lang=EN-GB>         #################################################################<o:p></o:p></span></pre><pre><span lang=EN-GB>         #################################################################<o:p></o:p></span></pre><pre><span lang=EN-GB>         ################################<o:p></o:p></span></pre><pre><span lang=EN-GB>done<o:p></o:p></span></pre><pre><span lang=EN-GB>Bytes transferred = 2157489 (20ebb1 hex)<o:p></o:p></span></pre><pre><span lang=EN-GB>IOMEGA=> bootm 0x10000000<o:p></o:p></span></pre><pre><span lang=EN-GB>## Booting image at 10000000 ...<o:p></o:p></span></pre><pre><span lang=EN-GB>   Image Name:   Linux-4.4.3<o:p></o:p></span></pre><pre><span lang=EN-GB>   Image Type:   PowerPC Linux Kernel Image (gzip compressed)<o:p></o:p></span></pre><pre><span lang=EN-GB>   Data Size:    2157425 Bytes =  2.1 MB<o:p></o:p></span></pre><pre><span lang=EN-GB>   Load Address: 00500000<o:p></o:p></span></pre><pre><span lang=EN-GB>   Entry Point:  005001f8<o:p></o:p></span></pre><pre><span lang=EN-GB>   Verifying Checksum ... OK<o:p></o:p></span></pre><pre><span lang=EN-GB>   Uncompressing Kernel Image ... OK<o:p></o:p></span></pre><pre><span lang=EN-GB>Memory <- <0x0 0x20000000> (512MB)<o:p></o:p></span></pre><pre><span lang=EN-GB>ethernet0: local-mac-address <- 00:d0:b8:01:d1:9f<o:p></o:p></span></pre><pre><span lang=EN-GB>ethernet1: local-mac-address <- 9b:e3:00:01:72:6f<o:p></o:p></span></pre><pre><span lang=EN-GB>CPU clock-frequency <- 0x179a7b00 (396MHz)<o:p></o:p></span></pre><pre><span lang=EN-GB>CPU timebase-frequency <- 0x3ef1480 (66MHz)<o:p></o:p></span></pre><pre><span lang=EN-GB>CPU bus-frequency <- 0xfbc5200 (264MHz)<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>zImage starting: loaded at 0x00500000 (sp: 0x1ffb2ce8)<o:p></o:p></span></pre><pre><span lang=EN-GB>Allocating 0x439a88 bytes for kernel ...<o:p></o:p></span></pre><pre><span lang=EN-GB>gunzipping (0x00000000 <- 0x0050e000:0x00940fe8)...done 0x422920 bytes<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>Linux/PowerPC load: root=/dev/mtdblock1 ro rootfstype=cramfs devfs=mount<o:p></o:p></span></pre><pre><span lang=EN-GB>console=ttyS0,115200 init=/linuxrc<o:p></o:p></span></pre><pre><span lang=EN-GB>Finalizing device tree... flat tree at 0x94d120<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>But at this point the process crash and the system is reset.<o:p></o:p></span></pre><pre><span lang=EN-GB>It should be something near the handover between the first kenel boot stage<o:p></o:p></span></pre><pre><span lang=EN-GB>and the vmlinux start, but I do not have a jtag to proceed the<o:p></o:p></span></pre><pre><span lang=EN-GB>investigation.<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>In any case it seems that the execution never entry the vmlinux start<o:p></o:p></span></pre><pre><span lang=EN-GB>(head_32.S).<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>I try to add this macro at the begin of the file:<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>        .equ cnsladdr, 0xe0004500 (console address txreg)<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>.macro dbg_prnt nid<o:p></o:p></span></pre><pre><span lang=EN-GB>        lis     r24, </span><a href="http://lists.busybox.net/mailman/listinfo/buildroot"><span lang=EN-GB>cnsladdr at ha</span></a><span lang=EN-GB><o:p></o:p></span></pre><pre><span lang=EN-GB>        addi    r24, r24, </span><a href="http://lists.busybox.net/mailman/listinfo/buildroot"><span lang=EN-GB>cnsladdr at l</span></a><span lang=EN-GB><o:p></o:p></span></pre><pre><span lang=EN-GB>        </span><span lang=IT>li      r25, 'd'<o:p></o:p></span></pre><pre><span lang=IT>        stb     r25, 0(r24)<o:p></o:p></span></pre><pre><span lang=IT>        li      r25, 'b'<o:p></o:p></span></pre><pre><span lang=IT>        stb     r25, 0(r24)<o:p></o:p></span></pre><pre><span lang=IT>        li      r25, 'g'<o:p></o:p></span></pre><pre><span lang=IT>        stb     r25, 0(r24)<o:p></o:p></span></pre><pre><span lang=IT>        li      r25, '0'<o:p></o:p></span></pre><pre><span lang=IT>        addi    r25, r25, \nid<o:p></o:p></span></pre><pre><span lang=IT>        stb     r25, 0(r24)<o:p></o:p></span></pre><pre><span lang=IT>        li      r25, '\n'<o:p></o:p></span></pre><pre><span lang=IT>        </span><span lang=EN-GB>stb     r25, 0(r24)<o:p></o:p></span></pre><pre><span lang=EN-GB>.endm<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>But I do not see anything in the console.<o:p></o:p></span></pre><pre><span lang=EN-GB>The problem seems releted to the vmlinux call in arc/powerpc/boot/main.c<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>kentry = (kernel_entry_t) vmlinux.addr;<o:p></o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB><o:p> </o:p></span></pre><pre><span lang=EN-GB>Any suggestion?<o:p></o:p></span></pre><pre>Bye.<o:p></o:p></pre><p class=MsoNormal><o:p> </o:p></p></div></body></html>