linux???????μ????
???????????? ???????[ 2014/1/9 9:44:35 ] ????????linux ???
?????linux2.6.21??????????μ????
????1.???????????????????????????USB?????????????????usb(?????????????usb???????usb_drive.c)
????2.???????linux-2.6.35.14/drive/usb/?????裺KERNELDIR = linux-2.6.35.14/drive/usb/??????usb??????KERNEL???
????3.cd $(KERNELDIR )/usb?? ????Makefile
????vim Makefile
????????????????
????obj-$(CONFIG_RALINK_USB) +=usb_drive.o
????4.????Kconfig
????vim Kconfig
????????????????
config RALINK_USB
tristate "usb drive module"
help
????Enable example usb drive module.
????5.??????????KERNELDIR ????Makefile
????vim ../Makefile
???????β????????????
????obj-$(CONFIG_RALINK_USB)+= usb/
????6.??????????KERNELDIR ????Kconfig
????vim ../Kconfig
???????β????????????
????source "drivers/usb/usb/Kconfig"
????7.???????
#make menuconfig
#make dep
Kernel setting -> Device Drivers->USB support->usb drive module
???????????????y “*”
????8. ???±??????
# make
Type 'y' if it is a built-in module or 'm' if it is a loadable module
The new config flag should be added in /root/linux-2.6.35.14/.config
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11