Firefly开源社区
标题:
在开发板上编译内核总是出错 Syntax error: "(" unexpected 求解答
[打印本页]
作者:
uu123114
时间:
2015-2-7 01:10
标题:
在开发板上编译内核总是出错 Syntax error: "(" unexpected 求解答
CC drivers/usb/storage/option_ms.o
CC drivers/usb/storage/usual-tables.o
LD drivers/usb/storage/usb-storage.o
LD drivers/usb/storage/ums-alauda.o
LD drivers/usb/storage/ums-datafab.o
LD drivers/usb/storage/ums-cypress.o
LD drivers/usb/storage/ums-eneub6250.o
LD drivers/usb/storage/ums-freecom.o
LD drivers/usb/storage/ums-isd200.o
LD drivers/usb/storage/ums-jumpshot.o
LD drivers/usb/storage/ums-karma.o
LD drivers/usb/storage/ums-onetouch.o
LD drivers/usb/storage/ums-sddr09.o
LD drivers/usb/storage/ums-sddr55.o
LD drivers/usb/storage/ums-usbat.o
LD drivers/usb/storage/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
LD pie/libpie_stage1.o
OBJCOPY pie/pie_stage1.o
OBJCOPY pie/libpie_stage2.o
LD pie/pie_stage2.o
OBJCOPY pie/pie_stage3.o
LD pie/pie.elf
OBJCOPY pie/pie.bin
OBJCOPY pie/pie.bin.o
LD pie/built-in.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
KSYM .tmp_kallsyms1.o
KSYM .tmp_kallsyms2.o
LD vmlinux
SORTEX vmlinux
SYSMAP System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
LZO arch/arm/boot/compressed/piggy.lzo
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/decompress.o
CC arch/arm/boot/compressed/string.o
SHIPPED arch/arm/boot/compressed/hyp-stub.S
SHIPPED arch/arm/boot/compressed/fdt_rw.c
SHIPPED arch/arm/boot/compressed/fdt.h
SHIPPED arch/arm/boot/compressed/libfdt.h
SHIPPED arch/arm/boot/compressed/libfdt_internal.h
SHIPPED arch/arm/boot/compressed/fdt_ro.c
SHIPPED arch/arm/boot/compressed/fdt_wip.c
SHIPPED arch/arm/boot/compressed/fdt.c
CC arch/arm/boot/compressed/atags_to_fdt.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/hyp-stub.o
CC arch/arm/boot/compressed/fdt_rw.o
CC arch/arm/boot/compressed/fdt_ro.o
arch/arm/boot/compressed/atags_to_fdt.c: In function ‘merge_fdt_bootargs’:
arch/arm/boot/compressed/atags_to_fdt.c:96:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC arch/arm/boot/compressed/fdt_wip.o
CC arch/arm/boot/compressed/fdt.o
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/ashldi3.o
AS arch/arm/boot/compressed/piggy.lzo.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
/home/firefly/Downloads/firefly/mkkrnlimg: 1: /home/firefly/Downloads/firefly/mkkrnlimg: Syntax error: "(" unexpected
make: *** [kernel.img] 错误 2
firefly@firefly:~/Downloads/firefly$
作者:
pqy
时间:
2015-2-7 09:21
mkkrnlimg是x86的,开发板是arm,当然不能运行
作者:
Evelo
时间:
2015-2-16 13:29
我今天也碰到了同样的问题,如下是我的解决方案,
git clone
https://bitbucket.org/cm3066/android_vendor_rockchip_rk2918_tools
cd 到里面 然后
gcc mkkrnlimg.c -o mkkrnlimg
cp mkkrnlimg 到原来的Firefly kernel的根目录把原来的替换掉
但是这样编译后还是会有报错,这是因为老版本的需要多传递一个 -a参数
修改arch/arm/Makefile
在每个mkkrnlimg后面加上-a参数就可以了
之后编译报错resource_tool可以忽略,继续按照之后的步骤就可以了
作者:
zadeh
时间:
2015-10-18 20:53
請問樓主後來有解掉這個問題了嗎?
因為我也遇到相同問題.
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1