linux内核默认imx6速率配置,Imx6uLL_Linux

ebf_6ull_linux

开发环境

ubuntu18.04

安装必要的库

sudoapt-get installlzop libncurses5-dev

安装独立编译工具链

命令安装方式(推荐新手使用这种方法):

arm-linux-gnueabihf-gcc:v7.4.0

sudoapt-get installgcc-arm-linux-gnueabihf

安装包安装方式(推荐老手使用这种方法)

从百度云盘下载arm-linux-gnueabihf-gcc编译器的压缩包,版本是 v4.9.3

在 Linux系列产品 中找到的网盘链接,在i.MX6ULL系列\5-编译工具链\arm-gcc 目录下找到 arm-gcc.tar.gz 压缩包并且下载

作者备注:为什么推荐更低版本的编译器呢?因为作者亲测新版本的编译器并不能完全兼容,在测试比如新版本编译的内核镜像无法识别到4G模块。但是在绝大部分情况下v7.4.0版本的编译器都是没有任何问题的!!!请放心使用!!!

内核编译过程

导出环境变量

exportPATH=/opt/arm-gcc/bin:$PATH

exportARCH=arm

exportCROSS_COMPILE=arm-linux-gnueabihf-

清除编译信息

make ARCH=arm clean

设置配置选项,使用野火开发板配置

make ARCH=arm imx6_v7_ebf_defconfig

开始编译

make ARCH=arm -j10 CROSS_COMPILE=arm-linux-gnueabihf-

编译生成的镜像输出路径

内核镜像路径

ebf_6ull_linux/arch/arm/boot

设备树输出路径

ebf_6ull_linux/arch/arm/boot/dts

拷贝zImage与dtb

可以直接运行脚本copy.sh将内核镜像与设备树拷贝到image目录下

./copy.sh

只编译设备树

在后面添加 dtbs 即可

make ARCH=arm -j10 CROSS_COMPILE=arm-linux-gnueabihf- dtbs

编译的设备树:

imx6ull-14x14-evk.dts

imx6ull-14x14-evk-btwifi.dts

imx6ull-14x14-evk-emmc.dts

imx6ull-14x14-evk-gpmi-weim-43.dts

imx6ull-14x14-evk-emmc-43.dts

imx6ull-14x14-evk-gpmi-weim-hdmi.dts

imx6ull-14x14-evk-emmc-hdmi.dts

imx6ull-14x14-evk-gpmi-weim-wifi.dts

imx6ull-14x14-evk-emmc-wifi.dts

imx6ull-14x14-evk-gpmi-weim-cam-dht11.dts

imx6ull-14x14-evk-emmc-cam-dht11.dts

骚气的一键编译

直接运行以下命令

./build.sh

或者...

./build.sh 5.0

生成的内核镜像与设备树均被拷贝到 image 目录下。

内核模块相关均被安装到 my_lib/lib/ 目录下的modules文件夹下,可以直接替换掉rootfs(根文件系统)中的/lib/modules/。

build.sh脚本默认编译5.0寸屏幕的内核镜像,如果需要4.3寸屏幕的内核镜像,则可以使用以下命令去编译:

./build.sh 4.3

配置选项(部分)

运行 make ARCH=arm menuconfig 命令打开配置界面,根据自身需求配置即可!

触摸屏驱动:

Prompt: Goodix I2C touchscreen

Location:

-> Device Drivers

-> Input device support

-> Generic input layer (needed forkeyboard, mouse, ...) (INPUT [=y])

(1) -> Touchscreens (INPUT_TOUCHSCREEN [=y])

#这个也要使能

[*] Goodix touchpanel GT9xx series

Goodix GT9xx touchcontroller auto update support

Goodix GT9xx Tools fordebuging

单总线驱动:

Prompt: Dallas's 1-wire support

Location:

(1) -> Device Drivers

[*] Userspace communication over connector (NEW)

添加MPU6050的支持:

Prompt: Invensense MPU6050 devices

Location:

-> Device Drivers

-> Industrial I/O support (IIO [=y])

(1) -> Inertial measurement units

Invensense MPU6050 devices

WIFI蓝牙

Location:

-> Device Drivers

-> Network device support

-> Wireless LAN

->

Broadcom FullMAC wireless cards support

(/lib/firmware/bcm/AP6236/Wi-Fi/fw_bcm43436b0.bin) Firmware path

(/lib/firmware/bcm/AP6236/Wi-Fi/nvram_ap6236.txt) NVRAM path

#HCI串口配置也要选择

-> Device Drivers

-> Network device support

-> Wireless LAN

->Bluetooth subsystem support

->Bluetooth device drivers

HCI USB driver

[*] Broadcom protocol support

-> Networking support (NET [=y])

-> Bluetooth subsystem support (BT [=y])

-> Bluetooth device drivers

HCI USB driver

[*] Broadcom protocol support

PPP点对点拨号:

所有PPP相关的都选中

Prompt: PPP (point-to-point protocol) support

Location:

-> Device Drivers

(1) -> Network device support (NETDEVICES [=y])

蓝牙和HCI子系统

-> Networking support (NET [=y])

-> Bluetooth subsystem support (BT [=y])

(1) -> Bluetooth device drivers

--- RF switch subsystem support

[*] RF switch input support

Generic rfkill regulator driver

GPIO RFKILL driver

常见的编译错误及解决方法

其他信息

内核版本

来源官方 imx_4.1.15_2.0.0_ga 分支

# Clone

git://git.freescale.com/imx/linux-imx.git

http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值