From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <5df98b760608310618p746e1ee7q62b9472fa855660f@mail.gmail.com> Date: Thu, 31 Aug 2006 21:18:58 +0800 From: "Wang LP" To: Linuxppc-embedded@ozlabs.org Subject: watchdog on mpc8260 with embedded linux MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_40010_21043260.1157030338519" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_40010_21043260.1157030338519 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline we try to us the hardware watchdog on mpc8260, anyone have the similar code?our linux os version is 2.6.18. thank you. ------=_Part_40010_21043260.1157030338519 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
we try to us the hardware watchdog on mpc8260, anyone have the similar code?our linux os version is 2.6.18.
 
thank you.
------=_Part_40010_21043260.1157030338519-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6CD10.BEB04127" Subject: Unable to build ELDK 4.0 Date: Thu, 31 Aug 2006 11:18:42 -0400 Message-ID: <3E8081396F6B524BA2854E7FA3F16438042EB1DB@mail.innocon.com> References: <5df98b760608310618p746e1ee7q62b9472fa855660f@mail.gmail.com> From: "Mathews, Phil" To: List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C6CD10.BEB04127 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am attempting to build the ELDK kernel using the directions in = /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/README. The makefile is = trying to execute powerPC code (fixdep) on my Pentium box. Where can I = get a X86 version of this program? ##### Make attempt: mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make = O=3D/home/name/build/kernel menuconfig HOSTCC scripts/basic/fixdep /bin/sh: scripts/basic/fixdep: cannot execute binary file make[2]: *** [scripts/basic/fixdep] Error 126 make[1]: *** [scripts_basic] Error 2 make: *** [menuconfig] Error 2 ##### Objdump of scripts/basic/fixdep mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> objdump -a = scripts/basic/fixdep scripts/basic/fixdep: file format elf32-powerpc scripts/basic/fixdep mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> echo $PATH /home/mathews/ELDK/usr/bin:/home/mathews/ELDK/usr/ppc-linux/bin:/home/mat= hews/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnom= e/bin:/opt/kde3/bin -- Phil Mathews =20 phil.mathews _at_ innocon.com =20 ------_=_NextPart_001_01C6CD10.BEB04127 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Unable to build ELDK 4.0

I am attempting to build the ELDK kernel using the = directions in = /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/README.  The = makefile is trying to execute powerPC code (fixdep) on my Pentium = box.  Where can I get a X86 version of this program?

##### Make attempt:
mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make = O=3D/home/name/build/kernel menuconfig
  HOSTCC  scripts/basic/fixdep
/bin/sh: scripts/basic/fixdep: cannot execute binary file
make[2]: *** [scripts/basic/fixdep] Error 126
make[1]: *** [scripts_basic] Error 2
make: *** [menuconfig] Error 2

##### Objdump of scripts/basic/fixdep
mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> objdump -a = scripts/basic/fixdep

scripts/basic/fixdep:     file format = elf32-powerpc
scripts/basic/fixdep

mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> echo $PATH
/home/mathews/ELDK/usr/bin:/home/mathews/ELDK/usr/ppc-linux/bin:/home/mat= hews/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnom= e/bin:/opt/kde3/bin


--  Phil Mathews 
    phil.mathews _at_ innocon.com   

------_=_NextPart_001_01C6CD10.BEB04127-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: "Mathews, Phil" From: Wolfgang Denk Subject: Re: Unable to build ELDK 4.0 Mime-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 In-reply-to: Your message of "Thu, 31 Aug 2006 11:18:42 EDT." <3E8081396F6B524BA2854E7FA3F16438042EB1DB@mail.innocon.com> Date: Thu, 31 Aug 2006 17:58:57 +0200 Sender: wd@denx.de Message-Id: <20060831155857.35812352640@atlas.denx.de> Cc: Linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Dear Phil, in message <3E8081396F6B524BA2854E7FA3F16438042EB1DB@mail.innocon.com> you wrote: > > I am attempting to build the ELDK kernel using the directions in > /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/README. The makefile is Please also RTFM: http://www.denx.de/wiki/DULG/Manual?stickboard=yosemite , especially section "6.2. Kernel Configuration and Compilation": http://www.denx.de/wiki/view/DULG/LinuxConfiguration#Section_6.2. Note that I selected the DULG-version for a board for which 2.6 kernel support is available. > trying to execute powerPC code (fixdep) on my Pentium box. Where can I > get a X86 version of this program? This is a consequence of wrong make commands. > ##### Make attempt: > mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make > O=/home/name/build/kernel menuconfig You must pass correct ARCH= and CROSS_COMPILE= arguments when running make, i. e. make ARCH=ppc CROSS_COMPILE=ppc_6xx- ... menuconfig etc. Also make sure to start from a clean source tree, i. e. run "make mrproper" to clean up before configuring your board. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de A modem is a baudy house. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6CD18.BD33B4AE" Subject: RE: Unable to build ELDK 4.0 Date: Thu, 31 Aug 2006 12:13:11 -0400 Message-ID: <3E8081396F6B524BA2854E7FA3F16438042EB1DF@mail.innocon.com> References: <20060831155857.35812352640@atlas.denx.de> From: "Mathews, Phil" To: "Wolfgang Denk" Cc: Linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C6CD18.BD33B4AE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable -----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Thu 8/31/2006 11:58 AM To: Mathews, Phil Cc: Linuxppc-embedded@ozlabs.org Subject: Re: Unable to build ELDK 4.0=20 =20 Dear Phil, in message <3E8081396F6B524BA2854E7FA3F16438042EB1DB@mail.innocon.com> = you wrote: >=20 > I am attempting to build the ELDK kernel using the directions in > /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/README. The makefile = is Please also RTFM: = http://www.denx.de/wiki/DULG/Manual?stickboard=3Dyosemite , especially section "6.2. Kernel Configuration and Compilation": http://www.denx.de/wiki/view/DULG/LinuxConfiguration#Section_6.2. Note that I selected the DULG-version for a board for which 2.6 kernel support is available. > trying to execute powerPC code (fixdep) on my Pentium box. Where can = I > get a X86 version of this program? This is a consequence of wrong make commands. > ##### Make attempt: > mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make > O=3D/home/name/build/kernel menuconfig You must pass correct ARCH=3D and CROSS_COMPILE=3D arguments when = running make, i. e. make ARCH=3Dppc CROSS_COMPILE=3Dppc_6xx- ... menuconfig etc. Also make sure to start from a clean source tree, i. e. run "make mrproper" to clean up before configuring your board. Best regards, Wolfgang Denk --=20 Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de A modem is a baudy house. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ------Follow Up----- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D After doing "make mrproper" and again following the README file that = came with ELDK: env | grep -e ARCH -e COMPILE ARCH=3Dppc CROSS_COMPILE=3Dppc_6xx- mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make = O=3D/home/name/build/kernel menuconfig HOSTCC scripts/basic/fixdep In file included from = /home/mathews/ELDK/usr/../ppc_6xx/usr/include/sys/socket.h:35, from = /home/mathews/ELDK/usr/../ppc_6xx/usr/include/netinet/in.h:24, from = /home/mathews/ELDK/usr/../ppc_6xx/usr/include/arpa/inet.h:23, from = /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/scripts/basic/fixdep.c:11= 5: /home/mathews/ELDK/usr/../ppc_6xx/usr/include/bits/socket.h:304:24: = error: asm/socket.h: No such file or directory make[2]: *** [scripts/basic/fixdep] Error 1 make[1]: *** [scripts_basic] Error 2 make: *** [menuconfig] Error 2 ------_=_NextPart_001_01C6CD18.BD33B4AE Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Unable to build ELDK 4.0

-----Original Message-----
From: Wolfgang Denk [mailto:wd@denx.de]
Sent: Thu 8/31/2006 11:58 AM
To: Mathews, Phil
Cc: Linuxppc-embedded@ozlabs.org
Subject: Re: Unable to build ELDK 4.0

Dear Phil,

in message = <3E8081396F6B524BA2854E7FA3F16438042EB1DB@mail.innocon.com> you = wrote:
>
> I am attempting to build the ELDK kernel using the directions = in
> /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/README.  The = makefile is

Please also RTFM: http:/= /www.denx.de/wiki/DULG/Manual?stickboard=3Dyosemite ,
especially section "6.2. Kernel Configuration and = Compilation":
http://www.denx.de/wiki/view/DULG/LinuxConfiguration#Section_6.2.
Note that I selected the DULG-version  for  a  = board  for  which  2.6
kernel support is available.

> trying to execute powerPC code (fixdep) on my Pentium box.  = Where can I
> get a X86 version of this program?

This is a consequence of wrong make commands.

> ##### Make attempt:
> mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make
> O=3D/home/name/build/kernel menuconfig

You must pass correct ARCH=3D and CROSS_COMPILE=3D arguments when = running
make, i. e.

        make ARCH=3Dppc = CROSS_COMPILE=3Dppc_6xx- ... menuconfig

etc. Also make sure to start from a clean  source  tree,  = i.  e.  run
"make mrproper" to clean up before configuring your board.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  = Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: = wd@denx.de
A modem is a baudy house.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
------Follow Up-----
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

After doing "make mrproper" and again following the README = file that came with ELDK:

env | grep -e ARCH -e COMPILE
ARCH=3Dppc
CROSS_COMPILE=3Dppc_6xx-

mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make = O=3D/home/name/build/kernel menuconfig
  HOSTCC  scripts/basic/fixdep
In file included from = /home/mathews/ELDK/usr/../ppc_6xx/usr/include/sys/socket.h:35,
            &= nbsp;    from = /home/mathews/ELDK/usr/../ppc_6xx/usr/include/netinet/in.h:24,
            &= nbsp;    from = /home/mathews/ELDK/usr/../ppc_6xx/usr/include/arpa/inet.h:23,
            &= nbsp;    from = /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/scripts/basic/fixdep.c:11= 5:
/home/mathews/ELDK/usr/../ppc_6xx/usr/include/bits/socket.h:304:24: = error: asm/socket.h: No such file or directory
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** [menuconfig] Error 2

------_=_NextPart_001_01C6CD18.BD33B4AE-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: "Mathews, Phil" From: Wolfgang Denk Subject: Re: Unable to build ELDK 4.0 Mime-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 In-reply-to: Your message of "Thu, 31 Aug 2006 12:13:11 EDT." <3E8081396F6B524BA2854E7FA3F16438042EB1DF@mail.innocon.com> Date: Thu, 31 Aug 2006 22:00:26 +0200 Sender: wd@denx.de Message-Id: <20060831200026.60FA5352640@atlas.denx.de> Cc: Linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , In message <3E8081396F6B524BA2854E7FA3F16438042EB1DF@mail.innocon.com> you wrote: > > mathews@mathews:~/ELDK/ppc_6xx/usr/src/linux-2.6.15> make O=/home/name/build/kernel menuconfig > HOSTCC scripts/basic/fixdep > In file included from /home/mathews/ELDK/usr/../ppc_6xx/usr/include/sys/socket.h:35, > from /home/mathews/ELDK/usr/../ppc_6xx/usr/include/netinet/in.h:24, > from /home/mathews/ELDK/usr/../ppc_6xx/usr/include/arpa/inet.h:23, > from /home/mathews/ELDK/ppc_6xx/usr/src/linux-2.6.15/scripts/basic/fixdep.c:115: > /home/mathews/ELDK/usr/../ppc_6xx/usr/include/bits/socket.h:304:24: error: asm/socket.h: No such file or directory > make[2]: *** [scripts/basic/fixdep] Error 1 > make[1]: *** [scripts_basic] Error 2 > make: *** [menuconfig] Error 2 It's working fine here. Did you install from CDROM or from a down- load? Did you verify the downloaded files? Were there any error messages dureing installation? Did you try a fresh reinstall? Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de I used to be indecisive, now I'm not sure.