# LinuxDemo **Repository Path**: bin-watson/LinuxDemo ## Basic Information - **Project Name**: LinuxDemo - **Description**: 嵌入式 Linux 学习例程 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-11 - **Last Updated**: 2026-01-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Linux 学习例程 ## 1. I.MX6ULL 使用说明 1. 安装开发工具 - 安装 [uuu](https://github.com/nxp-imx/mfgtools) 工具,通过 USB-OTG 接口将固件下载到 SD 卡或者 EMMC 中; - Ubuntu-22.04 系统可以直接通过 `apt-get install uuu` 安装 uuu 工具; - 安装 I.MX6ULL 平台的裸机开发交叉编译工具,需要安装 `arm-none-eabi` 交叉编译器[下载地址]([Downloads | GNU Arm Embedded Toolchain Downloads – Arm Developer](https://developer.arm.com/downloads/-/gnu-rm)); - 安装 I.MX6ULL 平台的 Linux 环境交叉编译工具,根据使用的 Linux 版本进行选择,例如:Linux4.19 可以使用 [gcc-linaro-4.9-2017.01.tar.xz](https://releases.linaro.org/components/toolchain/gcc-linaro/latest-4/gcc-linaro-4.9-2017.01.tar.xz); 2. 编译裸机程序 - imx6ull 开发板 1. `./imx-build.sh 001_led_asm` 编译汇编版本 LED 输出实验; 2. 编译生成的 led_asm.bin 文件位于 `.build/` 目录下; 3. 在 VSCode 环境下通过 `Ctrl + Shift + P` 运行 Run Task 的 flash 可以直接将 `led_asm.imx` 文件烧录到 imx6ull 开发板的 SD 卡或者 EMMC 中; ## 2. 例程说明 - I.MX6ULL 基于正点原子的 **ALPHA** 开发板; ### 2.1. 裸机实验 01. 汇编版本 LED 输出实验:[基于 IMX6ULL 的 LED 汇编裸机实验](./imx6ull/001_led_asm) 02. C语言版本 LED 控制实验:[基于 IMX6ULL 的 LED C语言裸机实验](./imx6ull/002_ledc_sdk) 03. C语言版本 KEY 控制 BEEP 实验:[基于 IMX6ULL 的按键输入控制蜂鸣器裸机实验](./imx6ull/003_key_input) 04. C语言版本系统配置实验:[基于 IMX6ULL 的系统时钟配置裸机实验](./imx6ull/004_clk) 05. C语言版本 按键中断 实验:[基于 IMX6ULL 的按键输入中断裸机实验](./imx6ull/005_interrupt) 06. C语言版本 按键中断消抖 定时器实验:[基于 IMX6ULL 的 按键中断消抖 裸机实验](./imx6ull/006_key_filter) 07. C语言版本 通用定时器 实验:[基于 IMX6ULL 的 通用定时器 裸机实验](./imx6ull/007_highpreci_delay) 08. C语言版本 uart串口 实验:[基于 IMX6ULL 的 uart串口 裸机实验](./imx6ull/008_uart) 09. C语言版本 printf 实验:[基于 IMX6ULL 的 printf 裸机实验](./imx6ull/009_printf) 10. C语言版本 lcd屏幕 实验:[基于 IMX6ULL 的 lcd屏幕 裸机实验](./imx6ull/010_lcd) 11. C语言版本 rtc 实验:[基于 IMX6ULL 的 rtc 裸机实验](./imx6ull/011_rtc) 12. C语言版本 i2c 实验:[基于 IMX6ULL 的 i2c 裸机实验](./imx6ull/012_i2c) 13. C语言版本 lcd触摸屏 实验:[基于 IMX6ULL 的 lcd触摸屏 裸机实验](./imx6ull/013_touchscreen) 14. C语言版本 PWM LCD背光 实验:[基于 IMX6ULL 的 PWM LCD背光 裸机实验](./imx6ull/014_pwm_lcdbacklight)