4 ms·
You can also get console access this way, if you use a different "gadget" (g_serial) and set tty to it on kernel command line. You can also make your own combi
by megous 3y ago
You can also get console access this way, if you use a different "gadget" (g_serial) and set tty to it on kernel command line.
You can also make your own combinations of USB configurations over configfs which is more flexible.
- rektide 3y agoThe beagleboard SBC was amazing for how setup it was. I think the stock image had serial. It also presented a network adapter & host a small network. If you connected, it would advertise a webserver, which was a web IDE for programming the device. Incredible out of box experience.
- astrobe_ 3y agoAs you seem to know well this thing, I'll ask you: they write type "ssh pi@raspberrypi.local" and voilà !", but I know that just enabling an IP stack over a USB link is not enough per se* normally, the device has to have a network configuration (IP address, netmask, gateway) which usually means DHCP. Moreover, how does the ssh client computer know that "raspberrypi.local" is this device?
- megous 3y agoDomain names: https://en.wikipedia.org/wiki/Multicast_DNS https://en.wikipedia.org/wiki/Multicast_DNS Yes, you have to have either some kind of network configuration, and enable the network interface that appears after you pluging in the USB device. It's no different from using USB-ethernet adapters. The easiest is probably to rely on link local addresses and mDNS if all you need is local access from the computer you connected the device to. On a systemd based Linux distros, mDNS is enabled by default in systemd-resolved daemon. On my distro, there's no default configuration for usb network adapters, so I have to do that part by myself. Other systems may work differently and auto-enable USB interfaces and at least setup link local addresses on them. The device implementig the gadget has to do the same.