Jump to content

Recommended Posts

Posted

Hi all!

 

I have an Olimex Olinuxino-Lime2-4GB A10 cpu based dev board and I have installed Armbian on an SD card.

 

Everything works fine, except when trying to compile some drivers for the wifi dongle that I want to use.

 

The dongle has an RTL8188CUS chip, and I also have another dongle with an RTL8192CU chip, and when following the instructions found here

the compilation fails, because of the kernel headers missing.

 

The instructions work fine on other distributions.

 

 

Could someone help me figure out how to successfully compile the drivers?

Where can I get the kernel headers?

 

I really need these drivers for my project.

Posted

The kernel headers are probably not build. You can build them by:

cd /user/src/linux-headers-3.4....

 

make headers_check

make headers_install

make scripts

Posted

You only need to rebuild scripts ... the rest is o.k.

 

How do I do that? Could you give me a couple of instructions?

 

I have a clean image of the image "Armbian_5.00_Lime-a10_Debian_jessie_3.4.110.zip" running from SD card on my device.

 

What should I do now to rebuild scripts and get my headers going?

Posted

Hi again!

 

It's been a few days now and Ive tried only what martijn suggested with the twist of what Igor suggested.

 

When I run make headers_check I get

  CHK     include/linux/version.h
/usr/src/linux-headers-3.4.110-sun4i/include/linux/can/Kbuild:1: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.
/usr/src/linux-headers-3.4.110-sun4i/scripts/Makefile.headersinst:105: recipe for target 'can' failed
make[2]: *** [can] Error 2
/usr/src/linux-headers-3.4.110-sun4i/scripts/Makefile.headersinst:105: recipe for target 'linux' failed
make[1]: *** [linux] Error 2
Makefile:1067: recipe for target 'headers_install' failed
make: *** [headers_install] Error 2

And when I run make headers_install I get

  CHK     include/linux/version.h
/usr/src/linux-headers-3.4.110-sun4i/include/linux/can/Kbuild:1: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.
/usr/src/linux-headers-3.4.110-sun4i/scripts/Makefile.headersinst:105: recipe for target 'can' failed
make[2]: *** [can] Error 2
/usr/src/linux-headers-3.4.110-sun4i/scripts/Makefile.headersinst:105: recipe for target 'linux' failed
make[1]: *** [linux] Error 2
Makefile:1067: recipe for target 'headers_install' failed
make: *** [headers_install] Error 2

However when I run make scripts everything seems to work fine.

 

I download the drivers and follow the instructions from the website I linked earlier.

 

I encounter several problems when following the instructions.

 

The following step:

apt-get install firmware-realtek linux-headers-$(uname -r) build-essential dkms git fakeroot devscripts deb helper libssl-dev isc-dhcp-server 

Gives me the following errors:

E: Unable to locate package linux-headers-3.4.110-sun4i
E: Couldn't find any package by regex 'linux-headers-3.4.110-sun4i'
E: Unable to locate package deb
E: Unable to locate package helper

I ignore those packages by running the following:

apt-get install firmware-realtek build-essential dkms git fakeroot devscripts libssl-dev isc-dhcp-server 

After that installation of the packages has completed I run the command

apt-get install libnl-dev

and I get the error

Package libnl-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libnl-dev' has no installation candidate

so I skip that one as well.

 

I run the following commands that execute with no problems:

git clone https://github.com/pvaret/rtl8192cu-fixes.git
git clone https://github.com/jekader/hostapd-rtl.git

I then go inside the folder rtl8192cu-fixes and edit the file Makefile so that the drivers should compile for SUNxI because there's no option for SUN4I individually, by changing the value of CONFIG_PLATFORM_I386_PC to n and CONFIG_PLATFORM_ARM_SUNxI to y.

 

I then save the file and close nano.

 

Next I try make but I get the following errors:

make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -C  M=/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes  modules
make[1]: *** M=/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes: No such file or directory.  Stop.
Makefile:584: recipe for target 'modules' failed
make: *** [modules] Error 2

I looked inside Makefile and noticed that basically all the other configurations for all the other platforms have a field called KSRC

which to me seems to be the path to the kernel headers, so I changed the KSRC field value of SUNxI from

#KSRC:= ../lichee/linux-3.0/

to

KSRC := /lib/modules/3.4.110-sun4i/build/

and then saved the file and ran make again.

 

Now I get the errors

make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -C /lib/modules/3.4.110-sun4i/build/ M=/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes  modules
make[1]: Entering directory '/usr/src/linux-headers-3.4.110-sun4i'
make[1]: arm-none-linux-gnueabi-gcc: Command not found
  CC [M]  /usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes/core/rtw_cmd.o
/bin/sh: 1: arm-none-linux-gnueabi-gcc: not found
scripts/Makefile.build:307: recipe for target '/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes/core/rtw_cmd.o' failed
make[2]: *** [/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes/core/rtw_cmd.o] Error 127
Makefile:1367: recipe for target '_module_/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes' failed
make[1]: *** [_module_/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.4.110-sun4i'
Makefile:591: recipe for target 'modules' failed
make: *** [modules] Error 2

What I noticed here is that arm-none-linux-gnueabi-gcc can not be found.

 

I googled for info and found that runing apt-get install gcc-arm* would install and work.

 

I edited Makefile again and changed the field CROSS_COMPILE inside SUNxI from

CROSS_COMPILE := arm-none-linux-gnueabi-

to

CROSS_COMPILE := /usr/bin/arm-linux-gnueabihf-

Now I receive probably hundreds of lines of errors and warnings which I can't paste in here because last time I did it my web browser crashed and I had to rewrite 90% of this post.

 

Anyways, it all ends with

cc1: some warnings being treated as errors
scripts/Makefile.build:307: recipe for target '/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes/core/rtw_cmd.o' failed
make[2]: *** [/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes/core/rtw_cmd.o] Error 1
Makefile:1367: recipe for target '_module_/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes' failed
make[1]: *** [_module_/usr/src/linux-headers-3.4.110-sun4i/rtl8192cu-fixes] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.4.110-sun4i'
Makefile:591: recipe for target 'modules' failed
make: *** [modules] Error 2

And if I go back to Makefile and edit it again and give CROSS_COMPILE the value /usr/bin/arm-none-eabi-

I get the same results as above with the undreds (if not thousands of lines of errors and warning)

but this time it ends with an additional line saying

cc1: out of memory allocating 1677721600 bytes after a total of 1007616 bytes

I think I'm on to something here.

 

Could anybody push me in the right direction?

 

Any ideas on what might be wrong?

Posted

You are simply touching things that you need to leave alone ;)

 

1. Make scrips. Once done, your system is ready forever - until next kernel / headers upgrade

2. Download source

3. Go to source and run: make ARCH=arm

 

That's all. In most cases you don't need to edit Makefile or anything else ... lots of guides or internet are misleading - btw. you don't CROSS COMPILE but compile directly.

 

Some sources are broken and if you don't have skills to fix ... you are done and need to search for other / working ones.

Posted

You are simply touching things that you need to leave alone ;)

 

1. Make scrips. Once done, your system is ready forever - until next kernel / headers upgrade

2. Download source

3. Go to source and run: make ARCH=arm

 

That's all. In most cases you don't need to edit Makefile or anything else ... lots of guides or internet are misleading - btw. you don't CROSS COMPILE but compile directly.

 

Some sources are broken and if you don't have skills to fix ... you are done and need to search for other / working ones.

 

At point 2 you say "download source".

What source are we talking about and where can I find it?

 

The Makefile I am touching is for the drivers, and the Makefile needs to be changed in order for the drivers to be compiled correctly.

That's the nature of the RTL drivers.

 

The guide I followed is my own guide. I wrote it and it works for x64 Debian Squeeze, Wheezy and Jessie.

 

I now just need to get it to work for Armbian and then I can get back to work.

 

I'd appreciate it someone would try what I've tried and help me figure this out.

Posted
What source are we talking about and where can I find it?

 

This driver, for example:

git clone https://github.com/pvaret/rtl8192cu-fixes.git

 

Than you go to headers dir and make sources (example)

cd /usr/src/linux-headers-3.10.101-marvell/
make sources

Since link is missing (inside /lib/modules pointing to headers), you need to provide path to headers:

make ARCH=arm KSRC=/usr/src/linux-headers-3.10.101-marvell/

I just did, working.

 

Add: make scripts and proper link to sources used to be in the past but we broke it. Will be fixed once ... so you will only need to issue: make

 

Add: if it's not working this way, than:

  • headers are broken 
  • sources are broken
  • misc
Posted

I tried running

make sources

and all I get is

make: *** No rule to make target 'sources'.  Stop.

My Armbian image is literally a clone from the Armbian waebsite.

 

How could the headers or sources possibly be broken?

 

That would mean that the Armbian image from the Armbian website is broken as well, or at least contains broken headers/sources.

 

I then went to the cloned directory rtl8192cu-fixes and run

make ARCH=arm KSRC=/usr/src/linux-headers-3.4.110-sun4i/

but I get the same results as before with hundreds of errors and warnings.

 

I am a little bit confused by your information though.

 

You say that you run

cd /usr/src/linux-headers-3.10.101-marvell/
make sources

again, what sources? 

 

Sorry, I appreciate your help, but still I am a little bit confused. I am a beginner trying to learn new stuff.

 

And by the way, what board are you on?

Posted

Sorry I was typing too fast:

 

make sources = make scripts

 

Ok that works, but compiling the drivers don't seem to work.

 

Could you explain what you mean with

Add: make scripts and proper link to sources used to be in the past but we broke it. Will be fixed once ... so you will only need to issue: make

Sorry for being a pain in the ass.

Posted
Could you explain what you mean with

 

1. "make scripts" were done in the build process, so user don't need to execute this manually.

2. There is usually a link between /lib/modules/kernel-xxxx/build and /usr/src/kernel-xxxx ... some build scripts looks for kernel sources at one place, others at other place 

Posted
So do you suggest that I compile the Armbian image myself from scratch, or?

 

No, it won't help. I just say that we used to execute "make scripts" in the building process but now it's broken. A part of the process to make things work was automatized. That's all.

 

Some drivers will be possible to compile out of the box, some not. This is out of my power.

Posted

Oh I see.

 

So there's absolutely no way I could compile the drivers, huh?

 

But how come the package firmware-realtek has drivers that work? How did they compile thos drivers to begin with?

Posted

I've made a little bit of progress.

 

I think I'm close now.

 

So I installed Ubuntu 14.04 and followed your instructions from https://github.com/jinnko/armbian-lib

 

I then proceeded by running the command

apt-get install gcc-arm*

followed by running

git clone https://github.com/pvaret/rtl8192cu-fixes.git

and editing the Makefile of rtl8192cu-fixes.

 

I changed the value of the field CONFIG_PLATFORM_I386_PC from y to n.

and then scrolled down and changed the value of CONFIG_PLATFORM_ARM_SUNxI from n to y.

 

I then went down to the SUNxI config section and changed the KSRC value from

#KSRC:= ../lichee/linux-3.0/

to

KSRC := /home/aid/sources/linux-sunxi/sunxi-3.4/

I now run make inside the rtl8192cu-fixes folder and I get no errors.

 

I get a bunch of "CC [M]" lines which indicates a healthy process.

 

However it ends with two errors which looks like this:

/home/aid/rtl8192cu-fixes/os_dep/linux/usb_intf.c:1151:29: fatal error: mach/sys_config.h: No such file or directory
 #include <mach/sys_config.h>
                          ^
compilation terminated.
make[2]: *** [/home/aid/rtl8192u-fixes/os_dep/linux/usb_intf.o] Error 1make[1]: *** [_module_/home/aid/rtl8192u-fixes] Error 2
make[1]: Leaving directory '/home/aid/sources/linux-sunxi/sunxi-3.4'
make: *** [modules] Error 2

I googled a little bit and found the following thread on the Cubieboard forum: http://www.cubieforums.com/index.php?topic=1275.1050

 

The user Phelum says

I hit this recently with the rtl8189es WLAN driver.  In the os_dep/linux directory there is a file called usb_intf.c and it contains a sunxi-only section that "include"s this file.

To allow compilation I created /arch/arm/mach-sun7i/include/mach/sys_config.h which is a symbolic link pointing to /arch/arm/plat-sunxi/include/plat/sys_config.h .

Cheers,
Steven

 

So basically I guess that I could edit the file usb_intf.c at line 1150 so that the include definition points to

/home/aid/sources/linux-sunxi/sunxi-3.4/arch/arm/plat-sunxi/sys_config.h

BUT, there is no ".h" file there, only sys_config.c and sys_config.o.

 

I think that I'm really close now, do you have any ideas?

 

Could I make the content of

/home/aid/sources/linux-sunxi/sunxi-3.4/arch/arm/plat-sunxi/

to make use of it?

 

I tried, but I get the following output:

make: *** No targets. Stop.

I think I'm just a tiny bit away from pulling this off.

 

Any ideas?

Posted

Ok, so I copied the folder and all of it's content located at

/usr/src/linux-headers-3.4.110-sun4i/arch/arm/plat-sunxi/include/plat

from the already running Armbian image of my Olinuxino to my VirtualBox Ubuntu 14.04.

 

I then edited the file usb_intf.h and pointed the include definition mach/sys_config.h to the files that I copied.

 

I ran make and the drivers compiled perfectly.

 

A couple of files were created and they are called

8192cu.ko
8192cu.mod.c
8192cu.mod.o
8192cu.o

Where do put the 4 files that have been created?

Posted

Check if it's working with - load:

insmod 8192cu.ko

Check kernel response:

dmesg

If everything is ok, you can try to use it.

Posted

Command insmod 8192cu.ko gives me

insmod: ERROR: could not insert module 8192cu.ko: Invalid module format

and dmesg gives me

[  268.310632] 8192cu: disagrees about version of symbol module_layout

I'm guessing that the compiled module has been compiled using a different kernel source?

 

In that case I could do 1 out of 2 things:

 

1. compile using a different kernel source.

2. use a different Armbian image with the correct kernel version.

 

Which one would you suggest Igor?

 

The version of the Armbian image I am using says 3.4.110-sun4i when running uname -r.

 

The GIT clone as per your GITHUB gave me sunxi-3.4.

 

Where can I download the source of 3.4.110-sun4i?

Posted

Check documentation. I wrote step by step manual. It's 100% working - I used a Cubieboard 1, which uses exactly the same kernel (3.4.110-sun4i), as an example.

 

http://www.armbian.com/documentation/

How to build a wireless driver ?

 

Perhaps you broke your installation - in this case you need to start from clean image ... 

Posted

Ok. Just tried.

 

I get hundreds of error and it ends with

cc1: some warnings being treated as errors
scripts/Makefile.build:307: recipe for target '/root/a/rtl8192cu-fixes/core/rtw_cmd.o' failed
make[2]: *** [/root/a/rtl8192cu-fixes/core/rtw_cmd.o] Error 1
Makefile:1367: recipe for target '_module_/root/a/rtl8192cu-fixes' failed
make[1]: *** [_module_/root/a/rtl8192cu-fixes] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.4.110-sun4i'
Makefile:584: recipe for target 'modules' failed
make: *** [modules] Error 2

I'll try again with a clean image later.

Posted

Check documentation. I wrote step by step manual. It's 100% working - I used a Cubieboard 1, which uses exactly the same kernel (3.4.110-sun4i), as an example.

 

http://www.armbian.com/documentation/

How to build a wireless driver ?

 

Perhaps you broke your installation - in this case you need to start from clean image ... 

 

I tried a fresh install using the image with kernel version 4.4.1.

 

I followed every step you suggest.

 

It doesn't work.

 

Where can I download the kernel source for 3.4.110-sun4i?

 

I'd like to try that once.

Posted

Igor, I built the latest Armbian image from your GitHub from scratch using the Legacy kernel version which is 3.4.111-sun4i

and followed your instructions on how to build the wireless drivers.

 

It works. Awesome!

 

However, even though dmesg gives me the expected results

[30082.147532] usbcore: registered new interface driver rtl8192cu

I still can not see wlan0 when typing iwconfig.

 

What could be the problem?

 

EDIT:

 

Nevermind, I just had unplug and re-plug the wifi adapter.

 

Thanks for your time and effort.

 

Suggestion:

You might want to add a FAQ regarding the problem that I've had.

It might be useful to other people.

Possibly even link to this post.

 

Thanks again!

Posted

HI! I have the same problem on cubietruck.

when i just install asterisk - it needs dahdi module. i'll try to make it but see this.

 

root@cubietruck:/usr/src/dahdi-linux-complete-2.11.1+2.11.1# make

make -C linux all
make[1]: Entering directory '/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory '/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/firmware'
make[2]: Leaving directory '/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/firmware'
make -C /lib/modules/4.9.12-sunxi/build SUBDIRS=/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory '/usr/src/linux-headers-4.9.12-sunxi'
/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/Kbuild:124: CPU Architecture 'arm' does not support VPMADT032 or HPEC. Skipping.
  CC [M]  /usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/dahdi-version.o
/bin/sh: 1: ./scripts/recordmcount: not found
scripts/Makefile.build:293: recipe for target '/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/dahdi-version.o' failed
make[3]: *** [/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/dahdi-version.o] Error 127
Makefile:1490: recipe for target '_module_/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi' failed
make[2]: *** [_module_/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.9.12-sunxi'
Makefile:74: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/usr/src/dahdi-linux-complete-2.11.1+2.11.1/linux'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
root@cubietruck:/usr/src/dahdi-linux-complete-2.11.1+2.11.1#
 
before this i was try apt-get install linux-headers-$(uname -r)
root@cubietruck:/usr/src/dahdi-linux-complete-2.11.1+2.11.1# 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-4.9.12-sunxi
E: Couldn't find any package by regex 'linux-headers-4.9.12-sunxi'
root@cubietruck:/usr/src/dahdi-linux-complete-2.11.1+2.11.1#
 
then i try all steps in this article... but no results...
Please help!!!
 
also i use apt-cache search linux-headers
 
but didnt find linux-headers-4.9.12-sunxi..only cubox(finished)
 
 
also i goes to /usr/src/linux-headers-4.9.12-sunxi
 
and make_headers & make_install --its ok
 
but make scripts show me this
root@cubietruck:/usr/src/linux-headers-4.9.12-sunxi# make scripts
  HOSTCC  scripts/selinux/genheaders/genheaders
scripts/selinux/genheaders/genheaders.c:13:22: fatal error: classmap.h: No such file or directory
 #include "classmap.h"
                      ^
compilation terminated.
scripts/Makefile.host:107: recipe for target 'scripts/selinux/genheaders/genheaders' failed
make[3]: *** [scripts/selinux/genheaders/genheaders] Error 1
scripts/Makefile.build:544: recipe for target 'scripts/selinux/genheaders' failed
make[2]: *** [scripts/selinux/genheaders] Error 2
scripts/Makefile.build:544: recipe for target 'scripts/selinux' failed
make[1]: *** [scripts/selinux] Error 2
Makefile:560: recipe for target 'scripts' failed
make: *** [scripts] Error 2
 
oops... please help again
 
 
 
 
 
Posted

If you started with our clean image, headers are already in place, right where they should be.

 

But it looks like the problem is elsewhere.

Posted

yes. i am starting from mainline base image. make sd card, next nand sata install, then apt-get update &upgrade. Next step i was try to make dahdi modules. i lost 3 nights

 

Отправлено Ñ Ð¼Ð¾ÐµÐ³Ð¾ SM-G920F через Tapatalk

Posted

yes. i am starting from mainline base image. make sd card, next nand sata install, then apt-get update &upgrade. Next step i was try to make dahdi modules. i lost 3 nights

 

It looks like headers are broken in recent build ... workaround is to start with older build (and not update) or if you find out why we have broken headers.

Posted

ok. where i can get older image?

 

Отправлено Ñ Ð¼Ð¾ÐµÐ³Ð¾ SM-G920F через Tapatalk

Posted

i did  it. on based mainline linux-headers-4.9.7-sunxi. but problem is not solved.

 

root@cubietruck:/usr/src/linux-headers-4.9.7-sunxi# make headers_check
  CHK     include/generated/uapi/linux/version.h
  HOSTCC  scripts/unifdef
  INSTALL usr/include/asm-generic/ (35 files)
  INSTALL usr/include/drm/ (21 files)
  INSTALL usr/include/linux/android/ (1 file)
  INSTALL usr/include/linux/byteorder/ (2 files)
  INSTALL usr/include/linux/caif/ (2 files)
  INSTALL usr/include/linux/can/ (5 files)
  INSTALL usr/include/linux/dvb/ (8 files)
  INSTALL usr/include/linux/hdlc/ (1 file)
  INSTALL usr/include/linux/hsi/ (2 files)
  INSTALL usr/include/linux/iio/ (2 files)
  INSTALL usr/include/linux/isdn/ (1 file)
  INSTALL usr/include/linux/mmc/ (1 file)
  INSTALL usr/include/linux/netfilter/ipset/ (4 files)
  INSTALL usr/include/linux/netfilter/ (87 files)
  INSTALL usr/include/linux/netfilter_arp/ (2 files)
  INSTALL usr/include/linux/netfilter_bridge/ (17 files)
  INSTALL usr/include/linux/netfilter_ipv4/ (9 files)
  INSTALL usr/include/linux/netfilter_ipv6/ (12 files)
  INSTALL usr/include/linux/nfsd/ (5 files)
  INSTALL usr/include/linux/raid/ (2 files)
  INSTALL usr/include/linux/spi/ (1 file)
  INSTALL usr/include/linux/sunrpc/ (1 file)
  INSTALL usr/include/linux/tc_act/ (14 files)
  INSTALL usr/include/linux/tc_ematch/ (4 files)
  INSTALL usr/include/linux/usb/ (11 files)
  INSTALL usr/include/linux/wimax/ (1 file)
  INSTALL usr/include/linux/ (436 files)
  INSTALL usr/include/misc/ (1 file)
  INSTALL usr/include/mtd/ (5 files)
  INSTALL usr/include/rdma/hfi/ (1 file)
  INSTALL usr/include/rdma/ (14 files)
  INSTALL usr/include/scsi/fc/ (4 files)
  INSTALL usr/include/scsi/ (4 files)
  INSTALL usr/include/sound/ (15 files)
  INSTALL usr/include/video/ (3 files)
  INSTALL usr/include/xen/ (4 files)
  INSTALL usr/include/uapi/ (0 file)
  INSTALL usr/include/asm/ (34 files)
  CHECK   usr/include/asm-generic/ (35 files)
  CHECK   usr/include/drm/ (21 files)
  CHECK   usr/include/linux/android/ (1 files)
  CHECK   usr/include/linux/byteorder/ (2 files)
  CHECK   usr/include/linux/caif/ (2 files)
  CHECK   usr/include/linux/can/ (5 files)
  CHECK   usr/include/linux/dvb/ (8 files)
  CHECK   usr/include/linux/hdlc/ (1 files)
  CHECK   usr/include/linux/hsi/ (2 files)
  CHECK   usr/include/linux/iio/ (2 files)
  CHECK   usr/include/linux/isdn/ (1 files)
  CHECK   usr/include/linux/mmc/ (1 files)
  CHECK   usr/include/linux/netfilter/ipset/ (4 files)
  CHECK   usr/include/linux/netfilter/ (87 files)
  CHECK   usr/include/linux/netfilter_arp/ (2 files)
  CHECK   usr/include/linux/netfilter_bridge/ (17 files)
  CHECK   usr/include/linux/netfilter_ipv4/ (9 files)
  CHECK   usr/include/linux/netfilter_ipv6/ (12 files)
  CHECK   usr/include/linux/nfsd/ (5 files)
  CHECK   usr/include/linux/raid/ (2 files)
  CHECK   usr/include/linux/spi/ (1 files)
  CHECK   usr/include/linux/sunrpc/ (1 files)
  CHECK   usr/include/linux/tc_act/ (14 files)
  CHECK   usr/include/linux/tc_ematch/ (4 files)
  CHECK   usr/include/linux/usb/ (11 files)
  CHECK   usr/include/linux/wimax/ (1 files)
  CHECK   usr/include/linux/ (436 files)
  CHECK   usr/include/misc/ (1 files)
  CHECK   usr/include/mtd/ (5 files)
  CHECK   usr/include/rdma/hfi/ (1 files)
  CHECK   usr/include/rdma/ (14 files)
  CHECK   usr/include/scsi/fc/ (4 files)
  CHECK   usr/include/scsi/ (4 files)
  CHECK   usr/include/sound/ (15 files)
  CHECK   usr/include/video/ (3 files)
  CHECK   usr/include/xen/ (4 files)
  CHECK   usr/include/uapi/ (0 files)
  CHECK   usr/include/asm/ (34 files)
root@cubietruck:/usr/src/linux-headers-4.9.7-sunxi# make headers_install
  CHK     include/generated/uapi/linux/version.h
root@cubietruck:/usr/src/linux-headers-4.9.7-sunxi# make scripts
root@cubietruck:/usr/src/linux-headers-4.9.7-sunxi# cd..
-bash: cd..: command not found
root@cubietruck:/usr/src/linux-headers-4.9.7-sunxi# cd ..
root@cubietruck:/usr/src# apt-get install -y build-essential autoconf libncurses5-dev libssl-dev libxml2-dev libsqlite3-dev libmysqlclient-dev curl mpg123 libxml2 libxml2-dev libaudiofile-dev subversion sox libsox-fmt-all uuid-dev libjansson-dev libiksemel-dev libssl-dev libtiff5-dev mysql-client libmyodbc lame linux-headers-`uname -r` mysql-server mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.9.7-sunxi
E: Couldn't find any package by regex 'linux-headers-4.9.7-sunxi'
root@cubietruck:/usr/src#
 
 
i did not  make any updates, not doing anything else.just write
Posted

hello again.

make configs - worked

when i compile dahdi module - i i havent got error with linux-headers

compiler found headers 9.7

 

but i have error on next stage.i think problem solved at now.

 

but i dont understand problem with apt-get install linux-headers-$(uname -r)

E: Unable to locate package linux-headers-4.9.7-sunxi
E: Couldn't find any package by regex 'linux-headers-4.9.7-sunxi'

on new system without any updates

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines