evo kernel with different wifi mac address - HD2 Android Q&A, Help & Troubleshooting and Genera

Hello.I have compile an evo based kernel with different wifi mac address,since many people have 2 hd2 and cannot connect in the same wifi network same time.
Unfortunatelly i didnt make any magic to correct this issue into git tree.Before compiling kernel i go to arch/arm/mach-msm find the file board-htcleo-wifi-nvs.c and in the line static unsigned char *hardcoded_nvs =
"macaddr=00:11:22:33:44:55\n"\
i change manually the mac address
But i see something strange.The original board-htcleo-wifi-nvs.c that you can find in http://www.gitorious.com/linux-on-wince-htc is like this
static unsigned char *nvs_mac_addr = "macaddr=00:11:22:33:44:55\n";
static unsigned char *hardcoded_nvs =
and wifi mac change doesnot work.
So i used the file from nexus based kernel which i include into the rar file
i have upload
Also found that in evo based kernel in drivers/net/wireless/bcm4329_204/proto in the file 802.11.h there is a line #define BRCM_PROP_OUI "\x00\x90\x4C" these digits are the first three of same wifi mac address we have in evo kernel.I put there other random numbers but wifi tried to connect,without success.
Hope that someone can combine the things and find a permanent solution without the need of building other kernel.
I have included 2 kernels with different wifi mac address and the latest fix for music stuttering.They are based into hastarins-linux tree without overclock or undervolt patch.
http://rapidshare.com/files/427143719/evo_kernel_mac_addr.rar
mirror
http://www.filefactory.com/file/b3he4cd/n/evo_kernel_mac_addr.rar
Also i see that maybe wifi N is not enabled in evo based kernel.I compared code here http://git.linuxtogo.org/?p=groups/...it;h=54e627b77ef4bf0e30c0b5a7ac390e8c8b207fec
and made the changes in evo kernel files.If someone can test this if works.
Thanks to all developers for your work.You give new life to our hd2

Hey do you know you can set wifi.mac by startup.txt
sample here:
Code:
set cmdline "rel_path=Android nand_boot=0 wifi.mac=04:1E:64:2F:E2:2f"
But currently it effect only R11 kernel.
Other kernel don't read this property

Yes but michyprima R11 kernel is a nexus one based kernel.

I have made a similar thing for evo kernel. Can you please test my patch:
h__p://forum.xda-developers.com/showthread.php?p=8827583#post8827583

Yes i`ll try this you are super

im sorry but im kind of a newbie... calio94 can you plz help me on how to change this settings????... im really confused with that description you gave.. plz help ... thank you in advanced ;]

hastarin has released 7.7 with mdebeljuh's patch to set mac address in startup.txt
Code:
set cmdline "wifi.mac_address=00:11:22:33:44:55"

jibbz said:
im sorry but im kind of a newbie... calio94 can you plz help me on how to change this settings????... im really confused with that description you gave.. plz help ... thank you in advanced ;]
Click to expand...
Click to collapse
There is nothing to change if you are not compiling a kernel
Yesterday i wrote this post and today another member found a better solution.
This why i like xda community
As shadiku said hastarin made a kernel with patch to set mac address in startup.txt which is more easier and comfortable the way i described

Related

[REQ] Android Expert - Help with Athena Kernel

As title, I am trying to find an expert on android, basically I have android 1.0 from a package released a while ago in the athena forums, I also have a config file that I believe adds touchscreen drivers etc and there is also a kernel patch.
If I am correct these need to be applied in a linux enviroment, something I dont have or know much about, so I am asking for a bit of help.
Is it possible to:
a)Apply the patch file to a newer build 1.6 or 2.0 and see if it works?
b)Apply the config to the 1.0 kernel I have downloaded to try it
Ideally if possible I would love to have option a.
Could someone let me know if any of this is possible and if someone out there is able to do it for me.
Thanks

Cross-compiling, what am i doing wrong

Hello!
as the title indicates I am having trouble cross-compiling. hello world compiles perfectly but bigger programs just wont give in..
I downloaded the android source from git and compiled just the way the website (http://source.android.com/download) says you should (is there anyway to verify that its compiled correctly?)
Then I use the agcc python script(http://plausible.org/andy/agcc) for the linking but when i compile i always get trouble about it not being able to find certain defined fields or other types. So basicly i followed the second part of what this wiki says (eventough using a toolchain from codesourcery for example and cc staticly. It also fails...)
What im really asking is how and what do you guys use to cross-compile to android?
Richard_Xeli said:
Hello!
as the title indicates I am having trouble cross-compiling. hello world compiles perfectly but bigger programs just wont give in..
I downloaded the android source from git and compiled just the way the website (http://source.android.com/download) says you should (is there anyway to verify that its compiled correctly?)
Then I use the agcc python script(http://plausible.org/andy/agcc) for the linking but when i compile i always get trouble about it not being able to find certain defined fields or other types. So basicly i followed the second part of what this wiki says (eventough using a toolchain from codesourcery for example and cc staticly. It also fails...)
What im really asking is how and what do you guys use to cross-compile to android?
Click to expand...
Click to collapse
Hello,
i am having problems with the linker too! i am using the NDK (because it actually does C / C++ code) and the code compiles with very few warnings on some instructions but works well otherwise, it just WOULD NOT LINK the stuff together!! one interesting setting i noticed in some public makefiles for the NDK i noticed is that they actually set the linker to /system/bin/linker, which is obviously a file on the target device. but i don't know how it would access it? any ideas?
BTW: post your error(s) please
Try this
The system won't let me post a link (as a new user), however there is a really good tutorial on native android development and debugging using the AOSP build system. Search on Aton International Incorporated and click on blogs in the menubar. I am in no way associated with the company, just happy to finally be able to cross-compile, link and debug for android.
Maybe someone who has more posts could post a link here.
http://www.aton.com/android-native-development-using-the-android-open-source-project/

Researching Linux / Android ROM

Hello everybody,
I'm Johan, I live in the netherlands and i'm doing a study Informatica->Software Engineer. For a schoolproject we have to write an Android Application, though i don't have Android running on my telephone natively. So i searched the internet and found out that on the XDA forums its all about custom roms and that there are some Android Roms available. Unfortunately nothing for my MDA Compact/HTC Magician yet.
After asking arround a bit and searching all over the internet I figured nowone actually was bothering to further investigate Android for Magician.
So even though I have no idea if it will ever gonna work i'm gonna try to document as much as possible, and I hope others might join this topic and give some (usefull!!) feedback.
These websites I think are the best place to start, as I don't have any experience with ROMS or Android-OS its gonna be a challenging task but if you guys have any idea's, suggestions or websites where we can find more information feel free to post comments.
Startpage for Magician info:
http://wiki.xda-developers.com/index.php?pagename=HTC_Magician
HaRET bootloader working on magician:
http://www.handhelds.org/moin/moin.cgi/HaRET
http://www.handhelds.org/moin/moin.cgi/HaRET_20Documentation
Linux kernel for Magician:
http://www.htc-linux.org/wiki/index.php?title=Kernel#Kernel_for_intel_PXA_based_devices
Current status for linux kernel:
http://wiki.xda-developers.com/index.php?pagename=MagicianProgress
http://www.handhelds.org/moin/moin.cgi/Magician
Source code for Android:
http://source.android.com/
How to build Android OS:
http://source.android.com/porting/build_system.html
Compatiblity test suite:
http://source.android.com/compatibility/cts-intro.html
Any feedback is apreciated but please don't make it like "nice, when is it finished?" or "its impossible!"
as I have no idea about both of those 2 comments yet, I'll have to figure that out on the go.
It should be possible, someone already ported android to pxa270!
http://www.mask.org.tw/demo.htm
need to throw in a kernel guess i ll fetch yet another magician if that happens!!!
Hi header2k and evildarknight, thanks for the input.
My chinese/tw isn't to good, so i googled for android and pxa270 and found the following website, no idea if its any usefull (currently not at home, and my datalimit on my laptop dislikes downloading 1,3GB so i'll have to see what it is when i'm at my desktop again.)
http://www.ntut.edu.tw/~wyliang/
This looks interesting, if it comes to testing, you can contact me!
guess my chinese aint better
can't somebody anybody compile the android froyo kernel 2.6.32 for the magician which seems to be inline with ph5 dev???
I can't read chinese either, but i wanted to link to the pdf files:
http://www.mask.org.tw/data/Android_Porting_on_PXA270.pdf
http://www.mask.org.tw/data/BringUp_Android_on_PXA270.pdf (he used files from: svn co https://android-pxa270.svn.sourceforge.net/svnroot/android-pxa270 android-pxa270 )
He uploaded his work, too(with two mirrors, after 原始碼 (1.3GB) 下載位置: )
His machine:
[email protected] <-- identical with our magician
64MB RAM <-- identical with our magician
32mb ROM <-- Isn't important because he used an external usb-stick with chroot - We can use our sdcard and haret
Toppoly TD035STEB1 <-- identical wth our magician
Setting up Dev-Team
So this proves i guess its a done deal already
But is it then just theoretically/closed project? or did he indeed release his sourcecode as well? Sourceforge SVN shows there isn't anything deposited.
Anyway, still want to use this on my telephone, no idea what it takes to use/modify his work. Anyone interested in actually joining the project-team to make it run on a telephone? cause in the pics in the powerpoint i see some laptop and some mainboard and touchscreen but not a MDA Compact/HTC Magician yet.
There are copies of the project www.mask.org.tw/data/release-sourceforge.tgz and www.ntut.edu.tw/~wyliang/release-sourceforge.tgz. I don't have access to a linux box at this moment. Need to fix my PC before working on android.
Hello, This is Mask from http://www.mask.org.tw
Hello, I am Mask and I found there are some traffic from xda-developers to my website, so I come here and found there are some discussion of my work before in last year.
I had open an android project for pxa270 on sourceforge, but I didn't know how to upload my source code to sourceforge, so I put the source code on my website and mirror sites.
I hope maybe I could help you if you are interest in "android porting" and some related topics.
mask.chung said:
Hello, I am Mask and I found there are some traffic from xda-developers to my website, so I come here and found there are some discussion of my work before in last year.
I had open an android project for pxa270 on sourceforge, but I didn't know how to upload my source code to sourceforge, so I put the source code on my website and mirror sites.
I hope maybe I could help you if you are interest in "android porting" and some related topics.
Click to expand...
Click to collapse
Yes, i have a question. Do you have a pxafb.c driver that works with android and the 2.6.32 kernels?
sorry about that I have no time to maintain my android project for pxa270, and now I have no plan to keep to maintain it, maybe we could upload whole developing source code including all svn reversion from begin to now, do you know how to import svn to sourceforge ? thanks a lot.
Here is some information on SVN and sourceforge.
http://haacked.com/archive/2006/02/22/QuickstartGuidetoSubversiononSourceForge.aspx some older howto from 2006 not sure if its up to date
http://sourceforge.net/apps/trac/sourceforge/wiki/Subversion Official sourceforge howto.
http://tortoisesvn.net/ svn client
Kernel
Can someone test this kernel and see if it works as I do not have a magician to test it with.
If it does boot can you follow the steps posted here to see if android boots...
http://forum.xda-developers.com/showthread.php?t=658664
notime2d8 said:
Can someone test this kernel and see if it works as I do not have a magician to test it with.
If it does boot can you follow the steps posted here to see if android boots...
Click to expand...
Click to collapse
I try to use kernel on Qtek S110(WM 6.1 by Cotulla), but get freeze screen on line "Jumping to Kernel...". When i use zImage from thread "Android 1.5 Cupcake on Universal" - again freeze on line "Jumping to Kernel...". Any ideas?
If you need to test something on Magician, contact me by ICQ 258113792.
Pavel A Safonov said:
I try to use kernel on Qtek S110(WM 6.1 by Cotulla), but get freeze screen on line "Jumping to Kernel...". When i use zImage from thread "Android 1.5 Cupcake on Universal" - again freeze on line "Jumping to Kernel...". Any ideas?
If you need to test something on Magician, contact me by ICQ 258113792.
Click to expand...
Click to collapse
Make sure you have the radio turned on and not in airplane mode and wifi and bluetooth turned off. Also the correct machine type 875 in the startup text file or 855 if using the one for the universal.
i think set MTYPE 875 should be the right one
notime2d8 said:
Make sure you have the radio turned on and not in airplane mode and wifi and bluetooth turned off. Also the correct machine type 875 in the startup text file or 855 if using the one for the universal.
Click to expand...
Click to collapse
When radio is turned on, Linux loading and stop on next lines:
1. With kernel for Magician
...
mmc0: new SD card at addess 41a8
mmcblk0: mmc0:41a8 SD01G 982 MiB
mmcvlk0: p1 p2 p3
Waiting for root device /dev/sdb2...
I wait more then 5 minutes, but nothing happens.
2. With kernel for Universal
...
ds1wm: ds1wm: reset failed
Device vibrate all time and after last line turn off display.
Pavel A Safonov said:
When radio is turned on, Linux loading and stop on next lines:
1. With kernel for Magician
...
mmc0: new SD card at addess 41a8
mmcblk0: mmc0:41a8 SD01G 982 MiB
mmcvlk0: p1 p2 p3
Waiting for root device /dev/sdb2...
I wait more then 5 minutes, but nothing happens.
2. With kernel for Universal
...
ds1wm: ds1wm: reset failed
Device vibrate all time and after last line turn off display.
Click to expand...
Click to collapse
Ok, don't use the universal kernel, from what you posted it seems that the kernel is not pointing to the correct memory card path in the startup text file or try reinserting the card.
If anybody knows how to build kernels i can provide the files and walk them through how i built the kernel for the universal which i have just gotten a very slow and unusable eclair (mostly due to hardware) working. I think this is the most i can help out as i don't have a magician.

[Q] Bluetooth address in Android build

Does anyone know why most of the builds here don't pick up the ACTUAL bluetooth address from the hardware? I installed the same build for me and my wife and both have the same bluetooth address. This prevents us from connect to the car since both have the same address, no matter what phone name I have.
Please help
This is a known issue.Thanks to mdebeljuh you can change your bt and wifi mac address from startup.txt
http://forum.xda-developers.com/showthread.php?t=819819
This patch is included in latest kernels from hastarin and mdjaey
clio94 said:
This is a known issue.Thanks to mdebeljuh you can change your bt and wifi mac address from startup.txt
http://forum.xda-developers.com/showthread.php?t=819819
This patch is included in latest kernels from hastarin and mdjaey
Click to expand...
Click to collapse
Wow! That was fast and this solved my problem. Thank you very much.

WiFi MAC address collisions

I know that your first reaction will probably be hey this has been resolved quite a while ago. Not again??
Well, I have been using NAND builds for a while now, but never got the WiFi MAC address collisions problem resolved. The access points at work keep throwing me, and others, with the famous loop of "searching"----> "connecting"--->"disconnect".
Where I work, the company cellphone is (you guessed…) HTC HD2. And many of us switched to Android… Every now and then, I see that different phones are assigned with the very same WiFi MAC address. This drives the access points crazy and they disconnect phones with identical MACs immediately.
I tried most of the suggested ideas in different threads here, none really helped for my NAND builds. The standard Linux terminal emulator commands simply don't exist in Android.
I explored a bit Tytung's Kernel code and I think I found the reason. Since the Kernel has no access to the original MAC, it has to generate one. It does it by running a CRC32 function over the MSM ID (internal QCOM's modem chip ID), which is unique. But since the IDs of a phone series are sequential, the only actual difference you get is in the last part of the MAC address. E.g., 00:23:76:aa:bb:xx. So you see that all phones have the same prefix, and the only difference is in the xx part. This practically leaves a very small space of 256 numbers. But even worse - because of the CRC32 function, it narrows to an even smaller number of optional combinations… the bottom line is that the WiFi MAC address generated by the Kernel is not unique
Even with latest tytung's kernel r12.4, problem still persists. The only change Tytung did was to switch to HTC allocated prefix 00:23:76. Well, it did help, till all users started switching to new builds based on latest Tytung's Kernels. And collisions started again…
I'm aware that the community can't let everyone choose their own WiFi MAC address. It's un-safe. Nevertheless, till QCOM opens the original MAC address to the developers, there must be a way to add another level of randomization to the number the Kernel generates. Maybe allow the user, through some file, to add a number that will be used in turn for further randomization?
Right now many of us can't use at work the beautiful builds xda community offers just because of that
In some ROMs you can put your original mac address into the calibration file and it works. Of course if you have it written down somewhere
Sent from my HTC HD2 using XDA App
Thanks greg17477.
I looked for the calibration file in few NAND builds with no luck. Any specific ROM you can refer me to? Where should the calibration file be located anyway in case it's included?
In many sense roms you can put your wifi mac address.you can change Mac address if calibration file is in /system/etc.if it is in /proc/calibration you can't change it.another way if you want to use aosp or cm rom is to compile your kernel with your wifi Mac address
Sent from my HD2 using Tapatalk
bump!
Issue becoming a big nuisance as more and more HD2 users at work switch to Android that uses Taytung's kernel.
tried a different kernel instead?
Richy99 said:
tried a different kernel instead?
Click to expand...
Click to collapse
Interesting. Is the Android build kernel independent?
I'm using MIUI-1.12.23, which uses tytung_r12.4
Which Kernel would you recommend trying instead?
im using r14 of tytungs kernel but there are others available for use
arikm said:
Interesting. Is the Android build kernel independent?
I'm using MIUI-1.12.23, which uses tytung_r12.4
Which Kernel would you recommend trying instead?
Click to expand...
Click to collapse
All other kernels have the same issue except Rafpigna's one... but ALL other kernels are better. (no offence Rafpigna... xD )
...
Hello
Wifi & bluetooth Mac seem nailed (for HD2).
Please follow this topic and help confirm it.
http://forum.xda-developers.com/showthread.php?p=26579738
Franck
Have you tried any of these? They seem to work great on my Dorimanx ROM with his kernel, which is derived from tytung.

Categories

Resources