AnsweredAssumed Answered

How to port the new kernel to MPC8309twr board

Question asked by satish kumar Y on Dec 7, 2016

Hi,

 

I am trying to port the linux kernel 3.13.11 to mpc8309twr  board. The kernel came with LTIB BSP is 2.6.34.

 

so for porting new kernel i have made some changes  in BSP platform

1) In ltib/configs/platform/mpc8309twr/  created kernel-3.13.11-mpc8309twr.spec.in spec file.(attached below)

2)In ltib/configs/platform/mpc8309twr/ have copied the same linux-2.6.34-mpc8309twr.config file and renamed to linux-3.13.11-mpc8309twr.config

3)In ltib/configs/platform/mpc8309twr/main.lkc    

            a)   under  prompt "kernel" choice added below lines

                    config KERNEL3
                    bool "linux 3.13.11"
                    help
                          Building the new kernel for tower board.

 

            b)   added below

                    config PKG_KERNEL

                        default "kernel-3.13.11-mpc8309twr" if KERNEL3 && PFM_8309TWR

            c)   added below

                  config PKG_KERNEL_PRECONFIG

                         default "linux-3.13.11-mpc8309twr.config" if KERNEL_CONFIG1 && KERNEL3

4) copied the linux-3.13.11.tar.gz to /opt/freescale/pkgs/

 

After this i started to configure the ltib, but it is showing me errors

[root@localhost ltib-mpc830xtwr-20111228]# ./ltib -c

 

You should not be root when running ltib, do you really
want to continue ?  y|N

 

y
+ '[' -n '' ']'
+ '[' -f /home/8309/ltib-mpc830xtwr-20111228/config/.config ']'
+ cat /home/8309/ltib-mpc830xtwr-20111228/config/.config
+ perl -ne 'print if m,^CONFIG_(?!PCF),'
+ '[' '!' -f config/platform/mpc830xtwr/.config -a -f config/platform/mpc830xtwr/defconfig ']'
+ '[' -n '' ']'
+ cd config/platform/mpc830xtwr
+ mconf main.lkc .config
../../userspace/pme_tools.lkc:4:warning: enable is only allowed with boolean and tristate symbols
../../userspace/packages.lkc:1760:warning: enable is only allowed with boolean and tristate symbols
../../userspace/packages.lkc:3348:warning: enable is only allowed with boolean and tristate symbols
Warning! Found recursive dependency: PKG_XORG_SERVER PKG_XTERM PKG_LIBXAW PKG_LIBXPM PKG_XORG_SERVER PKG_LIBXAU
Warning! Found recursive dependency: PKG_XORG_SERVER PKG_XORG_X11_TWM PKG_LIBXMU PKG_LIBXT PKG_XORG_SERVER PKG_PIXMAN
Warning! Found recursive dependency: PKG_XORG_SERVER PKG_XORG_X11_TWM PKG_LIBXMU PKG_LIBXT PKG_XORG_SERVER PKG_LIBPTHREAD_STUBS
Warning! Found recursive dependency: PKG_XORG_SERVER PKG_XORG_X11_TWM PKG_LIBXMU PKG_LIBXT PKG_XORG_SERVER PKG_XCB_PROTO

 


*** End of configuration.
*** Check the top-level Makefile for additional configuration options.

 

+ cp .config defconfig.dev

 

Processing platform: Freescale TWR-MPC830x board
==================================================
using config/platform/mpc830xtwr/.config
no template at ./ltib line 2095.
traceback:
 main::get_spec:2095
  main::process_pkg_deps:1698
   main::f_buildrpms:975
    main:560

 


Started: Wed Dec  7 14:10:20 2016
Ended:   Wed Dec  7 14:10:25 2016
Elapsed: 5 seconds

 


Build Failed

 

Exiting on error or interrupt

 

so if any one can check and tell me the procedure to port the new kernel, am i following the correct procedure or not?

Original Attachment has been moved to: kernel-3.13.11-mpc8309twr.spec.in.zip

Original Attachment has been moved to: main.lkc.zip

Original Attachment has been moved to: linux-3.13.11-mpc8309twr.config.zip

Outcomes