Siva, So give a kernel patch and modify kernel spec as well, because the definition of 'PATH_MAX' is in the limits.h.
Indeed, the building log as below seemingly indicate that your toolchain isn't correct. It would better double check. > :0: error: bad value (e300c2) for -mcpu= switch > :0: error: bad value (e300c2) for -mcpu= switch > /home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/rpm/BUILD/linux-2.6.20/scripts/gcc-version.sh: > line 13: printf: #: invalid number > /home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/rpm/BUILD/linux-2.6.20/scripts/gcc-version.sh: > line 13: printf: #: invalid number Eric Zang Embed International Pty Ltd 2 Neil Street, Osborne Park WA 6017 Tel : +61 8 9340 0100 | Fax: +61 8 9340 0199 Website : www.embedcard.com E-mail : [email protected] -----Original Message----- From: Siva Prakash Reddy Nareddy [mailto:[email protected]] Sent: Thursday, September 29, 2016 2:24 PM To: Eric Zang <[email protected]>; ltib <[email protected]> Subject: Re: [Ltib] Ltib issue while building Kernel sir, I didn't found <limits.h> in sumversion.c which is located at /rpm/BUILD/linux-2.6.20/scripts/mod. Please look at the attached sumversion.c file On 9/29/16, Eric Zang <[email protected]> wrote: > HI Siva > > From the log attached, I suggest that you first check the item of > cross toolchain in configure file, make sure it is a proper PowerPC’s > toolchain with correct C library. Then Go to kernel directory, to > check if /scripts/mod/sumversion.c already has include <limits.h>. If > has, the best bet is the issue happened in cross toolchain or its > configuration. > Good luck! > > > > > > > Eric Zang > > Embed International Pty Ltd > 2 Neil Street, Osborne Park WA 6017 > Tel : +61 8 9340 0100 | Fax: +61 8 9340 0199 Website : > www.embedcard.com<http://www.embedcard.com/> > E-mail : [email protected]<mailto:[email protected]> > > From: Ltib [mailto:[email protected]] On > Behalf Of Siva Prakash Reddy Nareddy > Sent: Thursday, September 29, 2016 2:03 PM > To: ltib <[email protected]> > Subject: [Ltib] Ltib issue while building Kernel > > Hi, > > After configuring ltib kernel image using "./ltib --configure", I am > getting following message.. > > # > # configuration written to .config > # > + '[' -f > /home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/config/platform/mp > c832x_rdb/linux_2.6.20_mpc832x_rdb.config > ']' > + cp -f ./.config > /home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/config/platform/mp > c832x_rdb/linux_2.6.20_mpc832x_rdb.config.dev > + '[' -n '' ']' > + '[' '%{kernel_series}' = 2.4 ']' > + make ARCH=powerpc CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' > uImage > scripts/kconfig/conf -s arch/powerpc/Kconfig > CHK include/linux/version.h > CHK include/linux/utsrelease.h > HOSTCC scripts/mod/sumversion.o > scripts/mod/sumversion.c: In function 'get_src_version': > scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use > in this function) > scripts/mod/sumversion.c:384: error: (Each undeclared identifier is > reported only once > scripts/mod/sumversion.c:384: error: for each function it appears in.) > scripts/mod/sumversion.c:384: warning: unused variable 'filelist' > make[2]: *** [scripts/mod/sumversion.o] Error 1 > make[1]: *** [scripts/mod] Error 2 > make: *** [scripts] Error 2 > error: Bad exit status from > /home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/tmp/rpm-tmp.98912 > (%build) > > > RPM build errors: > Bad exit status from > /home/rnd/Desktop/MPC8323/ltib-mpc832x_rdb-20081112/tmp/rpm-tmp.98912 > (%build) > Build time for kernel-2.6.20-mpc832x_rdb: 2 seconds > > Failed building kernel-2.6.20-mpc832x_rdb > > > f_buildrpms() returned an error, exiting > traceback: > main:491 > > > Started: Thu Sep 29 11:08:10 2016 > Ended: Thu Sep 29 11:09:25 2016 > Elapsed: 75 seconds > > These packages failed to build: > kernel-2.6.20-mpc832x_rdb > Build Failed > > Exiting on error or interrupt > > I am using Ubuntu 8.10 and MPC8323E-RDB development board Please, help > me in solving this.. > > Thanks and Regards, > Siva Prakash Reddy N > > -- > SIVA > -- *SIVA* _______________________________________________ LTIB home page: http://ltib.org Ltib mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ltib
