Hi,
i have realy big problems finding kernel headers for the 3.18.44-nethunter-herolte-xx-1.5
I gut stucked while i tried to compile the drivers for my USB WLAN Adapter with RTL8821AU Chipset.
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install linux-headers-$(uname -r)
...
...
does anybody knows a working repository to place in the sources.list? Or have anybody an idea getting the driver running.
The Kali wiki etc. don't have any usefull information about this. The main answer is try apt-get update....
Thanks in advance
Related
I've been toying with my own kernels for 2.1 and now 2.2. After much help from netarchy, ffolkes, joeykrim, maejrep, toastcfh, and sentenced, I finally got my Ubuntu box churning out 2.6.29.6 kernels that work on CM6. (If I neglected to mention anybody, kindly remind me). Anyway, sentenced suggested I put together a quick guide on how to do it, so here it is.
I setup my development box as an Ubuntu 8.04 VM on Parallels for OSX. Virtualbox is a free alternative to Parallels. I reckon if you can't figure out how to install Linux, you should probably go do that first and come back to this later.
Once Ubuntu is up and running:
apt-get install gnupg
apt-get install flex
apt-get install bison
apt-get install gperf
apt-get install build-essential
apt-get install zip
apt-get install curl
apt-get install sun-java5-jdk-zlib1g-dev
apt-get install sun-java5-jdk
apt-get install zlib1g-dev
apt-get install gcc-multilib
apt-get install g++-multilib
apt-get install libncurses5-dev
update-java-alternatives -s java-1.5.0-sun
Setup Android NDK
Download the NDK here.
Unpack and put the android-ndk-r4b folder somewhere where you have access to it. ~/src is fine. I used /src.
Setup your environment
There are many ways to do this. It's probably more appropriate to place the following in ~/.profile, but I put mine in /etc/profile so they are system wide.
export ARCH=arm
export CC=/src/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-gcc
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:/src/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/
Pay attention to the path statement. If you see "can't find arm-eabi-gcc" errors when you try to make your kernel, something is WRONG with your path statement. Don't ask me how I know this.
Get the kernel source you want to work with.
I started with CM6 found here.
Or git:
git init
git pull git://github.com/CyanogenMod/htc-kernel-supersonic.git
Ok, time to play
make supersonic_defconfig - Builds the default .config for Evo.
make menuconfig (or make xconfig)
Select options
Exit and save
Time to Build!
make -m
If your kernel builds successfully, you'll find it in ./arch/arm/boot/ It's the file: zImage
Test and Install
You can temporarily test with fastboot boot <path-to>/zImage
To survive reboot: fastboot flash zimage <path-to>/zImage
You'll have to get the wifi module from drivers/net/wireless/bcm4329/bcm4329.ko and the wimax module from drivers/net/wimax/SQN/sequans_sdio.ko and push them to /system/lib/modules. You should probably save the modules from the ROM first though.
Hope this helps.
it is so nice to see all the steps put together in this guide!
thanks for taking the time to write everything up!
Here is a guide I'm working on, same thing except its for Windows host using Ubuntu 10.04..
http://htc-linux.org/wiki/index.php?title=Ubuntu_VirtualBox_Dev_Environment
Vinny, If you'd like to include this in your wiki, please feel free.
jmxp69 said:
Vinny, If you'd like to include this in your wiki, please feel free.
Click to expand...
Click to collapse
likewise, feel free to contribute to the wiki article
I'm going to add links to setting up the build environment; the NDK, the Android/CM source (my preference), and uClibc.
This is a good source http://wiki.cyanogenmod.com/index.php?title=Building_from_source just follow "Building for Passion/Nexus One" and subistitute supersonic and skip the zx.patch stuff
i've been trying this for days now using visual box with the ubuntu. i've followed the video but when it gets to the point where i use the terminal
sudo apt-get install sun-java6-bin sun-java6-jre
it say
Reading Packages lists.....Done
Building dependency tree
Reading state information....Done
E: Could'nt find package sun-java6-bin
I'VE search all over for this and no solution
( i'm on windows 7 )
can some one help
i've search and found that java6-bin is obsolete ?
Hi,
i sharing this link for ubuntu user, intallation is very easy for n***
Source webupd8.org, articles link
webupd8.org said:
These tools can be found in the Android SDK too; using the official package in Ubuntu 12.10 or the packages in our PPA is just an alternative and easier way I'd say, to install them in Ubuntu. Also, the packages in the PPA are available for both 32bit and 64bit, while the Android SDK provided by Google is only available for 32bit.
Click to expand...
Click to collapse
installation
Code:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update && sudo apt-get install android-tools-adb android-tools-fastboot
Thank you so much...bro...i have tried each and everything on google but failed every time...your post was really helpful..
THANK YOU
Thanks so much Bro. Simple but very useful!
Hi all,
I don't think we have a Rasp-pi forum on here, so Im posting here. Also, such a forum would probably be for those wishing to run Android on their Raspberry Pi. This thread is for those who are using their Pi for android development
I had a hard time finding android-tools packages for the debian "wheezy" build that comes with the Pi, so I back-ported them and built some binaries, attached below.
This is useful for people who plan to use their Raspberry Pi for some sort of android tinker. ing, but don't plan on doing any actual development (and hence will not need the full SDK). These should save some time. My first contribution to XDA, so enjoy!
Mirror available via PM.
MD5 Hash: AB22B0251A8A1B1209EF1342167C1E09
SHA1: FA8113237AF1C8F64FA74BF800A866A7B681CD2A
INSTALLATION
Download, cd to the directory you downloaded,
Code:
tar zxvf android-tools-pi.tar.gz && cd android-tools-pi
There should be three binaries in the directory.
Install with
Code:
dpkg -i android-tools-*.deb
Best,
amk
EDIT: Whoops.. if a mod could move this to the Pi forums I'd appreciate it. Thanks in advance.
I downloaded the files and unfortunately the md5 doesn't agree.
C9D4DB0E4D350022888D1AF8921EF7E9 for android-tools-pi.tar.gz
4C27CA4B23E4C3E0AFF814B592871DF6 for android-tools-pi.tar
The first file, android-tools-adb, doesn't seem to be a valid debian archive format.
I tried downloading more than once. Could you check your upload went ok?
A link or list of the utilities would be helpful, save a search. Also how you did it. I see fastboot and fsutils.
Thanks
Hm, that's interesting. This is from so long ago it almost feels like a foreign language now haha.
I think I just compiled the source code to run on wheezy but doing so required a few tricks (I think it needed to use the newer c++ compiler not included in wheezy)
Also the reason I did this was so I could cross-compile android ROMs on my pi, which I soon discovered was the stupidest idea I've ever had in my life. It's great for doing adb/recovery/ssh stuff though
I can look into it, but it'll take me some time
I know the feeling, forgetting earlier work, I actually write notes now, but then one has to clip them together to be able to find them again.
The latest Debian image seems to be quite good, usually though one has to download the more specialist utilities. It's just that these packages don't exist online, but I expect the c++ compiler would be available. If it isn't easy to reproduce the steps I'll start looking for the source and compiler. It seems that no one else tested the packages, but the general process of compiling a package for the Raspberry, and getting it into the right format to load, might be of interest to others.
The CWM (Clock Work Mode) recovery utility 6.0.5.1 for the P3100 phone seems easy enough to install using odin.
I imagine you were compiling Replicant, probably not enough memory on a Raspberry so it might need a big cache file somewhere if that's even possible.
The ssh function to phone seems interesting. I use it quite a lot between Raspberry computers, especially if something freezes.
Thanks
FOR OLD VERSION:
Since your archive files are not working - i got "****** doesn't seem to be a valid debian archive format"
Go to http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/a/android-tools/
Download this files to PI:
android-tools-adb_4.2.2+git20130529-3_armhf.deb
android-tools-fastboot_4.2.2+git20130529-3_armhf.deb
android-tools-fsutils_4.2.2+git20130529-3_armhf.deb
In terminal go to file location and then :
Code:
dpkg -i android-tools-*.deb
Or easy
NOW:
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
Done ... we got ADB on Raspberry PI
Errors
Thank for the information so far.
I downloaded the files and ran the commands. There seem to be dependency problems.
I ran the second command thinking it might solve the problem with adb from the first one. It didn't.
As I don't want to risk doing the wrong thing I am posting the command prompt output here.
Should I do as it suggests? "Try 'apt-get -f install' with no packages"
I don't know enough about the packages to say what the problem is without a lot more research.
[email protected] ~/Desktop/Android/NewTools $ sudo dpkg -i android-tools-*.deb
Selecting previously unselected package android-tools-adb.
(Reading database ... 89053 files and directories currently installed.)
Unpacking android-tools-adb (from android-tools-adb_4.2.2+git20130529-3_armhf.deb) ...
Preparing to replace android-tools-fastboot 4.2.2+git20130529-3 (using android-tools-fastboot_4.2.2+git20130529-3_armhf.deb) ...
Unpacking replacement android-tools-fastboot ...
Preparing to replace android-tools-fsutils 4.2.2+git20130529-3 (using android-tools-fsutils_4.2.2+git20130529-3_armhf.deb) ...
Unpacking replacement android-tools-fsutils ...
dpkg: dependency problems prevent configuration of android-tools-adb:
android-tools-adb depends on libc6 (>= 2.15); however:
Version of libc6:armhf on system is 2.13-38+rpi2+deb7u8.
dpkg: error processing android-tools-adb (--install):
dependency problems - leaving unconfigured
Setting up android-tools-fastboot (4.2.2+git20130529-3) ...
Setting up android-tools-fsutils (4.2.2+git20130529-3) ...
Processing triggers for man-db ...
Errors were encountered while processing:
android-tools-adb
[email protected] ~/Desktop/Android/NewTools $ sudo apt-get install android-tools-adb android-tools-fastboot
Reading package lists... Done
Building dependency tree
Reading state information... Done
android-tools-adb is already the newest version.
android-tools-fastboot is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
android-tools-adb : Depends: libc6 (>= 2.15) but 2.13-38+rpi2+deb7u8 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
[email protected] ~/Desktop/Android/NewTools $
Hello everybody, I need to install nethunter and all the drivers of the tl-wn725n wifi adapter on my samsung galaxy a51.
I performed the unroot procedure and installed nethunter via magisk. Nethuner and the terminal emulator work fine. Obviously, since my cellphone wifi does not support monitoring mode, I bought a tl-wn725n wifi adapter and tried to download the drivers.
I have tried to follow multiple github projects on how to install rtl8188eus chipset drivers, like this one 'https://github.com/aircrack-ng/rtl8188eus'.
When I try to install the drivers, I get the error: '/lib/module/4.13.113-**' not found
I've already tried running the following commands: sudo apt update sudo apt upgrade sudo apt-get dist-upgrade reboot sudo apt-get install linux-headers - $ (uname -r) sudo apt install bc sudo apt-get install build-essential sudo apt-get install libelf-dev sudo apt install dkms
but i always get errors as the '/ lib / modules /' directory is empty. Can someone help me?
hope I can get these drivers in order to use the tl-wn725n adapter
ralboreto said:
Hello everybody, I need to install nethunter and all the drivers of the tl-wn725n wifi adapter on my samsung galaxy a51.
I performed the unroot procedure and installed nethunter via magisk. Nethuner and the terminal emulator work fine. Obviously, since my cellphone wifi does not support monitoring mode, I bought a tl-wn725n wifi adapter and tried to download the drivers.
I have tried to follow multiple github projects on how to install rtl8188eus chipset drivers, like this one 'https://github.com/aircrack-ng/rtl8188eus'.
When I try to install the drivers, I get the error: '/lib/module/4.13.113-**' not found
I've already tried running the following commands: sudo apt update sudo apt upgrade sudo apt-get dist-upgrade reboot sudo apt-get install linux-headers - $ (uname -r) sudo apt install bc sudo apt-get install build-essential sudo apt-get install libelf-dev sudo apt install dkms
but i always get errors as the '/ lib / modules /' directory is empty. Can someone help me?
hope I can get these drivers in order to use the tl-wn725n adapter
Click to expand...
Click to collapse
@ralboreto
Welcome to XDA. I hope you'll always get the support you require.
However, prior to your next posting please read the guidances that are stuck on top of every forum like
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com
and the others. I've moved the thread to Android Q&A.
Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator
ralboreto said:
Hello everybody, I need to install nethunter and all the drivers of the tl-wn725n wifi adapter on my samsung galaxy a51.
I performed the unroot procedure and installed nethunter via magisk. Nethuner and the terminal emulator work fine. Obviously, since my cellphone wifi does not support monitoring mode, I bought a tl-wn725n wifi adapter and tried to download the drivers.
I have tried to follow multiple github projects on how to install rtl8188eus chipset drivers, like this one 'https://github.com/aircrack-ng/rtl8188eus'.
When I try to install the drivers, I get the error: '/lib/module/4.13.113-**' not found
I've already tried running the following commands: sudo apt update sudo apt upgrade sudo apt-get dist-upgrade reboot sudo apt-get install linux-headers - $ (uname -r) sudo apt install bc sudo apt-get install build-essential sudo apt-get install libelf-dev sudo apt install dkms
but i always get errors as the '/ lib / modules /' directory is empty. Can someone help me?
hope I can get these drivers in order to use the tl-wn725n adapter
Click to expand...
Click to collapse
hi i need a tester to test a51 kernel build for nethunter maybe i can help you
V3rB0se said:
hi i need a tester to test a51 kernel build for nethunter maybe i can help you
Click to expand...
Click to collapse
Hi, i have a51
i already posted the kernel build you can find it here
i have one ui 4.1, would that be a problem?
and will it factory reset my device?
please ask the question in the thread I won't be answering here.