All of lore.kernel.org
 help / color / mirror / Atom feed
* Ping does not work on my MPC8544 board, using linux2.6.23
@ 2009-12-07  3:53 林志平
  2009-12-07  8:40 ` Li Yang-R58472
  2009-12-07 18:05 ` Scott Wood
  0 siblings, 2 replies; 9+ messages in thread
From: 林志平 @ 2009-12-07  3:53 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

Hi,all:
This is my first time to post on this maillist,I got a problem that ping can
not work and I am wondering if it is because of my mismatch of linux kernel
and DTC compiler version.
I am using mpc8544ds_bsp provided by freescale.
I used uboot2009.08 to boot my board successfully.
At first, I using the dtc compiler in this bsp which is version 1.1.0 along
with linux2.6.23 which is also provided by this bsp.
But I failded to boot the linux kernel.
And later, I tried out using dtc1.2.0 and the mpc8544ds.dts in linux-2.6.23,
there are some systax errors like hex to dec. And I modified the
mpc8544ds.dts to to fit dtc1.2.0.
And I boot linux successfully, but PING doesnot work now.
I am sure I set the ipaddr netmask ,and  default gateway correctly.
Does dtc1.2.0 can compile dts files under linux2.6.23?
Another question is that I found linux2.6.31 does not support
board mpc8544ds, And I never boot linux-2.6.31 on my board, why linux-2.6.31
doesnot provide a config file like mpc8544_ds_defconfig?
Thanks!

[-- Attachment #2: Type: text/html, Size: 1160 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Ping does not work on my MPC8544 board, using linux2.6.23
  2009-12-07  3:53 Ping does not work on my MPC8544 board, using linux2.6.23 林志平
@ 2009-12-07  8:40 ` Li Yang-R58472
  2009-12-07 18:05 ` Scott Wood
  1 sibling, 0 replies; 9+ messages in thread
From: Li Yang-R58472 @ 2009-12-07  8:40 UTC (permalink / raw)
  To: 林志平, linuxppc-dev

PlN1YmplY3Q6IFBpbmcgZG9lcyBub3Qgd29yayBvbiBteSBNUEM4NTQ0IGJvYXJkLCB1c2luZyBs
aW51eDIuNi4yMw0KPg0KPndoeSBsaW51eC0yLjYuMzEgZG9lc25vdCBwcm92aWRlIGEgY29uZmln
IGZpbGUgbGlrZSANCj5tcGM4NTQ0X2RzX2RlZmNvbmZpZz8NCg0KQmVjYXVzZSBpdCBpcyBjb3Zl
cmVkIGJ5IGNvbW1vbiBkZWZjb25maWcgbXBjODV4eF9kZWZjb25maWcuDQoNCi0gTGVvDQo=

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping does not work on my MPC8544 board, using linux2.6.23
  2009-12-07  3:53 Ping does not work on my MPC8544 board, using linux2.6.23 林志平
  2009-12-07  8:40 ` Li Yang-R58472
@ 2009-12-07 18:05 ` Scott Wood
  2009-12-08  2:25   ` 林志平
  1 sibling, 1 reply; 9+ messages in thread
From: Scott Wood @ 2009-12-07 18:05 UTC (permalink / raw)
  To: 林志平; +Cc: linuxppc-dev

On Mon, Dec 07, 2009 at 11:53:22AM +0800, 林志平 wrote:
> Does dtc1.2.0 can compile dts files under linux2.6.23?

Probably not -- 2.6.23 is very old, and I think newer dtcs only support the
newer dts syntax.

> Another question is that I found linux2.6.31 does not support
> board mpc8544ds, 

It should.  What problems do you see?

> And I never boot linux-2.6.31 on my board, why linux-2.6.31 doesnot
> provide a config file like mpc8544_ds_defconfig?

Does mpc85xx_defconfig not work?

-Scott

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping does not work on my MPC8544 board, using linux2.6.23
  2009-12-07 18:05 ` Scott Wood
@ 2009-12-08  2:25   ` 林志平
  2009-12-08  6:35     ` 林志平
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: 林志平 @ 2009-12-08  2:25 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1733 bytes --]

2009/12/8 Scott Wood <scottwood@freescale.com>

> On Mon, Dec 07, 2009 at 11:53:22AM +0800, 林志平 wrote:
> > Does dtc1.2.0 can compile dts files under linux2.6.23?
>
> Probably not -- 2.6.23 is very old, and I think newer dtcs only support the
> newer dts syntax.
>
> > Another question is that I found linux2.6.31 does not support
> > board mpc8544ds,
>
> It should.  What problems do you see?

=> bootm 0x1000000 0x1800000 0x800000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   Linux-2.6.31
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    2185099 Bytes =  2.1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01800000 ...
   Image Name:   Simple Embedded Linux Framework
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    1859256 Bytes =  1.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 00800000
   Booting using the fdt blob at 0x800000
   Uncompressing Kernel Image ... OK
   Loading Ramdisk to 1fca7000, end 1fe6ceb8 ... OK
booting kernel using flat tree
It then stops and never print any more,  I use mpc85xx_defconfig, I select
mpc85xxds in the menuconfig and deselect other options like mpc8540ads etc.

>
> > And I never boot linux-2.6.31 on my board, why linux-2.6.31 doesnot
> > provide a config file like mpc8544_ds_defconfig?
>
> Does mpc85xx_defconfig not work?
>
Yes mcp85xx_defconfig does not work, I can see mpc8540ads in the menuconfig,
but no mpc8544ds. And when I down load the generated uImage, It does not
work.


> -Scott
>

[-- Attachment #2: Type: text/html, Size: 2692 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping does not work on my MPC8544 board, using linux2.6.23
  2009-12-08  2:25   ` 林志平
@ 2009-12-08  6:35     ` 林志平
  2009-12-08  7:12     ` hank peng
  2009-12-09 19:59     ` Scott Wood
  2 siblings, 0 replies; 9+ messages in thread
From: 林志平 @ 2009-12-08  6:35 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1923 bytes --]

PING works now, after modifying the code of gianfar-mii.c

2009/12/8 林志平 <solyn123@gmail.com>

>
> 2009/12/8 Scott Wood <scottwood@freescale.com>
>
>  On Mon, Dec 07, 2009 at 11:53:22AM +0800, 林志平 wrote:
>> > Does dtc1.2.0 can compile dts files under linux2.6.23?
>>
>> Probably not -- 2.6.23 is very old, and I think newer dtcs only support
>> the
>> newer dts syntax.
>>
>> > Another question is that I found linux2.6.31 does not support
>> > board mpc8544ds,
>>
>> It should.  What problems do you see?
>
> => bootm 0x1000000 0x1800000 0x800000
> ## Booting kernel from Legacy Image at 01000000 ...
>    Image Name:   Linux-2.6.31
>    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>    Data Size:    2185099 Bytes =  2.1 MB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
> ## Loading init Ramdisk from Legacy Image at 01800000 ...
>    Image Name:   Simple Embedded Linux Framework
>    Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
>    Data Size:    1859256 Bytes =  1.8 MB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
> ## Flattened Device Tree blob at 00800000
>    Booting using the fdt blob at 0x800000
>    Uncompressing Kernel Image ... OK
>    Loading Ramdisk to 1fca7000, end 1fe6ceb8 ... OK
> booting kernel using flat tree
> It then stops and never print any more,  I use mpc85xx_defconfig, I select
> mpc85xxds in the menuconfig and deselect other options like mpc8540ads etc.
>
>>
>> > And I never boot linux-2.6.31 on my board, why linux-2.6.31 doesnot
>> > provide a config file like mpc8544_ds_defconfig?
>>
>> Does mpc85xx_defconfig not work?
>>
> Yes mcp85xx_defconfig does not work, I can see mpc8540ads in the
> menuconfig, but no mpc8544ds. And when I down load the generated uImage, It
> does not work.
>
>
>> -Scott
>>
>
>

[-- Attachment #2: Type: text/html, Size: 3076 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping does not work on my MPC8544 board, using linux2.6.23
  2009-12-08  2:25   ` 林志平
  2009-12-08  6:35     ` 林志平
@ 2009-12-08  7:12     ` hank peng
  2009-12-09 19:59     ` Scott Wood
  2 siblings, 0 replies; 9+ messages in thread
From: hank peng @ 2009-12-08  7:12 UTC (permalink / raw)
  To: 林志平; +Cc: Scott Wood, linuxppc-dev

2009/12/8 =E6=9E=97=E5=BF=97=E5=B9=B3 <solyn123@gmail.com>:
>
> 2009/12/8 Scott Wood <scottwood@freescale.com>
>>
>> On Mon, Dec 07, 2009 at 11:53:22AM +0800, =E6=9E=97=E5=BF=97=E5=B9=B3 wr=
ote:
>> > Does dtc1.2.0 can compile dts files under linux2.6.23?
>>
>> Probably not -- 2.6.23 is very old, and I think newer dtcs only support
>> the
>> newer dts syntax.
>>
>> > Another question is that I found linux2.6.31 does not support
>> > board mpc8544ds,
>>
>> It should. =C2=A0What problems do you see?
>
> =3D> bootm 0x1000000 0x1800000 0x800000
> ## Booting kernel from Legacy Image at 01000000 ...
> =C2=A0=C2=A0 Image Name:=C2=A0=C2=A0 Linux-2.6.31
> =C2=A0=C2=A0 Image Type:=C2=A0=C2=A0 PowerPC Linux Kernel Image (gzip com=
pressed)
> =C2=A0=C2=A0 Data Size:=C2=A0=C2=A0=C2=A0 2185099 Bytes =3D=C2=A0 2.1 MB
> =C2=A0=C2=A0 Load Address: 00000000
> =C2=A0=C2=A0 Entry Point:=C2=A0 00000000
> =C2=A0=C2=A0 Verifying Checksum ... OK
> ## Loading init Ramdisk from Legacy Image at 01800000 ...
> =C2=A0=C2=A0 Image Name:=C2=A0=C2=A0 Simple Embedded Linux Framework
> =C2=A0=C2=A0 Image Type:=C2=A0=C2=A0 PowerPC Linux RAMDisk Image (gzip co=
mpressed)
> =C2=A0=C2=A0 Data Size:=C2=A0=C2=A0=C2=A0 1859256 Bytes =3D=C2=A0 1.8 MB
> =C2=A0=C2=A0 Load Address: 00000000
> =C2=A0=C2=A0 Entry Point:=C2=A0 00000000
> =C2=A0=C2=A0 Verifying Checksum ... OK
> ## Flattened Device Tree blob at 00800000
> =C2=A0=C2=A0 Booting using the fdt blob at 0x800000
> =C2=A0=C2=A0 Uncompressing Kernel Image ... OK
> =C2=A0=C2=A0 Loading Ramdisk to 1fca7000, end 1fe6ceb8 ... OK
> booting kernel using flat tree
> It then stops and never print any more,=C2=A0 I use mpc85xx_defconfig, I =
select
> mpc85xxds in the menuconfig and deselect other options like mpc8540ads et=
c.
>>
Try to change "link_address=3D'0x400000'" tp "link_address=3D'0x800000'"
in arch/powerpc/boot/wrapper.
If you have result, remember to give me a feedback.


>> > And I never boot linux-2.6.31 on my board, why linux-2.6.31 doesnot
>> > provide a config file like mpc8544_ds_defconfig?
>>
>> Does mpc85xx_defconfig not work?
>
> Yes mcp85xx_defconfig does not work, I can see mpc8540ads in the menuconf=
ig,
> but no mpc8544ds. And when I down load the generated uImage, It does not
> work.
>
>>
>> -Scott
>
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
>



--=20
The simplest is not all best but the best is surely the simplest!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping does not work on my MPC8544 board, using linux2.6.23
  2009-12-08  2:25   ` 林志平
  2009-12-08  6:35     ` 林志平
  2009-12-08  7:12     ` hank peng
@ 2009-12-09 19:59     ` Scott Wood
  2009-12-10 13:05       ` 林志平
  2 siblings, 1 reply; 9+ messages in thread
From: Scott Wood @ 2009-12-09 19:59 UTC (permalink / raw)
  To: 林志平; +Cc: linuxppc-dev

林志平 wrote:
>      > Another question is that I found linux2.6.31 does not support
>      > board mpc8544ds,
> 
>     It should.  What problems do you see?
> 
> => bootm 0x1000000 0x1800000 0x800000
> ## Booting kernel from Legacy Image at 01000000 ...
>    Image Name:   Linux-2.6.31
>    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>    Data Size:    2185099 Bytes =  2.1 MB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
> ## Loading init Ramdisk from Legacy Image at 01800000 ...
>    Image Name:   Simple Embedded Linux Framework
>    Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
>    Data Size:    1859256 Bytes =  1.8 MB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
> ## Flattened Device Tree blob at 00800000
>    Booting using the fdt blob at 0x800000
>    Uncompressing Kernel Image ... OK
>    Loading Ramdisk to 1fca7000, end 1fe6ceb8 ... OK
> booting kernel using flat tree
> It then stops and never print any more,  I use mpc85xx_defconfig, I 
> select mpc85xxds in the menuconfig and deselect other options like 
> mpc8540ads etc.

Are you using the mpc8544ds device tree from 2.6.31, unchanged?  Try 
turning on CONFIG_PPC_EARLY_DEBUG.

No need to deselect the others, BTW.

>     Does mpc85xx_defconfig not work?
> 
> Yes mcp85xx_defconfig does not work, I can see mpc8540ads in the 
> menuconfig, but no mpc8544ds.

mpc8544ds is supported by CONFIG_MPC85xx_DS.

-Scott

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping does not work on my MPC8544 board, using linux2.6.23
  2009-12-09 19:59     ` Scott Wood
@ 2009-12-10 13:05       ` 林志平
  2009-12-10 17:39         ` Scott Wood
  0 siblings, 1 reply; 9+ messages in thread
From: 林志平 @ 2009-12-10 13:05 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1719 bytes --]

2009/12/10 Scott Wood <scottwood@freescale.com>

>  林志平 wrote:
>
>>     > Another question is that I found linux2.6.31 does not support
>>     > board mpc8544ds,
>>
>>    It should.  What problems do you see?
>>
>> => bootm 0x1000000 0x1800000 0x800000
>> ## Booting kernel from Legacy Image at 01000000 ...
>>   Image Name:   Linux-2.6.31
>>   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>>   Data Size:    2185099 Bytes =  2.1 MB
>>   Load Address: 00000000
>>   Entry Point:  00000000
>>   Verifying Checksum ... OK
>> ## Loading init Ramdisk from Legacy Image at 01800000 ...
>>   Image Name:   Simple Embedded Linux Framework
>>   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
>>   Data Size:    1859256 Bytes =  1.8 MB
>>   Load Address: 00000000
>>   Entry Point:  00000000
>>   Verifying Checksum ... OK
>> ## Flattened Device Tree blob at 00800000
>>   Booting using the fdt blob at 0x800000
>>   Uncompressing Kernel Image ... OK
>>   Loading Ramdisk to 1fca7000, end 1fe6ceb8 ... OK
>> booting kernel using flat tree
>> It then stops and never print any more,  I use mpc85xx_defconfig, I select
>> mpc85xxds in the menuconfig and deselect other options like mpc8540ads etc.
>>
>
> Are you using the mpc8544ds device tree from 2.6.31, unchanged?  Try
> turning on CONFIG_PPC_EARLY_DEBUG.
>
> No need to deselect the others, BTW.


>    Does mpc85xx_defconfig not work?
>>
>> Yes mcp85xx_defconfig does not work, I can see mpc8540ads in the
>> menuconfig, but no mpc8544ds.
>>
>
> mpc8544ds is supported by CONFIG_MPC85xx_DS.
> CONFIG_MPC85XX_DS does not exist. Only mpc85xx_defconfig in
> arch/powerpc/configs



> -Scott
>

[-- Attachment #2: Type: text/html, Size: 2750 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping does not work on my MPC8544 board, using linux2.6.23
  2009-12-10 13:05       ` 林志平
@ 2009-12-10 17:39         ` Scott Wood
  0 siblings, 0 replies; 9+ messages in thread
From: Scott Wood @ 2009-12-10 17:39 UTC (permalink / raw)
  To: 林志平; +Cc: linuxppc-dev

林志平 wrote:
>         Yes mcp85xx_defconfig does not work, I can see mpc8540ads in the
>         menuconfig, but no mpc8544ds.
> 
> 
>     mpc8544ds is supported by CONFIG_MPC85xx_DS.
>     CONFIG_MPC85XX_DS does not exist. Only mpc85xx_defconfig in
>     arch/powerpc/configs

I'm looking right at it, in arch/powerpc/platforms/85xx/Kconfig in 2.6.31.

mpc85xx_defconfig selects this option.

-Scott

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-12-10 17:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-07  3:53 Ping does not work on my MPC8544 board, using linux2.6.23 林志平
2009-12-07  8:40 ` Li Yang-R58472
2009-12-07 18:05 ` Scott Wood
2009-12-08  2:25   ` 林志平
2009-12-08  6:35     ` 林志平
2009-12-08  7:12     ` hank peng
2009-12-09 19:59     ` Scott Wood
2009-12-10 13:05       ` 林志平
2009-12-10 17:39         ` Scott Wood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.