IMX6 DualLite摸索笔记(3)Yocto 中uboot源码位置

时间:2022-06-14 08:11:06

又过了一周,蹉跎人生呀,总是在做些没有营养的鸡毛蒜皮的琐事。

下载好Yocto文件后,后面就和《i.MX_BSP_Porting_Guide》不太一样了,对应的目录一个找不到,只能再次摸石头过河了。

首先是uboot目录,据我观察是

owen@ubuntu:~/fsl-release-bsp/buildDir/tmp/work/imx6dlsabreauto-poky-linux-gnueabi/u-boot-imx/2016.03-r0/git$ 
imx6dlsabreauto-poky-linux-gnueabi和前面选择的机器名有关。
这个目录下文件:

IMX6 DualLite摸索笔记(3)Yocto 中uboot源码位置

这就是uboot源码了,估计只要把这里改了,再编译一次应该就可以了。

后面又不会了,这次用find指令查找,回去尝试按照文档里面的方法

owen@ubuntu:~/fsl-release-bsp/buildDir/tmp/work/imx6dlsabreauto-poky-linux-gnueabi/u-boot-imx/2016.03-r0/git/mx6dlsabreauto_config/include$ find /home/owen/fsl-release-bsp/ -name "freescale"
/home/owen/fsl-release-bsp/.repo/projects/sources/base.git/logs/refs/remotes/freescale
/home/owen/fsl-release-bsp/.repo/projects/sources/meta-fsl-demos.git/logs/refs/remotes/freescale
/home/owen/fsl-release-bsp/.repo/projects/sources/meta-fsl-arm-extra.git/logs/refs/remotes/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/linux-libc-headers/4.1-r0/linux-4.1/arch/arm64/boot/dts/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/linux-libc-headers/4.1-r0/linux-4.1/drivers/net/ethernet/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/linux-libc-headers/4.1-r0/linux-4.1/drivers/pinctrl/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/linux-libc-headers/4.1-r0/linux-4.1/Documentation/devicetree/bindings/arm/freescale
---->/home/owen/fsl-release-bsp/buildDir/tmp/work/imx6dlsabreauto-poky-linux-gnueabi/u-boot-imx/2016.03-r0/git/board/freescale <---------
/home/owen/fsl-release-bsp/buildDir/tmp/work/imx6dlsabreauto-poky-linux-gnueabi/u-boot-imx/2016.03-r0/git/mx6dlsabreauto_config/board/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/imx6dlsabreauto-poky-linux-gnueabi/linux-imx/4.1.15-r0/build/drivers/net/ethernet/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/imx6dlsabreauto-poky-linux-gnueabi/linux-imx/4.1.15-r0/build/drivers/pinctrl/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/imx6dlsabreauto-poky-linux-gnueabi/kernel-module-imx-gpu-viv/5.0.11.p8.6-r0/kernel-module-imx-gpu-viv-5.0.11.p8.6/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/platform/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/imx6dlsabreauto-poky-linux-gnueabi/kernel-module-imx-gpu-viv/5.0.11.p8.6-r0/kernel-module-imx-gpu-viv-5.0.11.p8.6/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/allocator/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.5.0-r1/qemu-2.5.0/roms/u-boot/nand_spl/board/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.5.0-r1/qemu-2.5.0/roms/u-boot/board/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-linux-libc-headers/4.4-r0/linux-4.4/arch/arm64/boot/dts/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-linux-libc-headers/4.4-r0/linux-4.4/drivers/net/ethernet/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-linux-libc-headers/4.4-r0/linux-4.4/drivers/pinctrl/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-linux-libc-headers/4.4-r0/linux-4.4/Documentation/devicetree/bindings/arm/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-u-boot-mkimage/v2016.03+gitAUTOINC+df61a74e68-r0/git/board/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/roms/u-boot/nand_spl/board/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/roms/u-boot/board/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work-shared/imx6dlsabreauto/kernel-source/arch/arm64/boot/dts/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work-shared/imx6dlsabreauto/kernel-source/drivers/net/ethernet/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work-shared/imx6dlsabreauto/kernel-source/drivers/pinctrl/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work-shared/imx6dlsabreauto/kernel-source/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work-shared/imx6dlsabreauto/kernel-source/drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/freescale
/home/owen/fsl-release-bsp/buildDir/tmp/work-shared/imx6dlsabreauto/kernel-source/Documentation/devicetree/bindings/arm/freescale

找出来了一大堆,但是对移植uboot有用的应该就是这一个目录:

/home/owen/fsl-release-bsp/buildDir/tmp/work/imx6dlsabreauto-poky-linux-gnueabi/u-boot-imx/2016.03-r0/git/board/freescale

看看里面有什么文件

IMX6 DualLite摸索笔记(3)Yocto 中uboot源码位置

这次终于和文档对上了,文档真是坑爹啊,前面的路径都不给,找了几天才找到它说的东西在什么地方

IMX6 DualLite摸索笔记(3)Yocto 中uboot源码位置