[Q] [ODROIDU2] how do i compile rtl8192cu kernel module against 3.0.51? - General Questions and Answers

Hi all, i'm trying to push rtl8192cu.ko to an ODROID U2 running on CM10.2 (latest nightly) wich is based on kernel 3.0.52 in order to get my new wifi mini-dongle working.
i tried several already compiled modules pushing them in /system/lib/modules/ the module, set the right permissions then run: insmod /system/lib/modules/rtl8192cu.ko
but it fails with:
insmod: init_module '/system/lib/modules/rtl8192cu.ko' failed (Exec format error)
i then look at dmesg:
rtl8192cu: version magic '3.0.8+ SMP preempt mod_unload ARMv7 ' should be '3.0.51-g848f8be SMP preempt mod_unload ARMv7 p2v8 '
since i'm still a noob on this, any tip on how to compile this kernel module against the right kernel/arch would be very appreciated
Thanks in advice

same problem but now with wlan.ko
kuzkuz said:
insmod: init_module '/system/lib/modules/rtl8192cu.ko' failed (Exec format error)
rtl8192cu: version magic '3.0.8+ SMP preempt mod_unload ARMv7 ' should be '3.0.51-g848f8be SMP preempt mod_unload ARMv7 p2v8 '
Click to expand...
Click to collapse
Hi dude, first let me say my english is bad, and I'm NOOB
Well, I'm looking a solution for the same problem. In my searching I learn some thing about those errors but I'm not sure I'm still a noob and my english is bad so bad
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If I'm not wrong, at that picture above you can see the chip that we (you and me) need fix.
I wasted hours to tried to fix that chip without success. But then at freaktab.com I found a tread that talks about that chip.
My tablet is:
5linx velocity Ver. 2 (US) but also named at china as Youzen Q8. (yeap I gues the original manufacturer is from china)
Android 4.1.1
kernel 3.0.8+
API LVL 16
CPU: rk3066 but not sure if is called armeabi-v7a or ARMv7
WiFi chip: Realtek 903 or if we follow DMESG is called RTL8188cu
------ So what I'm trying to say with that info ----
1. failed (Exec format error) <<< I guess is when you don't have all the permissions, or is bad copied, or bad compiled. (remember I'm still a noob).
2. version magic -------- ' should be ------ <<< I guess, is when you tried run a module that is not compiled for that version of cpu or kernel.
I have the same problem when I tried copy and run a different module ko that I downloaded or copied from other tablet.
Well, 5linx (US) does not support its customers, but the Chinese manufacturer Szuzone (youzen) does.
So, at freaktab.com I found that maybe the developers made a mistake. Someone there said, try to do this:
rename
8192cu.ko to rkwifi.ko
then run the module using insmod rkwifi.ko
ok, I tried that, but now I get another error with wlan.ko module.
wlan: Unknown symbol rockchip_wifi_init_module (err 0)
-- Some guys on freaktab.com say that process worked for them but not for me.
-- But now I noted that wlan.ko is detected when I use lsmod or dmesg. (remember, I executed rkwifi.ko)
So, what that means?
That process worked for me too? and now wlan.ko is bad?
----- Well anyway, dude try to do that, maybe work for you.
-- Another thing, at realtek website can be found the source code of that chip under (unix,linux) and is for Android 1.6~2.3 and 4.0~4.2 but I have no idea how to compile that driver, I just know I need android sdk or something like that.
-- If someone know how to compile the driver I guess would be better us, right?
I guess the things we need to check before copy and run a module is:
Module was compiled for the same OS version.
same Kernel version
same CPU
and same Wi-Fi chip.
If someone find something to me please feel free to tell me.

WarSxNes said:
Hi dude, first let me say my english is bad, and I'm NOOB
Well, I'm looking a solution for the same problem. In my searching I learn some thing about those errors but I'm not sure I'm still a noob and my english is bad so bad
If I'm not wrong, at that picture above you can see the chip that we (you and me) need fix.
I wasted hours to tried to fix that chip without success. But then at freaktab.com I found a tread that talks about that chip.
My tablet is:
5linx velocity Ver. 2 (US) but also named at china as Youzen Q8. (yeap I gues the original manufacturer is from china)
Android 4.1.1
kernel 3.0.8+
API LVL 16
CPU: rk3066 but not sure if is called armeabi-v7a or ARMv7
WiFi chip: Realtek 903 or if we follow DMESG is called RTL8188cu
------ So what I'm trying to say with that info ----
1. failed (Exec format error) <<< I guess is when you don't have all the permissions, or is bad copied, or bad compiled. (remember I'm still a noob).
2. version magic -------- ' should be ------ <<< I guess, is when you tried run a module that is not compiled for that version of cpu or kernel.
I have the same problem when I tried copy and run a different module ko that I downloaded or copied from other tablet.
Well, 5linx (US) does not support its customers, but the Chinese manufacturer Szuzone (youzen) does.
So, at freaktab.com I found that maybe the developers made a mistake. Someone there said, try to do this:
rename
8192cu.ko to rkwifi.ko
then run the module using insmod rkwifi.ko
ok, I tried that, but now I get another error with wlan.ko module.
wlan: Unknown symbol rockchip_wifi_init_module (err 0)
-- Some guys on freaktab.com say that process worked for them but not for me.
-- But now I noted that wlan.ko is detected when I use lsmod or dmesg. (remember, I executed rkwifi.ko)
So, what that means?
That process worked for me too? and now wlan.ko is bad?
----- Well anyway, dude try to do that, maybe work for you.
-- Another thing, at realtek website can be found the source code of that chip under (unix,linux) and is for Android 1.6~2.3 and 4.0~4.2 but I have no idea how to compile that driver, I just know I need android sdk or something like that.
-- If someone know how to compile the driver I guess would be better us, right?
I guess the things we need to check before copy and run a module is:
Module was compiled for the same OS version.
same Kernel version
same CPU
and same Wi-Fi chip.
If someone find something to me please feel free to tell me.
Click to expand...
Click to collapse
Hi, thanks for the response. I actually know that i did it wrong since i need to compile the drivers for the right kernel version. The problem is that i have no idea on how to compile only the kernel module mentioned instead of all the kernel (wich actually goes beyond my knowledge)

Related

[DEV][UPDATE] Backtrack 5 - Multi-Device Linux Chroot Solution - Debdroid Beta V2

Mods: I'm not sure where this thread belongs as it has evolved to support all Android Devices, please move accordingly.
Debdroid is a fully functional Linux-Android chroot solution. With the ability to set what img file is looped, you are able to run any distro built for ARM.
Update 05/14/11
Backtrack 5 Support!
Backtrack 5 on Android - http://www.youtube.com/watch?v=nYShFr0foS8
Debdroid supports any Android device with loopback devices and ext2.
Succesfully tested on Motorola Atrix, HTC EVO, HTC Incredible.
Release Page: http://gititbit.ch/bt5
All mirrors are provided by gitbrew.org, check out http://gitbrew.org/android/ for more android mirrors. Please contact me if you would like free secure file-hosting.
very interesting!!! i'll give it a shot tomorrow.
Tight work.....finally something fun to play with.
Lol "open sores community" that can't be a typo..........lmao, if it was sorry..hehe
Swyped from a galaxy far far away......
I love sniffing. This means free wifi on my EVO from my EVO hacking abilities.
Here is a song for this hack.
They see me sniffin';
They hatin'.
Patrollin'
And tryin. to catch me sniffin dirty.
catch me sniffin dirty.
Jimdog420 said:
Tight work.....finally something fun to play with.
Lol "open sores community" that can't be a typo..........lmao, if it was sorry..hehe
Swyped from a galaxy far far away......
Click to expand...
Click to collapse
I've already checked my post for spelling mistakes.
and thanks everyone!
It's good to finally see a dev who cares to do a project like this. I wish I had the time to contribute. Maybe after I'm done with univ and fail at trying to find a job I will. Thanks for all the hard work anyways.
So I'm running CM7...
sh debian.sh seemed to complete just fine. (I even went step by step to confirm since there's a 'clear' in there).
but...
sh debdroid gives me:
# debdroid
function: not found
modprobe: chdir(2.6.37-cyanogenmod-01174-gaa3cf65): No such file or directory
debdroid: 47: Syntax error: "}" unexpected
#
I'm decent with linux but a noob with bash (or any coding). It seems like a function is missing (or I did something wrong).
Any help would be appreciated. Thanks.
Do I see gentoo around ther corner?
Sent from my PC36100 using XDA App
easy1600, from the way your output is, it looks like you're not in a bash shell, but just the su sh shell. exec the command bash then exec debdroid. Thank you for trying it out.
As for Gentoo, I've been using Debian for years and never messed about too much in other distros other than arch. Though if you can get an ARM Gentoo img this method can be tweaked to work with any ARM img really.
Update: Here's a WIP of the Debtop software which will allow basically the same functionality of the Motorola Atrix Webtop software.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This vnc session is all through USB with no interaction over the wlan though it has the ability to work with vnc over ssh tunnel.
Sweet! It works and I get tab completion in android (that bugged the hell out of me). Thanks!
easy1600 said:
So I'm running CM7...
sh debian.sh seemed to complete just fine. (I even went step by step to confirm since there's a 'clear' in there).
but...
sh debdroid gives me:
# debdroid
function: not found
modprobe: chdir(2.6.37-cyanogenmod-01174-gaa3cf65): No such file or directory
debdroid: 47: Syntax error: "}" unexpected
#
I'm decent with linux but a noob with bash (or any coding). It seems like a function is missing (or I did something wrong).
Any help would be appreciated. Thanks.
Click to expand...
Click to collapse
Same exact problem here. =/
Aerodynamix: Type 'bash' then try again.
OP: What is the simplest way to copy a .cap file from debian to anywhere I can access it from my laptop? If I can just get it to android /sdcard/ I'm golden. Or if I can just send it anywhere that I can reach it...
Well, you can utilize the unionfs script which is supposed to mount the sdcard and debdroid or you can open up a file manager on your phone like astro and nav to /data/local/debian while debdroid is running.
The problem i am having is that when I type Bash im getting "bash: not found"
grzzer2 said:
The problem i am having is that when I type Bash im getting "bash: not found"
Click to expand...
Click to collapse
Do you have bash installed?
easy1600 said:
It's good to finally see a dev who cares to do a project like this. I wish I had the time to contribute. Maybe after I'm done with univ and fail at trying to find a job I will. Thanks for all the hard work anyways.
Click to expand...
Click to collapse
dasmoover said:
Do you have bash installed?
Click to expand...
Click to collapse
No I dont think I do, is it in the market. Sry I am a noob with Linux
You should grab the BusyBox tools from the market if you haven't already, I'm almost positive it comes with bash.
Yes I just installed busybox from the market on my phone and still getting the "bash: not found"
I got everything working, thank you for your help
dasmoover said:
Well, you can utilize the unionfs script which is supposed to mount the sdcard and debdroid or you can open up a file manager on your phone like astro and nav to /data/local/debian while debdroid is running.
Click to expand...
Click to collapse
My /data/ directory is empty (debian is running). Unionft script doesn't seem to work at all.
I got it done by running /sbin/sshd and using winscp though. Thanks, I got lots to play with now!

[Bounty] Compiled Adreno drivers

I am offering a 25$ bounty to whoever can compile the adreno drivers for the huawei U8150. The device has a msm7225 which includes the Adreno 200 but no drivers have been written for it. I am including the kernel source and the Adreno driver source as well as the specs.
Phone Huawei U8150 Ideos
cpu msm7225 overclocked to 600 mhz in factory
256 mb of ram
froyo 2.2.1
.32 kernel
Kernel source (Please compile with the overclock frequency unlocked using the documentation that is included in the text file with this source) http://www.mediafire.com/?s2djub4571hjs
Adreno Source from GIT https://www.codeaurora.org/gitweb/qu...oid-msm-2.6.32
Thanks and I will be sharing this work with the rest of the U8150 users when it is completed! Starting with my build. Good luck and thank you!
Nice
Sent from my Desire HD using XDA Premium App
Found this in the android kernel source for my mobile. It's the Galaxy ace which also has an Adreno200.
Maybe it is of use to you.
The kernel module source for the gpu is attached.
That does help but I have no idea how to compile that driver, let alone how to tell the kernel to initialize it. That is why I am asking for someone to compile the kernel with the driver.
I will try to compile them for you, no guarantees It creates a xxxx.ko module so you can insmod xxxx.ko into your kernel.
Sounds great, I appreciate the effort. So in the kernel I just type Insmod in the init file? I have an extracted boot.img of my kernel but thats about the best I can do atm.
I downloaded the source and discovered that the MSM Ardeno drivers are already included in your kernel source. You just have to turn them on in the kernel makemenuconfig.
I compiled the 3d driver for your kernel source(2.6.32, critical only works for this kernel version). Now copy extracted file to your sdcard and try:
* insmod msm_kgsl.ko
in adb or terminal.
Don't know if it works, can't test it. I guess you just have to try and see. And hope you don't get a kernel panic.
I got a no such directory error when I tried to install it.
I copied the ko file to the root of my SD, went to my terminal on my phone and typed SU > cd sdcard and then insmod msm_kgsl.ko
Hmm that's weird, should work. Try and copy to a different path.
Are you sure your kernel version is 2.6.32?
It is indeed a .32 kernel. I am going to try baking the .ko file into my rom, as well as the kernel if I can figure out how.
I just opened the rom in my kitchen and saw that bash support wasn't enabled. I guess that would explain why I couldn't even get my odex script to work. Enabling bash and going to try again.
did you get the adreno to work? i have a similar problem with a XT300 from Motorola, the hardware is there but it's not functional...
If you eventually gonna compile your own kernel, you can build the drivers in the kernel yourself. This are the settings I copied from my own phone's kernel settings.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You find these settings under Device Drivers --> Graphics Support.
PS. Set the buildoptions for the driver to a * instead of M to include them natively in you kernel
PPS. You can instantly set all the correct settings for your device by issuing this command: make hw_msm7x25_defconfig (Huwai devices with MSM 7225 processor)
cant do insmod msm_kgsl.ko from anywhere ..
insmod: init_module 'msm_kgls.ko' failed (no such file or dir...)
tried sdcard, /system/lib/modules, various random plases. same thing.
Can anyone try: busybox insmod msm_kgls.ko
Busybox insmod gives more debugging data. Also try adding -v to be verbose and -p to test if the module can be inserted
I added busybox support to my build and when I typed busybox insmod -f -v msm_kgsl.ko I got can't insert msm_kgsl.ko : unknown symbol in module or invalid parameter. I am really hoping you might be able to compile a kernel for us with it already enabled so I can just throw it in the build. I can test a compiled kernel but I am not having any luck adding it through insmod.
It almost seems as if there is something wrong with that module.
I'm interested in that module for the XT300/Spice.
My kernel is the 2.6.29, 2.1-update1...
How do I compile the module ? What do I need?
Thanks for any help.
Is there possibility that these devices are made from chips with faulty gpu part?
Doubtful that there was any bad parts. Anyways, I am getting conflicting information as to whether it is an adreno 130 or adreno 200 inside of it. I read in the kernel mentions of msm7225 and other parts say 7201a.
Wouldn't it just be enough to get the libGLES and maybe gralloc files from another hardware, like htc buzz, which has the msm7225/adreno200 integration?
I tried it, but quadrant is not showing qcom as the renderer. I had to create the egl.cfg, which was not present. Perhaps it's not loading the egl.cfg:
0 0 android
0 1 qcom
with the files:
egl/libGLES_android.so
egl/libGLES_qcom.so(from htc buzz)
hw/gralloc.msm7k.so(from htc buzz)
hw/gralloc.default.so(from htc buzz)
On neocore the score is 3FPS...
EDIT:
CRAP, flashed the libEGL.so from htc buzz, stuck in bootloop... great, will try to recover =/

tun.ko for Alcatel One Touch 918D Android 2.3.5 2.6.35.7([email protected])

Hi folks,
Im trying to configure the openvpn connection on this phone.
Specification:
- Alcatel One Touch 918D -2CALDE1-S40, Capacitive Screen, CPU: MT6573, ARMv6 Processor 668.46MHz.
- Android 2.3.5, Build Number V23AAE0 (ALPS.GB.JRD2.SP.V1.22), Linux Version 2.6.35.7([email protected])(gcc version 4.4.3(GCC)#1 PREMPT tue Dec 20 12:06:52 CTS 2011
I have rooted successfully this device.
Then I installed this app Tun.ko and tryied to install tun.ko
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-Installer.png
and it semms to be successfull
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-Installer2.png
I checked in terminal and tun.ko is loaded.
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-loaded-terminal.png
After starting the connection via 'openvpn settings' the phone makes rebooting.
After that i copied this tun.ko to /system/lib/modules/tun.ko and cofigured this in advanced settings in 'openvpn settings'.
But the same issue... :-(
the device boots after the start of vpn connection...
can enybody help?
Thank you!
can please share your tun.ko? will try it on my device.
Install the Tun.ko App from Market and install the tun.ko modul for your device. I have shared them.
what happened flipee?any luck with this app?
Same tun.ko issue among MT6573 phones
I have a similar MT6573 phone, and loaded its corresponding module from Tun.ko Installer.
Same reboot issue upon connecting to OpenVPN. I guess we're all in the same boat here. Let me know if you guys have found a solution for your phone. Thanks!
dm.homelinux.com said:
Hi folks,
Im trying to configure the openvpn connection on this phone.
Specification:
- Alcatel One Touch 918D -2CALDE1-S40, Capacitive Screen, CPU: MT6573, ARMv6 Processor 668.46MHz.
- Android 2.3.5, Build Number V23AAE0 (ALPS.GB.JRD2.SP.V1.22), Linux Version 2.6.35.7([email protected])(gcc version 4.4.3(GCC)#1 PREMPT tue Dec 20 12:06:52 CTS 2011
I have rooted successfully this device.
Then I installed this app Tun.ko and tryied to install tun.ko
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-Installer.png
and it semms to be successfull
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-Installer2.png
I checked in terminal and tun.ko is loaded.
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-loaded-terminal.png
After starting the connection via 'openvpn settings' the phone makes rebooting.
After that i copied this tun.ko to /system/lib/modules/tun.ko and cofigured this in advanced settings in 'openvpn settings'.
But the same issue... :-(
the device boots after the start of vpn connection...
can enybody help?
Thank you!
Click to expand...
Click to collapse
Can you tell me how you have rooted this phone?
I've buyed yesterday and i don't know how rooting

			
				
I have an OT 918D.
When I load the tun.ko and I use it with Anyconnect, I have the same issue.
My phone reboot.
Have you find a solution ?
we are on the same boat.. i need the droidvpn badly, but it would reboot everytime i would try to connect it on my phone.. maybe if we have a custom kernel for our device..
guys, you can use my ported mod to load tun.ko for your Alcatel...no need custom kernel... in fact, all mt6573 can use it too... :good:
Copy the following file with any root explorer to its respective folder, reboot & start your OpenVPN, DroidVPN, AnyConnect & etc...
scriptz folder -> sdcard
tun.ko -> /system/lib/modules/
xlog.sh -> /system/etc/
if you want, you can head over here to thank banjo0917 as this tun.ko is compile by him... Kudos to banjo...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
* For DroidVPN, just copy tun.ko to SdCard & it'll work...no need for above mod...
yuweng said:
guys, you can use my ported mod to load tun.ko for your Alcatel...no need custom kernel... in fact, all mt6573 can use it too... :good:
Copy the following file with any root explorer to its respective folder, reboot & start your OpenVPN, DroidVPN, AnyConnect & etc...
scriptz folder -> sdcard
tun.ko -> /system/lib/modules/
xlog.sh -> /system/etc/
if you want, you can head over here to thank banjo0917 as this tun.ko is compile by him... Kudos to banjo...
* For DroidVPN, just copy tun.ko to SdCard & it'll work...no need for above mod...
Click to expand...
Click to collapse
I can not believe it. Works like a charm with Alcatel ROM. THANK YOU!

Crosscompiling glibc for the Note 2, native GNU tools on the phone, runnig problem?

I've followed the steps from http://forum.xda-developers.com/showthread.php?t=1299962 basically, and crosscompiled glibc and some basic GNU tools, to run natively on the Note 2.
Now, I'm running into some problems, which I need help with from crosscompiling gurus...
Basically, what I did:
- Setup crosstool-ng on the PC.
- Downloaded the Note 2 source from Samsung.
- Got include/drm/exynos_drm.h elsewhere on the web, as it was bombing without it, and for some reason, it's not in Samsung sources.
- Built a crosscompiling toolchain. I set:
target architecture - arm
endianness - little
fpu - neon
instruction set mode - arm
eabi - enabled
vendor string - exynos
alias - arm-linux
os - linux
c library - glibc
threading - nptl
- With it, built glibc for the Note, built no prob. Built also GNU tar to start experimenting.
Now, I transfered glibc and the tar dirs to the Note.
As the author says at http://forum.xda-developers.com/showthread.php?t=1299962:
What I've found so far, the cross compiled executable (like simple Hello world), when dynamically linked, gives "no such file or directory" error when tried to be run at the device (WTF, right ). However, when when I do run it with the cross-compiled ld-linux.so (the linker of C library) it runs perfectly...
EUREKA! Found the solution! It's as simple as symbolically linking the library folder of your GlibC as /lib to root file system. You can edit ramdisk accordingly to do this process automatically.
Click to expand...
Click to collapse
Anyhow for me now, when I try to run the tar executable, I get:
Code:
No such file or directory
This even with the glibc lib dir symlinked to /lib, and/or setting LD_LIBRARY_PATH to the glibc lib dir.
file tar gives me:
ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.0.31, stripped
Click to expand...
Click to collapse
so all's looking right.
Why can't I get it to run?
This is proving to be a somewhat great course on crosscompiling for me.
So, messing with it, and making advances - was able to get the compiled executables to run after bindmounting arm-exynos-linux-gnueabi/sysroot/lib dir, which was built by the toolchain to the phone's /lib directory.
Now getting mixed errors and failures caused by ld etc when running GNU tools built against androids libc, so need to mess with terminal on the phone to get just the glibc to loaded on running, but it's progressing...
It seems I'll be able to do this.
Looking forward to that. Highly interested in php lighttpd mc busybox dropbear that kinda ****.
--
Sent from my N7100 with Perseus 25.4 Omega 5.0 and some stuff of Raubkatze
I'm almost there, I just need to crosscompile gcc and then I can build the necessary GNU tools natively.
I'm just figuring out how to crosscompile gcc, as it depends on mpc, gmp, and mpfr, and having no experience with crosstompiling I'm figuring out how to compile depends and link against them, whether they should be native or crosscompiled...
But I should be able to figure it out soon, very close now towards full working GNU tools on the Note 2.
OK, need help, have asked for it at http://stackoverflow.com/questions/...with-crosstool-ng-have-toolchain-which-archit also.
If anyone could assist, here goes:
I've built the crosscompiling toolchain with crosstools-ng.
I've cross compiled glibc, fine.
Have built a couple native arm (arm-exynos-linux-gnueabi) utils, like tar etc. and confirmed they work on the Android phone, when symlinking the built x-tools sysroot's lib directory to /lib on the android machine.
Now I need to build the native gcc, so I can develop on the machine. I'm having some philosophical problems with crosscompiling, as I'm relatively inexperienced in it.
I'd therefore like to ask how to proceed in steps exactly, as I've already spent two days with a trial-by-error approach, and so far no luck.
So: gcc depends on mpc, which depends on mpfr, which depends on gmp.
So, how do I proceed?
Which architecture deps do I build, with which host target and build options?
make a tools dir and build these deps there, so as not to mess with the functioning toolchain?
gmp (no host, build, target?)
mpfr (same?)
mpc (same?)
then gcc, how? --host=arm-exynos-linux-gnueabi --build=i686-build_pc-linux-gnu --target=arm-exynos-linux-gnueabi ?
Is this right, or am I messing up in some of the above steps?
Incidentally, I've followed this guide http://forum.xda-developers.com/showthread.php?t=1299962 to build the crosstool-ng toolchain, and it recommends compiling the native apps just with --host=arm...
I've been doing that, and they do work on the Android system, though it doesn't seem right to me, shouldn't it be --target=arm...?
nyarnon said:
Looking forward to that. Highly interested in php lighttpd mc busybox dropbear that kinda ****.
--
Sent from my N7100 with Perseus 25.4 Omega 5.0 and some stuff of Raubkatze
Click to expand...
Click to collapse
+1 ... I'm interested too, keep it up OP... So far I've only successfully build my own perl/libperl.so and runs great on my note2 from http://code.google.com/p/perldroid
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've proceeded further, have built glibc 2.14 for the N7100, works, compiled gcc and some utils. The problem for now is that there is a bug in glibc 2.14 making statically compiled binaries fail on dynamic calls to libraries... It should be fixed in glibc 2.16...
So am experimenting now, trying to figure out how to add the latest glibc version support to crosstool-ng... If anyone knows, chime in.

[ROM][5.0][AOSP] Pixel Perfect Lollipops | Straight from source!

Hi all!
So, I don't own a tilapia, and I don't know anyone that does, but I build ROMs for fun and wanted to cover a base not already covered!
Today I have for you a pure AOSP build for Tilapia (Nexus 7 2012 3G)
Flashing instructions
Code:
1) Backup Everything [SIZE="7"] I MEAN EVERYTHING! THIS WIPES INTERNAL SD[/SIZE]
---YOUR WARANTY IS NOW VOID. THIS INCLUDED NO GUARANTEES---
2) Reboot into fastboot
3) run "fastboot -w update tilapia-lollipop.zip"
4) Boot into the ROM and run through setup
5) Download the Gapps and the fix zip from below to the device
6) Reboot into fastboot
7) run "fastboot flash recovery twrp.img" (or "fastboot boot twrp.img"
8) Flash gapps.zip and the fix zip
9) Reboot and report back
WHAT WORKS?
Code:
Confirmed:
Boots
Wifi
Data
Not complained about yet:
Sound
Bluetooth
NFC
Camera
Video Playback (Yes this could be an issue on some devices, but I doubt this one)
etc,
NOT WORKING
Code:
[STRIKE]Data[/STRIKE] Works now. Flash the fix in the next post
Downloads!
ROM:
V 1.0
Data Fix zip thanks @rjwil1086
GApps Thank @hema for these and @sykopompos for pointing me to them
Source: Google AOSP Source (android-5.0.0_r2)
Proprietary Blobs: 4.4.4 blobs with one small edit (one file changed locations back in 4.3 and the blobs were never updated...I don't recall the file or the location change, but I posted about it in the grouper 5.0 AOSP thread)
FAQ
I CANT FLASH ROOT WTF MAN?!?
It will bootloop if I'm not mistaken
Don't flash root yet
WOAH WHERE'S MY RECOVERY?!?!?
You need root to remove the script that installs the stock Nexus recovery each time you boot up the device
Get me (nonalcoholic) beer: [email protected]
I do this in my spare time around school, music production, and my social life. (I'm only 16 and try to have one of those...unsuccessfully)
ajbiz11 said:
FAQ
I CANT FLASH ROOT WTF MAN?!?
It will bootloop if I'm not mistaken
Don't flash root yet
WOAH WHERE'S MY RECOVERY?!?!?
You need root to remove the script that installs the stock Nexus recovery each time you boot up the device
Get me (nonalcoholic) beer: [email protected]
I do this in my spare time around school, music production, and my social life. (I'm only 16 and try to have one of those...unsuccessfully)
Click to expand...
Click to collapse
Root works with the modified kernel.
http://forum.xda-developers.com/showthread.php?p=56530439
I have the grouper version on my tilapia now. I'll try a dirty flash first.
I'll keep you posted on the progress.
Thanks for the built.
GOOD!
It's good!
My 3G doesn't work...
What's wrong??
But WiFi is OK
Thank for your sharing ^_^!
Baseband not found, new radio lollipop?
Performance is amazing!!!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[/IMG][/IMG]
doiutzu said:
Root works with the modified kernel.
http://forum.xda-developers.com/showthread.php?p=56530439
I have the grouper version on my tilapia now. I'll try a dirty flash first.
I'll keep you posted on the progress.
Thanks for the built.
Click to expand...
Click to collapse
I cant imagine that a grouper kernel would work on tilapia for data
zxc490710 said:
It's good!
My 3G doesn't work...
What's wrong??
But WiFi is OK
Thank for your sharing ^_^!
Click to expand...
Click to collapse
I kinda figured RIL would be broken
IIRC, lollipop changed a lot about how networking works for mobile data
Can someone grab me a logcat and a dmesg? (I believe dmesg might actually need root, but I ask that you get me at least a logcat on the stock kernel, dmesg if you can, and then both with a modified root kernel)
Fransis88 said:
Baseband not found, new radio lollipop?
Performance is amazing!!!
[/IMG][/IMG]
Click to expand...
Click to collapse
You can't really use benchmark apps, as they haven't been optimized for ART, especially the newest changes that have come about
That, and benchmarks are just numbers that never reflect real world performance
ajbiz11 said:
I cant imagine that a grouper kernel would work on tilapia for data
Click to expand...
Click to collapse
I don't have data now. just Wi-Fi. Lollipop is more important for me?
doiutzu said:
I don't have data now. just Wi-Fi. Lollipop is more important for me?
Click to expand...
Click to collapse
Well, if you can flash the stock kernel and get me a logcat, I could get working on getting data working again
Hey - I compiled the AOSP source from Google as well and my RIL isn't working. Here is my dmesg and logcat. The dmesg shows it isn't seeing the SIM card. I used the precompiled kernel that was with the source.
holy...what the heck
Honestly, I have to look a bit more at this, but it might actually be just the radio and firmware aren't compatable with the new RIL style
I should ask @manups4e if he sees anything. He was a bit smarter than I about RIL issues
if you can get me the logcat -b radio > radio.txt it should be better
then, ^^ can you see the baseband version? because dmesg shows that ril is working... also if i remember correctly 5.0.0_r1 is for phones and tablet, r2 is for a videogame console.. try to build the r1 and ask someone to test it
manups4e said:
if you can get me the logcat -b radio > radio.txt it should be better
then, ^^ can you see the baseband version? because dmesg shows that ril is working... also if i remember correctly 5.0.0_r1 is for phones and tablet, r2 is for a videogame console.. try to build the r1 and ask someone to test it
Click to expand...
Click to collapse
Are you sure? The way Google has usually done things like that is just the rX is a major milestone internally
People have said that r1 is branched into r2
...I can try it though...
just try i still need the radio logcat thou
Here is the radio logcat from 5.0.0_r2. I will rebase and recompile 5.0.0_r1 if you want me to. In lollipop, baseband says unknown. I can reflash KTU84P and see what the baseband is from there if that will produce the correct answer.
manups4e said:
just try i still need the radio logcat thou
Click to expand...
Click to collapse
Baseband unknown means that rild can't read radio firmware files.. Check proprietary files I think qmuxd and libril-qc-qmi-1.so
---------- Post added at 05:02 PM ---------- Previous post was at 05:00 PM ----------
From logcat I can read that radio and modem are not activating like the system hasn't radio framework or codes..
I just fixed
Code:
D/TelephonyManager( 139): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)
D/TelephonyManager( 139): /proc/cmdline=
and after a restart the output has the baseband version
Code:
D/TelephonyManager( 139): /proc/cmdline=tegra_wdt.heartbeat=30 tegraid=30.1.3.0.0 m[email protected] android.commchip=0 vmalloc=512M androidboot.serialno=015d4b33bd241405 video=tegrafb no_console_suspend=1 console=none debug_uartport=hsport usbcore.old_scheme_first=1 [email protected] [email protected] core_edp_mv=0 audio_codec=rt5640 board_info=f41:a00:1:44:2 tegraboot=sdmmc gpt gpt_sector=61079551 androidboot.bootloader=4.23 androidboot.baseband=1231_0.18.0_0409
rjwil1086 said:
I just fixed
Code:
D/TelephonyManager( 139): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)
D/TelephonyManager( 139): /proc/cmdline=
and after a restart the output has the baseband version
Code:
D/TelephonyManager( 139): /proc/cmdline=tegra_wdt.heartbeat=30 tegraid=30.1.3.0.0 [email protected] android.commchip=0 vmalloc=512M androidboot.serialno=015d4b33bd241405 video=tegrafb no_console_suspend=1 console=none debug_uartport=hsport usbcore.old_scheme_first=1 [email protected] [email protected] core_edp_mv=0 audio_codec=rt5640 board_info=f41:a00:1:44:2 tegraboot=sdmmc gpt gpt_sector=61079551 androidboot.bootloader=4.23 androidboot.baseband=1231_0.18.0_0409
Click to expand...
Click to collapse
What did you do?
Also, I take it that baseband is still blank in Settings?
Either that, or the SIM is still read as inactive?
I changed the permissions for /proc/cmdline using init.tilapia.rc.
I added this to the "on boot" section. Baseband it still "unknown". I think I misinterpretted the first time. In dmesg is shows sim state: 0 but if you look at the logcat it shows SIM-COUNT: 1. Attached is the logcat for anyone interested.
Code:
# RIL permissions fix
## Added by rjwil1086
chmod 0644 /proc/cmdline
ajbiz11 said:
What did you do?
Also, I take it that baseband is still blank in Settings?
Either that, or the SIM is still read as inactive?
Click to expand...
Click to collapse

Categories

Resources