mLupine / lupin.rocks

0 stars 0 forks source link

Fixing stuck Xiaomi STYJ02YM updates #1

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Fixing stuck Xiaomi STYJ02YM updates

https://blog.lupin.rocks/fixing-xiaomi-styj02ym-update-stuck-on-80/

karolzamosc commented 4 years ago

Another way to unstuck the vacuum update is described here (without need to root the device): https://www.roboter-forum.com/index.php?thread/41785-lösung-für-das-update-problem-beim-xiaomi-styj02ym/

mLupine commented 4 years ago

Another way to unstuck the vacuum update is described here (without need to root the device): https://www.roboter-forum.com/index.php?thread/41785-lösung-für-das-update-problem-beim-xiaomi-styj02ym/

The problem with that one is that you're redirecting all traffic of this hostname to some random Chinese IP address and have no control of what is being sent or downloaded from there. The updates are not signed in any way, so you're risking downloading malicious code to a device that's constantly connected to your home network and the Internet.

inetnum:        111.224.0.0 - 111.227.255.255
netname:        CHINANET-HE
descr:          CHINANET hebei province network
descr:          China Telecom
descr:          No.31,jingrong street
descr:          Beijing 100032
country:        CN
admin-c:        CH93-AP
tech-c:         BR3-AP
status:         ALLOCATED PORTABLE
szerwi commented 4 years ago

@mLupine I am trying to update my vacuum from your tutorial but after typing adb shell sed -i -e... I get error sed: missing command. Can you help me?

BTW: There are no comments on your blog

EDIT: I've executed adb shell and then typed the rest of the command directly on the vacuum and I think it worked, but right now the vacuum is blinking and not starting properly.

mLupine commented 4 years ago

I've executed adb shell and then typed the rest of the command directly on the vacuum and I think it worked, but right now the vacuum is blinking and not starting properly.

That's correct. It won't start fully until you complete all the remaining steps in the guide.

BTW: There are no comments on your blog

Yeah, I'm debugging the problem. Sometimes they just hide. A refresh is usually enough to bring them back, or you can just go directly to the GitHub issue and comment there.

szerwi commented 4 years ago

@mLupine ok, I managed to connect via SSH, but after typing password I get permission denied :/

mLupine commented 4 years ago

@mLupine ok, I managed to connect via SSH, but after typing password I get permission denied :/

Yeah, someone already reported that the password changes. I'll update the guide soon, but for now here's a short description of how to do that properly:

Keep in mind that if your private key is not in $HOME/.ssh/id_rsa, you will need to add a -i path/to/id_rsa parameter to the SSH command.

szerwi commented 4 years ago

@mLupine I did it in in another, simpler way. I just connected to the vacuum using adb and typed passwd to change root password :)

Arman-GeDon commented 4 years ago

The problem with that one is that you're redirecting all traffic of this hostname to some random Chinese IP address and have no control of what is being sent or downloaded from there. The updates are not signed in any way, so you're risking downloading malicious code to > a device that's constantly connected to your home network and the Internet.

@mLupine I've compared the files before changing the DNS and after. Downloaded in both cases from https://cdn.cnbj0.fds.api.mi-img.com/miio_fw/6b4f525a582876ddc13d376fee21d9e0_upd_viomi.vacuum.v7.bin?GalaxyAccessKeyId=5721718224520&Expires=1591191344000&Signature=Y1OSsScYEarrCTx9ebhqb813emM=

Binary the files are the same. Do you have a local copy of 0047 firmware? Can you modify your DNS and confirm?

Thanks

kocjan1 commented 4 years ago

Can I start upgrade from command line, not from APP? My vaccum didn't respond in APP. I have ssh working, downloaded firmware file. I decompresed firmware file, there is rootfs.img (squashfs) and I can decompress this file too (by squashfs-tools).

Nulde commented 4 years ago

After 0.47 MAJ, I had to change the root password. (luckily I had pushed a key, but I still wanted to test password authentication) Also after vacuum reboot, i had to change again the root password... i don't understand why! is it possible that the root password is reset after each reboot?

Nulde commented 4 years ago

After 0.47 update, I had to change the root password. (luckily I had pushed a key, but I still wanted to test password authentication) Also after vacuum reboot, i had to change again the root password... i don't understand why! is it possible that the root password is reset after each reboot?

karolzamosc commented 4 years ago

@Nulde I have the same problem, I set my password using passwd but after reboot it changed...

kocjan1 commented 4 years ago

after password change, make backup of /etc/shadow and add to rc.local command cp -f /place_of_backup/shadow /etc or check scripts in init.d folder

kocjan1 commented 4 years ago

probably password change script is in /lib/functions.sh

karolzamosc commented 4 years ago

@kocjan1 thanks for help but I am absolutely beginner in this, I only wanted to change the voicepack and timezone but it is not as easy as it looks :)

kocjan1 commented 4 years ago

default voicepack - /etc/sysconf/sysConfig.ini timezone - /etc/config/system

rymam commented 4 years ago

Unfortunately this does not solve the problem that scheduled tasks still start based on the Chinese time zone

Nulde commented 4 years ago

@kocjan1 i'll try and explore

Nulde commented 4 years ago

Thanks

owlcoding commented 4 years ago

Is there somewhere you can get English voice pack for this vacuum?

kocjan1 commented 4 years ago

@rymam U mast change line "option timezone CST-x" where x is Your time zone eg. CST-2 @owlcoding Yes, from firmware file. Link in article v46 or v47 (different voices and quality of sound) U need this tool https://github.com/plougher/squashfs-tools to decompress firmware file.

kocjan1 commented 4 years ago

@rymam After time zone change, reboot vaccum and check time (command date)

redman6 commented 4 years ago

Hi! those who have root access, tell me. Is there a configuration file in the robot's firmware in which you can turn sensors on and off, adjust the power of the brush, and so on. Something, I can’t find anything like that. Found only LDS configuration(((

tonioa commented 4 years ago

Link to download Firmware 0046 and 0047 is here: 0047 https://gofile.io/d/i5sou4 0046 https://gofile.io/d/rp95Si

aeramli commented 4 years ago

Hi, Thank you for the tutorial, but I am stuck a the first step, I keep connecting and disconnecting the robot, nothing is showing, neither when running dmesg (MacOs), Any thoughts?

JanHavlicek commented 4 years ago

Hi, is there any way, how to change WiFi SSID and password where the vacuum connects to? A managed to root the vacuum and execute few adb commands, but now I can't proceed the misc-upgrade command, because vacuum isn't connected to the WiFi. And I don't have access to the previous WiFi where it was connected before.

Thank you :)

JanHavlicek commented 4 years ago

Hi, another question - can anybody please upload any FW to the V7 vacuum again? All links stopped working at all :/ I'd like to try the hard-core method via TTL-USB, but can't find FW anywhere. Thank you ! @tonioa

tonioa commented 4 years ago

You can download it here https://gofile.io/d/T7Pcjz

JanHavlicek commented 4 years ago

Thank you! You're lifesaver

KozniFixa commented 3 years ago

Hi! all links stopped working again...where i can download it, please?

ppserggg555 commented 3 years ago

Hi! Someone please share any version of the STYJ02YM firmware. All links above are no longer active. Thank you in advance

patrickg75 commented 3 years ago

Hi Lupin! Thanks a ton for your work here. It helped me get my V8 back to life after trying to get rumpeltux' script to get Valetudo to work on it.

I was stuck at accessing ssh @root IP address part and didn't know that "IP addr" would get me the info when in shell... maybe you might want to add that for noobs like me. 😊

Now I need to figure out how to do it correctly

patrickg75 commented 3 years ago

@everybody - if your looking for FIRMWARE - try the nice community at telegram as mentioned in first paragraphs here: https://valetudo.cloud very helpful folks and probably quite a few who have backups...

patrickg75 commented 3 years ago

BTW adb shell sed -i -e "/PasswordAuth/ s/off/on/g" /etc/config/dropbear

didn't work locally for me either. had to move to shell to make it work. maybe you'd want to add that too to your text...

vlone commented 3 years ago

Hi,

Can anyone re-upload the V47 file and, if possible a nand backup of the STYJ02YM please ?

I cannot find these files anywhere, all links are down.

Thanks a lot

Yudincev83 commented 1 year ago

скиньте пж. прошику v46 а то 47 говно. очень прошу, надоели уборки на половину.

erikhh92 commented 1 year ago

Hi, i can´t download the firmware from that URLs.. :(

ascxc17 commented 10 months ago

I cannot access the files. Will you renew the lines?