下面是我加入的驱动/drivers/char/makefile
/**********************************************************************/
#
# uClinux drivers
#
obj-$(CONFIG_VDD) += vdd.o
obj-$(CONFIG_68328_SERIAL) += 68328serial.o
obj-$(CONFIG_SERIAL_WINBOND) += w90n745_uart.o
obj-$(CONFIG_W90N7451_SERIAL) += w90n745_uart_1.o
obj-$(CONFIG_W90N7452_SERIAL) += w90n745_uart_2.o
obj-$(CONFIG_W90N7453_SERIAL) += w90n745_uart_3.o
obj-$(CONFIG_W90N745_PS2) += w90n745_ps2.o
obj-$(CONFIG_W90N745_KEYPAD) += w90n745_keypad.o
obj-$(CONFIG_WINBOND_USI) += w90n745_usi.o
obj-$(CONFIG_WINBOND_I2C) += w90n745_i2c.o
obj-$(CONFIG_WINBOND_IO) += w90n745_io.o (1)
obj-$(CONFIG_WINBOND_HOLTEK) += usb-holtek.o (2)
obj-$(CONFIG_WINBOND_CCD) += usb-ccd.o (3)
obj-$(CONFIG_V850E_NB85E_UART) += nb85e_uart.o generic_serial.o
obj-$(CONFIG_COLDFIRE_SERIAL) += mcfserial.o
obj-$(CONFIG_MCF_QSPI) += mcf_qspi.o
obj-$(CONFIG_LEDMAN) += ledman.o
obj-$(CONFIG_LCDTXT) += lcdtxt.o
obj-$(CONFIG_68328_DIGI) += mc68328digi.o
obj-$(CONFIG_MCFWATCHDOG) += mcfwatchdog.o
obj-$(CONFIG_M5249AUDIO) += m5249audio.o
obj-$(CONFIG_DRAGONIX_SPI) += dragonixspi.o
obj-$(CONFIG_DS1302) += ds1302.o
obj-$(CONFIG_EXP) += exp.o
ifdef CONFIG_Q40
KEYBD += q40_keyb.o
SERIAL = serial.o
endif
/****************************************************************/
下面是我加入的驅動/drivers/char/config.in再使用make linux_menuconfig選擇我的驅動
/-------------------------------------------------------------------------------/
if [ "$CONFIG_BOARD_W90N745" = "y" ]; then
bool 'Winbond W90N745 IO module' CONFIG_WINBOND_IO --> (1)
bool 'Winbond W90N745 USB-HOLTEK' CONFIG_WINBOND_HOLTEK --> (2)
bool 'Winbond W90N745 USB-CCD' CONFIG_WINBOND_CCD --> (3)
if [ "$CONFIG_WINBOND_USI" != "y" ]; then
bool 'Winbond W90N745 I2C module' CONFIG_WINBOND_I2C
fi
if [ "$CONFIG_WINBOND_I2C" != "y" ]; then
bool 'Winbond W90N745 USI' CONFIG_WINBOND_USI
fi
fi
/--------------------------------------------------------------------------------/
我的开发板停在usb-holtek不动了,是不是usb驱动不可以放在/drivers/char里,GPIO可通过
W90P710 Boot Loader [ Version 1.1 $Revision: 1 $ ] Rebuilt on Sep 28 2008
Memory Size is 0x800000 Bytes, Flash Size is 0x400000 Bytes
Board designed by Winbond
Hardware support provided at Winbond
Copyright (c) Winbond Limited 2001 - 2006. All rights reserved.
Boot Loader Configuration:
MAC Address : 00:00:00:00:00:01
IP Address : 0.0.0.0
DHCP Client : Enabled
CACHE : Enabled
BL buffer base : 0x00300000
BL buffer size : 0x00100000
Baud Rate : 115200
USB Interface : Enabled
Serial Number : 0x00BC614E
For help on the available commands type 'h'
Press ESC to enter debug mode ......
Cache enabled!
Processing image 1 ...
Processing image 2 ...
Processing image 3 ...
Processing image 4 ...
Processing image 5 ...
Processing image 6 ...
Unzip image 6 ...
Processing image 7 ...
Unzip image 7 ...
Executing image 7 ...
Linux version 2.4.20-uc0 (root@localhost.localdomain) (gcc version 3.0) #453 一 11月 17 23:06:51 CST 2008
Processor: Winbond W90N745 revision 1
Architecture: W90N745
On node 0 totalpages: 1536
zone(0): 0 pages.
zone(1): 1536 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0 rw
Calibrating delay loop... 39.83 BogoMIPS
Memory: 6MB = 6MB total
Memory: 4860KB available (961K code, 168K data, 44K init)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Winbond W90N745 Serial driver version 1.0 (2005-08-15) with no serial options enabled
ttyS00 at 0xfff80000 (irq = 9) is a W90N745
I2C Bus Driver has been installed successfully.
GPIO Bus Driver has been installed successfully. --> 我的io驱动
usb.c: registered new driver USB-HOLTEK --> 我的io驱动,停在這裡 |