From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 22 Nov 2011 05:51:15 +0100 Subject: [U-Boot] M5282EVB undefined reference to `environment' In-Reply-To: <4ECAC9E7.7000209@gmail.com> References: <4ECAC9E7.7000209@gmail.com> Message-ID: <201111220551.16053.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Hi, > > I'm trying to build U-Boot for the above mentioned board. Basically, > I've done the following on a Ubuntu 10.04: > > wget > https://sourcery.mentor.com/public/gnu_toolchain/m68k-elf/freescale-coldfir > e-4.4-215-m68k-elf-i686-pc-linux-gnu.tar.bz2 > > sudo tar xvfj > freescale-coldfire-4.4-215-m68k-elf-i686-pc-linux-gnu.tar.bz2 -C /opt > > export > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/free > scale-coldfire-4.4/bin > > |sudo apt-get install git-core > > mkdir /home/james/u-boot-git && cd ||/home/james/u-boot-git > > git clone ||git://git.denx.de/u-boot-coldfire.git > > ||cd u-boot-coldfire > || > ||make clean > > make M5282EVB_config try ./MAKEALL M5282EVB ... I suspect you don't have CROSS_COMPILE=your-crosscc- prefix variable set, and maybe ARCH=m68k variable too. > > ||make| all > > At the very last stage of linking, I get... > > common/libcommon.o:(.data.rel.env_ptr+0x0): undefined reference to > `environment' > make: *** [u-boot] Error 1 > > Can someone help me fix this, please? > > Regards, > James.