[SOLVED] Issues when installing dahdi-linux for odriod xu4

Post Reply
jeffs
Posts: 2
Joined: Thu Jun 17, 2021 8:28 am
languages_spoken: english
ODROIDs: xu4, n2, c2
Has thanked: 1 time
Been thanked: 1 time
Contact:

[SOLVED] Issues when installing dahdi-linux for odriod xu4

Post by jeffs »

Hi, I was trying to install dahdi-linux as a pre-requisite for installing Piranha USB-FXO Adapter driver.

According to this tutorial:
I will have to install the correct linux-headers corresponding to the kernel version.
Which in my case, I am using the ubuntu 5.4 image downloaded from odroid wiki.

First of all, I have tried installing the corresponding linux-headers to kernel
and results the following:

Code: Select all

root@odroid:~/dahdi-linux# uname -r
5.4.58-211

root@odroid:~/dahdi-linux# apt-get install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-5.4.58-211
E: Couldn't find any package by glob 'linux-headers-5.4.58-211'
E: Couldn't find any package by regex 'linux-headers-5.4.58-211'
I have also noticed there is version came with the system : 5.4.118-221

Code: Select all

root@odroid:~/dahdi-linux# ls /lib/modules/
5.4.118-221
Therefore I manually changed KVERS in Dahdi-linux's Makefile to 5.4.118-221 instead of $(uname -r)

Then result in the following error:

Code: Select all

root@odroid:~/test2/dahdi-linux# make install
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory '/root/test2/dahdi-linux/drivers/dahdi/firmware'
Attempting to download dahdi-fwload-vpmadt032-1.25.0.tar.gz
--2021-06-16 23:45:11--  http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
Resolving downloads.digium.com (downloads.digium.com)... 170.249.154.172
Connecting to downloads.digium.com (downloads.digium.com)|170.249.154.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 149360 (146K) [application/x-gzip]
Saving to: 'dahdi-fwload-vpmadt032-1.25.0.tar.gz'

dahdi-fwload-vpmadt032-1.25. 100%[============================================>] 145.86K   365KB/s    in 0.4s

2021-06-16 23:45:12 (365 KB/s) - 'dahdi-fwload-vpmadt032-1.25.0.tar.gz' saved [149360/149360]

make[1]: Leaving directory '/root/test2/dahdi-linux/drivers/dahdi/firmware'
make -C /lib/modules/5.4.118-221/build KBUILD_EXTMOD=/root/test2/dahdi-linux/drivers/dahdi DAHDI_INCLUDE=/root/test2/dahdi-linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory '/usr/src/linux-5.4.118-221'
/root/test2/dahdi-linux/drivers/dahdi/Kbuild:117: CPU Architecture 'arm' does not support VPMADT032 or HPEC. Skipping.
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xbus-core.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xbus-pcm.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xframe_queue.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xpp_dahdi.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xproto.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/card_global.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/dahdi_debug.o
  LD [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xpp.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/card_fxs.o
  LD [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xpd_fxs.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/card_fxo.o
  LD [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xpd_fxo.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/card_pri.o
  LD [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xpd_pri.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/card_bri.o
  LD [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xpd_bri.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/card_echo.o
  LD [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xpd_echo.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/xpp/xpp_usb.o
  VERIFY  /root/test2/dahdi-linux/drivers/dahdi/xpp/init_card_1_30
  VERIFY  /root/test2/dahdi-linux/drivers/dahdi/xpp/init_card_2_30
  VERIFY  /root/test2/dahdi-linux/drivers/dahdi/xpp/init_card_3_30
  VERIFY  /root/test2/dahdi-linux/drivers/dahdi/xpp/init_card_4_30
  HOSTCC  /root/test2/dahdi-linux/drivers/dahdi/xpp/print_fxo_modes.o
  HOSTLD  /root/test2/dahdi-linux/drivers/dahdi/xpp/print_fxo_modes
  GEN     /root/test2/dahdi-linux/drivers/dahdi/xpp/init_fxo_modes
  CHECK   /root/test2/dahdi-linux/drivers/dahdi/xpp/init_card_2_30
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi-base.o
/root/test2/dahdi-linux/drivers/dahdi/dahdi-base.c: In function '__dahdi_hooksig_pvt':
/root/test2/dahdi-linux/drivers/dahdi/dahdi-base.c:8494:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
 8494 |   if (chan->txstate != DAHDI_TXSTATE_OFFHOOK) break;
      |      ^
/root/test2/dahdi-linux/drivers/dahdi/dahdi-base.c:8510:5: note: here
 8510 |     case DAHDI_SIG_FXSGS:  /* FXS Groundstart */
      |     ^~~~
/root/test2/dahdi-linux/drivers/dahdi/dahdi-base.c:8521:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
 8521 |   if (rxsig == DAHDI_RXSIG_START) {
      |      ^
/root/test2/dahdi-linux/drivers/dahdi/dahdi-base.c:8529:5: note: here
 8529 |     case DAHDI_SIG_FXOLS: /* FXO Loopstart */
      |     ^~~~
/root/test2/dahdi-linux/drivers/dahdi/dahdi-base.c: In function '__dahdi_process_getaudio_chunk':
/root/test2/dahdi-linux/drivers/dahdi/dahdi-base.c:7945:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
 7945 |    memset(txb + 1, txb[0], DAHDI_CHUNKSIZE - 1);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/test2/dahdi-linux/drivers/dahdi/dahdi-base.c:7947:3: note: here
 7947 |   case DAHDI_CONF_CONF: /* Normal conference mode */
      |   ^~~~
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi-sysfs.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi-sysfs-chan.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi-version.o
  LD [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_dynamic.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_dynamic_loc.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_dynamic_eth.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_dynamic_ethmf.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_transcode.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_echocan_jpah.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_echocan_sec.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_echocan_sec2.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_echocan_kb1.o
  CC [M]  /root/test2/dahdi-linux/drivers/dahdi/dahdi_echocan_mg2.o
/root/test2/dahdi-linux/drivers/dahdi/Kbuild:117: CPU Architecture 'arm' does not support VPMADT032 or HPEC. Skipping.
  Building modules, stage 2.
  MODPOST 18 modules
ERROR: "__aeabi_ldivmod" [/root/test2/dahdi-linux/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__aeabi_uldivmod" [/root/test2/dahdi-linux/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__aeabi_ldivmod" [/root/test2/dahdi-linux/drivers/dahdi/xpp/xpp.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[1]: *** [Makefile:1650: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-5.4.118-221'
make: *** [Makefile:74: modules] Error 2
and I couldn't figure out how to resolve this.
Thanks for looking and replying to this post. :)

User avatar
odroid
Site Admin
Posts: 37802
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1925 times
Been thanked: 1186 times
Contact:

Re: Issues when installing dahdi-linux for odriod xu4

Post by odroid »

I found this message in your build log.
/root/test2/dahdi-linux/drivers/dahdi/Kbuild:117: CPU Architecture 'arm' does not support VPMADT032 or HPEC. Skipping.

Does Piranha USB-FXO Adapter driver support "armhf" or "arm" architecture?
These users thanked the author odroid for the post:
jeffs (Tue Jun 22, 2021 4:43 am)

jeffs
Posts: 2
Joined: Thu Jun 17, 2021 8:28 am
languages_spoken: english
ODROIDs: xu4, n2, c2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Issues when installing dahdi-linux for odriod xu4

Post by jeffs »

Thanks for anyone who replied,
I have solved this issue by using 4.14 kernel version and changing dahdi/linux/include/dahdi/kernel.h by adding

Code: Select all

#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 104)
---- here defines TIMER_DATA_TYPE ---
#else
#define TIMER_DATA_TYPE struct timer_list *
#endif
at line 1406
These users thanked the author jeffs for the post:
odroid (Tue Jun 22, 2021 2:39 pm)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests