Jump to content

vaid

Members
  • Posts

    15
  • Joined

  • Last visited

Recent Profile Visitors

1319 profile views
  1. Hi guys. I'm trying to install Lighttpd, MySQL and a few other things, but it won't work. I'm following the instructions found here: https://www.howtoforge.com/tutorial/install-lighttpd-with-php-fpm-and-mysql-on-debian/ Does anyone have experience in this? For example; running the command apt-get install mysql-server mysql-client gives me the following output: Reading package lists... Done Building dependency tree Reading state information... Done mysql-client is already the newest version. mysql-server is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.5 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). I try to run the suggested command apt-get -f install but I get the following results Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libreadline5 mariadb-common Use 'apt-get autoremove' to remove them. The following extra packages will be installed: mysql-server-5.5 Suggested packages: mailx tinyca Recommended packages: libhtml-template-perl The following NEW packages will be installed: mysql-server-5.5 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 0 B/1,620 kB of archives. After this operation, 29.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... (Reading database ... 51511 files and directories currently installed.) Preparing to unpack .../mysql-server-5.5_5.5.47-0+deb8u1_armhf.deb ... Aborting downgrade from (at least) 10.0 to 5.5. If are sure you want to downgrade to 5.5, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.5_5.5.47-0+deb8u1_armhf.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.5_5.5.47-0+deb8u1_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Any suggestions on how I can fix this?
  2. 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!
  3. 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.
  4. 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.
  5. 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?
  6. 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?
  7. 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 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?
  8. 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?
  9. So do you suggest that I compile the Armbian image myself from scratch, or?
  10. 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.
  11. 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?
  12. 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.
  13. 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?
  14. 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?
  15. 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.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines