Openwrt移植IMX6之增加u boot支援

2021-06-21 15:20:00 字數 1919 閱讀 4221

openwrt已經支援

imx6的

u-boot,

u-boot位於

package/boot/uboot-imx6,只需要針對自己的

u-boot新增補丁,

openwrt使用

quilt管理補丁

,以下是製作補丁的全過程。

參考文件

cat > ~/.quiltrc quilt_refresh_args="--no-timestamps --no-index -pab"

quilt_patch_opts="--unified"

quilt_diff_opts="-p"

editor="nano"

eof

makepackage

/example

/v=s

quilt=1

cdbuild_dir/target-*/example-*

quiltpush -a

quiltnew 010-main_code_fix.patch

quiltedit src/main.c

quiltdiff

quiltrefresh

makepackage

/example

/updatev=s

makepackage

/example

/package/index v=s

補充:新增新檔案要先

quiltadd your_file,

然後再新建並編輯檔案,或則複製檔案進來。1

.修改package/boot/uboot-imx6/makefile #

在uboots

新增snapgate

,defineuboot/snapgate

title:=u-bootfor the snapget solo 1g board

endef

2.

製作補丁過程

makepackage/boot/uboot-imx6/prepare v=s quilt=1

cdbuild_dir/target-arm_cortex-a9+vfpv3_uclibc-0.9.33.2_eabi/u-boot-snapgate/u-boot-2013.10

quiltpush -a

quilt new 120-snapgate-support.patch

quilt edit boards.cfg

quilt add include/configs/snapgate.h

quilt add board/snapgate/makefile

quilt add board/snapgate/snapgate1g.cfg

quilt add board/snapgate/snapgate.c

quilt add board/snapgate/readme.md

quilt add board/snapgate/snapgate512m.cfg #

現在複製新增的檔案進去

quiltrefresh

cd../../../../

makepackage/boot/uboot-imx6/update v=s

最終生成新的補丁檔案

package/boot/uboot-imx6/patches/120-snapgate-support.patch

makemenuconfig

配置bootloaders --->

<*>uboot-imx6-snapgate................. u-boot for the snapget solo 1gboard

imx6 移植人臉識別

最近接到任務要移植人臉檢測,其他步驟網上都有,一步步做就好了,就是在載入haarcascade frontalface alt2.xml的時候,出現 root dchip linux qt opencv 2.4.13.1 modules core src persistence.cpp 5008 e...

imx6的qt5 6 2的移植

一 準備工作 需要安裝的庫檔案 sudo apt get install libxcb1 libxcb1 dev libx11 xcb1 libx11 xcb dev libxcb keysyms1 libxcb keysyms1 dev libxcb image0 libxcb image0 de...

qt之imx6庫編譯

qmake configuration for building with arm linux gnueabi g makefile generator unix config incremental qmake incremental style sublib 配置交叉編譯引數 imx6 cfla...