2522 views|1 replies

253

Posts

0

Resources
The OP
 

Compile imx6-ek200 with buildroot [Copy link]

Host platform: UBUNTU14.04
Hardware platform: Mingyuan Zhirui MY-IMX6-EK200
Compiler: gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
Buildroot version: buildroot-2017.02.5.tar.bz2



1. Unzip
$ mkdir ~/IMX6/
$ tar xvf ~/IMX6/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz

$ mkdir ~/buildroot
$ cd ~/buildroot
$ tar jxvf buildroot-2017.02.5.tar.bz2
$ cd buildroot-2017.02.5/

2. Configure
$ make imx6q-sabresd_defconfig
$ make menuconfig

Use external compiler gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
Toolchain--->
Set Toolchain type to External toolchain
Toolchain to Custom toolchain
Toolchain The path is /home/linyn/IMX6/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/.
Select

  • Toolchain has C++ support?

    Pay attention to the setting of External toolchain kernel headers series (3.1.x). Select the kernel version number of the compiler tool. The file
    ~/IMX6/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/libc/usr/include/linux/version.h
    contains the version number (each compiler tool has this file). It is in decimal. You can see the version number by converting it to hexadecimal. For example, my version.h is like this
    #define LINUX_VERSION_CODE 196865
    #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
    The hexadecimal value of version 196609 is 0x30101, so the version number is 3.01.01, which is 3.0.1, so select 3.1.x here.
    See the picture "Configuration 1"

    System configuration--->
    (myzr) System hostname Set the host name
    /dev management (Dynamic using devtmpfs + mdev) Kernel configuration supports medv, and the system also configures mdev
    Run a getty (login prompt) after boot --->
    (ttymxc0) TTY port Set the login serial port
    Baudrate (115200) ---> Baud rate

    Do not compile kernel
    Kernel--->
    [] Linux Kernel Unselected

    Do not compile U-BOOT
    Bootloaders --->
    [] U-Boot Unselected

    $ make -j4 // Compile with 4 threads
    The result is output/images/rootfs.tar
    See the pictures "Result 1" and "Result 2" (Result 2 is the error reported by the kernel without compilation, regardless of it) Finally, modify the vim etc/issue

    in rootfs Welcome to MY-IMX6-EK200 vim etc/profile if [ "$PS1" ]; then if [ "`id -u`" -eq 0 ]; then export PS1='\u@\h:\w\# ' else export PS1='\u@\h:\w\$ ' fi fi Finally compress and burn it in, log in with root, no password by default VFS: Mounted root (ext3 filesystem) on device 179:2. devtmpfs mounted: Freeing unused kernel memory: 396K (809c6000 - 80a29000) Starting logging: OK Starting mdev... Initializing random number generator... random: dd urandom read with 47 bits of entropy available done. Starting network: OK Welcome to MY-IMX6-EK200 myzr login: root root@myzr :~# root@myzr :~# root@myzr :~# ls root@myzr :~# ls / bin lib lost+found opt run tmp






























    dev lib32 media proc sbin usr
    etc linuxrc mnt root sys var

  • This post is from Test/Measurement

    Latest reply

    It also comes with SATA and minipcie, I think, the board is good!   Details Published on 2021-11-4 23:42
     
     

    7422

    Posts

    2

    Resources
    2
     

    It also comes with SATA and minipcie, I think, the board is good!

    This post is from Test/Measurement
    Personal signature

    默认摸鱼,再摸鱼。2022、9、28

     
     
     

    Guess Your Favourite
    Just looking around
    Find a datasheet?

    EEWorld Datasheet Technical Support

    Featured Posts
    Homemade STEVAL-IPM05F 3Sh board: FOC motor control 400V/8A non-sensing/sensing Hall/sensing encoder and other reference programs...

    This post was last edited by music_586 on 2019-4-4 19:06 This content was originally created by EEWORLD forum user musi ...

    C language uses binary tree to parse polynomials and evaluate

    It mainly realizes the analysis of polynomial data calculation. If there is a need to make a simple calculator based on ...

    Zhouyi Compass Simulation Experiment 2——Environment and Routine Analysis

    Zhouyi Compass Simulation Experiment 2——Environment and Routine Analysis In simulation experiment 1 (https://bbs.eewor ...

    【Development and application based on NUCLEO-F746ZG motor】13. Parameter configuration - USART3 configuration

    The function of this serial port on the development board is to communicate with ST-LINK, and then connect ST_LINK2 to t ...

    [EEWorld invites you to play disassembly] PISEN fast charging power bank 10500mAh 22.5W

    Quote: Thank you EEWorld for inviting you to the disassembly (fourth issue): popular power bank disassembly event. As w ...

    Please tell me why this machine often burns the starting resistor at the customer's place

    Please tell me why the resistor burned out and how to fix it? 627875627874627873

    [Flower carving hands-on] Interesting and fun music visualization series of small projects (26) - LED hypercube

    This post was last edited by eagler8 on 2022-10-5 08:59 I had the urge to do a series of topics on sound visualization. ...

    Is it possible to perform socket communication without IP and port number?

    When using socket communication, whether it is internal communication within the local machine or communication betwee ...

    Development Background and Advantages of SiC Power Devices

    SiC power components have higher withstand voltage, lower on-resistance, can operate at higher speeds, and can operate a ...

    【Digi-Key Follow me Issue 2】Task Collection

    I got the board quite late, and after completing the task, I got busy with a lot of other things so I didn't have time t ...

    Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list