We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
准备工作: linux host: ubuntu 16.04 以及之后的版本 非root账户登录(最好不要用root账号运行bitbake) 预留10G的/home/${USER} package下载空间,以及100G yocto编译空间
编译RAMDISK:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
准备工作:
linux host: ubuntu 16.04 以及之后的版本
非root账户登录(最好不要用root账号运行bitbake)
预留10G的/home/${USER} package下载空间,以及100G yocto编译空间
编译RAMDISK:
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping libsdl1.2-dev xterm
git clone https://github.com/zwg0106/imx-yocto.git
在sources目录下面有4个目录,meta-freescale,meta-openembedded和poky这三个目录下面的code是从git clone下来的,然后checkout到sumo branch(见3rd_repo.conf),yocto 2.5的sumo branch,且没有修改这三个目录下面的code
imx目录是我们需要增加和修改的内容,包含编译脚本,machine配置,RAMDISK需要的包设置等等。
本工程中machine=hwasin,uboot版本是2017.03,配置目录imx/meta-imx-bsp/meta-freescale/recipes-boot/u-boot, kernel版本是4.9.88,配置目录是imx/meta-imx-bsp/meta-freescale/recipes-kernel/linux, RAMDISK imagen配置目录是imx/meta-imx-images/recipes-core/images
uboot和kernel的patch大部分来是野火资料包里面的
source sources/imx/tools/setup_build_env.sh -m hwasin -b srcBuild
bitbake imx-image-ramdisk
我把srcBuild和sources放在同一个目录下面,srcBuild目录需要大概100G的空间,同时编译过程中会产生/home/${USER}/download目录用来下载编译所需的包,大概需要10G的空间
漫长的等待。。。
单独编译uboot和kernel命令:
bitbake u-boot
bitbake linux-imx
bitbake imx-image-ramdisk结束后会在srcBuild/build/tmp/deploy/images/hwasin目录下面生成u-boot,kernel,devive tree和RAMDISK包
u-boot-emmc-2017.03-r0.imx
zImage--4.9.88-r0-hwasin-20191119040227.bin
zImage--4.9.88-r0-hwasin-emmc-20191119040227.dtb
imx-image-ramdisk-hwasin-20191120022343.rootfs.cpio.gz.u-boot
下载u-boot,kernel,device tree和RAMDISK包只tftpd server目录(win下是tftpd32软件),分别重命名为
u-boot-emmc-2017.03-r0.imx
zImage
hwasin-emmc.dtb
rootfs.ext2.gz.uboot
如果不重名,也可以修改uboot的环境变量
更新uboot,野火开发板上带的uboot版本是2016.03,需要先升级到2017.03,ctrl+c停在uboot-2016.03,输入下面的命令更新uboot至2017.03,我用的内网ip,192.168.1.10的板子ip,192.168.1.100是PC的ip
1)setenv ipaddr 192.168.1.10
2)setenv serverip 192.168.1.100
3)setenv ethaddr 00:11:22:33:44:55
4)tftp 8a000000 u-boot-emmc-2017.03-r0.imx
5)mmc dev 1 1
6)mmc write 8a000000 2 500
7)mmc partconf 1 1 1 1
8)reset
ctrl+c停在uboot,检查版本是否已更新到2017.03,用下面的命令load RAMDISK image
1)setenv ipaddr 192.168.1.10
2)setenv serverip 192.168.1.100
3)run ramboot
The text was updated successfully, but these errors were encountered: