roleoroleo / yi-hack-Allwinner

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
437 stars 66 forks source link

Please add FTPS support and ability to specify port for push #402

Closed divadiow closed 1 month ago

divadiow commented 1 year ago

No idea how much work this would involve, but could FTP over TLS be added please and the ability to specify the port? This is for uploading to an FTP not the FTP server that can be run on the camera.

Also, what does the existing FTP support? plain text basic only? passive?

roleoroleo commented 1 year ago

What do you mean? FTP server inside the cam or FTP client to upload records?

divadiow commented 1 year ago

FTP client to upload recordings

roleoroleo commented 1 year ago

I'm trying to build lftp but there are too many dependencies.

divadiow commented 1 year ago

Bum :(

Is lftp the only option?

roleoroleo commented 1 year ago

I don't know. I will try again.

roleoroleo commented 1 year ago

I successfully compiled lftp, it was a bloodbath. Unfortunately it's a big binary (~4 MB) and I can't add it to the hack. If you want, I can share. You could install it in your sd card and create a custom script.

EDIT

I didn't test it. I don't know if it works properly.

divadiow commented 1 year ago

yes please!

although at the moment I appear to have done something to my cam to make it reboot every 15s or so. yihack remove run several times, re-hack tried, resets etc. it's stable until I pair it with the app, as a virgin camera with no hack, then it starts looping.

so I need to fix that first! :sigh:

roleoroleo commented 1 year ago

If you already restored the home partition, the problem could be the power supply. Try to change it.

Here lftp: lftp.gz

divadiow commented 1 year ago

thanks for the ftp.

indeed. I've tried different chargers and cables. all the same :(

roleoroleo commented 1 year ago

Did you restore the home partition with the unbrick procedure?

divadiow commented 1 year ago

Alas. Not got to that bit yet. I don't have a backup so might have to try one of my other y20 cams.

divadiow commented 1 year ago

hmm. doesn't like my home partition from backup on another cam. don't suppose you have original whole firmware for y20ga 9FUS I can factory reflash everything?

roleoroleo commented 1 year ago

If the cam is not completely dead, the unbrick procedure must work. Please check if:

Flashing the whole firmware is not the best solution. You risk the final brick if you don't have an external flash programmer. I can share with you my home partition (already prepared for the unbrick) if you want.

divadiow commented 1 year ago

Ok sure. I guess I just wanted a virgin home partition. To clarify, what actually happened is that the flashed partition from the other y20ga (BFUS - does this matter? As long as it's still from a y20ga?) did work, but it had the yihack from the other cam on it. I tried to dehack (using correct method) but this put it back to how it was, rebooting every 15s. I wanted to be sure I could unhack successfully in the event of future firmware releases from Yi.

I actually then reflashed the cam with the backup but this time it was boot looping again, whereas the first time it seemed to fix it. So, dunno

divadiow commented 1 year ago

the gz unbrick file created fine in Windows

image

built with build.bat

image

(what's clean.bat for?)

roleoroleo commented 1 year ago

It's not a problem if it's a BFUS or other, the important thing is the suffix y20ga.

Probably the problem is the following: The bootloader, when it restores the partitions, saves the checksum of the file and doesn't load the file anymore if it already loaded. It's a strategy to avoid a boot loop. You need a file with at least 1 byte different. I will update the unbrick procedure fot this purpose.

EDIT

Try the new procedure and use hacked mode.

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.