-
Notifications
You must be signed in to change notification settings - Fork 16
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
How can ofgwrite be debugged on boxes where it doesn't work? #23
Comments
So your unzipped image is here: Have you tried calling ofgwrite from the command line and checking the output?
|
Better at first add -n option to the command line. This option prevents any changes on the box. It only shows what it found and what it would execute. |
Here are the results of the shell run with the "-n" option: root@beyonwizt4:~# /usr/bin/ofgwrite -n -r -k /media/hdd/images/openatv-7.4-beyonwizt4-20240510_usb.unzipped/beyonwiz/hdp ofgwrite Utility v4.6.8 Flashing rootfs Found /proc/mtd entries: Syncing filesystem |
If it helps, here are the active filesystems: root@beyonwizt4:~# mount |
That looks ok for me. Ofgwrite found the correct mtd0 and mtd2 devices and recognized that it is ubifs and uses the correct tools. So I would say try without -n option. It might be that ofgwrite cannot write to the framebuffer(TV screen) properly, but I would guess that it still flashes the box. So wait at least 5 minutes. If then the box didn’t reboot, try to login on the box. If that works, please look into /var/log/messages. There you find debug info from ofgwrite. Post it here. You could also try to stop e2 first. This might make a difference for the framebuffer thing. |
I have an interesting update for you. When I generated the results above by using the "-n" option I thought I would try another flash to see what happened. The flash ran, from within openATV, to completion with no issue!!! I can't tell you that anything changed as I don't think anything changed. I just ran the test run, posted the results and then ran another production run and it worked. There was a message about 6 bad blocks. I don't know if that might be causing issues. In the latest run it all worked. May I make a request for a new command line option for ofgwrite? I would like to have a "-v" option to write as much logging information as is possible and reasonable into the Enigma log file for analysis by developers and yourself. I think the data should be written to the Enigma log files as users already know about collecting logs and sending them to developers. If there are issues in the future we could add the "-v" option and collect the run data for analysis. In this case I have the box here to look at another issue but it is not my box. If the user could give me a log file of ofgwrite issues we may be better able to diagnose future issues. Thank you for your response and suggestions to address the problem. |
6 bad blocks is no big problem and bad blocks are normal on a nand/ubifs device. |
First ofgwrite flashes (in many cases) the root filesystem. To be able to do it, it needs to close all open files and so all log files (and also stop e2) before the real flashing starts. So there is no log with all infos. Yes, that would be nice, but without an extra mounted filesystem it’s impossible to do that. /tmp/ is gone after the reboot. |
Ofgwrite is a standalone application which don’t need e2. E2 can be stopped and ofgwrite be executed via command line. So there is no e2 log there in all cases and how can ofgwrite directly write to the e2 log? It’s a different process. |
I am trying to run an online flash update of a Beyonwiz T4 (I believe this is an OEM of a Venton box) running openATV. When ofgwrite starts I see some initialisation and then the screen goes blank and the front panel OLED screen also goes blank. After a while I start seeing screen tearing and flashes on the TV screen. This continues until I use a shell to reboot the box. The box reboots normally with the original image.
Here is a log file extract from the start of ofgwrite until the reboot:
log.txt
Is there anything I can do to help get this issue fixed?
The text was updated successfully, but these errors were encountered: