LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2013, 03:04 PM   #1
betanman
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Rep: Reputation: Disabled
Conflict between kernel's android and linux "chroot'


Hi,
I have an tablete under android and I try to install my wireless key "based chipset RTL8187" under backtrack "chroot", but without success, believe in me, I had to go and solve a lot of problems in the "chroot" although I'm almost nil in linux, but now I'm stuck with this problem for several days, following a lot of tutorials here and elsewhere, I show you a few lines of command to develop;

Code:
root@localhost:~# modprobe rtl8187
FATAL: Could not load /lib/modules/3.1.10-10.6.1.15.3/modules.dep: No such file or directory
trying to install the driver
Code:
ifconfig wlan0 down	 
rmmod r8187 rtl8187 2>/dev/null
wget http://dl.aircrack-ng.org/drivers/rt...ux_26.1010.zip
unzip rtl8187_linux_26.1010.zip
cd rtl8187_linux_26.1010.0622.2006/
wget http://patches.aircrack-ng.org/rtl8187_2.6.27.patch
wget http://patches.aircrack-ng.org/rtl8187_2.6.32.patch
tar xzf drv.tar.gz
tar xzf stack.tar.gz
patch -Np1 -i rtl8187_2.6.27.patch
patch -Np1 -i rtl8187_2.6.32.patch
make
make install
make -C /lib/modules/3.1.10-10.6.1.15.3/build M=/sdcard/BT5/rtl8187L_linux_1041.0209.2012/rtl8187 CC=gcc modules
make[1]: Entering directory `/lib/modules/3.1.10-10.6.1.15.3/build'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/lib/modules/3.1.10-10.6.1.15.3/build'
make: *** [modules] Error 2
make -C /lib/modules/3.1.10-10.6.1.15.3/build M=/sdcard/BT5/rtl8187L_linux_1041.0209.2012/rtl8187 CC=gcc modules
make[1]: Entering directory `/lib/modules/3.1.10-10.6.1.15.3/build'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/lib/modules/3.1.10-10.6.1.15.3/build'
make: *** [modules] Error 2
when I search for Linux realise
Code:
root@localhost:~# uname -a
Linux localhost 3.1.10-10.6.1.15.3 #1 SMP PREEMPT Wed May 1 13:26:11 CEST 2013 armv7l GNU/Linux
when I search for Linux packages
Code:
root@localhost:~# dpkg --list | grep image
ii  dcraw                             8.86-1build1              decode raw digital camera images
ii  genisoimage                   9:1.1.10-1ubuntu1             Creates ISO-9660 CD-ROM filesystem images
ii  imagemagick                  7:6.5.7.8-1ubuntu1             image manipulation programs
ii  libcupsimage2                 1.4.3-1                       Common UNIX Printing System(tm) - Raster image library
ii  libdjvulibre21                  3.5.22-1ubuntu4             Runtime support for the DjVu image format
ii  libgif4                             4.1.6-9                 library for GIF images (library)
ii  libglitz1                          0.5.6-1build1            Glitz OpenGL image compositing library
ii  libijs-0.35                       0.35-7build1              IJS raster image transport protocol: shared library
ii  libimlib2                          1.4.2-5build1            powerful image loading and rendering library
ii  libmagickcore2                7:6.5.7.8-1ubuntu1            low-level image manipulation library
ii  libmagickcore2-extra       7:6.5.7.8-1ubuntu1               low-level image manipulation library - extra codecs
ii  libmagickwand2               7:6.5.7.8-1ubuntu1             image manipulation library
rc  libmng1                          1.0.9-1ubuntu1             Multiple-image Network Graphics library
ii  libopenexr6                      1.6.1-4.1                  runtime files for the OpenEXR image library
ii  libsdl-image1.2                1.2.7-1                      image loading library for Simple DirectMedia Layer 1.2
ii  linux-image-2.6.31-607-imx51     2.6.31-607.13              Linux kernel image for version 2.6.31 on I.MX51-based systems
ii  linux-image-imx51                      2.6.31.607.8         Linux kernel image for imx51 machines
ii  screensaver-default-images         0.2-1                    Wallpapers for image processing screensavers
ii  stegdetect                             0.6-bt0              Stegdetect is an automated tool for detecting steganographic     content in images. It is capable of detecting several different steganographic methods to emb
ii  uboot-mkimage                          0.4build1            generate kernel image for U-Boot
when I search for Linux headers
Code:
root@localhost:~# dpkg -l |grep header
ii  foremost                               1.5.7-bt0                                       A console program to recover files based on their headers, footers, and internal data structures.
ii  libpcap0.8-dev                         1.0.0-6                                         development library and header files for libpcap0.8
ii  libssl-dev                             0.9.8k-7ubuntu8.6                               SSL development libraries, header files and documentation
ii  linux-headers-2.6.31-607-imx51         2.6.31-607.13                                   Linux kernel headers for version 2.6.31 on I.MX51-based systems
ii  linux-headers-2.6.32-204               2.6.32-204.16                                   Header files related to linux-mvl-dove kernel version 2.6.32
ii  linux-headers-2.6.32-204-dove          2.6.32-204.16                                   Linux kernel headers for version 2.6.32 on dove-based systems
ii  linux-headers-2.6.33-500               2.6.33-500.6                                    Header files related to linux-ti-omap kernel version 2.6.33
ii  linux-headers-2.6.33-500-omap          2.6.33-500.6                                    Linux kernel headers for version 2.6.33 on OMAP3-based systems
ii  linux-headers-dove                     2.6.32.204.7                                    Generic Linux kernel headers
ii  linux-headers-imx51                    2.6.31.607.8                                    Linux kernel headers for imx51 machines
ii  linux-headers-omap                     2.6.33.500.2                                    Linux kernel headers -- omap
but there is no linux package or headers 3.1.10-10.6.1.15.3

Also i installed module-assistant_0.11.6_all.deb and ran this command:
Code:
root@localhost:~# su -c 'm-a update && m-a prepare'
Updated infos about 42 packages
Getting source for kernel version: 3.1.10-10.6.1.15.3
apt-get install linux-headers-3.1.10-10.6.1.15.3 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package linux-headers-3.1.10-10.6.1.15.3
apt-get install build-essential 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
but no luck

I know that 3.1.10-10.6.1.15.3 kernel comes from the android Os, so it doesn't exist in the image of backtrack,
what can I do please !! and is there any way to get it work under Android instead of internal wifi ....thanks
 
Old 09-26-2013, 12:56 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Not listed
Quote:
E: Couldn't find package linux-headers-3.1.10-10.6.1.15.3
 
Old 09-26-2013, 01:16 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Also backtrack has been replaced by kali so your OS may be outdated. so no new kernel available.
 
Old 09-26-2013, 07:42 AM   #4
betanman
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Is there a way to bypassed the kernel 3.1.10* ?, such as selecting the 2.6.31-607-kernel imx51 what I think it is complete in
Code:
/lib/modules/
knowing that grub does not exist
Code:
root@localhost:~# sudo update-grub
sudo: update-grub: command not found
root@localhost:~# aptitude install grub
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
No candidate version found for grub
No candidate version found for grub
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
localepurge: Disk space freed in /usr/share/locale: 1032 KiB
localepurge: Disk space freed in /usr/share/man: 28 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
Total disk space freed by localepurge: 1060 KiB
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done

root@localhost:~# grub
grub: command not found
I think that the chroot use the kernel of backtrack instead of android so why it's used as a current kernel ?
and I want to know, from where does come the value that displays after the command
Code:
uname -a
or
uname -r
 
Old 09-26-2013, 09:12 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I think that you should first install an upto date Os then your problems should be answered.
 
Old 09-28-2013, 06:57 AM   #6
betanman
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
I think that you should first install an upto date Os then your problems should be answered.
I installed the latest version of ubuntu (v 13.04)from here but still the same
Code:
uname -r 3.1.10-10.6.1.15.3
I believe that the problem is coming from busybox because it's looks like that it's work like virtual box, and linux is under it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't install kernel module on CentOS. "...likely that xx belongs to a chroot's host" 4Paul4 Linux - Software 2 05-27-2012 11:34 PM
Android Plugin for Eclipse IDE: No option for "Android Project" Kenny_Strawn Programming 20 10-18-2011 09:52 PM
[SOLVED] "missing kernel .config file" error while compiling linux source code for android preetb123 Linux - Mobile 3 03-19-2011 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration