Mingyuan Zhirui MY-SAMA5 Linux-3.18 Compilation Manual (3)
[Copy link]
[Continued from the previous chapter Mingyuan Zhirui MY-SAMA5 Linux-3.18 Compilation Manual (2)] 5.2.3 Compile kernel modules 1) Execute the kernel module compilation command $ make ARCH=arm modules
(, downloads: 0)
2) Kernel module compilation is completed
(, downloads: 0)
3) Install the kernel module to the specified directory $ make ARCH=arm modules_install INSTALL_MOD_PATH=./modules
(, downloads: 0)
4) Package the kernel module $ tar cjf modules_mysama5ek200.tar.bz2 modules/*
(, downloads: 0)
5) Module package$ ls modules_mysama5ek200.tar.bz2
(, downloads: 0)
6 File system compilation6.1 Notes and instructionsa) The download volume during the original compilation process is about 4G. (Hint: You can use some of the files we downloaded to reduce the download volume and save time, which will be mentioned in 7.4). b) The network connection of the compilation host should preferably use a network that can access www.fackbook.com, otherwise it may be restricted by the domestic firewall and unable to download the software packages required for compilation. c) The time required for the first compilation varies from 2 hours to indefinite time depending on the network status and the configuration of the compilation host (according to rough statistics, excluding the download time, it took about 100 minutes to compile the QT5 system on a host with 16 cores CPU and 16G memory.) Customers should decide whether to compile the file system by themselves or use the file system we provide based on the actual situation. 6.2 Preparation before compilation6.2.1 PrepareYocto compilation environmentNote, Yocto compilation depends on some software packages, so they need to be installed on the development host. $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat
(, downloads: 0)
$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc
(, downloads: 0)
$ sudo apt-get install uboot-mkimage
(, downloads: 0)
6.2.2 Prepare source code1) Download source code Source code package file name:atmel_fido.tar.bz2 2) Create Yocto working directory
(, downloads: 0)
3) Copy source code to development host In this step, copy source code to Yocto working directory (ie: /home/myzr/yocto) in an appropriate way. You can also refer to "2.3 Common Function Demonstration". 4) Unzip the source packageEnter the user's home directory $ cd ~/yocto
(, downloads: 0)
Execute the decompression command $ tar jxf atmel_fido.tar.bz2
(, downloads: 0)
6.2.3 Prepare the software package1) Create the "/opt/yocto" directory to store the software package$ sudo mkdir /opt/yocto
(, downloads: 0)
$ sudo chmod 777 /opt/yocto
(, downloads: 0)
2) Download the software package Download the yocto software package from the network disk. The relative path of the software package is: yocto/downloads, download downloads to Windows. 3) Copy the software package to the development host Copy the downloaded "downloads" directory to "/opt/yocto" of the development host. 6.3 Compiling the file system 6.3.1 Configuration before compilation 1) Prepare the compilation configuration file file directory: conf. Download the conf directory to Windows. 2) Enter the poky directory $ cd ~/yocto/atmel_fido/poky/
(, downloads: 0)
$ source oe-init-build-env build-atmel
(, downloads: 0)
3) Initialize the build directory $ source oe-init-build-env build-atmel 4) Copy the build configuration file to the build directory Copy the conf directory to /home/myzr/yocto/poky/build-atmel. 6.3.2 Compile QT5 file system$ bitbake atmel-qt5-demo-image 404316 Note: Excluding the download time, the entire compilation process takes about 1 hour on a host with 16-core CPU and 16G memory. Target files You can find the target files generated by our compilation in the ./tmp/deploy/images/sama5d3xek/ directory. 6.3.3 CompileQT5 cross-compilation tool$ bitbake meta-toolchain-qt5
(, downloads: 0)
Target file You can find the target files we compiled in the ./tmp/deploy/images/sama5d3xek/ directory.
|