How to enable SIM slot

How do I access the Internet on my ThinPad X1 Carbon via a SIM card?

Should the SIM slot show up when I run pciconf -lv ?
 
Not necessarily, it could be usb connected. Try # usbconfig. Oh, and some of these wwan adapters don't show up unless there is a SIM card in it...
Also, you been here before: https://forums.freebsd.org/threads/wwan-card-in-thinkpad-x220.70899/
Thanks for pointing that link out. That was related to a ThinkPad X220, and don't think I resolved anything.

Now, I have an X1 Carbon, and did manage to use a SIM card under Windows, but was wondering how to achieve the same thing under FreeBSD.

Running lsusb I get (among other things):

Bus /dev/usb Device /dev/ugen0.3: ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module

and suspect this is in some way realted to ue0....
Code:
root@X1:~ # ifconfig ue0
ue0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether 02:15:e0:ec:01:00
        media: Ethernet autoselect
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Should I expect this to resolve if I put a SIM card in the slot, and run dhclient ue0?
 
Thanks for pointing that link out. That was related to a ThinkPad X220, and don't think I resolved anything.

Now, I have an X1 Carbon, and did manage to use a SIM card under Windows, but was wondering how to achieve the same thing under FreeBSD.

Running lsusb I get (among other things):

Bus /dev/usb Device /dev/ugen0.3: ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module

and suspect this is in some way realted to ue0....
Code:
root@X1:~ # ifconfig ue0
ue0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether 02:15:e0:ec:01:00
        media: Ethernet autoselect
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Should I expect this to resolve if I put a SIM card in the slot, and run dhclient ue0?

No, that is unrelated.

Most likely you have a USB serial port here which you use to talk to like an old school modem to the WAN chip. I suppose that talk would be the same under Linux and FreeBSD, so I'd start poking around for Linux tips.

BTW, does suspend/resume work on that laptop?
 
No, that is unrelated.

Most likely you have a USB serial port here which you use to talk to like an old school modem to the WAN chip. I suppose that talk would be the same under Linux and FreeBSD, so I'd start poking around for Linux tips.

If I connect a USB -> RJ45 adapter, a UE1 appears. I've never been sure where UE0 comes from.

Maybe this provides a clue...

Code:
root@X1:~ # dmesg | grep modem
umodem0 on uhub2
umodem0: <H5321 gw Mobile Broadband Modem> on usbus0
umodem0: data interface 2, has CM over data, has break
umodem1 on uhub2
umodem1: <H5321 gw Mobile Broadband Data Modem> on usbus0
umodem1: data interface 4, has CM over data, has break
umodem2 on uhub2
umodem2: <H5321 gw Mobile Broadband GPS Port> on usbus0
umodem2: data interface 10, has CM over data, has break

BTW, does suspend/resume work on that laptop?
I never physically suspend my laptop, I just close the lid at night and when I open it in the morning and press a key, it works. Not really sure how much power is being consumed. Maybe I should check...
 
After inserting a SIM which I knew was able access the Internet in Teltonika Rut 955 modem/router, the UE0 interface seems to have woken up.

Code:
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether 02:15:e0:ec:01:00
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Not sure what to make of all that but when I ran dhclient UE0 there was some attempt to get an IP address assigned.
The last section of dmesg shows:

Code:
ugen0.2: <eGalax Inc. eGalaxTouch EXC7903-66v03T1> at usbus0 (disconnected)
ums0: at uhub2, port 3, addr 30 (disconnected)
ums0: detached
ugen0.2: <eGalax Inc. eGalaxTouch EXC7903-66v03T1> at usbus0
ums0 on uhub2
ums0: <eGalax Inc. eGalaxTouch EXC7903-66v03T1, class 0/0, rev 2.00/66.03, addr 31> on usbus0
acpi_tz0: _CRT value is absurd, ignored (200.1C)
ugen0.3: <Lenovo H5321 gw> at usbus0 (disconnected)
umodem0: at uhub2, port 4, addr 2 (disconnected)
umodem0: detached
umodem1: at uhub2, port 4, addr 2 (disconnected)
umodem1: detached
cdce0: at uhub2, port 4, addr 2 (disconnected)
cdce0: detached
umodem2: at uhub2, port 4, addr 2 (disconnected)
umodem2: detached
ugen0.3: <Lenovo H5321 gw> at usbus0
uhid0 on uhub2
uhid0: <Lenovo H5321 gw, class 0/0, rev 2.00/1.00, addr 32> on usbus0
uhid0: no report descriptor
device_attach: uhid0 attach returned 12
ugen0.3: <Lenovo H5321 gw> at usbus0 (disconnected)
ugen0.3: <Lenovo H5321 gw> at usbus0
umodem0 on uhub2
umodem0: <H5321 gw Mobile Broadband Modem> on usbus0
umodem0: data interface 2, has CM over data, has break
umodem1 on uhub2
umodem1: <H5321 gw Mobile Broadband Data Modem> on usbus0
umodem1: data interface 4, has CM over data, has break
cdce0 on uhub2
cdce0: <Ericsson H5321 gw> on usbus0
ue0: <USB Ethernet> on cdce0
ue0: Ethernet address: 02:15:e0:ec:01:00
umodem2 on uhub2
umodem2: <H5321 gw Mobile Broadband GPS Port> on usbus0
umodem2: data interface 10, has CM over data, has break
acpi_tz0: _CRT value is absurd, ignored (200.1C)
ue0: link state changed to DOWN

I can't make much sense of this at the moment, but it looks interesting.
 
balanga check [this thread](https://forums.freebsd.org/threads/lenovo-x1-carbon-gen-9.82216/post-542871), that's how i get my wwan/4G working. If you are using FreeBSD 14, kernel building is not needed anymore and quite depends on your 4G hardware/module.
 
balanga check [this thread](https://forums.freebsd.org/threads/lenovo-x1-carbon-gen-9.82216/post-542871), that's how i get my wwan/4G working. If you are using FreeBSD 14, kernel building is not needed anymore and quite depends on your 4G hardware/module.
All that looks like a lot of hard work, although I guess I need to update to 14.0 to avoid much of it.

My ThinkPad is Gen1 and has an Ericsson H5321 WWAN module, which I believe is 3G. Should I expect to get this working?

I'd like to install a 4G (or even 5G) card at some point. Any recommendations?
 
Thanks for that, although I'm not sure I understand. It looks like the link shows my card is not supoorted, yet you say the working driver is
umodem()... I'm confused by this...
From the table in bsd-hardware. Info page, the first two freebsd probes is fb 12 and the statues are works, so the drive for your hardware exist since pre/eq freebsd12 version. Your fb version is fb13, the driver is there and can be loaded. The other fb probes are "detected".

Try
kldload umodem as root user and configure your card.
 
Back
Top