Page 338 - Hacking Roomba
P. 338

Chapter 14 — Putting Linux on Roomba                319




                               Listing 14-2 Continued

                               kmod-usb-serial_2.4.30-brcm-3_mipsel.ipk
                               Configuring kmod-usb-ohci
                               Configuring kmod-usb-serial
                               Successfully terminated.
                               root@OpenWrt:~# insmod usbcore
                               Using /lib/modules/2.4.30/usbcore.o
                               root@OpenWrt:~# insmod usb-ohci
                               Using /lib/modules/2.4.30/usb-ohci.o
                               root@OpenWrt:~# insmod usbserial
                               Using /lib/modules/2.4.30/usbserial.o
                               root@OpenWrt:~# insmod pl2303
                               Using /lib/modules/2.4.30/pl2303.o
                               root@OpenWrt:~# dmesg
                               [...]
                               usb.c: registered new driver usbdevfs
                               usb.c: registered new driver hub
                               PCI: Setting latency timer of device 00:04.0 to 64
                               usb-ohci.c: USB OHCI at membase 0xb8004000, IRQ 2
                               usb-ohci.c: usb-00:04.0, PCI device 14e4:4715
                               usb.c: new USB bus registered, assigned bus number 1
                               hub.c: USB hub found
                               hub.c: 2 ports detected
                               usb.c: registered new driver serial
                               usbserial.c: USB Serial support registered for Generic
                               usbserial.c: USB Serial Driver core v1.4
                               usbserial.c: USB Serial support registered for PL-2303
                               hub.c: new USB device 01:02.0-1, assigned address 2
                               pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.11
                               usbserial.c: pl2303 converter detected
                               usbserial.c: PL-2303 converter now attached to ttyUSB0 (or
                               usb/tts/0 for devfs)



                             Making the Drivers Load on Reboot
                             Although the drivers are loaded now, they won’t reload on reboot. To have them load automati-
                             cally each time the WL-HDD is rebooted, do the following to add the module names to the
                             /etc/modules file:
                             root@OpenWrt:~# echo “usbcore”   >> /etc/modules
                             root@OpenWrt:~# echo “usb-ohci”  >> /etc/modules
                             root@OpenWrt:~# echo “usbserial” >> /etc/modules
                             root@OpenWrt:~# echo “pl2303”    >> /etc/modules

                             The order of the above lines is important. The usbcore driver must load before usb-ohci,
                             and so on.
   333   334   335   336   337   338   339   340   341   342   343