http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&action=history&feed=atom Порт USB в ASUS WL-520GC и загрузка прошивки с USB FLASH - Revision history 2024-03-29T01:50:45Z Revision history for this page on the wiki MediaWiki 1.10.1 http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=38188&oldid=prev Ssuloev: /* Модификация прошивки */ 2011-01-25T15:25:42Z <p><span class="autocomment">Модификация прошивки</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 15:25, 25 January 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 96:</strong></td> <td colspan="2" align="left"><strong>Line 96:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Русская документация]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Русская документация]]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">----------------------</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Сделал как описано, вроде бы заработало, однако при тщательной проверке обнаружились следующие проблемы: </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">1) не видятся устройства подключенные через 4 порта хаба 2) не подменяется MAC-адрес WAN </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Примечание: на странице , где отображаются три MAC-адреса видно, что для LAN и Wireless они одинаковые (при загрузке прошивки micro-plus-ssh они все разные). Возможно проблема где-то здесь. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Если кто-то сталкивался с таким поведением, просьба описать солюшен.</td></tr> </table> Ssuloev http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=28253&oldid=prev Anymore at 17:01, 8 December 2009 2009-12-08T17:01:03Z <p></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 17:01, 8 December 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 93:</strong></td> <td colspan="2" align="left"><strong>Line 93:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># http://www.dd-wrt.com/phpBB2/viewtopic.php?p=243363#243363</td><td> </td><td style="background: #eee; font-size: smaller;"># http://www.dd-wrt.com/phpBB2/viewtopic.php?p=243363#243363</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:Русская документация]]</td></tr> </table> Anymore http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=23824&oldid=prev YuriKr: /* Добавляем USB порт */ 2009-01-13T16:39:34Z <p><span class="autocomment">Добавляем USB порт</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 16:39, 13 January 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 18:</strong></td> <td colspan="2" align="left"><strong>Line 18:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Подводим землю к разъему. R56, R3 – перемычки. </td><td> </td><td style="background: #eee; font-size: smaller;"># Подводим землю к разъему. R56, R3 – перемычки. </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Припаиваем сам разъем (J3 на плате), контакты снизу вверх: +5V,data-,data+,GND. </td><td> </td><td style="background: #eee; font-size: smaller;"># Припаиваем сам разъем (J3 на плате), контакты снизу вверх: +5V,data-,data+,GND. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Замена блока питания на 5-вольтовый позволяет подать питание на USB-устройство непосредственно с разъема питания. Можно оставить и штатный блок, но тогда для питания USB придется делать стабилизатор на 5 вольт (например, на КРЕН), а это - лишний источник тепла (и дополнительная доработка устройства).</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> YuriKr http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=23822&oldid=prev YuriKr: /* Добавляем USB порт */ 2009-01-13T14:55:06Z <p><span class="autocomment">Добавляем USB порт</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:55, 13 January 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 11:</strong></td> <td colspan="2" align="left"><strong>Line 11:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Image:USBWL520GCa5.jpg|thumb|200px|right|Общий вид]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Image:USBWL520GCa5.jpg|thumb|200px|right|Общий вид]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Для <del style="color: red; font-weight: bold; text-decoration: none;">добавление </del>порта USB нужно сделать следующее:</td><td>+</td><td style="background: #cfc; font-size: smaller;">Для <ins style="color: red; font-weight: bold; text-decoration: none;">добавления </ins>порта USB нужно сделать следующее:</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Заменить штатный блок питания 9V 1A на 5V 2A. </td><td> </td><td style="background: #eee; font-size: smaller;"># Заменить штатный блок питания 9V 1A на 5V 2A. </td></tr> </table> YuriKr http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=23821&oldid=prev YuriKr: /* Добавляем USB порт */ 2009-01-13T14:54:55Z <p><span class="autocomment">Добавляем USB порт</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:54, 13 January 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 10:</strong></td> <td colspan="2" align="left"><strong>Line 10:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Image:USBWL520GCa5.jpg|thumb|200px|right|Общий вид]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Image:USBWL520GCa5.jpg|thumb|200px|right|Общий вид]]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Для добавление порта USB нужно сделать следующее:</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Заменить штатный блок питания 9V 1A на 5V 2A. </td><td> </td><td style="background: #eee; font-size: smaller;"># Заменить штатный блок питания 9V 1A на 5V 2A. </td></tr> </table> YuriKr http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=23820&oldid=prev YuriKr: /* Модификация прошивки */ 2009-01-13T14:46:38Z <p><span class="autocomment">Модификация прошивки</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:46, 13 January 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 77:</strong></td> <td colspan="2" align="left"><strong>Line 77:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Вставляем флешку в роутер, включаем питание, если раздел при загрузке смонтировался - увидим МЕГА, если не смонтировался - МИКРО.</td><td> </td><td style="background: #eee; font-size: smaller;">Вставляем флешку в роутер, включаем питание, если раздел при загрузке смонтировался - увидим МЕГА, если не смонтировался - МИКРО.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">------</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[http://narod.ru/disk/4625295000/micro_plus_usb_asus520gc.bin.html Здесь] лежит прошивка MICRO-PLUS-USB c поддержкой USB, основанная на http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/V24_TNG/svn11218/dd-wrt.v24-11218_NEWD_micro-plus_ssh.bin </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Содержимое rootfs MEGA [http://narod.ru/disk/4645022000/mega.tar.gz.html здесь].</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">------</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Источник:'''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># http://www.dd-wrt.com/phpBB2/viewtopic.php?p=243363#243363</td></tr> </table> YuriKr http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=23818&oldid=prev YuriKr: /* Модификация прошивки */ 2009-01-13T14:33:33Z <p><span class="autocomment">Модификация прошивки</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:33, 13 January 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 26:</strong></td> <td colspan="2" align="left"><strong>Line 26:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">За основу берем прошивку micro-plus-ssh, в ней как раз достаточно места для драйверов, если удалить ssh и ppp, в остальном остается полная функциональность. </td><td> </td><td style="background: #eee; font-size: smaller;">За основу берем прошивку micro-plus-ssh, в ней как раз достаточно места для драйверов, если удалить ssh и ppp, в остальном остается полная функциональность. </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">1. Распаковываем прошивку с помощью FirmwareModKit </td><td>+</td><td style="background: #cfc; font-size: smaller;">1. Распаковываем прошивку с помощью <ins style="color: red; font-weight: bold; text-decoration: none;">[http://www.dd-wrt.com/dd-wrtv2/downloads/others/tornado/firmwaremodkit2-new-LZMA/firmwaremodkit2_x86.tar.bz2 </ins>FirmwareModKit<ins style="color: red; font-weight: bold; text-decoration: none;">] </ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">2. Заходим в каталог /rootfs/usr/sbin и удаляем 2 файла: dropbearmulti и pppd. </td><td> </td><td style="background: #eee; font-size: smaller;">2. Заходим в каталог /rootfs/usr/sbin и удаляем 2 файла: dropbearmulti и pppd. </td></tr> </table> YuriKr http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=23815&oldid=prev YuriKr at 14:28, 13 January 2009 2009-01-13T14:28:46Z <p></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:28, 13 January 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 27:</strong></td> <td colspan="2" align="left"><strong>Line 27:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">1. Распаковываем прошивку с помощью FirmwareModKit </td><td> </td><td style="background: #eee; font-size: smaller;">1. Распаковываем прошивку с помощью FirmwareModKit </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">2. Заходим в каталог /rootfs/usr/sbin и удаляем 2 файла: dropbearmulti и pppd. </td><td> </td><td style="background: #eee; font-size: smaller;">2. Заходим в каталог /rootfs/usr/sbin и удаляем 2 файла: dropbearmulti и pppd. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">3. Копируем в папку /rootfs/lib/modules/&lt;версия ядра&gt;/ драйвера usbcore.o, usb-ohci.o, scsi_mod.o, usb-storage.o, sd_mod.o,ext2.o. (взять их можно из прошивок nokaid, mega и др, распаковав их с помощью FirmwareModKit). </td><td> </td><td style="background: #eee; font-size: smaller;">3. Копируем в папку /rootfs/lib/modules/&lt;версия ядра&gt;/ драйвера usbcore.o, usb-ohci.o, scsi_mod.o, usb-storage.o, sd_mod.o,ext2.o. (взять их можно из прошивок nokaid, mega и др, распаковав их с помощью FirmwareModKit). </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">4. Заходим в папку rootfs/sbin в основном имидже. </td><td> </td><td style="background: #eee; font-size: smaller;">4. Заходим в папку rootfs/sbin в основном имидже. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">5. Перемещаем файл init в папку rootfs/usr/sbin </td><td> </td><td style="background: #eee; font-size: smaller;">5. Перемещаем файл init в папку rootfs/usr/sbin </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">6. Создаем новый файл init, представляющий из себя скрипт: </td><td> </td><td style="background: #eee; font-size: smaller;">6. Создаем новый файл init, представляющий из себя скрипт: </td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">Code:</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> #!/bin/sh </td><td> </td><td style="background: #eee; font-size: smaller;"> #!/bin/sh </td></tr> </table> YuriKr http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=23814&oldid=prev YuriKr: /* Модификация прошивки */ 2009-01-13T14:27:56Z <p><span class="autocomment">Модификация прошивки</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:27, 13 January 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 21:</strong></td> <td colspan="2" align="left"><strong>Line 21:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==Модификация прошивки ==</td><td> </td><td style="background: #eee; font-size: smaller;">==Модификация прошивки ==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Поддержка в прошивке (основано на методе, предложенном IronShaft для D-Link DIR-320, подкорректированого для использования в 2Мб устройствах) </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">За основу берем прошивку micro-plus-ssh, в ней как раз достаточно места для драйверов, если удалить ssh и ppp, в остальном остается полная функциональность. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">1. Распаковываем прошивку с помощью FirmwareModKit </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">2. Заходим в каталог /rootfs/usr/sbin и удаляем 2 файла: dropbearmulti и pppd. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">3. Копируем в папку /rootfs/lib/modules/&lt;версия ядра&gt;/ драйвера usbcore.o, usb-ohci.o, scsi_mod.o, usb-storage.o, sd_mod.o,ext2.o. (взять их можно из прошивок nokaid, mega и др, распаковав их с помощью FirmwareModKit). </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">4. Заходим в папку rootfs/sbin в основном имидже. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">5. Перемещаем файл init в папку rootfs/usr/sbin </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">6. Создаем новый файл init, представляющий из себя скрипт: </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Code:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> #!/bin/sh </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> if [ $1 == &quot;noinitrd&quot; ] ; then </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> insmod /lib/modules/`uname -r`/usbcore.o </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> insmod /lib/modules/`uname -r`/usb-ohci.o </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> insmod /lib/modules/`uname -r`/scsi_mod.o </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> insmod /lib/modules/`uname -r`/usb-storage.o </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> insmod /lib/modules/`uname -r`/sd_mod.o </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> insmod /lib/modules/`uname -r`/ext2.o </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> sleep 8s </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mount -t proc none /proc </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mount -t ext2 -o noatime,nodiratime /dev/scsi/host0/bus0/target0/lun0/part1 /mnt </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> if [ -x /mnt/sbin/init ] ; then </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mount -o move /proc /mnt/proc &amp;&amp; \ </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> pivot_root /mnt /mnt/mnt &amp;&amp; { </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mount -o move /mnt/dev /dev </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mount -o move /mnt/tmp /tmp </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mount -o move /mnt/jffs /jffs </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> exec /sbin/init $* </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> } </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> else </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> exec /usr/sbin/init $* </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> fi </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> else </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> exec /usr/sbin/init $* </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> fi </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Не забываем сделать скрипт исполняемым. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">7. Упаковываем прошивку, получившийся имидж шьем в роутер. В принципе, роутер уже работоспособен, он представляет собой роутер с прошивкой mcro_plus_ssh без поддержки ssh и pppoe. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">8. Готовим USB флешку. Создаем на ней линукс раздел. Разделов может быть несколько, скрипт использует первый раздел. Раздел должен быть размером не менее 15 мегабайт. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">9. Форматируем раздел в ext2. (Это ВАЖНО!) </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">10. Копируем содержимое rootfs МЕГА прошивки в свежеотформатированный раздел на флешке. Меняем владельца и группу всех файлов на root.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Вставляем флешку в роутер, включаем питание, если раздел при загрузке смонтировался - увидим МЕГА, если не смонтировался - МИКРО.</td></tr> </table> YuriKr http://wiki.dd-wrt.com/wiki/index.php?title=%D0%9F%D0%BE%D1%80%D1%82_USB_%D0%B2_ASUS_WL-520GC_%D0%B8_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0_%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B8_%D1%81_USB_FLASH&diff=23804&oldid=prev YuriKr: /* Добавляем USB порт */ 2009-01-13T14:17:48Z <p><span class="autocomment">Добавляем USB порт</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:17, 13 January 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 11:</strong></td> <td colspan="2" align="left"><strong>Line 11:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Image:USBWL520GCa5.jpg|thumb|200px|right|Общий вид]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Image:USBWL520GCa5.jpg|thumb|200px|right|Общий вид]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">1. </del>Заменить штатный блок питания 9V 1A на 5V 2A. </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"># </ins>Заменить штатный блок питания 9V 1A на 5V 2A. </td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&#160;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"># </ins>На плате найти нераспаянный элемент NF1 – это разрыв линии data+ и data-, запаять туда резисторы 20 – 50 Ом (главное чтобы оба были одного номинала). В крайнем случае можно просто перемычки. </td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">2. </del>На плате найти нераспаянный элемент NF1 – это разрыв линии data+ и data-, запаять туда резисторы 20 – 50 Ом (главное чтобы оба были одного номинала). В крайнем случае можно просто перемычки. </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"># </ins>Подводим +5V к разъему. F1 – шунт 0,2-0,5 Ом, либо перемычка. BF12 – перемычка. Если есть SMD конденсатор 0,1мкф, можно его впаять на место C9 или C130. У меня SMD не нашлось, впаял обычный керамический, между +5V USB и землей. Работать будет и без конденсатора. </td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&#160;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"># </ins>Подводим землю к разъему. R56, R3 – перемычки. </td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">3. </del>Подводим +5V к разъему. F1 – шунт 0,2-0,5 Ом, либо перемычка. BF12 – перемычка. Если есть SMD конденсатор 0,1мкф, можно его впаять на место C9 или C130. У меня SMD не нашлось, впаял обычный керамический, между +5V USB и землей. Работать будет и без конденсатора. </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"># </ins>Припаиваем сам разъем (J3 на плате), контакты снизу вверх: +5V,data-,data+,GND. </td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&#160;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">4. </del>Подводим землю к разъему. R56, R3 – перемычки. </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&#160;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">5. </del>Припаиваем сам разъем (J3 на плате), контакты снизу вверх: +5V,data-,data+,GND. </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> YuriKr