How to build up the ELDK cross compiler for S3c6410(step1)

I want to read the u-boot and linux kernel.

Download iso's

   1. Get the ISO of the ELDK.

      command:

           wget ftp://ftp.denx.de/pub/eldk/5.3/iso/eldk-5.3-armv5te.iso

   2. mount iso and install toolchain

      command:  

            cd /mnt

            sudo mkdir cdrom

            mount - loop ~/Download/eldk-5.3-armv5te.iso /mnt/cdrom

            cd cdrom

             ./installsh -i armv6

             cd ..

             unmount cdrom

             sudo rmdir cdrom

   3. Environment

       add following comands to .bashrc

        commands:

            export ARCH=arm

            export CROSS_COMPILE=arm-linux-gnueabi-

source/opt/eldk5.3/armv6/environment-setup-armv4t-linux-gnueabi

    4.  open /opt/eldk5.3/armv6/environment-setup-armv6-linux-gnueabi, and modify LDFLAG

        4.1  remove -Wl, -O1(the Wl is used in the GCC)

        4.2 add the new path to avoid the warning error( like: -lgcc)

exportLDFLAGS="-O --hash-style=gnu,--as-needed -L /opt/eldk5.3/armv6/sysroots/armv6-linux-gnueabi/lib -L /opt/eldk5.3/armv6/rootfs-qte-sdk/usr/lib/arm-linux-gnueabi/4.7.2"


你可能感兴趣的:(ARM)