基于yocto编译powerpc架构的的demo板镜像

以下仅是我的个人随笔和工作记录:

install Yocto 

step:    
Installing the BSP
1. ==============Mount the ISO image :

sudo mount -o loop QorIQ-SDK-V1.3-PPC64E5500-20121023-yocto.iso /mnt/cdrom 
sudo mount -o loop QorIQ-SDK-V1.3-SOURCE-20121023-yocto.iso /mnt/cdrom 

2. ==============As a non-root user, install the Yocto:
/mnt/cdrom/install
There is no uninstall script. To uninstall Yocto you need to remove the <yotco_install_path>/QorIQ-SDK-V1.2-<version>-
Setup Host Environment
1). cd <yocto_installation_path>/poky

2).=============== source ./fsl-setup-poky –m <board> -j bitbake_jobs –t make_threads -l
for examole:
source ./fsl-setup-poky –m p4080ds –j 12 –t 12 [12?]
source ./fsl-setup-poky -m p5020ds -j 2 -t 2
source ./fsl-setup-poky -m mpc8572ds -j 2 -t 2
source ./fsl-setup-poky –m p1020rdb
3.===============kernel configuration================:
bitbake -c menuconfig virtual/kernel

rebuild kernel: when need a new one (e.g.:last time error if no error don't exe bitbake -c cleansstate virtual/kernel )
bitbake -c cleansstate virtual/kernel
bitbake -c patch virtual/kernel
bitbake -c menuconfig virtual/kernel
bitbake -c compile -f virtual/kernel  to find it in the source code.
bitbake virtual/kernel
dir:~/sdk1.3_E500v2_ISO1/QorIQ-SDK-V1.3-20120910-yocto/build_mpc8572ds_release/tmp/work/mpc8572ds-fsl-linux-gnuspe/linux-qoriq-sdk-3.0.34-r4/image/kernel$
4================= build fs=============:
/home/hanhan/work/QorIQ-SDK-V1.2-20120614-yocto/meta-fsl-ppc-private/images/fsl-image-full.bb(need to be changed) add or delete packet in it.

maybe need:*******:change:meta/recipes-devtools/qemu   vi qemu.inc  add curl (in depends)]
bitbake fsl-image-core
when compile dts in yocto:
dtc dir:~/work/QorIQ-SDK-V1.2-20120614-yocto/build_p4080ds_release/tmp/sysroots/x86_64-linux/usr/bin
or complie dts in the board.
5.==================rebuild u-boot:(when being error exe bitbake -c cleansstate u-boot bitbake -c patch u-boot these two step must be exited at the same time)
bitbake -c cleansstate u-boot
bitbake -c patch u-boot
bitbake u-boot
dir:hanhan@hanhan-desktop:~/sdk1.3_E500v2_ISO/QorIQ-SDK-V1.3-20120905-yocto/build_mpc8572ds_release/tmp/work/mpc8572ds-fsl-linux-gnuspe/linux-qoriq-sdk-3.0.34-r4/git/arch/powerpc/boot

(zcat /proc/config.gz | grep -i hugetlb)

6.===================build toolchain=============
bitbake fsl-toolchain
tmp/deploy/sdk/fsl-eglibc-i686-ppce500v2-toolchain-1.1.tar.bz2
other:
export ARCH=powerpc
export CROSS_COMPILE=/opt/fsl/1.1/sysroots/i686-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-bash-4.2$
sudo tar xjf /home/hanhan/toolchain/fsl-eglibc-x86_64-ppce500v2-toolchain-1.2.tar.bz2 
/opt/fsl/1.2/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe
export ARCH=powerpc
export CROSS_COMPILE=/opt/fsl/1.1/sysroots/i686-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-bash-4.2$
. .bashrc or source bashrc to enable the setting
7.====================build busybox==================
bitbake -c menuconfig busybox
bitbake busybox

vim ../meta-fsl-ppc/conf/machine/mpc8572ds.conf 

8.====================build lxc and hv-test===================:
hv-test:
hanhan@hanhan-desktop:~/sdk1.3_E500v2_ISO1/QorIQ-SDK-V1.3-20120910-yocto/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/hv-test-git-r1/image

===== for e500v2 =====
export PATH=$PATH:/opt/fsl/1.2/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe

export CROSS_COMPILE=powerpc-fsl-linux-gnuspe-

export ARCH=powerpc

8.========================build hv-test====================
bitbake hv-test

=======================dts directory=================
 ~/sdk1.3_rc1_E5500_ISO/QorIQ-SDK-V1.3-20121023-yocto/build_p5040ds_release/tmp/work/p5040ds-fsl-linux/linux-qoriq-sdk-3.0.34-r4/git$ vi arch/powerpc/boot/dts/
login the follow website in local linux:
git clone git://git.am.freescale.net/gitolite/users/b28495/flash-image-tool.git
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值