|
Posted at 6/13/2018 00:04:22
Only Author
3#
Last edited by ueue In 6/13/2018 09:53 Editor
Thank you Dan,
However my board is RK3288, and I tried following this guide: http://en.t-firefly.com/doc/product/info/253.html
It also gave almost the same results.
- kernel$ make rk3288-firefly-linux.img -j8
- CHK include/config/kernel.release
- CHK include/generated/uapi/linux/version.h
- CHK include/generated/utsrelease.h
- make[1]: 'arch/arm/boot/dts/rk3288-firefly-linux.dtb' is up to date.
- make[1]: 'include/generated/mach-types.h' is up to date.
- CHK include/generated/timeconst.h
- CHK include/generated/bounds.h
- CHK include/generated/asm-offsets.h
- CALL scripts/checksyscalls.sh
- CHK include/generated/compile.h
- CHK kernel/config_data.h
- Kernel: arch/arm/boot/Image is ready
- Kernel: arch/arm/boot/Image is ready
- Kernel: arch/arm/boot/zImage is ready
- /bin/sh: 1: ./scripts/mkkrnlimg: Exec format error
- arch/arm/Makefile:382: recipe for target 'kernel.img' failed
- make: *** [kernel.img] Error 2
Copy the code
The following code are my operations. (Using gcc-5-arm-linux-gnueabif and gcc-5-aarch64-linux-gnu)
32bit-app setting
- $ sudo dpkg --add-architecture i386
- $ sudo apt update
Copy the code Environment setting
- $ sudo apt install git gnupg flex bison gperf build-essential zip tar curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib cmake tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 lzop
- $ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
- $ sudo apt install gcc-5-arm-linux-gnueabihf gcc-5-aarch64-linux-gnu device-tree-compiler lzop libncurses5-dev libssl1.0.0 libssl-dev
Copy the code- $ dpkg -L gcc-5-arm-linux-gnueabihf
- $ sudo cp /usr/bin/arm-linux-gnueabihf-gcc-5 /usr/bin/arm-linux-gnueabihf-gcc
- $ sudo cp /usr/bin/aarch64-linux-gnu-gcc-5 /usr/bin/aarch64-linux-gnu-gcc
Copy the code Compile Kernel
- $ git clone -b firefly https://github.com/FireflyTeam/kernel.git
- $ cd kernel
- $ export ARCH=arm
- $ export CROSS_COMPILE=arm-linux-gnueabihf-
- $ make firefly_linux_defconfig
- $ make rk3288-firefly-linux.img -j8
Copy the code
|
|