cubieboard / cubieboard.org

as cubieboard.org publich Iusse collection
Mozilla Public License 2.0
0 stars 0 forks source link

building error with mali module #5

Open yankli opened 10 years ago

yankli commented 10 years ago

Hi ,

Could you please help me with solving this building issues? (probably with mali module) I tried to follow the steps on this link (http://docs.cubieboard.org/tutorials/cb2/development/building_your_own_android_image) to build android image for cubieboard2, every thing went not bad till compiling mali module, I came across an error with following logs:

      CC [M]  /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali/DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump/common/ump_kernel_common.o
       arm-linux-gnueabi-gcc: error: directory: No such file or directory

I tried both the the souce code packages cubieboard2_android_SDK_v1.03 and cubieboard2_android_SDK_v1.05 ,the same error always happened. If I removed the whole "mali" folder and skipped building this module, I can successfully finished the building, and I can see "INFO: build u-boot OK. INFO: build rootfs ... INFO: skip make rootfs for android INFO: build rootfs OK. INFO: build lichee OK. "

So to summarize, I guess problem lied on the mali source code, could you kindly help check it?

Thanks!

Brs

building logs:

MODPOST 1 modules make[1]: Leaving directory /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3' cp example.ko /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/output/lib/modules/3.3/ make: Leaving directory/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/example' build nand library /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/nand/lib build nand with existing library make: Entering directory /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/nand' /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3 cp libnand libnand.a make -C /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3 M=/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/nand make[1]: Entering directory/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3' LD [M] /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/nand/nand.o Building modules, stage 2. MODPOST 1 modules LD [M] /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/nand/nand.ko make[1]: Leaving directory /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3' cp nand.ko /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/output/lib/modules/3.3/ make: Leaving directory/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/nand' make: Entering directory /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali' /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3 make -C DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump CONFIG=ca8-virtex820-m400-1 BUILD=release KDIR=/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3 make[1]: Entering directory/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali/DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump' make -C /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3 M=/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali/DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump modules make[2]: Entering directory /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3' CC [M] /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali/DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump/common/ump_kernel_common.o arm-linux-gnueabi-gcc: error: directory: No such file or directory arm-linux-gnueabi-gcc: error: directory": No such file or directory make[3]: *** [/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali/DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump/common/ump_kernel_common.o] Error 1 make[2]: *** [_module_/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali/DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump] Error 2 make[2]: Leaving directory/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3' make[1]: * [all] Error 2 make[1]: Leaving directory `/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali/DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump' make: * [build] Error 2 make: Leaving directory`/home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali' ERROR: build kernel Failed yank@yank-ThinkPad-T420:~/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee$ vi /home/yank/work/linux-sunxi/android/a20_android4.2.2_v1.3/lichee/linux-3.3/modules/mali/DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump/common/ump_kernel_common.c

yankli commented 10 years ago

I find out the root cause is:

modules/mali/DX910-SW-99002-r3p2-01rel0/driver/src/devicedrv/ump/Kbuild LIne 29 SVN_REV := ... ... if you get source code from a tar.gz package, not from git, LINE 29 will cause somthing wrong. simply comment out line29, then set any value to SVN_REV.

tobewalker commented 10 years ago

Fine,if you have any problem ,you can send email to parker@cubietech.com.

binsgit commented 9 years ago

According to http://cubie.cc/forum.php?mod=viewthread&tid=868 The following line will be compatible for both Ubuntu 12 and Ubuntu 14. Wish it helpful.

SVN_REV := $(shell ((svnversion | grep -Eqv "exported|Unversioned directory" && echo -n 'Revision: ' && svnversion) || git svn info | sed -e 's/$$$$/M/' | grep '^Revision: ' || echo ${MALI_RELEASE_NAME}) 2>/dev/null | sed -e 's/^Revision: //')