{"id":861,"date":"2013-06-28T18:49:27","date_gmt":"2013-06-28T10:49:27","guid":{"rendered":"http:\/\/www.kumouse.com\/?p=861"},"modified":"2013-06-28T18:49:27","modified_gmt":"2013-06-28T10:49:27","slug":"openwrt-%e7%bb%99%e6%b2%a1%e6%9c%89usb%e7%9a%84%e6%9c%ba%e5%ad%90%e5%8a%a0%e5%85%a5usb%e6%94%af%e6%8c%81","status":"publish","type":"post","link":"https:\/\/www.kumouse.com\/?p=861","title":{"rendered":"openwrt \u7ed9\u6ca1\u6709usb\u7684\u673a\u5b50\u52a0\u5165usb\u652f\u6301"},"content":{"rendered":"<p>#.\/target\/linux\/ar71xx\/files\/arch\/mips\/ath79\/mach-tl-wr741nd.c<\/p>\n<p>build_dir\/linux-ar71xx_generic\/linux-3.3.8\/arch\/mips\/ath79\/mach-tl-wr741nd.c<br \/>\n\u5f00\u5934\u52a0\u5165<br \/>\n#include &#8220;dev-usb.h&#8221;<br \/>\n\u627e\u5230\u51fd\u6570<br \/>\nstatic void __init tl_wr741nd_setup(void)<br \/>\n\u91cc\u8fb9\u52a0\u5165<br \/>\n\/* USB *\/<br \/>\nath79_register_usb();<\/p>\n<p>================================<br \/>\nbuild_dir\/linux-ar71xx_generic\/linux-3.3.8\/arch\/mips\/ath79\/Kconfig<\/p>\n<p>config ATH79_MACH_TL_WR741ND<br \/>\nbool &#8220;TP-LINK TL-WR741ND support&#8221;<br \/>\nselect SOC_AR724X<br \/>\nselect ATH79_DEV_AP9X_PCI if PCI<br \/>\nselect ATH79_DEV_ETH<br \/>\nselect ATH79_DEV_GPIO_BUTTONS<br \/>\nselect ATH79_DEV_LEDS_GPIO<br \/>\nselect ATH79_DEV_M25P80<br \/>\nselect ATH79_DEV_USB<\/p>\n<p>\u52a0\u5165\u4e86\u8fd9\u4e2a&#8221;select ATH79_DEV_USB&#8221;<\/p>\n<p>===================================<br \/>\nCompile it for the first time, with the modules\/settings you want.<br \/>\nFor mounting USB drives, select kernel kmod modules:<br \/>\nUSB support: usb2, ohci, storage<br \/>\nFilesystems: ext4, ntfs, vfat<br \/>\nNative language support: cp437,cp852,iso-8859-1, utf8.<\/p>\n<p>If you want R\/W NTFS support, select:<br \/>\nUtilities\/filesystems\/ntfs-3g<\/p>\n<p>Then go to build_dir\/linux-ar71xx_generic\/linux-3.3.8\/arch\/mips\/ath79<br \/>\nEdit this files:<\/p>\n<p>mach-tl-wr741nd-v4.c<br \/>\nadd #include &#8220;dev-usb.h&#8221; at the top of the file<br \/>\nadd ath79_register_usb(); before ath79_register_m25p80(&amp;tl_wr741ndv4_flash_data)<\/p>\n<p>Kconfig<br \/>\nadd select ATH79_DEV_USB under &#8220;config ATH79_MACH_TL_WR741ND_V4&#8221;<\/p>\n<p>Now, run make again. Now the USB will work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#.\/target\/linux\/ar71xx\/files\/arch\/mips\/ath79\/mach-tl-wr [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,15],"tags":[],"class_list":["post-861","post","type-post","status-publish","format-standard","hentry","category-linux-c","category-15"],"_links":{"self":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=861"}],"version-history":[{"count":2,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/861\/revisions"}],"predecessor-version":[{"id":863,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/861\/revisions\/863"}],"wp:attachment":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}