Hello,
I bought a Huawei E3372 modem and flashed its firmware to "stick mode", so it acts as a modem, not as a router.
This way, I have access to NCM connection instead of PPP.
I also modified the multi-mode so I do not need to use usb_modeswitch(8).
Manually, I :
What I would like to achieve is doing this automatically on boot (the USB key will remain connected).
So far, I :
So on boot, FreeBSD tries to get an IP address on ue0 (which fails because the modem is down at this very moment).
Then devd is started, the modem is initialized and ue0 is ready to get an IP address. But it is too late.
Does anyone know how it would be possible to launch the initialization command before the start of the network ?
I bought a Huawei E3372 modem and flashed its firmware to "stick mode", so it acts as a modem, not as a router.
This way, I have access to NCM connection instead of PPP.
I also modified the multi-mode so I do not need to use usb_modeswitch(8).
Manually, I :
- launch an AT^ command to /dev/cuaU0 to initialize the modem
- run dhclient on ue0 (the ncm interface)
What I would like to achieve is doing this automatically on boot (the USB key will remain connected).
So far, I :
- set
ifconfig_ue0="DHCP"
(or SYNCDHCP) in /etc/rc.conf - created a devd entry to launch the AT^ command
So on boot, FreeBSD tries to get an IP address on ue0 (which fails because the modem is down at this very moment).
Then devd is started, the modem is initialized and ue0 is ready to get an IP address. But it is too late.
Does anyone know how it would be possible to launch the initialization command before the start of the network ?