- 论坛徽章:
- 0
|
之前的操作为:
1..首先修改Makefile 里面ARCH=arm CROSS_COMPILE=arm-linux-(之前已经将arm-linux-所在的目录export PATH=/usr/local/arm/3.3.2/bin:写入etc/profile里面)
2..make mrproper
3..make menuconfig,直接使用load an alternate configuration file 将尤龙光盘资料里带的pxa27x_kernel2.6.9_rel_zzm.tar.gz里面的kernel_pxa270.cfg载入到里面,后出现错误一堆,其中部分如下:
/boot/config-2.4.20-8:1907: trying to assign nonexistent symbol X86_TSC_DISABLE
/boot/config-2.4.20-8:1914: trying to assign nonexistent symbol HZ
/boot/config-2.4.20-8:1917: trying to assign nonexistent symbol BINFMT_COFF
/boot/config-2.4.20-8:1921: trying to assign nonexistent symbol ACPI_HT_ONLY
/boot/config-2.4.20-8:1922: trying to assign nonexistent symbol ACPI_BUSMGR
/boot/config-2.4.20-8:1923: trying to assign nonexistent symbol ACPI_SYS
/boot/config-2.4.20-8:1924: trying to assign nonexistent symbol ACPI_CPU
/boot/config-2.4.20-8:1928: trying to assign nonexistent symbol ACPI_CMBATT
/boot/config-2.4.20-8:1930: trying to assign nonexistent symbol ACPI_RELAXED_AML
/boot/config-2.4.20-8:1942: trying to assign nonexistent symbol TUX
/boot/config-2.4.20-8:1943: trying to assign nonexistent symbol NETLINK
/boot/config-2.4.20-8:1961: trying to assign nonexistent symbol BLK_DEV_ISAPNP
/boot/config-2.4.20-8:1965: trying to assign nonexistent symbol IDEDMA_PCI_WIP
/boot/config-2.4.20-8:1966: trying to assign nonexistent symbol IDEDMA_NEW_DRIVE_LISTINGS
4..make clean
5..make zImage
drivers/usb/gadget/pxa2xx_udc.c:2372: error: initializer element is not constant
drivers/usb/gadget/pxa2xx_udc.c:2372: error: (near initialization for `memory.ep')
make[2]: *** [drivers/usb/gadget/pxa2xx_udc.o] Error 1
make[1]: *** [drivers/usb/gadget] Error 2
再次重复上述步骤后,又到第5步时出现以下错误:
drivers/block/floppy.c: In function `floppy_grab_irq_and_dma':
drivers/block/floppy.c:4422: error: `IRQ_FLOPPYDISK' undeclared (first use in this function)
drivers/block/floppy.c:4430: error: `DMA_FLOPPY' undeclared (first use in this function)
drivers/block/floppy.c: In function `floppy_release_irq_and_dma':
drivers/block/floppy.c:4509: error: `DMA_FLOPPY' undeclared (first use in this function)
drivers/block/floppy.c:4511: error: `IRQ_FLOPPYDISK' undeclared (first use in this function)
make[2]: *** [drivers/block/floppy.o] Error 1
make[1]: *** [drivers/block] Error 2
make: *** [drivers] Error 2
我机器的kernal是2.4.20-8(执行uname -r结果),源代码的版本是2.6.9,是在kernel.org下载地。
谢谢!!!!!!!!!! |
|