Use pre-compiled tool chains
Download:
FTP: // ocuser: [email protected]/toolchain/or32-elf-linux-x86.tar.bz2
Extract
Tar xjf or32-elf-linux-x86.tar.bz2
Decompress will generate a new folder, or32-elf/export file path, add the following command ~ /. Bashrc File
Vim ~ /. Bashrc
Add at the end of the text
Export Path = $ path:/home/mark/work/or32-elf/bin
Trial
Command Line input or32-elf-, press TAB twice
$ Or32-elf-
Or32-elf-addr2line or32-elf-gcov or32-elf-objdump
Or32-elf-ar or32-elf-gdb or32-elf-profile
Or32-elf-as or32-elf-gdbtui or32-elf-ranlib
Or32-elf-c + + filt or32-elf-gprof or32-elf-readelf
Or32-elf-cpp or32-elf-ld or32-elf-sim
Or32-elf-gcc or32-elf-mprofile or32-elf-size
Or32-elf-gcc-4.2.2 or32-elf-nm or32-elf-strings
Or32-elf-gccbug or32-elf-objcopy or32-elf-strip
You can
Problems:
1. Unable to connect to the virtual machine when using pietty and securecrt for remote login
Solution:
Disable Firewall Service iptables stop
Enable SSH service sshd restart
2. Because I use the 64-bit centos6.5 version, the tool chain only supports x86
Solution:
Install the 32-bit library in yum.
Command:
yum install -y libstdc++*.i686 ncurses*.i686 gtk2*.i686 glibc*.i686 libXxf86vm*.i686 libSM*.i686 PackageKit-gtk-module*.i686 libcanberra-gtk2*.i686
How to Build the software environment of the system using or1200