Communication over a true serial port can be implemented with a couple dozen assembly instruction (ie. a few dozen bytes of machine code).
USB is ridiculously complex and thus requires a few thousand if not tens of thousands of lines of higher level code. Basically USB is not just a special serial connection, but also huge amounts of power negotiation, auto-negotiation, packet framing, etc. Yes, it is theoretically doable, but it's unlikely anyone would ever want to, especially since network tftp based recovery is for the most part already implemented and much nicer to use. On Sat, May 30, 2015 at 12:42 PM, Paul Elliott <[email protected]> wrote: > > > I have noted that there are some routers that have in addition > to the usual internal uart that can be connected with a > TTL converter, they also have an external usb connection. > > A usb connection is just a special serial connection at > a special voltage. > > Why could not the failsafe mode of these routers use the > externally connected usb port for its serial console. > > Then it would be possible to unbrick these routers, when the > net connnection does not work, without ever opening the router > to connect to the uart. Instead a data cable between the > external usb connection and the fixing computer could be used. > > What would be required to implement this idea? Could it be done > with a tailored version of openwrt? Or would in be needed to > hack u-boot? > > Thank You for thinking about this question. > > > > > -- > Paul Elliott 1(512)837-1096 > [email protected] PMB 181, 11900 Metric Blvd Suite J > http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117 > > _______________________________________________ > openwrt-users mailing list > [email protected] > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users > _______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
