# BG96 with RPi4 with Linux 5.4.66+

**URL:** <https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854>\
**Category:** 3G/4G&LTE Base HAT\
**Created:** [November 2, 2020, 10:26pm UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854 "2020-11-02T22:26:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rocketjosh](https://community.sixfab.com/letter_avatar_proxy/v4/letter/r/43a26b/32.png) [@rocketjosh](https://community.sixfab.com/u/rocketjosh)\
**Post date:** [November 2, 2020, 10:26pm UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/1 "2020-11-02T22:26:36Z")

</div>

Hello, I’ve run into an issue with the IoT HAT and the Quectel BG96, and it appears as though some changes in 5.4.66 have affected how USB3 is treated?

From this [link](https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.4.66) (search BG96):

> Change rules for EC21, EC25, BG96 and EG95 to match vendor specific  
> serial functions only, to prevent binding to class functions. Require  
> 2 endpoints on ff/ff/ff functions, avoiding the 3 endpoint QMI/RMNET  
> network functions.

Reverting to 5.4.65 allows for BG96 to load correctly. Any ideas for how to keep using latest kernel (currently 5.4.73) ?

---

<div class="post-metadata">

**Author:** ![ensar](https://community.sixfab.com/user_avatar/community.sixfab.com/ensar/32/8_2.png) [@ensar](https://community.sixfab.com/u/ensar)\
**Post date:** [November 5, 2020, 10:15am UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/2 "2020-11-05T10:15:40Z")

</div>

Hi @rocketjosh,

Yes, this is a driver-based issue, This has been informed to the module OEM for the driver update/patch. For the time being, you can downgrade the kernel version to _5.4.65_ where the module works fine.

---

<div class="post-metadata">

**Author:** ![rocketjosh](https://community.sixfab.com/letter_avatar_proxy/v4/letter/r/43a26b/32.png) [@rocketjosh](https://community.sixfab.com/u/rocketjosh)\
**Post date:** [November 10, 2020, 4:27pm UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/3 "2020-11-10T16:27:46Z")

</div>

Right on, thanks @ensar

---

<div class="post-metadata">

**Author:** ![dome](https://community.sixfab.com/user_avatar/community.sixfab.com/dome/32/1228_2.png) [@dome](https://community.sixfab.com/u/dome)\
**Post date:** [November 13, 2020, 11:11am UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/4 "2020-11-13T11:11:26Z")

</div>

I’m using kernel 5.4.75 and BG96 still problem mapping ttyUSBx devices. Any news?

---

<div class="post-metadata">

**Author:** ![dome](https://community.sixfab.com/user_avatar/community.sixfab.com/dome/32/1228_2.png) [@dome](https://community.sixfab.com/u/dome)\
**Post date:** [November 25, 2020, 8:25am UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/5 "2020-11-25T08:25:01Z")

</div>

I can’t install HMI drivers on kernel 5.4.72, the qm\_install.sh report error:  
`Driver for 5.4.72-v7l+ kernel not found`

I’ve running drivers on older kernel 5.4 … What’s wrong?

---

<div class="post-metadata">

**Author:** ![ensar](https://community.sixfab.com/user_avatar/community.sixfab.com/ensar/32/8_2.png) [@ensar](https://community.sixfab.com/u/ensar)\
**Post date:** [November 25, 2020, 12:58pm UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/6 "2020-11-25T12:58:20Z")

</div>

Hi @dome,

> [@dome](#):
>
> I’m using kernel 5.4.75 and BG96 still problem mapping ttyUSBx devices. Any news?

I will update you when I have more information.

> [@dome](#):
>
> I can’t install HMI drivers on kernel 5.4.72, the qm\_install.sh report error:  
> `Driver for 5.4.72-v7l+ kernel not found`
> 
> I’ve running drivers on older kernel 5.4 … What’s wrong?

Could you add the whole log? It’s working for me, just tested

 ![image1](https://community.sixfab.com/uploads/default/original/1X/f7622c642d2da57a7b5cd34a4f774a25280e5375.png)

---

<div class="post-metadata">

**Author:** ![dome](https://community.sixfab.com/user_avatar/community.sixfab.com/dome/32/1228_2.png) [@dome](https://community.sixfab.com/u/dome)\
**Post date:** [November 26, 2020, 4:22pm UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/7 "2020-11-26T16:22:13Z")

</div>

The script “qmi\_install.sh” create “files” dir in /home/root and not in /home/pi because it is using $(whoami) running as sudo. Anyway now it compiles correctly and quectel-CM start but I get:

```
[11-26_17:12:14:849] Quectel_QConnectManager_Linux_V1.6.0.12
[11-26_17:12:14:852] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x296, bus=0x001, dev=0x006
[11-26_17:12:14:854] Auto find qmichannel = /dev/cdc-wdm0
[11-26_17:12:14:854] Auto find usbnet_adapter = wwan0
[11-26_17:12:14:855] netcard driver = qmi_wwan, driver version = 22-Aug-2005
[11-26_17:12:14:856] ioctl(0x89f3, qmap_settings) failed: Operation not supported, rc=-1
[11-26_17:12:14:857] Modem works in QMI mode
[11-26_17:12:14:876] cdc_wdm_fd = 7
[11-26_17:12:14:885] Get clientWDS = 1
[11-26_17:12:14:887] Get clientDMS = 1
[11-26_17:12:14:889] Get clientNAS = 1
[11-26_17:12:14:891] Get clientUIM = 1
[11-26_17:12:14:893] Get clientWDA = 1
[11-26_17:12:14:895] requestBaseBandVersion BG96MAR02A07M1G 1 [Jun 22 2018 06:00:00]
[11-26_17:12:14:903] requestGetSIMStatus SIMStatus: SIM_READY
[11-26_17:12:14:903] requestSetProfile[1] iot.1nce.net///0
[11-26_17:12:14:915] requestGetProfile[1] iot.1nce.net///0
[11-26_17:12:14:917] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW
[11-26_17:12:14:919] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[11-26_17:12:14:920] ifconfig wwan0 down
[11-26_17:12:14:931] ifconfig wwan0 0.0.0.0
^C[11-26_17:12:23:303] QmiWwanThread exit
[11-26_17:12:23:305] qmi_main exit

```

I see an ioctl error but I don’t know what it means.  
On the older kernel I had 4 ttyUSBx (0,1,2,3) but now I’ve only 2 ttyUSBx (0,1).

---

<div class="post-metadata">

**Author:** ![ensar](https://community.sixfab.com/user_avatar/community.sixfab.com/ensar/32/8_2.png) [@ensar](https://community.sixfab.com/u/ensar)\
**Post date:** [November 26, 2020, 9:05pm UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/8 "2020-11-26T21:05:26Z")

</div>

> [@dome](#):
>
> I see an ioctl error but I don’t know what it means.

You can ignore this error message during the process. This is a warning message only.

> [@dome](#):
>
> On the older kernel I had 4 ttyUSBx (0,1,2,3) but now I’ve only 2 ttyUSBx (0,1).

I’ve already mentioned this here:

> [@BG96 with RPi4 with Linux 5.4.66+](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/2):
>
> Hi @rocketjosh, Yes, this is a driver-based issue, This has been informed to the module OEM for the driver update/patch. For the time being, you can downgrade the kernel version to 5.4.65 where the module works fine.

 ![image_1](https://community.sixfab.com/uploads/default/original/1X/ac37dacd52a8dbd5cced88b953da4d52a0149503.png)

> **[Raspberry Pi Cellular IoT HAT - Getting Started](https://docs.sixfab.com/docs/raspberry-pi-cellular-iot-hat-getting-started)**
>
> Raspberry Pi Cellular IoT HAT - Getting Started

Have you tried a PPP connection?

> **[Setting up the PPP connection for Sixfab Shield/HAT](https://docs.sixfab.com/page/setting-up-the-ppp-connection-for-sixfab-shield-hat)**
>
> Sixfab offers shields/HATs for Raspberry Pi which provides cellular PPP Internet connection anywhere with the availability of mobile network coverage. Each of these shields/HATs can be connected to the Internet via PPP(Point to Point Protocol). For...

---

<div class="post-metadata">

**Author:** ![dome](https://community.sixfab.com/user_avatar/community.sixfab.com/dome/32/1228_2.png) [@dome](https://community.sixfab.com/u/dome)\
**Post date:** [November 27, 2020, 8:14am UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/9 "2020-11-27T08:14:33Z")

</div>

In the meantime I’ve downgraded kernel to 5.4.65 … We hope in a fast fix…

---

<div class="post-metadata">

**Author:** ![gerie.alards](https://community.sixfab.com/letter_avatar_proxy/v4/letter/g/6f9a4e/32.png) [@gerie.alards](https://community.sixfab.com/u/gerie.alards)\
**Post date:** [December 11, 2020, 11:27am UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/10 "2020-12-11T11:27:35Z")

</div>

now I even get any of the USB ports anymore. I get the same results after formatting and reinstall 3 different Noobs version (the latest, september 2020 and even june 2019).

 ![2020-12-11-122014_1920x1080_scrot](https://community.sixfab.com/uploads/default/original/1X/5d45fea40ba1f30820b15cca5cf3c9ace752b88e.png)

---

<div class="post-metadata">

**Author:** ![ensar](https://community.sixfab.com/user_avatar/community.sixfab.com/ensar/32/8_2.png) [@ensar](https://community.sixfab.com/u/ensar)\
**Post date:** [December 11, 2020, 11:33am UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/11 "2020-12-11T11:33:00Z")

</div>

Make sure that the micro USB cable is connected between the HAT and the Rpi.  
Also, make sure your module is powered up. It can be turned on by pushing the PWRKEY button for at least 500ms.

---

<div class="post-metadata">

**Author:** ![gerie.alards](https://community.sixfab.com/letter_avatar_proxy/v4/letter/g/6f9a4e/32.png) [@gerie.alards](https://community.sixfab.com/u/gerie.alards)\
**Post date:** [December 11, 2020, 2:21pm UTC](https://community.sixfab.com/t/bg96-with-rpi4-with-linux-5-4-66/854/12 "2020-12-11T14:21:21Z")

</div>

now seems everything ok till sudo pon

after pressing the PWRKEY at least 5 seconds all USB ports are listed.  
however it doesn’t recognize the sudo pon sudo: pon: command not found

the example port table is listing ttyUSB3 but there are 0, 1, 2, 3 USB ports available, i tried all but  
sudo pon remains not found
