Thunderbolt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(24 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| | |||
| valign="top" colspan="2"| | |||
* A '''MacBook Pro 2016 » MacOS » Monterey''' connected with '''ThinkPad L14 Gen3 » Ubuntu » Jammy''' using '''Thunderbolt 4''', it's called '''Thunderbolt Net''' | |||
* '''Thunderbolt Net''' create <code> bridge0</code>, <code>thunderbolt0</code> network interfaces as respectively for '''MacOS''' and '''Ubuntu''' | |||
|- | |||
| colspan="2" | | |||
---- | |||
|- | |||
| valign="top" | | |||
'''Ubuntu » Self IP''': ifconfig -v thunderbolt0|grep inet | |||
'''Ubuntu » Peer IP''': arp -a -i thunderbolt0 | |||
| valign="top"| | |||
'''MacOS » Self IP''': ifconfig -v bridge0|grep inet | |||
'''MacOS » Peer IP''': arp -a -i bridge0 | |||
|} | |||
---- | |||
{| | |||
| valign="top" | | |||
modprobe thunderbolt-net | modprobe thunderbolt-net | ||
lspci | grep -i thunder | |||
lspci | grep -i usb | |||
| valign="top" | | |||
ifconfig -v thunderbolt0| grep inet | |||
ifconfig -v bridge0 | grep inet | |||
ifconfig -v | |||
| valign="top" | | |||
arp -a -i thunderbolt0 | |||
arp -a -i bridge0 | |||
arp -a | |||
|} | |||
==Netplan== | |||
<syntaxhighlight lang="bash"> | |||
sudo tee /etc/netplan/30-ethernet-thunderbolt.yaml >/dev/null <<EOF | |||
network: | |||
version: 2 | |||
ethernets: | |||
thunderbolt0: | |||
link-local: [ ipv4 ] | |||
EOF | |||
sudo chmod 600 /etc/netplan/*.yaml | |||
sudo netplan try | |||
sudo apt install linux-modules-extra-raspi | |||
sudo apt install openvswitch-switch-dpdk | |||
sudo netplan try && sudo netplan apply | |||
</syntaxhighlight> | |||
==Playground== | ==Playground== | ||
< | <syntaxhighlight lang="bash"> | ||
ls -lah /sys/bus/thunderbolt/devices/domain0/iommu_dma_protection | ls -lah /sys/bus/thunderbolt/devices/domain0/iommu_dma_protection | ||
cat /sys/bus/thunderbolt/devices/domain0/iommu_dma_protection | cat /sys/bus/thunderbolt/devices/domain0/iommu_dma_protection | ||
Line 17: | Line 70: | ||
cat /etc/udev/rules.d/99-local.rules | cat /etc/udev/rules.d/99-local.rules | ||
ls -lah /etc/udev/rules.d/ | ls -lah /etc/udev/rules.d/ | ||
</ | |||
lspci | grep -i thunder | |||
lspci | grep -i usb | |||
lsmod | grep thund | |||
boltctl list -a | |||
lspci -v | |||
</syntaxhighlight> | |||
==References== | ==References== | ||
{| | {| | ||
| valign="top" | | | valign="top" | | ||
* [https://www.kernel.org/doc/html/v6.2/admin-guide/thunderbolt.html#networking-over-thunderbolt-cable USB4 » Thunderbolt » Cable Networking] | |||
* [https://superuser.com/questions/1244779/ USB4 » Thunderbolt » Bridge Network] | * [https://superuser.com/questions/1244779/ USB4 » Thunderbolt » Bridge Network] | ||
* [https://www.kernel.org/doc/html/v5.15/admin-guide/thunderbolt.html USB4 » Thunderbolt » Linux » v5.15] | * [https://www.kernel.org/doc/html/v5.15/admin-guide/thunderbolt.html USB4 » Thunderbolt » Linux » v5.15] | ||
* [https://www.kernel.org/doc/html/v6.2/admin-guide/thunderbolt.html USB4 » Thunderbolt » Linux » v6.2] | * [https://www.kernel.org/doc/html/v6.2/admin-guide/thunderbolt.html USB4 » Thunderbolt » Linux » v6.2] | ||
* [https://christian.kellner.me/2018/05/24/thunderbolt-networking-on-linux/ USB4 » Thunderbolt » Networking] | * [https://christian.kellner.me/2018/05/24/thunderbolt-networking-on-linux/ USB4 » Thunderbolt » Networking] | ||
* [https://www.intel.com/content/www/us/en/architecture-and-technology/thunderbolt/overview.html USB4 » Thunderbolt » Technology] | |||
* [https://manpages.ubuntu.com/manpages/jammy/en/man1/boltctl.1.html USB4 » Thunderbolt » <code>boltctl</code>] | |||
* [https://support.apple.com/en-my/HT209186 USB4 » Thunderbolt » iPad Pro] | |||
| valign="top" | | | valign="top" | | ||
Line 48: | Line 111: | ||
| valign="top" | | | valign="top" | | ||
* [https://forums.raspberrypi.com/viewtopic.php?t=360226 RPi5 » OTG <code>g_ether</code> is not working] | |||
* [https://github.com/raspberrypi/bookworm-feedback/issues/77 RPi5 » <code>dwc2 overlay</code> fails] | |||
* [https://www.pshinecable.com/article/what-are-the-differences-between-usb-pd3-1-and-usb-pd2-0-pd3-0.html PD » 1.0 » 2.0 » 3.0 » 3.1] | |||
* [https://www.apple.com/my/ipad-pro/specs/ iPad Pro » Specification] | |||
* [[VS Code on iPad Pro]] | * [[VS Code on iPad Pro]] | ||
* [[Apple iPad Pro]] | |||
* [[VirtualBox]] | * [[VirtualBox]] | ||
* [[Proxmox]] | |||
* [[VSCode]] | * [[VSCode]] | ||
* [[Qemu]] | * [[Qemu]] | ||
| valign="top" | | | valign="top" | | ||
* [https://www.benq.com/en-my/knowledge-center/knowledge/usb-c-introduction-what-is-dp-alt-mode.html USB-C » Connector Taking Over the World] | |||
* [https://manhattanproducts.eu/pages/usb-c-pd-charging-everything-you-need-to-know USB-C » PD Everything Need to Know] | |||
* [https://www.linkedin.com/pulse/usb-c-much-more-than-reversible-cable-fen-technology-l728e USB-C » More than a reversible cable] | |||
|} | |} |
Latest revision as of 22:38, 18 May 2024
| |
| |
Ubuntu » Self IP: ifconfig -v thunderbolt0|grep inet Ubuntu » Peer IP: arp -a -i thunderbolt0 |
MacOS » Self IP: ifconfig -v bridge0|grep inet MacOS » Peer IP: arp -a -i bridge0 |
modprobe thunderbolt-net lspci | grep -i thunder lspci | grep -i usb |
ifconfig -v thunderbolt0| grep inet ifconfig -v bridge0 | grep inet ifconfig -v |
arp -a -i thunderbolt0 arp -a -i bridge0 arp -a |
Netplan
sudo tee /etc/netplan/30-ethernet-thunderbolt.yaml >/dev/null <<EOF
network:
version: 2
ethernets:
thunderbolt0:
link-local: [ ipv4 ]
EOF
sudo chmod 600 /etc/netplan/*.yaml
sudo netplan try
sudo apt install linux-modules-extra-raspi
sudo apt install openvswitch-switch-dpdk
sudo netplan try && sudo netplan apply
Playground
ls -lah /sys/bus/thunderbolt/devices/domain0/iommu_dma_protection
cat /sys/bus/thunderbolt/devices/domain0/iommu_dma_protection
cat /sys/bus/thunderbolt/devices/0-0/usb4_port1/link
ls -lah /sys/bus/thunderbolt/devices/0-0/usb4_port*
ls -lah /sys/bus/thunderbolt/devices/domain0/security
cat /sys/bus/thunderbolt/devices/domain0/security
ls -lah /sys/bus/thunderbolt/devices/0-1/
ls -lah /sys/bus/thunderbolt/devices/
cat /etc/udev/rules.d/99-local.rules
ls -lah /etc/udev/rules.d/
lspci | grep -i thunder
lspci | grep -i usb
lsmod | grep thund
boltctl list -a
lspci -v
References
| ||