Compiling U-Boot for i.MX27ADS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compiling U-Boot for i.MX27ADS

Compiling U-Boot for i.MX27ADS

These instructions used ltib-imx27ads-20071219.

First, get u-boot v2.0:

git clone http://git.denx.de/u-boot-v2.git u-boot-v2 

Enter the U-Boot directory:

cd u-boot-v2 

Export the proper compilation paths and environment variables:

export ARCH=arm

export PATH="$PATH:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/"

export CROSS_COMPILE=arm-none-linux-gnueabi-

Configure it for the i.MX27ADS board:

make mx27ads_defconfig 

You may want to enable the FEC driver:

make menuconfig 

And go to Drivers -> Network drivers and select Yes on i.MX FEC Ethernet driver

Exit the config menu (don't forget to save the configuration) and just make it:

make 

Or if you prefer the verbose mode

make V=1 

After a quick build, you should get a uboot.bin on your current directory. I used the ADS Toolkit to program the NOR flash.


Labels (1)
%3CLINGO-SUB%20id%3D%22lingo-sub-1099976%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECompiling%20U-Boot%20for%20i.MX27ADS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1099976%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3E%20%3CP%3EThese%20instructions%20used%20ltib-imx27ads-20071219.%3C%2FP%3E%20%3CP%3EFirst%2C%20get%20u-boot%20v2.0%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Egit%20clone%20%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fgit.denx.de%2Fu-boot-v2.git%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fgit.denx.de%2Fu-boot-v2.git%3C%2FA%3E%20u-boot-v2%20%3C%2FPRE%3E%20%3CP%3EEnter%20the%20U-Boot%20directory%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Ecd%20u-boot-v2%20%3C%2FPRE%3E%20%3CP%3EExport%20the%20proper%20compilation%20paths%20and%20environment%20variables%3A%3C%2FP%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%20%3CP%3Eexport%20ARCH%3Darm%3C%2FP%3E%20%3CP%3Eexport%20PATH%3D%22%24PATH%3A%2Fopt%2Ffreescale%2Fusr%2Flocal%2Fgcc-4.1.2-glibc-2.5-nptl-3%2Farm-none-linux-gnueabi%2Fbin%2F%22%3C%2FP%3E%20%3CP%3Eexport%20CROSS_COMPILE%3Darm-none-linux-gnueabi-%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3EConfigure%20it%20for%20the%20i.MX27ADS%20board%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20mx27ads_defconfig%20%3C%2FPRE%3E%20%3CP%3EYou%20may%20want%20to%20enable%20the%20FEC%20driver%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20menuconfig%20%3C%2FPRE%3E%20%3CP%3EAnd%20go%20to%20%3CSTRONG%3EDrivers%3C%2FSTRONG%3E%20-%26gt%3B%20%3CSTRONG%3ENetwork%20drivers%3C%2FSTRONG%3E%20and%20select%20%3CSTRONG%3EYes%3C%2FSTRONG%3E%20on%20%3CSTRONG%3Ei.MX%20FEC%20Ethernet%20driver%3C%2FSTRONG%3E%3C%2FP%3E%20%3CP%3EExit%20the%20config%20menu%20(don't%20forget%20to%20save%20the%20configuration)%20and%20just%20make%20it%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20%3C%2FPRE%3E%20%3CP%3EOr%20if%20you%20prefer%20the%20verbose%20mode%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Emake%20V%3D1%20%3C%2FPRE%3E%20%3CP%3EAfter%20a%20quick%20build%2C%20you%20should%20get%20a%20%3CSTRONG%3Euboot.bin%3C%2FSTRONG%3E%20on%20your%20current%20directory.%20I%20used%20the%20ADS%20Toolkit%20to%20program%20the%20NOR%20flash.%3C%2FP%3E%20%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1099976%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX2x%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-10-2020 01:36 AM
Updated by: