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..?
You have to remember that you know Python like the back of your hand - I'm still trying to learn this language!!
The "little" issue with the H9 is to get the changed bootargs into /usr/share so they can be copied - OpenPli hate messing with the meta, so you (or Betacentauri) might want to look at this earlier OpenVix change (since then its been fully incorporated into the meta for zgemma) ....https://github.com/o...5adc9d526a74508
I just changed my SF8008 sdcard to use 32MB kernel partitions and it will not boot - so perhaps not implement at the moment!