10年前文章_mpc8313的ltib安装以及u-boot重新编译

Linux系统下安装ltib(linux target image builder):

1.       下载光盘到本地

wget http://192.168.1.4/share/vendor/mpc8313/8313e_070831.iso

2.       加载光盘:

Sudo mkdir /mnt/cdrom

Sudo mount –o loop 8313e_070831.iso /mnt/cdrom

3.       安装ltib

在需要安装的目录下运行(默认安装在此目录)

/mnt/cdrom/install

4.       安装genext2fs.rpm

Rpm ivh genext2fs.rpmwhich genext2fs 有此命令不需要安装)

扫描二维码关注公众号,回复: 6278205 查看本文章

Sudo cp –f /usr/bin/genext2fs /opt/freescale/ltib/usr/bin/genext2fs

5.       运行安装目录下的ltib可执行文件

./ltib

重新编译u-boot

进入ltib安装目录

./ltib –m prep –p u-boot-1.1.6-mpc8313erdb.spec

./ltib –m scbuild –p u-boot-1.1.6-mpc8313erdb.spec

cd rpm/BUILD

find . –name “Makefile” | xargs grep –En “*8313*”

make MPC8313ERDB_config

cat include/config.mk

cat include/config.h

make CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.0.2-glibc-2.3.6-nptl-2/powerpc-e300c3-linux/bin/powerpc-e300c3-linux-

猜你喜欢

转载自www.cnblogs.com/hshy/p/10927754.html