当前位置:网站首页>Imxq Freescale yocto project compilation record
Imxq Freescale yocto project compilation record
2022-06-30 06:40:00 【Mnnk】
Reference resources : IMX6Q Environment building 、 install Yocto Package and compilation
Compiling the kernel
- To configure menuconfig Instructions :
bitbake -c menuconfig -v linux-imx- Compile separately kernel、 modular 、 Device tree
bitbake -c compile -f -v linux-imx
bitbake linux-imx -c compile_kernelmodules -f -v
bitbake -c deploy -f -v linux-imx- To compile the file system, use the following general instructions
bitbake core-image-minimal- Compile separately u-boot
bitbake -c compile -f -v u-boot-imx
bitbake -c deploy -f -v u-boot-imx
Here's how to use Ubuntu 16.04 compile 3.10.53 Version encountered ERROR:
1.
| In file included from /home/okletsgo/work/tmp/fsl-release-bsp/build/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/ncurses-5.9/ncurses/curses.priv.h:283:0,
| from ../ncurses/lib_gen.c:19:
| _15038.c:1364:15: error: expected ')' before 'int'
| ../include/curses.h:1906:56: note: in definition of macro 'mouse_trafo'
| #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
solve : The solution is to compile from the source code ncurses6.0 compile lib_gen.c Error reporting
Search for curses.tail file . The comments in this file "/* generated /" Delete .
extern NCURSES_EXPORT(bool) mouse_trafo (int, int*, bool); /* generated */
Then delete the file curses.h, To compile .
argp-help.o: In function `argp_fmtstream_write':
argp-help.c:(.text+0x1df0): multiple definition of `argp_fmtstream_write'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x7a0): first defined here
argp-help.o: In function `argp_fmtstream_puts':
argp-help.c:(.text+0x1e40): multiple definition of `argp_fmtstream_puts'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x860): first defined here
argp-help.o: In function `argp_fmtstream_putc':
argp-help.c:(.text+0x1eb0): multiple definition of `argp_fmtstream_putc'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x800): first defined here
reason : argp-fmtstream.h in #define ARGP_FS_EI extern inline
extern inline stay GNU89 and C99 The usage is different in the standard , Use here GNU89 Standard compilation
solve :
vim /home/okletsgo/work/tmp/fsl-release-bsp/build/tmp/work/x86_64-linux/cross-localedef-native/2.20-r0/build/Makefile
Add compilation parameters -std=gnu89
Can be cross-localedef-native Extract and compile , Generate argp-fmtstream.o argp-help.o Then replace it
other :
linux Source code :/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.53-r0/git
Device tree :/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.53-r0/git/arch/arm/boot/dts
u-boot Source code :/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/work/imx6qsabresd-poky-linux-gnueabi/u-boot-imx/2014.04-r0/git
rootfs:/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/work/imx6qsabresd-poky-linux-gnueabi/fsl-image-gui/1.0-r0/rootfs
cross-gcc-4.8.2: /media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/x86_64-linux/usr/bin/cortexa9-vfp-neon-poky-linux-gnueabi
u-boot Compile separately :
vim build_u-boot.sh
#!/bin/bash
export ARCH=arm
export CROSS_COMPILE=/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/x86_64-linux/usr/bin/cortexa9-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-
export CC="/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/x86_64-linux/usr/bin/cortexa9-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/imx6qsabresd"
make mx6qsabresd_config
make CC="$CC"
./build_u-boot.sh
The device tree is compiled separately :
export ARCH=arm
export CROSS_COMPILE=/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/x86_64-linux/usr/bin/cortexa9-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-
export CC="/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/x86_64-linux/usr/bin/cortexa9-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/imx6qsabresd"
make imx6q-sabresd.dtb
kernel Compile separately :
export ARCH=arm
export CROSS_COMPILE=/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/x86_64-linux/usr/bin/cortexa9-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-
export CC="/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/x86_64-linux/usr/bin/cortexa9-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/media/okletsgo/other/freescale/fsl-arm-yocto-bsp-3.10.53/build-fb/tmp/sysroots/imx6qsabresd"
make imx_v7_defconfig
make zImage -j4 CC="$CC"
Use mfg-tools When burning an image , USB_OTG_ID Lower your feet , Otherwise it will show "No device Connected"
边栏推荐
- Wuenda coursera deep learning course
- Picture.....
- 手机开户一般哪个证券公司好?还有,在线开户安全么?
- INI analyse les documents d'apprentissage
- Why does the verification code not refresh when clicked
- ES6 deconstruction assignment
- The 40g high-efficiency cloud disk purchased by Alibaba cloud is only 20g attached
- 图像处理7-图像增强
- ETL为什么经常变成ELT甚至LET?
- 583. deleting two strings - Dynamic Planning
猜你喜欢

C语言:练习题三

Use and principle of completionservice (source code analysis)

1.3 - Code System

Bat 使用细节2

Analysis of startup process of gazebo multi computer simulation

Wechat applet mall project

深度学习---三好学生各成绩所占权重问题(3)

圖像處理7-圖像增强

Detailed description of methods in the interface

Rising posture series: fancy debugging information
随机推荐
A small template (an abstract class, a complete process is written in a method, the uncertain part is written in the abstract method, and then the subclass inherits the abstract class, and the subclas
图像处理7-图像增强
880. decoded string at index
Image processing 7- image enhancement
基础刷题(一)
Using C language pure for loop to implement ilovey
1.7 - CPU performance indicators
Base64 explanation: playing with pictures Base64 encoding
High performance distributed execution framework ray
[untitled]
力扣------替换空格
Usage of case, casez and casex statements in Verilog
RT thread Kernel Implementation (III): implementation of idle threads and blocking delay
Use and principle of completionservice (source code analysis)
Notes: environment variables
Judge whether H5 is in wechat environment or enterprise wechat environment at both ends
Force buckle ------ replace blank space
File transfer protocol, FTP file sharing server
Fastapi learning Day1
手机开户一般哪个证券公司好?还有,在线开户安全么?