Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote permanent Flash to the device #177

Open
jendik opened this issue Dec 6, 2020 · 8 comments
Open

remote permanent Flash to the device #177

jendik opened this issue Dec 6, 2020 · 8 comments

Comments

@jendik
Copy link

jendik commented Dec 6, 2020

Hi There,

Please, is there a way how to remotely upload the another file to the usb flash drive for flashing internal firmware without having usb drive in hand?

I mean is there a way how to mount USB flash disk (FAT32) inserted in the device and booted with sat-ip to be able to upload another firmware file there for permanent flash after reboot please?

I will restart power after that remotely...

Thanks so much
Kind regards
J.

@Jalle19
Copy link

Jalle19 commented Dec 16, 2020

USB sticks are auto-mounted on /media/USB_DISK/. It should be possibly to simply place files there, then issue a reboot. Not sure if reboot works or if you need to physically cut the power.

@jendik
Copy link
Author

jendik commented Dec 16, 2020

THANKS so much, now I can ssee it. In my case it's here:
/media/sda
/media/sda1

That's good part. I also had to cut the power which is ok as well and was expected.

The issue is that original FW is loaded after flashing and power cut.
And it looks like the USB will have to be removed from the slot to boot flashed sat-ip firmware. I'm afraid I recall that the same situation occurred when I flashed another box.

That would unfortunately mean physical persistence by the box, which looks like remote flashing is not possible... ?

thanks so by so
j.

@Jalle19
Copy link

Jalle19 commented Dec 16, 2020

I don't see why it would boot to the original firmware?

@jendik
Copy link
Author

jendik commented Dec 16, 2020

I understand, I might have done something wrong and I will recheck when I get by the box. Thank you, will let you know.

@fergycool
Copy link

I can confirm that a reboot command in a SSH session reboots to the original firmware. You have to power cycle to boot from satip-axe on the USB stick. I'm afraid I have no idea how boot loaders work on devices such as this (Digibit R1 for me) so I am no help in fixing it.

@perexg
Copy link
Owner

perexg commented May 5, 2021

Apparently, there's a bug in u-boot which prevents to boot from the USB flash disk (hot reboot). The USB code in uboot does not work properly in this case (the USB flash disk is not detected). I recommend to write the fw to the internal flash.

@fergycool
Copy link

Thank you. I'll eventually flash the internal flash. But booted from the USB device so far your tool is very stable!

@Jalle19
Copy link

Jalle19 commented May 6, 2021

If the goal is unattended firmware upgrades then one solution is of course to connect the box to a smart plug, and then issue a cold reboot by toggling the power off and on. Not ideal, but definitely doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants