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
> Multiboot is broken (at least for some devices)
flotsam
post May 31 2019, 01:56 AM
Post #1





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



I have been struggling, without success, to get dual-boot Sailfish/Android working. This is using the new partition tool and firmware, doing a full flash ("firmware upgrade").

What I do is:
  • Flash the device
  • Boot into Sailfish. Everything works fine. Can reboot (to sailfish) without problems.
  • Boot into Android. All goes well.
  • Boot back to sailfish. Device is now broken.
The symptoms of the problem are:
  1. The wireless interface gets a new pseudo-random MAC address. This happens on every reboot, with both Android and Sailfish.
  2. The wifi scanning in sailfish returns a bogus network named "NVRAM Warning: Err=0x10". While harmless enough, this seems to indicate some error.
  3. Sailfish fails to recall any WiFi networks that I have connected to before. So it is necessary to reenter passwords, etc. This makes the device pretty much worthless.
The only fix that I have found is to do a full reflash of the device. I have tried various combinations (including some unsupported ones) of Android+Sailfish. I have not tried other OS combinations, so I don't know if any of them also have issues.

So is it just my device, or has someone else encountered this issue? Even better would be if someone has found a fix.

[Edited to add]: See also this thread. It appears that I'm not the only one with the problem, and that it is not specific to sailfish. Does someone from Planet Computers want to help?

[Edited to change topic title]
Go to the top of the page
 
+Quote Post
flotsam
post May 31 2019, 07:31 AM
Post #2





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



Really should have asked this too: does anyone have multi-boot working, with the new firmware and the new partitioning tool? By working, I mean that it doesn't have this problem (random mac address assigned to wifi).
Go to the top of the page
 
+Quote Post
flotsam
post Jun 2 2019, 07:26 PM
Post #3





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



I found a rather kludgey workaround.

Before booting android, get a root shell in sailfish, and execute the command:

CODE
chattr +i /nvdata/APCFG/APRDEB/WIFI


Apparently android wants to munge this file and change the MAC address. This prevents that from happening.

Android will still (annoyingly) assign a random (00:08:22:XX:XX:XX) address to the interface, but this will no longer affect sailfish.
Go to the top of the page
 
+Quote Post
cam1965
post Jun 3 2019, 03:43 AM
Post #4





Group: Members
Posts: 58
Joined: 28-May 19
Member No.: 848,911



QUOTE(flotsam @ Jun 2 2019, 07:26 PM) *
I found a rather kludgey workaround.

Before booting android, get a root shell in sailfish, and execute the command:

CODE
chattr +i /nvdata/APCFG/APRDEB/WIFI


Apparently android wants to munge this file and change the MAC address. This prevents that from happening.

Android will still (annoyingly) assign a random (00:08:22:XX:XX:XX) address to the interface, but this will no longer affect sailfish.


Thank you so much for the tip.
My problem was solved after your tip. My mac address is the same in android and in debian. (and not changed anymore ).
First I've installed from planet images a fresh install ( firmware upgrade ).
Then booted in debian and set the internet ( SSID and password ).
Did a backup of the contents of nvdata.
So, I've removed the contents of nvdata. ( never remove this contents if you already booted first in android , because your sim card will not be detected : see my previous post here).
Then booted again in debian. The network is saved. ( mac address is like 00:09:34:XX:XX:XX )
After this I've booted the first time in android. Checked the mac address . It is the same of debian.
But when I boot again in debian it has changed the mac address. ( 00:08:22:XX:XX:XX )
Copied the contents of the backup I did ( nvdata ) to the correct location of nvdata.
Booted again in debian. Network was saved with the same mac address.( 00:09:34:XX:XX:XX ).
Did what you said : chattr +i /nvdata/APCFG/APRDEB/WIFI
Booted again in debian : everything is fine.
Booted in android : everything is fine.
Booted in debian : everything is fine.

Both mac address in android and in debian are the same -- 00:09:34:XX:XX:XX.

Interesting is that mac address 00:09:34 and 00:08:22 are from different manufaturers.

well, that is it.



Go to the top of the page
 
+Quote Post
gabs5807
post Aug 21 2019, 12:42 PM
Post #5





Group: Members
Posts: 14
Joined: 10-November 18
From: Germany
Member No.: 836,392



QUOTE(flotsam @ May 31 2019, 10:56 AM) *
I have been struggling, without success, to get dual-boot Sailfish/Android working. This is using the new partition tool and firmware, doing a full flash ("firmware upgrade").

What I do is:
  • Flash the device
  • Boot into Sailfish. Everything works fine. Can reboot (to sailfish) without problems.
  • Boot into Android. All goes well.
  • Boot back to sailfish. Device is now broken.
The symptoms of the problem are:
  1. The wireless interface gets a new pseudo-random MAC address. This happens on every reboot, with both Android and Sailfish.
  2. The wifi scanning in sailfish returns a bogus network named "NVRAM Warning: Err=0x10". While harmless enough, this seems to indicate some error.
  3. Sailfish fails to recall any WiFi networks that I have connected to before. So it is necessary to reenter passwords, etc. This makes the device pretty much worthless.
The only fix that I have found is to do a full reflash of the device. I have tried various combinations (including some unsupported ones) of Android+Sailfish. I have not tried other OS combinations, so I don't know if any of them also have issues.

So is it just my device, or has someone else encountered this issue? Even better would be if someone has found a fix.

[Edited to add]: See also this thread. It appears that I'm not the only one with the problem, and that it is not specific to sailfish. Does someone from Planet Computers want to help?

[Edited to change topic title]

The problem also occurs on single boot (no Android - only SailfishOS).
I installed SailfishOS from Jolla version 3.1.0.11 from scratch and the Problem is still here :-(.
But there is no '/nvdata/APCFG/APRDEB/WIFI'. The /nv* directory(s) only contains:

# ls -l /nv*
/nvcfg:
total 0

/nvdata:
total 12
drwxrwx--- 2 root system 4096 Jul 13 12:32 md
drwxrwx--- 2 root system 4096 Jul 13 12:32 md3
drwxrwx--x 2 media audio 4096 Jul 13 12:32 media


No WIFI file on any subdirectory :-(.

Edit: 2019-08-23:
When installing SailfishX Version 3.0.3.10 first and upgrade to 3.1.0.11 the problem did not occur.
Seems a configuration (or database) problem.
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: 20th November 2019 - 08:34 PM