yi-hack-Allwinner icon indicating copy to clipboard operation
yi-hack-Allwinner copied to clipboard

Please add FTPS support and ability to specify port for push

Open divadiow opened this issue 2 years ago • 16 comments

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?

divadiow avatar Jun 18 '23 15:06 divadiow

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

roleoroleo avatar Jun 18 '23 16:06 roleoroleo

FTP client to upload recordings

divadiow avatar Jun 18 '23 16:06 divadiow

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

roleoroleo avatar Jun 19 '23 08:06 roleoroleo

Bum :(

Is lftp the only option?

divadiow avatar Jun 19 '23 13:06 divadiow

I don't know. I will try again.

roleoroleo avatar Jun 19 '23 21:06 roleoroleo

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.

roleoroleo avatar Jun 20 '23 15:06 roleoroleo

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:

divadiow avatar Jun 22 '23 06:06 divadiow

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

Here lftp: lftp.gz

roleoroleo avatar Jun 22 '23 07:06 roleoroleo

thanks for the ftp.

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

divadiow avatar Jun 22 '23 07:06 divadiow

Did you restore the home partition with the unbrick procedure?

roleoroleo avatar Jun 22 '23 08:06 roleoroleo

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 avatar Jun 22 '23 11:06 divadiow

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?

divadiow avatar Jun 22 '23 14:06 divadiow

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

  • The model is really a y20ga.
  • The home partition from the other cam is good.
  • You prepared the file properly, following the guide.
  • The file produced by the procedure is not zero length.

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.

roleoroleo avatar Jun 22 '23 14:06 roleoroleo

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 avatar Jun 22 '23 14:06 divadiow

the gz unbrick file created fine in Windows

image

built with build.bat

image

(what's clean.bat for?)

divadiow avatar Jun 22 '23 14:06 divadiow

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.

roleoroleo avatar Jun 22 '23 15:06 roleoroleo

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.

github-actions[bot] avatar Mar 31 '24 17:03 github-actions[bot]