도와주세요!!
글 수 15,339
2007.01.10 16:43:57 (*.73.231.28)
6974
현재 디바이스 드라이버 파일을 작성해서 커널에 적재해보려고 하는데 에러가 납니다..
유영창님 책을 보고 따라 하고 있는데 Config in을 수정하고 다음 Makefile 수정한뒤
make menuconfig에 체크 하고 make clean ,make dep, make zImage를 하면
에러가 납니다. 에려내용은
ake[2]: Leaving directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/fastfpe'
make[1]: Leaving directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/fastfpe'
armv5l-linux-ld -p -X -T arch/arm/vmlinux.lds arch/arm/kernel/head-armv.o arch/arm/kernel/init_task.o init/main.o init/version.o init/do_mounts.o
--start-group
arch/arm/kernel/kernel.o arch/arm/mm/mm.o arch/arm/mach-pxa/pxa.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
drivers/serial/serial.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/sound/sounddrivers.o drivers/mtd/mtdlink.o drivers/mmc/mmcdrivers.o drivers/video/video.o
net/network.o
arch/arm/nwfpe/math-emu.o arch/arm/lib/lib.a /tftpboot/linux-2.4.19-x5-v07/lib/lib.a
--end-group
-o vmlinux
armv5l-linux-nm vmlinux | grep -v '(compiled)|(.o$)|( [aUw] )|(..ng$)|(LASH[RL]DI)' | sort > System.map
make[1]: Entering directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/boot'
make[2]: Entering directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/boot/compressed'
armv5l-linux-objcopy -O binary -R .note -R .comment -S /tftpboot/linux-2.4.19-x5-v07/vmlinux piggy
BFD: Warning: Writing section `.init' to huge (ie negative) file offset 0xc00066b0.
BFD: Warning: Writing section `.text' to huge (ie negative) file offset 0xc00166b0.
BFD: Warning: Writing section `.kstrtab' to huge (ie negative) file offset 0xc0169eb0.
BFD: Warning: Writing section `__ex_table' to huge (ie negative) file offset 0xc016f0e0.
BFD: Warning: Writing section `__ksymtab' to huge (ie negative) file offset 0xc016fa90.
BFD: Warning: Writing section `.data' to huge (ie negative) file offset 0xc01726b0.
armv5l-linux-objcopy: piggy: File truncated
make[2]: *** [piggy.o] 오류 1
make[2]: Leaving directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/boot/compressed'
make[1]: *** [compressed/vmlinux] 오류 2
make[1]: Leaving directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/boot'
make: *** [zImage] 오류 2
뭐가 잘못 됐나요??? 초보라서 도와주세요~~~ ㅠ.ㅠ
예제파일로 해도 똑같은 오류가 나네요
유영창님 책을 보고 따라 하고 있는데 Config in을 수정하고 다음 Makefile 수정한뒤
make menuconfig에 체크 하고 make clean ,make dep, make zImage를 하면
에러가 납니다. 에려내용은
ake[2]: Leaving directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/fastfpe'
make[1]: Leaving directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/fastfpe'
armv5l-linux-ld -p -X -T arch/arm/vmlinux.lds arch/arm/kernel/head-armv.o arch/arm/kernel/init_task.o init/main.o init/version.o init/do_mounts.o
--start-group
arch/arm/kernel/kernel.o arch/arm/mm/mm.o arch/arm/mach-pxa/pxa.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
drivers/serial/serial.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/sound/sounddrivers.o drivers/mtd/mtdlink.o drivers/mmc/mmcdrivers.o drivers/video/video.o
net/network.o
arch/arm/nwfpe/math-emu.o arch/arm/lib/lib.a /tftpboot/linux-2.4.19-x5-v07/lib/lib.a
--end-group
-o vmlinux
armv5l-linux-nm vmlinux | grep -v '(compiled)|(.o$)|( [aUw] )|(..ng$)|(LASH[RL]DI)' | sort > System.map
make[1]: Entering directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/boot'
make[2]: Entering directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/boot/compressed'
armv5l-linux-objcopy -O binary -R .note -R .comment -S /tftpboot/linux-2.4.19-x5-v07/vmlinux piggy
BFD: Warning: Writing section `.init' to huge (ie negative) file offset 0xc00066b0.
BFD: Warning: Writing section `.text' to huge (ie negative) file offset 0xc00166b0.
BFD: Warning: Writing section `.kstrtab' to huge (ie negative) file offset 0xc0169eb0.
BFD: Warning: Writing section `__ex_table' to huge (ie negative) file offset 0xc016f0e0.
BFD: Warning: Writing section `__ksymtab' to huge (ie negative) file offset 0xc016fa90.
BFD: Warning: Writing section `.data' to huge (ie negative) file offset 0xc01726b0.
armv5l-linux-objcopy: piggy: File truncated
make[2]: *** [piggy.o] 오류 1
make[2]: Leaving directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/boot/compressed'
make[1]: *** [compressed/vmlinux] 오류 2
make[1]: Leaving directory `/tftpboot/linux-2.4.19-x5-v07/arch/arm/boot'
make: *** [zImage] 오류 2
뭐가 잘못 됐나요??? 초보라서 도와주세요~~~ ㅠ.ㅠ
예제파일로 해도 똑같은 오류가 나네요