Installing MIPS cross-compiling toolchain with Crossdev

Source: Internet
Author: User

For example, perform such an installation command:

Crossdev-s--ex-gdb--without-headers-t Mipsel-unknown-linux-gnu
First, modify the/etc/make.conf file, add portdir_overlay=/usr/portage/at the end of the file (otherwise the error is not set Portdir_overlay)

Then, refer to this link Gentoo overlays:users ' Guide, install a overlay (because we need n32 glibc, so we need this overlay). The specific commands to execute are as follows:

Emerge layman

echo "source/var/lib/layman/make.conf" >>/etc/make.conf

echo portdir_overlay=\ "\" >/var/lib/layman/make.conf

Layman-l

Layman-a X11

After installation, install Crossdev-t MIPSEL-UNKNOWN-LINUX-GNU (you must perform this step before performing the following step, otherwise the error will be as follows:

* Binutils Failed:(
* If you file a bug, please attach the following logfiles:
*/var/log/portage/cross-mips64-unknown-linux-gnu-info.log
*/var/log/portage/cross-mips64-unknown-linux-gnu-binutils.log)

Finally again crossdev-s--ex-gdb--without-headers-t mipsel-unknown-linux-gnu Command There is no problem.

Yes, you can also install Crossdev-t Mips64el-unknown-linux-gnu and so on.

Crossdev-t help this command to see which cross-compilation tools Crossdev can install.

Crossdev This command to see what each parameter of this command means.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.