[yocto] Support to install TUN/TAP kernel-module-tun

Simon Andrieu sandrieu at greenflex.com
Wed Sep 24 02:48:28 PDT 2014


Hi,

Thanks for your various helpful answers that enable me to understand better the possible solutions to connect a cellular modem.

I am first trying the Ofono solution, and came to this message error (dmesg):
Jun 11 09:11:13 igep00x0 daemon.info ofonod[1261]: Modem support (CDC support: unknown)
Jun 11 09:11:14 igep00x0 daemon.err ofonod[1261]: Missing support for TUN/TAP devices

From my search, I have to install the kernel-module-tun module.
Could you help me to know the repository to configure for using zipper and installing it please?
(Could you also confirm me that installing kernel-module-tun is the right solution please?)

Thanks for your help.

Regards,
Simon Andrieu

-----Message d'origine-----
De : Burton, Ross [mailto:ross.burton at intel.com] 
Envoyé : vendredi 19 septembre 2014 23:33
À : Simon Andrieu
Cc : yocto at yoctoproject.org
Objet : Re: [yocto] Poky/Yocto drivers for cellular modem

On 18 September 2014 17:39, Simon Andrieu <sandrieu at greenflex.com> wrote:
> Using some Linux distribution, it exists drivers that help recognizing 
> a cellular modem USB stick and to raise a corresponding network interface.
>
> Would you know please if such a generic cellular modem driver exists 
> in Poky/Yocto distribution please?

Would connman + ofono be suitable?

Ross

-----Message d'origine-----
De : Maciej Borzecki [mailto:maciej.borzecki at open-rnd.pl] 
Envoyé : samedi 20 septembre 2014 15:36
À : Simon Andrieu
Cc : yocto at yoctoproject.org
Objet : Re: [yocto] Poky/Yocto drivers for cellular modem

On Thursday 18 of September 2014 16:39:33 Simon Andrieu wrote:
> Hi,
> 
> I work for a company  that develops telemetry boxes, and that uses a 
> Poky/Yocto distribution running on the main board. It is planned to 
> integrate a cellular module connected via USB or serial link to the 
> main board.
> 
> Using some Linux distribution, it exists drivers that help recognizing 
> a cellular modem USB stick and to raise a corresponding network interface.
> Would you know please if such a generic cellular modem driver exists 
> in Poky/Yocto distribution please? More further, It could be helpful 
> to have some tutorial notes to integrate it please.

I'm working a similar applications. Most USB devices seem to implement CDC ACM that works quite well with kernel drivers. Basically you end up with one of /dev/ttyACM devices that pppd can talk to. 

In past, due to image size constraints, we had custom code that looked at these devices (used libudev to correlated /dev entries with usb devices) and started pppd, thus skipping ofono/connman and their deps. The current setups are mostly systemd/systemd-networkd + pppd glue. Without much trouble it's possible to get ~20MB ext3 rootfs image with all the stuff you need.

There were also some dongles that came up as CDC Ether, but I've only seen this for some WiMAX modules that I'm not sure are even available on the market anymore.

For transport, you can find rabbitmq-c in meta-oe. I'll also be sending some patches for Paho MQTT libraries and mosquitto next week or so.

-- 

Maciej Borzęcki
Senior Software Engineer Open-RnD Sp. z o.o. 
www.open-rnd.pl, Facebook, Twitter
mobile: +48 telefon, fax: +48 42 657 9079 

Niniejsza wiadomość wraz z załącznikami może zawierać chronione prawem lub poufne informacje i została wysłana wyłącznie do wiadomości i użytku osób, do których została zaadresowana. Jeśli wiadomość została otrzymana przypadkowo zabrania się jej kopiowania lub rozsyłania do osób trzecich. W takim przypadku uprasza się o natychmiastowe zniszczenie wiadomości oraz poinformowanie nadawcy o zaistniałej sytuacji za pomocą wiadomości zwrotnej. Dziękujemy. 

This message, including any attachments hereto, may contain privileged or confidential information and is sent solely for the attention and use of the intended addressee(s). If you are not an intended addressee, you may neither use this message nor copy or deliver it to anyone. In such case, you should immediately destroy this message and kindly notify the sender by reply email. 
Thank you. 


More information about the yocto mailing list