2012年1月12日 星期四

[Fedora 10] build up TI code process

Fedora 10 build code process:

1. Install Fedora 10



  • pick up all sub-option under GCC option. ( Most important thing )


2. Compile toolchain



  • tar xvf Toolchain_01.tar


  • cd Toolchain_01 (Into this folder)


  • Insert code into build-toolchain.sh









    BUILDROOT_NAME=buildroot-2011.08

    PWD  = $(shell pwd)



    # Installation directory. Override this variable for a different destination

    if [ -z $TOOLCHAIN_INSTALL_DIR ]; then \

    export TOOLCHAIN_INSTALL_DIR="$PWD/../data/toolchain" ;\

    fi



    sh build-toolchain.sh


  • build toolchain in /data/Toolchain/


3. Setting enviroment



  • export /data/Toolchain/


  • export CROSS=arm-linux-


4. Download glibc-2.11

Need libc.so.6 version glibc_2.11.

So watch ( ref 1 )



  •   mkdir -v ../glibc-build
    cd ../glibc-build



  • echo "CFLAGS += -march=i486 -mtune=native" > configparms


  • ../glibc-2.11/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.18


  • make


  • make install


5. compile code ( GW-SDK.3.5.0.8 )



  • Into GW-SDK.3.5.0.4/src


  • sh installpkg *.tgz ../target (  Destination folder : ../target)


  • cd ../target


  • make defconfig PRODUCT=DSDK ( DSDK || VGWSDK || VSDK )


  • sh run.txt ( patch some "ln" file into folder  . So compile won't error )


Reference :



  1. Linux From Scratch Ref : 6.9 && 5.7


0 意見:

張貼留言