Replies: 4 comments 6 replies
-
Ugh - this was a challenge! Old OpenWRT, Asterisk, GCC and old CMake. But finally here you are: Assuming all prerequisites are fulfilled: echo Step 0 - Install python2
sudo apt install python2
echo Step 1 - Clone asterisk-chan-quectel repository
git clone https://github.com/RoEdAl/asterisk-chan-quectel.git acq
cd acq
echo Step 2 - Initialize CMake environment
./make-build-dir.cmake default 162502
./install-openwrt-makefile.cmake
echo Step 3 - Download and extract OpenWRT SDK
cd install/openwrt
wget https://downloads.openwrt.org/releases/19.07.9/targets/ath79/nand/openwrt-sdk-19.07.9-ath79-nand_gcc-7.5.0_musl.Linux-x86_64.tar.xz
tar -xf openwrt-sdk-19.07.9-ath79-nand_gcc-7.5.0_musl.Linux-x86_64.tar.xz
rm openwrt-sdk-19.07.9-ath79-nand_gcc-7.5.0_musl.Linux-x86_64.tar.xz
mv openwrt-sdk-19.07.9-ath79-nand_gcc-7.5.0_musl.Linux-x86_64 sdk-ath79
echo Step 4 - Tweak SDK - use CMake from host computer rather than from SDK
echo Step 4 - CMake shipped with SDK is too old - minimum required version is 3.19
rm sdk-ath79/staging_dir/host/bin/cmake
cp -s $(which cmake) sdk-ath79/staging_dir/host/bin/cmake
echo Step 5 - Prepare configuration files
cp feeds-strskx.conf diffconfig build-opk.sh sdk-ath79
echo Step 6 - Build package - this may take some time
cd sdk-ath79
./build-opk.sh
echo Your package location
ls bin/packages/*/strskx/*.ipk Please do not execute commands blindly and watch output messages. Check out my workflows: Generated package wasn't tested at all. |
Beta Was this translation helpful? Give feedback.
-
Maybe sound device is in use too. Please show the output of following commands:
|
Beta Was this translation helpful? Give feedback.
-
Audio device isn't in use. Maybe this is endianness issue. You must rebuild package with the latest changes. git pull
./install-openwrt-makefile.cmake
cd install/openwrt/sdk-ath79
./build-opk.sh |
Beta Was this translation helpful? Give feedback.
-
This still may be an issue with big-endian CPU architecture. Somewhere translation from S16_LE to S16_BE (or vice versa) should be performed. Please do not upgrade OpenWRT for a while if you can. I'll check it in the coming days. |
Beta Was this translation helpful? Give feedback.
-
I want to build for GL-XE300 whicih is ath79 platform ,Openwrt 19.07 and Asterisk16.
Could you show the steps for cross-compile process?
Ref:
https://openwrt.org/toh/hwdata/gl.inet/gl.inet_gl-xe300
Beta Was this translation helpful? Give feedback.
All reactions