Page 1 of 1

Compile

Posted: Thu Jan 23, 2025 12:30 am
by age
Help me build R1 Plus LTS firmware
already tried building with basic and it works on my device.
so now i want to add xmm-modem to read fibocom l850/l860-gl
copy to gargoyle/package/
set it in config
firmware builds successfully but no xmm-modem package is included in the firmware.
tried adding in:
gargoyle/package/gargoyle/Makefile
Build error
* pkg_hash_check_unresolved: cannot find dependency xmm-modem for gargoyle-large
Configuring openwrt-keyring.
* pkg_hash_fetch_best_installation_candidate: Packages for gargoyle-large found, but incompatible with the architectures configured

Re: Compile

Posted: Thu Jan 23, 2025 3:06 am
by Lantis
Can you provide more details about what you copied and to where?
What commands are you using to build?
What did you set in config? Which config file?

What you have described should work fine, so there must be something not quite right.

Re: Compile

Posted: Thu Jan 23, 2025 4:15 am
by age
i moved xmm-modem folder:
to gargoyle/package/xmm-modem
i set config:
make custom
saved and moved custom-src/.config to targets/rockchip/profiles/default
and my command:
make rockchip FULL_BUILD=true

Code: Select all

#
# Gargoyle Profile Meta-packages
#
# CONFIG_PACKAGE_gargoyle-basic is not set
CONFIG_PACKAGE_gargoyle-large=y
# CONFIG_PACKAGE_gargoyle-usb is not set
# CONFIG_PACKAGE_gargoyle-vpn is not set
# end of Gargoyle Profile Meta-packages
#
# Extra packages
#
# CONFIG_PACKAGE_jose is not set
# CONFIG_PACKAGE_libjose is not set
# CONFIG_PACKAGE_nginx is not set
# CONFIG_PACKAGE_nginx-mod-luci-ssl is not set
# CONFIG_PACKAGE_nginx-util is not set
# CONFIG_PACKAGE_tang is not set
CONFIG_PACKAGE_vsftpd=y
# CONFIG_PACKAGE_vsftpd-tls is not set
CONFIG_PACKAGE_xmm-modem=y
# end of Extra packages

Re: Compile

Posted: Thu Jan 23, 2025 5:58 am
by Lantis
When you do the custom make, is the only thing you do to select the package xmm-modem?

I think your config is likely corrupted.
The simplest method is to directly modify targets/rockchip/profiles/default/config and add the line
CONFIG_PACKAGE_xmm-modem=y

Then run
make FULL_BUILD=true rockchip

Now just to confirm you are building off the “base_on_openwrt_2305” branch yes? Otherwise this is a waste of time as your device was not supported yet.

Also find and set
CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_xunlong_orangepi-r1-plus-lts=y
And add an appropriate entry to profile_images file

If it doesn’t work, further explain what errors you are encountering please

Re: Compile

Posted: Thu Jan 23, 2025 6:36 am
by age
yes , i build base_on_openwrt_2305 ,
i set everything via menuconfig(make custom)
firmware successfully build , install successfully on my device.
but xmm-modem package is not included in my firmware.
if i add xmm-modem in gargoyle/package/gargoyle-profiles/Makefile

Code: Select all

 GARGOYLE_PKGS_LARGE:= +plugin-gargoyle-usb-storage-full +plugin-gargoyle-minidlna \
		+plugin-gargoyle-usb-printer +plugin-gargoyle-webcam \
		+plugin-gargoyle-ipheth-tether +xmm-modem
build failed

Code: Select all

 * pkg_hash_check_unresolved: cannot find dependency xmm-modem for gargoyle-large
Configuring openwrt-keyring.
* pkg_hash_fetch_best_installation_candidate: Packages for gargoyle-large found, but incompatible with the architectures configured

Re: Compile

Posted: Thu Jan 23, 2025 7:50 am
by Lantis
Friend, read what my post says. I have explained exactly what to do. Whatever you are trying to do is over complicated and incorrect.

Here it is even more explicitly.

Code: Select all

diff --git a/targets/rockchip/profiles/default/config b/targets/rockchip/profiles/default/config
index e2d6d879..697951ce 100644
--- a/targets/rockchip/profiles/default/config
+++ b/targets/rockchip/profiles/default/config
@@ -69,8 +69,8 @@ CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_friendlyarm_nanopi-r2s=y
 CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_friendlyarm_nanopi-r4s=y
 CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_pine64_rockpro64=y
 CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_radxa_rock-pi-4a=y
-# CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_xunlong_orangepi-r1-plus is not set
-# CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_xunlong_orangepi-r1-plus-lts is not set
+CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_xunlong_orangepi-r1-plus=y
+CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_xunlong_orangepi-r1-plus-lts=y
 # end of Target Devices

 CONFIG_HAS_SUBTARGETS=y
@@ -2640,6 +2640,7 @@ CONFIG_PACKAGE_u-boot-rockpro64-rk3399=y
 CONFIG_PACKAGE_libiwinfo-data=y
 CONFIG_PACKAGE_vsftpd=y
 # CONFIG_PACKAGE_vsftpd-tls is not set
+CONFIG_PACKAGE_xmm-modem=y
 # end of Extra packages

 #
diff --git a/targets/rockchip/profiles/default/profile_images b/targets/rockchip/profiles/default/profile_images
index 9c4ba850..2d5373f5 100644
--- a/targets/rockchip/profiles/default/profile_images
+++ b/targets/rockchip/profiles/default/profile_images
@@ -2,3 +2,4 @@ friendlyarm_nanopi-r2s-
 friendlyarm_nanopi-r4s-
 pine64_rockpro64-
 radxa_rock-pi-4a-
+xunlong_orangepi-r1-plus-

Code: Select all

cp -r ./xmm-modem/ ~/gargoyle/packages/
cd ~/gargoyle/
make FULL_BUILD=true rockchip
Here it is done for you.
Firmware
Packages

Re: Compile

Posted: Thu Jan 23, 2025 8:10 am
by age
thank you sir, i will try it