1、内核中这个KERN_INFO定义方法是什么意思?
static char banner[] __initdata = KERN_INFO "S3C2410 Watchdog Timer/n";
2、我用arm-linux-gcc4.3.2的编译器编译vivi的时候出现如下错误:
①:cc1: error: unrecognized command line option "-mapcs-32"
cc1: error: unrecognized command line option "-mshort-load-bytes" ②:
答: 经测试发现,出错时使用的版本是3.4.1,4.1.2,4.3.2,对于VIVI来说,版本过高,改为2.95.3则一切正常。 (为了以后调试方便,一共建立了2.95.3,3.4.4, 3.3.2,4.1.2, 4.3.2三个版本的arm-linux-gcc) |
make[2]: Leaving directory `/work/study/vivi-/lib'
make[1]: Leaving directory `/work/study/vivi-/lib'
/usr/local/arm/2.95.3/bin/arm-linux-ld -v -Tarch/vivi.lds -Bstatic /
/
init/main.o init/version.o lib/lib.o /
drivers/serial/serial.o drivers/mtd/mtd.o / lib/priv_data/priv_data.o /
-o vivi-elf -L/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3 -lgcc -lc
GNU ld version 2.11.2 (with BFD 2.11.2)
/usr/local/arm/2.95.3/bin/arm-linux-ld: cannot open linker script file arch/vivi.lds: ?????????
make: *** [vivi] 错误 1
答:host:fedora 9.0 toolchains:2.95.3 vivi:0.1.5 |