Hello again, Fourdee (and/or k-plan),
so I've now indeed successfully arrived at the bottom of PREP_SYSTEM_FOR_DIETPI.sh, where it states
"A Unique HW_MODEL index will need to be assigned and coded into the DietPi sourcecode."
So here is my Unique HW_MODEL Index Request for NanoPi3:
I would assume that a HW_MODEL id of 62 would be appropriate, and HW_MODEL_DESCRIPTION should probably be 'NanoPi3' being kind of the "generic term" used by FriendlyARM themselves for NanoPC-T3 and NanoPi-M3. (Note that you might want to change 'NanoPi M2' for model 61 into 'NanoPi2' as well, as there also are NanoPC-T2 and NanoPi-M2 subsumed under this name.)
Am I correct in that I also need the following as well (in addition to the changes in dietpi-obtain_hw_model):
Code: Select all
echo 62 > /etc/.dietpi_hw_model_identifier
For IMAGE_ADDITIONAL_CREDITS, I'd propose 'FriendlyARM'.
Also, I have noticed that In finalise, you seem to disable serial console - which I think might not be such a good idea, as serial console might be needed in the very beginning to interact with the freshly installed system (e.g. in a no screen, no keyboard, no [or misconfigured] network scenario). When users want to save the last bits and bytes of memory, IMO it would be sufficient to be able to disable it via the config tool.
OK, once I have the HW_MODEL confirmed, I'll then run the finalise script and finally shut down the device in a clean way (shutdown -h now).
Next question is about the next step: "Read image". How do you want me to do this? The whole SD card (8GB in my case) at once, e.g. using Win32DiskImager? Or rather by partition, and from a Linux installation using other tools? And finally, how do you expect me to "Resize 2nd parition to mininum size +50MB"?
So it looks like we might end up with an alpha build (SD card image(s)) once the above questions have been answered. Great!
I myself would finally need to determine in addition how to migrate DietPi from the SD card to the eMMC contained in my NanoPC-T3 (NanoPi-M3 has no such thing), but that's another story...
Thanks a lot for all your work and your kind help!
Best regards & have a nice weekend,