I'm using a Remarkable 1 and trying to connect it to my FreeBSD 12.1 machine. It connects just fine via USB as dmesg shows:
That's great, but I know that the remarkable has a DHCP server, so that it can actually give you an IP address for local access via a web server. So, I thought I would use devd(8) to run dhclient on the attached ueX.
However, it seems that while the urndis sets the vendor and product code (from debug):
The USB Ethernet does not:
For the time being, I wrote this rule:
And this works, but the hardcoding of ue0 is incredibly fragile and is just waiting to break (if not on this machine, on another one).
Is there some other information I could check or a knob I could adjust to make this work out of the box? Or should I write a more complex script that greps dmesg to get the correct ue out when this urndis attaches?
Code:
ugen0.3: <Linux 4.9.84-zero-gravitas with 2184000.usb RNDIS/Ethernet Gadget> at usbus0
urndis0 on uhub3
urndis0: <RNDIS Communications Control> on usbus0
ue0: <USB Ethernet> on urndis0
That's great, but I know that the remarkable has a DHCP server, so that it can actually give you an IP address for local access via a web server. So, I thought I would use devd(8) to run dhclient on the attached ueX.
However, it seems that while the urndis sets the vendor and product code (from debug):
Code:
Processing event '+urndis0 at bus=0 hubaddr=2 port=1 devaddr=3 interface=0 ugen=ugen0.3 vendor=0x04b3 product=0x4010 devclass=0x02 devsubclass=0x00 devproto=0x00 sernum="" release=0x0409 mode=host intclass=0x02 intsubclass=0x02 intprotocol=0xff on uhub3'
The USB Ethernet does not:
Code:
Processing event '!system=IFNET subsystem=ue0 type=ATTACH'
For the time being, I wrote this rule:
Code:
# Connect the Remarkable 1 device and get the IP address
attach 100 {
device-name "urndis.+";
match "vendor" "0x04b3";
match "product" "0x4010";
action "/sbin/dhclient ue0";
};
And this works, but the hardcoding of ue0 is incredibly fragile and is just waiting to break (if not on this machine, on another one).
Is there some other information I could check or a knob I could adjust to make this work out of the box? Or should I write a more complex script that greps dmesg to get the correct ue out when this urndis attaches?
Last edited by a moderator: