I have tested the script on my Akita, I'm posting here my list of issues/suggestions so that it is easier to track them:
1) When trying to change the partition size to anything above the 64MB limit, a warning should be printed in case the required mainte_fix.bin file is missing from the SD/CF card and the table of the new requested partition sizes should not be printed, in order to avoid confusion. If the file is present, a message should be shown that it has been found and it is being used.
There is exactly a check and a warning added at the start of updater.sh.
It is possible to detect if the mainte_fix.bin was flashed indirectly, because ( at least on my C860 fresh restored) it screws and defaults to 7M SMF + 30M root +27M home, total 64M...
Strange that you did not trigger it...
Remember the new sizes ARE flashed and recent kexecboot kernel does detect correctly 100M root.
It is just that kernel2/updater.sh has a wrong idea about the partitions so it is wise to signale it immediately.
2) Add in the Readme file on LinuxPDA's page that, if one or more valid files are present, the updater will automatically flash them, if no other file is present, the Partition Manager will start instead. Before flashing the files, maybe a 5s countdown timer could be added, to ask to press R + OK to access the partition manager (which should already work, haven't tested it yet)?
My initial idea was to put an empty file called 'repartition' but we decided to detect the 'no files' path.
The countdown could be not easy to manage it in few lines.
About R + OK I meant that for entering the maintenance mode: you usually remove battery an press PowerON + OK.
Actually it just needs a reset, so when you are in kexecboot and press R to reboot it detects the OK keypress and starts updater.sh if present.
3) When viewing the partitions, the mtd1/2/3 partition names could be added above the smf, root, home labels?
Actually these are the standard mainte kernel names: these are not the filesystem labels.
4) When finished viewing the partitions (1) or erasing them (3), it would be nice to have a "press a key to return to the menu" option. If not possible, a "press a key to reboot" message could be printed and a reboot triggered, otherwise the only way to exit is to unplug the power charger and to take off the battery.
Ehm..you DO return to the main menu.
Try entering 1.
To exit/reboot you just press 0, no need to take out the battery.
5) When asked for "Resize partition?", if n is pressed, print a "Resizing aborted, press a key to reboot..." message and reboot, instead of remaining stuck with no option
Why no option? You are back in the menu, as above, try entering 1 to view partitions.
6) When resizing the partitions, it would be handy to print the existing partition sizes before asking for the new partition sizes
Well, ok, there is menu 1 View for this...I have mimicked fdisk and similar 'nix tools
7) Might be useful to add a note that the smf partition can't be resized, and that the home partition size will be automatically calculated to fill the remaining space on NAND
If you think, yes.
This is like that by design.
The string "sl_time nand_read_time" is printed during the boot... debug text possibly?
I don't see that one, but another message about module devinfo missing.
This is the mainte kernel2, we cannot do anything.
9) "Partition Manager?" is asked, IMHO "Run the Partition Manager?" sounds better. Same for "Finished!" at the end of flashing instead of "Finish!".
Please remember the screen of poodle is only 30 chars. I have designed it to fit one line.
About "Finish", this is the parent script exiting, the one launching updater.sh. We cannot change that.
Varti
Thanks for testing
Ant