For me indeed the H9 stucture is better. It just moved all stuff to the USB or SD... Then the rest of the code doesn;t care and is backwards compatible. But as far I can see the internal 'flash' is not really used anymore.
SF8008 still uses internal flash and two images on SD. It can be coded, but we can also ask if they are willing to go for the H9 method.... But as 'other' images already adapt that another structure there might be no way back. But with a try to ask them I mihgt save time soon
As far I can see the ViX plugin for H9 (and maybe also the other HiSilicon boxes) could also be added in OpenPLi. As far I can see that plugin does work right away as for the existing code it is transparant (please tell me when I make a big mistake)
Just a question.. why are you doing this
f = open('/proc/cmdline', 'r').read()
if "root=/dev/mmcblk0p1" in f:
In this case I think this is a bit better
if "root=/dev/mmcblk0p1" in open('/proc/cmdline', 'r').read():
Your code keeps the 'file' longer open as f exists longer... I see it a lot in openvix/atv that the open the file in a variable do something and then a seperate close... event when the manipulation is short..?
Edited by littlesat, 11 January 2020 - 12:38.