pimpimmi / LibreAlarm

https://plus.google.com/communities/118306966582165178782
GNU General Public License v3.0
52 stars 48 forks source link

Install of SWR50.zip fails - /data can't be mounted #39

Closed kkelebek closed 6 years ago

kkelebek commented 6 years ago

When I do the install of SWR50.zip on the watch, I'm seeing that it says there are problems mounting /data. Investigating, I found that "mount /data" fails unless I mount it readonly! None-the-less, I tried to reboot the watch, but it fails to boot. Just hangs in booting. I can get control back by booting the watch and continuing to hold down the power button (without connecting it to USB) until it says "connect to USB", then pressing twice quickly to bring up the menu, then doing a Factory Reset, and rebooting. This brings me back to build LDZ22D.

kkelebek commented 6 years ago

I installed tetra_nfc_LCA43_0.2.zip anyway and now the watch won't boot. Gets stuck with the twirling colored dots and never progresses. Even doing "Factory Reset" doesn't get it to boot.

kkelebek commented 6 years ago

I found that apparently the "unable to mount data" seems to have to do with the /data partition (in my case, "/dev/block/mmcblk0p32") having some internal flag which seemed to not allow it to be mounted read/write. I could do "adb shell" to get to the watch and then to "mount -r /data" and that worked just fine. I decided to rebuild the entire /data partition. Use "adb shell" to get a shell prompt on the watch, do "mount" to make sure /data is NOT mounted. If it is, do "umount /data", which should unmount it. you can see what's being mounted where via "cat /etc/fstab". You want to rebuild the disk partition which will be mounted on /data. On my watch this was "/dev/block/mmcblk0p32", so "/sbin/make_ext4fs /dev/block/mmcblk0p32". Then "exit" to get back to your system where you're running adb.

So, I followed the "How to install NFC on Sony Smartwatch3" instructions (I'm not allowed to post a link or else I would, but you probably have these instructions already.) (I'm doing the "downgrade" part of the instructions, which is where the "install" failed.)

Just after "fastboot boot twrpnew.img", I inserted the above work to rebuild the /data partition. DO NOT mount /data after having rebuilt it! You should also should see that /cache is NOT mounted at this time. Do "exit" to get back to your adb system and continue following instructions at "adb push SWR50.zip /sdcard/", and the "install" worked for me after this!