In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to compile the kernel for pcduino. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
Software environment
Lubuntu 13.10 amd64 / Ubuntu Server 13.10 amd64
Virtual machine 20 GB hard disk, 1 GB memory
For this tutorial, I installed lubuntu/ubuntu several times and verified each command to ensure that a working kernel was compiled.
Install dependent libraries / tools
Open the console and execute
Sudo apt-get install-y g++-arm-linux-gnueabihf vim make u-boot-tools libusb-1.0-0-dev openssh-server pkg-configsudo apt-get install-y texinfo ccache zlib1g-dev gawk bison flex gettext uuid-dev lib32stdc++6 curl wget ncurses-dev
Note: INTEL 32-bit ubuntu does not need to be installed
Lib32stdc++6
Library
Download kernel source code
It is recommended to download pcduino kernel source code from Baidu network disk.
All of them are packaged for the code base of the github official website. The .git directory has been deleted in the non-git version, and the source code content is exactly the same.
Download from github (it is recommended to use it only if the network speed is available)
Git clone https://github.com/pcduino/kernel.gitcd kernelgit submodule initgit submodule update # will download Quanzhi's sun4i kernel source code. Wait and install the cross-compilation tool.
According to http://linux-sunxi.org/Toolchain
The cross-compilation tools installed under ubuntu are
Apt-get install gcc-arm-linux-gnueabihf starts compiling
Turn on shell and start consuming cpu!
Tar xf pcduino_kernel_20131127_nogit.gz # if it is downloaded by Baidu network disk, it needs to be decompressed first, but cd kernelmake cleancd sunxi-toolsmake cleancd. / configure pcduinomake hwpack is ignored when downloaded by git.
The final output is similar.
INSTALL output/lib/firmware/mts_gsm.fw INSTALL output/lib/firmware/mts_edge.fw INSTALL output/lib/firmware/edgeport/boot.fw INSTALL output/lib/firmware/edgeport/boot2.fw INSTALL output/lib/firmware/edgeport/down.fw INSTALL output/lib/firmware/edgeport/down2.fw INSTALL output/lib/firmware/edgeport/down3.bin INSTALL output/lib/firmware/whiteheat_loader.fw INSTALL output/lib/firmware/whiteheat.fw INSTALL output/lib/firmware/keyspan_pda/keyspan_pda FW INSTALL output/lib/firmware/keyspan_pda/xircom_pgs.fw DEPMOD 3.4.29+make [1]: Leaving directory `/ home/wendal/kernel/linux-sunxi'cd / home/wendal/kernel/build/sun4i_defconfig-linux & & arm-linux-gnueabihf-objcopy-R. note.gnu.build-id-S-O binary vmlinux bImage#git submodule init#git submodule update cedarx-libsscripts/mk_hwpack.sh / home/wendal/kernel/output/pcduino_a10_hwpack_20131215.tar.xzDebian/Ubuntu hwpackDone.
The compiled package is in the output directory with a date tag, such as pcduino_a10_hwpack_20131215.tar.xz
Custom kernel
Like most A10 boards, you can modify 2 configuration files (ps: android and a partition file)
The first is the kernel configuration file, which is the .config file commonly used when compiling the kernel.
# can be found after successful compilation, but not before compilation, so it can be seen that this is not the real configuration file find-name .config > >. / build/sun4i_defconfig-linux/.config# the real configuration file is in find-name sun4i_defconfig > >. / patch/linux-sunxi/arch/arm/configs/sun4i_defconfig
Therefore, you need to configure it in build/sun4i_defconfig-linux/ first, and then overwrite it back
Cd build/sun4i_defconfig-linux/make menuconfig#...... Configure the option you need #. # and then overwrite the configuration directly, otherwise the next build will still be the old cp .config. /.. / patch/linux-sunxi/arch/arm/configs/sun4i_defconfig
The other is the configuration of uboot, this file has a lot of good things, see the documentation Fex guide
Sunxi-boards/sys_config/a10/pcduino.fex after reading the above, do you have any further understanding of how to compile the kernel for pcduino? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.