dsc3507
Posts: 39
Joined: Sun Apr 28, 2013 5:08 am

Hardware type in compile

Wed Feb 19, 2014 2:05 am

I am trying to compile zaptel a hardware driver for asterisk in Pidora. I am using ver 18 kernel 3.6.11

The makefile is looking for armv61 but there is no option for that type. It might be a long shot but I thought I would ask here. What type should it be? The choices are below in the directory.

make -C /lib/modules/3.6.11/build ARCH=armv6l SUBDIRS=/usr/src/astsrc/zaptel/kernel HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="pciradio.o wcfxo.o wct1xxp.o wctdm.o wcte11xp.o zaptel.o ztd-eth.o ztd-loc.o ztdummy.o ztdynamic.o zttranscode.o wctdm24xxp/" modules
make[2]: Entering directory `/usr/src/kernels/3.6.11/raspberrypi-linux-966efc7'
Makefile:564: /usr/src/kernels/3.6.11/raspberrypi-linux-966efc7/arch/armv6l/Makefile: No such file or directory
make[2]: *** No rule to make target `/usr/src/kernels/3.6.11/raspberrypi-linux-966efc7/arch/armv6l/Makefile'. Stop.
make[2]: Leaving directory `/usr/src/kernels/3.6.11/raspberrypi-linux-966efc7'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/astsrc/zaptel'
make: *** [all] Error 2

[root@raspi zaptel]# ls /usr/src/kernels/3.6.11/raspberrypi-linux-966efc7/arch
alpha avr32 c6x frv hexagon Kconfig m68k mips openrisc powerpc score sparc um x86
arm blackfin cris h8300 ia64 m32r microblaze mn10300 parisc s390 sh tile unicore32 xtensa

[root@raspi zaptel]# ls /usr/src/kernels/3.6.11/raspberrypi-linux-966efc7/arch/arm/
boot mach-clps711x mach-integrator mach-mvebu mach-rpc mach-socfpga Makefile plat-samsung
common mach-cns3xxx mach-iop13xx mach-mxs mach-s3c2410 mach-spear13xx mm plat-spear
configs mach-davinci mach-iop32x mach-netx mach-s3c2412 mach-spear3xx net plat-versatile
include mach-dove mach-iop33x mach-nomadik mach-s3c2440 mach-spear6xx nwfpe tools
Kconfig mach-ebsa110 mach-ixp4xx mach-omap1 mach-s3c24xx mach-tegra oprofile vfp
Kconfig.debug mach-ep93xx mach-kirkwood mach-omap2 mach-s3c64xx mach-u300 plat-iop
Kconfig-nommu mach-exynos mach-ks8695 mach-orion5x mach-s5p64x0 mach-ux500 plat-mxc
kernel mach-footbridge mach-l7200 mach-picoxcell mach-s5pc100 mach-versatile plat-nomadik
lib mach-gemini mach-lpc32xx mach-pnx4008 mach-s5pv210 mach-vexpress plat-omap
mach-at91 mach-h720x mach-mmp mach-prima2 mach-sa1100 mach-vt8500 plat-orion
mach-bcm2708 mach-highbank mach-msm mach-pxa mach-shark mach-w90x900 plat-pxa
mach-bcmring mach-imx mach-mv78xx0 mach-realview mach-shmobile mach-zynq plat-s3c24xx

raser
Posts: 65
Joined: Mon Jan 25, 2016 1:49 pm

Re: Hardware type in compile

Wed Oct 19, 2016 8:17 pm

I am having a similar issue - I need to add the platform (PLAT=xxx) into a makefile before running the make command, I went to the software's site and they gave a list of compatible entries for PLAT:

aix, ansi, bsd, freebsd, generic, linux, macosx, mingw, posix, solaris
so I thought linux would be the closest (Raspbian Jessie). Theres 2 ways you can do it, either type:
sudo make linux

or edit the makefile and add linux at the top (PLAT=linux). I did this and it installed but at the end I got a fatal error. I am trying to install Lua basic interpreter but cant get my Pi online for the time being. So I got the Tarball and tried it manually. I dont know if it should be listed as one of the others - goggle reckons it's linux so I dunno.

raser
Posts: 65
Joined: Mon Jan 25, 2016 1:49 pm

Re: Hardware type in compile

Wed Oct 19, 2016 8:21 pm

not sure how my search brought me there - just realised I posted in pidora section - I was looking for makefile related, and wasnt really paying attention. Sorry

MrEngman
Posts: 3584
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Hardware type in compile

Wed Oct 19, 2016 8:36 pm

dsc3507 wrote:I am trying to compile zaptel a hardware driver for asterisk in Pidora. I am using ver 18 kernel 3.6.11

The makefile is looking for armv61 but there is no option for that type. It might be a long shot but I thought I would ask here. What type should it be? The choices are below in the directory.

make -C /lib/modules/3.6.11/build ARCH=armv6l SUBDIRS=/usr/src/astsrc/zaptel/kernel HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="pciradio.o wcfxo.o wct1xxp.o wctdm.o wcte11xp.o zaptel.o ztd-eth.o ztd-loc.o ztdummy.o ztdynamic.o zttranscode.o wctdm24xxp/" modules
make[2]: Entering directory `/usr/src/kernels/3.6.11/raspberrypi-linux-966efc7'
Makefile:564: /usr/src/kernels/3.6.11/raspberrypi-linux-966efc7/arch/armv6l/Makefile: No such file or directory
make[2]: *** No rule to make target `/usr/src/kernels/3.6.11/raspberrypi-linux-966efc7/arch/armv6l/Makefile'. Stop.
make[2]: Leaving directory `/usr/src/kernels/3.6.11/raspberrypi-linux-966efc7'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/astsrc/zaptel'
make: *** [all] Error 2
Run this command

Code: Select all

sudo ln -s /usr/src/kernels/3.6.11/raspberrypi-linux-966efc7/arch/arm /usr/src/kernels/3.6.11/raspberrypi-linux-966efc7/arch/armv6l
It will create a symlink to the raspberrypi-linux-966efc7/arch/arm directory and should get you past that error.

Or just change ARCH=armv6l to ARCH=arm in the make command line.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Return to “Pidora / Fedora”

Who is online

Users browsing this forum: No registered users and 2 guests