View: 7532|Reply: 5

kernel headers

[Copy link]

1

threads

3

posts

23

credits

Novice

Rank: 1

credits
23
Published in 2017-7-13 13:32:58 | Show all floors |Read mode
Hi,

Debian_Server_jessie_PC2_V0_9_1.img.xz contains a kernel and it's modules, but no kernel headers.
So, It is not possible to build custom kernel driver.
Is there any place, where I can get kernel image, modules, headers, kbuild and so on ?
Thank you.

9

threads

634

posts

4429

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4429
Published in 2017-7-13 19:29:41 | Show all floors
https://www.armbian.com/orange-pi-pc2/

headers by default, creating custom drivers works.

1

threads

3

posts

23

credits

Novice

Rank: 1

credits
23
 Author| Published in 2017-7-19 17:55:12 | Show all floors
igorpec replied at 2017-7-13 19:29
https://www.armbian.com/orange-pi-pc2/

headers by default, creating custom drivers works.

Hi.
I tried it, kernel part is ok.
But "asterisk" crash with an error in t.38 module
[Jul 19 09:51:16] ERROR[2186]: astobj2.c:116 INTERNAL_OBJ: user_data is NULL
[Jul 19 09:51:16] ERROR[2186]: astobj2.c:116 INTERNAL_OBJ: user_data is NULL
[Jul 19 09:51:16] ERROR[2186]: astobj2.c:116 INTERNAL_OBJ: user_data is NULL
[Jul 19 09:51:16] ERROR[2186]: res_pjsip_t38.c:865 load_module: Unable to register SDP handler for image stream type
[Jul 19 09:51:16] ERROR[2186]: astobj2.c:116 INTERNAL_OBJ: user_data is NULL

Is there any other way to get both, kernel headers and asterisk ?


9

threads

634

posts

4429

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4429
Published in 2017-7-20 02:06:16 | Show all floors
Well, perhaps this is an Asterix problem? From our perspective, things work as it should. Hiccups in kernels are ofc also possible since this is bleeding edge kernel. Not something with a history of stability.

I am not familiar with Asterix, sorry.

1

threads

3

posts

23

credits

Novice

Rank: 1

credits
23
 Author| Published in 2017-7-21 18:01:27 | Show all floors
igorpec replied at 2017-7-20 02:06
Well, perhaps this is an Asterix problem? From our perspective, things work as it should. Hiccups in ...

The same asterisk works in Debian_Server_jessie_PC2_V0_9_1.img.xz .
In Armbian it crash on module load, even before Asterisk try to load configuration.
This module can be processor dependant (as it do a lot of mathematics), if it was compiled with wrong processor type - it can be a reason...

I also failed to build a package...
dpkg-buildpackage -us -uc
dpkg-buildpackage: source package asterisk
dpkg-buildpackage: source version 1:13.1.0~dfsg-1.1ubuntu4.1
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by Nishanth Aravamudan <nish.aravamudan@canonical.com>
dpkg-buildpackage: host architecture arm64
dpkg-source --before-build asterisk-13.1.0~dfsg
dpkg-checkbuilddeps: error: Unmet build dependencies: dh-systemd libreadline-dev | libreadline5-dev libgsm1-dev libtonezone-dev (>= 1:2.0.0) libasound2-dev portaudio19-dev libpq-dev unixodbc-dev libmysqlclient-dev | libmysqlclient15-dev libbluetooth-dev libpri-dev (>= 1.4.12) libss7-dev libvpb-dev dahdi-source dh-autoreconf libnewt-dev libsqlite0-dev | libsqlite-dev libsqlite3-dev libspeex-dev libspeexdsp-dev libcurl4-openssl-dev | libcurl-dev libxml2-dev libpopt-dev libiksemel-dev libfreeradius-client-dev | libradiusclient-ng-dev freetds-dev libvorbis-dev libogg-dev libsnmp-dev libc-client2007e-dev | libc-client2007b-dev libgmime-2.6-dev libjack-dev liblua5.1-0-dev libcap-dev (>= 1:2.16-4) | libcap2-dev libspandsp-dev libopenr2-dev libresample1-dev libsrtp-dev libjansson-dev libldap-dev libxslt1-dev uuid-dev libpjproject-dev libncurses-dev libneon27-gnutls-dev | libneon27-dev libsdl2-dev libopencore-amrnb-dev libopencore-amrwb-dev libavformat-dev libv4l-dev libavutil-dev libswscale-dev libavcodec-dev libical-dev libsrtp0-dev libedit-dev binutils-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)


9

threads

634

posts

4429

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4429
Published in 2017-7-22 02:43:33 | Show all floors
This module can be processor dependant (as it do a lot of mathematics), if it was compiled with wrong processor type - it can be a reason...

Check kernel configuration to see if something critical is missing and try with self-build Jessie. No better idea ATM.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list