I'm trying to cross compile rt3070 drivers for a Hawking usb wifi N card, using clemsyn's kernel source and the android tool chain.
From what I've been reading, something like the following should work?
I can compile the driver fine in ubuntu 11.04 and insmod the resulting .ko file.
When I try any combination of the following for arm, make cant find a make file.
Whats the proper way to do this? This is what I've been trying so far:
sudo make -C ~/drivers/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO ARCH=arm-eabi CROSS_COMPILE=/usr/src/tegratab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- LINUX_SRC=/usr/src/Clemsyn-OC-kernel
any help is appreciated, any links to info to read to shed some light, whatever. Thanks
LoSt-CaUzE said:
I'm trying to cross compile rt3070 drivers for a Hawking usb wifi N card, using clemsyn's kernel source and the android tool chain.
From what I've been reading, something like the following should work?
I can compile the driver fine in ubuntu 11.04 and insmod the resulting .ko file.
When I try any combination of the following for arm, make cant find a make file.
Whats the proper way to do this? This is what I've been trying so far:
sudo make -C ~/drivers/2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO ARCH=arm-eabi CROSS_COMPILE=/usr/src/tegratab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- LINUX_SRC=/usr/src/Clemsyn-OC-kernel
any help is appreciated, any links to info to read to shed some light, whatever. Thanks
Click to expand...
Click to collapse
if you ever got this to work pm me, i need the rt3070 drivers on my andriod...
Related
There are some people in this forum that have got success instaling ubuntu on Folio. I've got too.
Now i have a great question !!
Are our folios fully driver installed ??
For example, in my folio with ubuntu, i can't use bluetooth or i can't heard any sound because it doesn't run, or also i can't adjust brightness...
I have searched lot of pages and i haven't got success....
This thread is created for people who knows how install this kind of drivers can help us to make us happy !!
If you discovered how to install any kind of driver... or things for optimize ubuntu and make it more quickly please, post it !!
Also would be insteresting if people got success installing programs on our ARM architecture device like Dropbox, Foxit reader, Wine compatibility layer... that are based on i386 and AMD architectures post a how to do it.
Thanks in advance for all people that make that possible.
Hi,
I am working on sound driver. Just trying to find specs as running android do not give enough informations.
I will also try to integrate accelerated drivers as in AC100 build (but system may be unstable...)
Akta
When I installed Linux on my netbook, I haven't got bluetooth, go to software manager(ubuntu market) and search for bluetooth(drivers). May this help you
I'm working on sound too...
I guess there is an GPIO Chip inside the Folio, which manages sound in-/outputs..
I dont know whether the bluetooth and screen brightness are also part of it...
The GPIO has many inputs and outputs, but these are not fix...
So you have to build/run a program which tells them to be an output or input and what they have to do...
I ported the mach-tegra tree and the sound/soc/tegra tree from android-kernel-source to the folio source..
After that I ran nvrm_daemon in a chroot..
For that you'll have to do the following steps:
1. Create a new folder whereever you want (for me /home/ubuntu/Desktop/chroot)
2. mount /dev/mmcbkl0p1 and copy the bin & lib folders into your directory
3. create a folder called system inside your folder and move the lib folder into it
4. create the folders dev and proc
5. open a shell and cd to your directory
6. $ mount -o bind /dev dev/
7. $ mount -t proc /proc proc/
8. chroot ./ /bin/sh
9. nvrm_daemon
You should better run chroot/nvrm_daemon from a ssh shell on your laptop because sometimes the screen gets black, because of segmentation fault..
Then you can take a look @ dmesg..
There are some outputs given by nvrm_daemon.. Also for GPIO but they failed to change some pins because they are already in use..
And I guess thats the problem!
I also tested whats happening when the nvrm_daemon is not starting when android boots.
I removed it from the ramdisk.
After that the folio wasn't starting anymore...
Only after I started nvrm_daemon manually via adb shell the boot screen appers and the window manager starts..
So everything depends on the nvrm_daemon!
I hope you'll more lucky than me and findout why the nvrm_daemon is not starting correctly!
Regards
Thanks for the info.
Will look at that to begin with
Akta
I there, I have contacted Atheros to know which bluetooth chip is in our folio and they replied me that is 3011 or 3012 depending on the version.
I hope this helps to get bluetooth working early. I will try using ndiswrapper to install windows driver after the biggest brick ever!!!
I found the drivers for the gpu
I've gotten through the forums trimslice computer graphics chip drivers Tegra2
To download them here:
Code:
trimslice.com/download/drivers/nvidia-drivers.18.0004.tar.bz2
These drivers are valid for Debian and Ubuntu Maverick.
However, you must edit xorg.conf to make them work properly with the folio 100.
If someone can correctly configure xorg.conf. I would appreciate it also put him in these forums. Thanks
To install the drivers simply must enter the terminal from ubuntu and type the following commands:
Code:
cd /
sudo tar -jxf nvidia-drivers.18.0004.tar.bz2
jarre2 said:
I've gotten through the forums trimslice computer graphics chip drivers Tegra2
To download them here:
Code:
trimslice.com/download/drivers/nvidia-drivers.18.0004.tar.bz2
These drivers are valid for Debian and Ubuntu Maverick.
However, you must edit xorg.conf to make them work properly with the folio 100.
If someone can correctly configure xorg.conf. I would appreciate it also put him in these forums. Thanks
To install the drivers simply must enter the terminal from ubuntu and type the following commands:
Code:
cd /
sudo tar -jxf nvidia-drivers.18.0004.tar.bz2
Click to expand...
Click to collapse
Hey, I have installed this drivers and now I can't boot ubuntu !! Can you help me ? I send you a mp with my e-mail, we can speak on google talk chat i'm spanish !
thx !!
I had said before, it is necessary to create an xorg.conf file that is compatible with
toshiba screen folio 100.
It is the only way to have graphics acceleration.
Funny how nobody was interested in compiling the kernel with support for
ALSA (and there have been some drivers called tegra) But if you do not work
we can always choose to have sound through USB since.
no news ? aneybody have graphics acceleration ?
up please!!!
please why nobody reply ?
Hi all,
I begin with compilation and development with kernel for mobiles devices and specially with touchpad.
I tried to use my touchpad like a "micro" server (like i could do with raspberry pi), then i installed ubuntu 12.10 with this topic:
http://forum.xda-developers.com/showthread.php?t=1304475
I installed ubuntu 12.10 and use CalcProgrammer1 kernel (uImage.Ubuntu), it works great for what i want to do...
But now i would add cifs support because the kernel doesn't support it..
I tried to recompile Bodden sources but, the touchscreen support and freedreno drivers isn't supported...
Then, i tried a last thing: compile Bodden sources, make modules, cifs.ko
Now, i have cifs.ko but, when i try to load it with CalcProgrammer1 kernel with insmod, il load successfully (i see it with lsmod) but when i try to mount anything with "mount.cifs" or "mount -t cifs" i will crash and reboot directly after i enter the password...
My knowledge isn't very good with that, and i don't know if i can compile cifs.ko with bodden source, use CalcProgrammer1 kernel and load cifs.ko with insmod..
Thank you very much :highfive:
Hi,
I followed some threads in this forum and managed to build USB to Ethernet driver (usbnet.ko and asix.ko) for Acer Iconia A1-810 but I am not able to load them to the tablet with insmod command.
insmod usbnet.ko
insmod asix.ko
It says "no such file or directory" even through I put them in /system/lib/modules and ran the commands from there. I Guess that the files I built were based on wrong version of Ubuntu and Android_Toolchains.
Does anybody manage to build the driver for the tablet or know how to do that or know which version of Ubuntu and Android toolchains I need to use?
My device is rooted and the drivers were built on Ubuntu 12.04, Android_Toolchains arm-eabi-4.4.3
Thanks in advance.
I have compiled a kernel from Floppy kernel source, to make it contain an ATH9K driver for TP-Link usb wifi card TL-WN722N, but when I plug it in on OTG usb and execute command in Termux to list available devices, it's not there, and the wifi network card's LED is not on. I'm not sure if it's the kernel driver is not working or it's app's level issue, Is there a way to check if the driver is successfully installed? Thanks!
The device is a Xiaomi MI 5, running official miui dev ver of Android 8, kernel is compiled from Floppy Kernel for miui Oreo
The app I'm trying to run is airmon-ng via Termux, device is rooted by Magisk, and bootlock is unlocked.
kdlsw said:
I have compiled a kernel from Floppy kernel source, to make it contain an ATH9K driver for TP-Link usb wifi card TL-WN722N, but when I plug it in on OTG usb and execute command in Termux to list available devices, it's not there, and the wifi network card's LED is not on. I'm not sure if it's the kernel driver is not working or it's app's level issue, Is there a way to check if the driver is successfully installed? Thanks!
The device is a Xiaomi MI 5, running official miui dev ver of Android 8, kernel is compiled from Floppy Kernel for miui Oreo
The app I'm trying to run is airmon-ng via Termux, device is rooted by Magisk, and bootlock is unlocked.
Click to expand...
Click to collapse
IMHO to get to know all the drivers, you need to go through the /sys directory.
jwoegerbauer said:
IMHO to get to know all the drivers, you need to go through the /sys directory.
Click to expand...
Click to collapse
Thanks, that really helped, I checked /sys/module, and the driver (ath9k_htc) is there, then I checked lsmod, there is only one item:
Code:
gemini:/sys/module # lsmod
Module Size Used by
wlan 5801121 0
I think this is the one I added to the kernel, but is it a bit weird that there is no other loaded module?
And the usb wifi card is still not working, even I can see the device is showing in lsusb -t, the driver is not loading to the device.
I'm really out of ideas, can anyone please give some suggestions? Thanks!
@kdlsw
Loaded and hence currently running modules ( drivers ) are to be found in file /proc/modules
jwoegerbauer said:
@kdlsw
Loaded and hence currently running modules ( drivers ) are to be found in file /proc/modules
Click to expand...
Click to collapse
Here is what I see in there:
Code:
wlan 5801121 0 - Live 0x00000000000000 (O)
So it's definitely there, loaded. But the wifi card is still not working, I really don't have too much idea of how to proceed from this point.
The function I have selected from make menuconfig when compile kernel was called ATH9K and ATH9K_HTC, here it's wlan, is there something wrong? I checked the same wifi card plug into a desktop Debian, there is no module named wlan, the driver showed in lsusb is ath9k_htc.
And the offset of this being all zero seems not normal?
And it's the only one as not in tree external module, maybe external modules don't work? Should I try to compile it as in the tree?
Can you please point me some direction? What should I try from this point? Thanks
I finally got it working, what I did is to bind the driver to the usb device, and download a firmware for the device and put it in firmware' corresponding directory, I noticed it because there was an error message of loading firmware failed in dmesg when usb device is plugged. THANKS!!
I am a fan of Ubuntu and linux.
I want to make Ubuntu Mobile Device based on REDMI2.
I have launched TWRP on my phone.
fastboot boot wt8847_64_twrp_3.2.1.img
Using debootstrap I got Ubuntu for ARMv7.
debootstrap --arch = armhf --variant = minbase --foreign trusty ~/Downloads/ARMv7/Ubuntu_Trusty_armhf http://ports.ubuntu.com/
TWRP has a terminal.
I found chroot in TWRP.
I copied using adb push Ubuntu ARMv7 to phone.
Chroot helped me get Ubuntu up and running in conlose mode.
chroot /dev/Ubuntu_Trusty /bin/bash
Everything is fine.
But I can only use the Internet via a USB cable.
I am using pppd. (Thanks to the article at https://forum.xda-developers.com/)
If anyone is interested, I can describe in more detail.
I am trying to start an internal WiFi module or connect an external one.
For example the powerful RT2870 / RT3070 Wireless Adapter.
I have unpacked wt8847_64_twrp_3.2.1.img by Android Image Kitchen (AIK).
I added kernel from the official firmware.
Packed up and launched successfully.
But ifconfig didn't show any wireless devices.
There are folders in the official firmware
/system/lib/
/system/lib64/
/system/vendor/lib/
/system/vendor/lib64/
What is the name of the driver file for WiFi?
OK. All drivers in /system/lib/modules
IronAndroid2021 said:
I can only use the Internet via a USB cable.
I am using pppd. (Thanks to the article at https://forum.xda-developers.com/)
If anyone is interested, I can describe in more detail.
Click to expand...
Click to collapse
How are you using internet by usb ? Please tell, I want that too in my twrp chroot. What is pppd ?