Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old Kernel Version Error #10

Open
myasir926 opened this issue Sep 6, 2023 · 1 comment
Open

Old Kernel Version Error #10

myasir926 opened this issue Sep 6, 2023 · 1 comment

Comments

@myasir926
Copy link

The installation fails because the current kernel version has a higher version than the requested kernel version.

Error is: "Driver for 6.1.21-v7l+ kernel not found"

Kernel version control can be disabled for workaround.

Note: Kernel should be downloaded to the latest.

(sudo apt update && sudo apt upgrade , sudo apt-get install raspberrypi-kernel-headers)

In addition, the "DIR=/home/pi/files" directory on line 15 of the "tutorials/QMI_tutorial/qmi_install.sh" file gives an error because it changes from user to user.

@myasir926
Copy link
Author

#!/bin/sh

: '
QMI installation script by Sixfab
This script is strictly for Raspberry Pi OS.

Created By Metin Koc, Nov 2018
Modified by Saeed Johar, 11th June 2019
'

YELLOW='\033[1;33m'
RED='\033[0;31m'
SET='\033[0m'

DIR=/home/{CHANGE_FOR_YOUR_USERNAME}/files
UDHCPC_DIR=/usr/share/udhcpc

echo "${YELLOW}Clean Old Files${SET}"
if [ -d $DIR ]; then
rm -rf $DIR
rm -rf $DIR.zip ; fi # for old directory

echo "${YELLOW}Change directory to /home/pi${SET}"
cd /home/pi

echo "${YELLOW}Downloading source files${SET}"
wget https://github.com/sixfab/Sixfab_RPi_3G-4G-LTE_Base_Shield/raw/master/tutorials/QMI_tutorial/src/quectel-CM.zip -O quectel-CM.zip
unzip quectel-CM.zip -d $DIR && rm -r quectel-CM.zip

echo "${YELLOW}Checking Kernel${SET}"

echo "${YELLOW}Installing udhcpc${SET}"
apt install udhcpc

echo "denyinterfaces wwan0" >> /etc/dhcpcd.conf
sudo systemctl daemon-reload
sudo systemctl restart dhcpcd

echo "${YELLOW}Copying udhcpc default script${SET}"
mkdir -p $UDHCPC_DIR
cp $DIR/quectel-CM/default.script $UDHCPC_DIR/
chmod +x $UDHCPC_DIR/default.script

if [ -d $DIR/drivers ]; then
echo "${YELLOW}Change directory to $DIR/drivers${SET}";
cd $DIR/drivers;
make && make install;
fi

echo "${YELLOW}Change directory to $DIR/quectel-CM${SET}"
cd $DIR/quectel-CM
make

chmod 777 $DIR/quectel-CM
echo "${YELLOW}After reboot please follow commands mentioned below${SET}"
echo "${YELLOW}go to $DIR/quectel-CM and run sudo ./quectel-CM -s [YOUR APN]${SET}"

read -p "Press ENTER key to reboot" ENTER
reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant