Dongle modem manager

Arch based Porteus community project

Moderator: M. Eerie

vinnie
Shogun
Shogun
Posts: 211
Joined: 13 Jun 2024, 08:25
Distribution: alpine

Dongle modem manager

Post#1 by vinnie » 29 Aug 2024, 14:25

I wanted to try building this github repository which contains an interface for an old 3g modem that apparently requires kernel headers.
I activated the modules “05-devel.xzm” and “06-crippled_sources-6.9.5-64bit.xzm” but when I try to give make as instructed it stops with this error:

Code: Select all

[porteus HuaweiE173LinuxDriver-master]# make
make -C /lib/modules/6.9.7-porteus/build SUBDIRS=/mnt/sdb4/programmazione/e173_driver/HuaweiE173LinuxDriver-master modules
make[1]: Entering directory '/usr/src/linux-6.9.5'
  SYNC    include/config/auto.conf
init/Kconfig:1941: can't open file "arch/Kconfig"
make[4]: *** [scripts/kconfig/Makefile:85: syncconfig] Error 1
make[3]: *** [Makefile:688: syncconfig] Error 2
make[2]: *** [/usr/src/linux-6.9.5/Makefile:789: include/config/auto.conf] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-6.9.5'
make: *** [Makefile:30: modules] Error 2
Granted that I have never compiled a kernel in my life, there are many Kconfig inside /lib/modules/6.9.7-porteus/build/ directory and I assume that one of those is the one used to compile Nemesis:

Code: Select all

# find -name "Kconfig" -type f
./scripts/kconfig/tests/auto_submenu/Kconfig
./scripts/kconfig/tests/choice/Kconfig
./scripts/kconfig/tests/choice_randomize/Kconfig
./scripts/kconfig/tests/choice_randomize2/Kconfig
./scripts/kconfig/tests/choice_value_with_m_dep/Kconfig
./scripts/kconfig/tests/err_recursive_dep/Kconfig
./scripts/kconfig/tests/err_recursive_inc/Kconfig
./scripts/kconfig/tests/inter_choice/Kconfig
./scripts/kconfig/tests/new_choice_with_dep/Kconfig
./scripts/kconfig/tests/no_write_if_dep_unmet/Kconfig
./scripts/kconfig/tests/preprocess/builtin_func/Kconfig
./scripts/kconfig/tests/preprocess/circular_expansion/Kconfig
./scripts/kconfig/tests/preprocess/escape/Kconfig
./scripts/kconfig/tests/preprocess/variable/Kconfig
./scripts/gcc-plugins/Kconfig
./arch/x86/Kconfig
./arch/x86/crypto/Kconfig
./arch/x86/events/Kconfig
./arch/x86/kvm/Kconfig
./arch/x86/ras/Kconfig
./arch/x86/um/Kconfig
./arch/x86/xen/Kconfig
./Kconfig
./block/Kconfig
./block/partitions/Kconfig
./certs/Kconfig
./crypto/Kconfig
./crypto/asymmetric_keys/Kconfig
./crypto/async_tx/Kconfig
./init/Kconfig
./kernel/bpf/Kconfig
./kernel/bpf/preload/Kconfig
./kernel/dma/Kconfig
./kernel/gcov/Kconfig
./kernel/irq/Kconfig
./kernel/livepatch/Kconfig
./kernel/module/Kconfig
./kernel/power/Kconfig
./kernel/rcu/Kconfig
./kernel/time/Kconfig
./kernel/trace/Kconfig
./kernel/trace/rv/Kconfig
./lib/Kconfig
./lib/crypto/Kconfig
./lib/fonts/Kconfig
./lib/kunit/Kconfig
./lib/math/Kconfig
./lib/vdso/Kconfig
./lib/xz/Kconfig
./mm/Kconfig
./mm/damon/Kconfig
./samples/Kconfig
./samples/rust/Kconfig
./security/Kconfig
./security/apparmor/Kconfig
./security/integrity/Kconfig
./security/integrity/evm/Kconfig
./security/integrity/ima/Kconfig
./security/keys/Kconfig
./security/keys/trusted-keys/Kconfig
./security/landlock/Kconfig
./security/loadpin/Kconfig
./security/lockdown/Kconfig
./security/safesetid/Kconfig
./security/selinux/Kconfig
./security/smack/Kconfig
./security/tomoyo/Kconfig
./security/yama/Kconfig
./usr/Kconfig
./virt/kvm/Kconfig
./virt/lib/Kconfig
I could copy one of these files into the subdirectory “arch” but I don't know which one should be the right one.
Does anyone have any ideas? for convenience this is the makefile of that repository:

Code: Select all

KVER		:= $(shell uname -r)
KDIR		:= /lib/modules/$(KVER)/build
KEXT		:= $(shell echo $(KVER) | sed -ne 's/^2\.[567]\..*/k/p')o


modules:
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
	strip --strip-debug hw_cdc_driver.$(KEXT)

clean:
	rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
        
mclean:
	rmmod -f hw_cdc_driver
	./add_header.sh  "clean"

install:
	./add_header.sh  "install"
	modprobe hw_cdc_driver

hw-ether-objs := hw_cdc_driver.o
obj-m += hw_cdc_driver.o

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4295
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Dongle modem manager

Post#2 by ncmprhnsbl » 30 Aug 2024, 08:50

vinnie wrote:
29 Aug 2024, 14:25
I could copy one of these files into the subdirectory “arch” but I don't know which one should be the right one.
not really... but looking at my arch(obarun) install this is what that file( in this case /usr/lib/modules/6.10.6-arch1-1/build/arch/Kconfig) looks like:
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply