OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Firmware causes wifi mac address change on reboot
Vincent
post Jun 12 2019, 12:26 PM
Post #1





Group: Members
Posts: 5
Joined: 12-June 19
Member No.: 849,826



Beginning 2019 i flashed the Gemini to dual boot for Sailfish and Android 7.1. There were no issues then. Recently Android 8.1 came available, and because i have the dual boot the OTA did not work and i had to reflash the dual boot together with Android 8.1. Everything seemed fine, until i found out that ever since (10-06-2019) the wifi mac address changed its number 4 and 5 hex digit at every reboot.

I tested rebooting in Sailfish and Android, and both show the wifi mac address change. Therefore i think it happens in the Gemini firmware that enables dual boot.

This is rather a problem, because some servers i connect to rely on my mac address. Does anyone else notice this wifi mac address changing at reboot with a dual boot flashed Gemini since the Android 8.1 came available? If so, does anyone know how to stop this wifi mac address changing at reboot?
Go to the top of the page
 
+Quote Post
flotsam
post Jun 13 2019, 03:41 AM
Post #2





Group: Members
Posts: 18
Joined: 30-May 18
Member No.: 823,505



QUOTE(Vincent @ Jun 12 2019, 10:26 PM) *
If so, does anyone know how to stop this wifi mac address changing at reboot?

See this thread. It has a kludge that helps somewhat. The results that I have (using the fix) are that sailfish keeps the correct mac address, but android changes it. Someone else reported it working with android also.
Go to the top of the page
 
+Quote Post
Vincent
post Jun 13 2019, 09:20 AM
Post #3





Group: Members
Posts: 5
Joined: 12-June 19
Member No.: 849,826



Did the chattr thing in Sailfish and rebooted in Sailfish. Still a different wifi mac address.
Go to the top of the page
 
+Quote Post
flotsam
post Jun 17 2019, 05:09 AM
Post #4





Group: Members
Posts: 18
Joined: 30-May 18
Member No.: 823,505



QUOTE(Vincent @ Jun 13 2019, 07:20 PM) *
Did the chattr thing in Sailfish and rebooted in Sailfish. Still a different wifi mac address.

Did you do the "chattr" first thing after a full flash (i.e. "firmware upgrade"), and before booting Android? I don't know of a way to restore the contents of that file other than a full flash, once it has been trashed, which is what Android seems to do to it. Maybe someone more knowledgable than myself can tell us how to generate the NVDATA and NVCFG partitions from the data in the NVRAM partition.
Go to the top of the page
 
+Quote Post
Vincent
post Jun 18 2019, 11:05 AM
Post #5





Group: Members
Posts: 5
Joined: 12-June 19
Member No.: 849,826



Ok, i have got it done for Sailfish without a full reflash. I do not want to lose any settings that may reside in userdata. Android is still swapping the mac address. But i could not care less about that.

What i did is:
1) hexedit /nvdata/APCFG/APRDEB/WIFI and set the mac address in bytes 04-09 (mind that the base is 0, so it starts at the 5th byte) of the first row (0).
2) set the i attr on the file

Originally bytes 04-09 contained zeros, so i suppose that causes the system to generate a fake mac address.

There is lots of talk about it on the internet by Android people. Search something like "hex edit nvram wifi mac address". Note that the Android people talk about nvram instead of nvdata. They have a similar file in /data/nvram/...
Go to the top of the page
 
+Quote Post
pbek
post Jul 23 2019, 04:46 AM
Post #6





Group: Members
Posts: 3
Joined: 20-July 19
From: Austria
Member No.: 852,409



Thanks a lot for the instructions and explanations. They worked great for my Gemini Wifi.

I've updated DebianTP3 Wiki and other wiki entries.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th September 2019 - 12:15 PM