|
無法compile rockchip linux kernel image
发表于 2017-5-27 08:57:37
浏览:9314
|
回复:2
打印
只看该作者
[复制链接]
楼主
你好
我買了RK3288的板子, 我是在MacOS上裝Parallel , 然後在Parallel上裝Ubuntu 16.04
我依照 http://wiki.t-firefly.com/index. ... 288/Build_kernel/en 的步驟安裝
詳細安裝步驟如下:
===== prepare working environment on ubuntu 16.04 =====
$ mkdir /home/linweiting/rk3288
===== get linux arm gcc compiler and library =====
$ sudo apt-get install gcc-arm-linux-gnueabihf build-essential lzop libncurses5-dev libssl-dev
$ sudo apt-get install libc6:i386
===== get google android arm compiling toolchain and assign bash shell variables for compiling =====
$ cd ~/rk3288
$ mkdir toolchain
$ cd toolchain
$ wget https://android.googlesource.com ... oid-4.4.2_r1.tar.gz
$ tar zxvf android-4.4.2_r1.tar.gz
$ vim .bashrc
export ARCH=arm
export CROSS_COMPILE=/home/linweiting/rk3288/toolchain/bin/arm-eabi-
===== install firefly mkbootimg utility to /usr/local/bin/ =====
$ cd ~/rk3288/
$ git clone https://github.com/neo-technologies/rockchip-mkbootimg.git
$ cd rockchip-mkbootimg
$ make && sudo make install
===== get rockchip linux kernel source code =====
$ cd ~/rk3288/
$ git clone https://bitbucket.org/T-Firefly/firefly-rk3288-kernel.git
===== compile rockchiplinux kernel image =====
$ cd ~/rk3288/firefly-rk3288-kernel
$ make firefly-rk3288-linux_defconfig
結果出現下面錯誤
linweiting@ubuntu:~/rk3288/firefly-rk3288-kernel$ make firefly-rk3288-linux_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2503:0:
scripts/kconfig/menu.c: In function 'get_symbol_str':
scripts/kconfig/menu.c:567:18: warning: 'jump' may be used uninitialized in this function [-Wmaybe-uninitialized]
jump->offset = r->len - 1;
^
scripts/kconfig/menu.c:528:19: note: 'jump' was declared here
struct jump_key *jump;
^
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
而 .config 也有產生, 只是不確定上面的是算warning還是算error
於是我繼續做下一個動作,linweiting@ubuntu:~/rk3288/firefly-rk3288-kernel$ make -j8 firefly-rk3288-linux.img
結果出現下面錯誤
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/generated/uapi/linux/version.h
HOSTCC scripts/pnmtologo
HOSTCC scripts/kallsyms
HOSTCC scripts/sortextable
HOSTCC scripts/conmakehash
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/dtc/checks.o
CHK include/generated/utsrelease.h
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/dtc/data.o
CC scripts/mod/devicetable-offsets.s
MKELF scripts/mod/elfconfig.h
In file included from scripts/sortextable.c:162:0:
scripts/sortextable.c: In function 'main':
scripts/sortextable.h:158:3: warning: 'relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
memset(relocs, 0, relocs_size);
^
scripts/sortextable.h:104:6: note: 'relocs_size' was declared here
int relocs_size;
^
In file included from scripts/sortextable.c:160:0:
scripts/sortextable.h:158:3: warning: 'relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
memset(relocs, 0, relocs_size);
^
scripts/sortextable.h:104:6: note: 'relocs_size' was declared here
int relocs_size;
^
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTCC scripts/dtc/dtc.o
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
HOSTCC scripts/dtc/flattree.o
GEN include/generated/bounds.h
HOSTCC scripts/dtc/fstree.o
CC arch/arm/kernel/asm-offsets.s
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/mod/file2alias.o
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/dtc/util.o
HOSTLD scripts/dtc/dtc
HOSTLD scripts/mod/modpost
make[1]: *** No rule to make target 'arch/arm/boot/dts/firefly-rk3288-linux.dtb'. Stop.
/home/linweiting/rk3288/firefly-rk3288-kernel/arch/arm/Makefile:302: recipe for target 'firefly-rk3288-linux.dtb' failed
make: *** [firefly-rk3288-linux.dtb] Error 2
make: *** Waiting for unfinished jobs.... |
|