English Turkish (tr_TR)
Part III. System Administration
Chapter 26. USB Device Mode / USB OTG
USB Device Mode / USB OTG
Synopsis
After reading this chapter, you will know:
How to set up USB Device Mode functionality on FreeBSD.
How to configure the virtual serial port on FreeBSD.
How to connect to the virtual serial port from various operating systems.
How to configure FreeBSD to provide a virtual USB network interface.
How to configure FreeBSD to provide a virtual USB storage device.
USB Virtual Serial Ports
Configuring USB Device Mode Serial Ports
To enable USB device mode serial ports, add those lines to [.filename]#/etc/ttys#:
ttyU0 "/usr/libexec/getty 3wire" vt100 onifconsole secure
ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure
Then add these lines to [.filename]#/etc/devd.conf#:
notify 100 {
match "system" "DEVFS";
match "subsystem" "CDEV";
match "type" "CREATE";
match "cdev" "ttyU[0-9]+";
action "/sbin/init q";
};
Reload the configuration if man:devd[8] is already running:
# service devd restart
Make sure the necessary modules are loaded and the correct template is set at boot by adding those lines to [.filename]#/boot/loader.conf#, creating it if it does not already exist:
umodem_load="YES"
hw.usb.template=3