Author Topic: Zaurus Updater 2017.05 released  (Read 3024 times)

Varti

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Zaurus Updater 2017.05 released
« on: May 18, 2017, 09:09:42 am »
A new version of the updater.sh script, version 2017.05, has been released on the LinuxPDA page:

https://github.com/LinuxPDA/zaurus-updater-2017.05

The updater.sh script is used to flash a kernel and, eventually, a ROM on the NAND, such as kexecboot, Cacko or pdaXrom. This new version includes an useful NAND partition resize and erase tool. It can be accessed by flashing updater.sh with no other files stored on the SD/CF card. I have been told that it can be also accessed even if there are valid kernels to be flashed on the card, by pressing R and OK during the boot, but I haven't tried that.

The script has been so far tested on a SL-C860 and an SL-C1000, so testers with other models are most welcomed. The script works on all the Zaurus models, except for the SL-5500.

Thanks to Ant for all the work and dedication on the updater and kexecboot!

Varti
Planet Gemini PDA WiFi/LTE with Mediatek x27
SL-C1000 running Arch Linux ARM May2017, K30225 Wi-Fi CF Card, 64GB SDXC card
and many other Zauruses!

Varti

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Zaurus Updater 2017.05 released
« Reply #1 on: May 18, 2017, 09:10:09 am »
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.

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)?

3) When viewing the partitions, the mtd1/2/3 partition names could be added above the smf, root, home 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.

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

6) When resizing the partitions, it would be handy to print the existing partition sizes before asking for the new partition sizes

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

8) The string "sl_time nand_read_time" is printed during the boot... debug text possibly?

9) "Partition Manager?" is asked, IMHO "Run the Partition Manager?" sounds better. Same for "Finished!" at the end of flashing instead of "Finish!".

Varti
Planet Gemini PDA WiFi/LTE with Mediatek x27
SL-C1000 running Arch Linux ARM May2017, K30225 Wi-Fi CF Card, 64GB SDXC card
and many other Zauruses!

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Zaurus Updater 2017.05 released
« Reply #2 on: May 18, 2017, 05:10:33 pm »
Quote from: Varti
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.

Quote from: Varti
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.

Quote from: Varti
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.

Quote from: Varti
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.

Quote from: Varti
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.

Quote from: Varti
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

Quote from: Varti
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.

Quote from: Varti
8) 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.

Quote from: Varti
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.

Quote from: Varti
Varti

Thanks for testing
Ant

Edranom

  • Newbie
  • *
  • Posts: 19
    • View Profile
Zaurus Updater 2017.05 released
« Reply #3 on: May 18, 2017, 05:32:54 pm »
What is the LinuxPDA all about? and can I use it on my SL-5500?

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1807
    • View Profile
Zaurus Updater 2017.05 released
« Reply #4 on: May 19, 2017, 12:39:33 pm »
Quote from: Edranom
What is the LinuxPDA all about? and can I use it on my SL-5500?

Regarding SL-5500, read paragraph 4 in post #1 above......

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1807
    • View Profile
Zaurus Updater 2017.05 released
« Reply #5 on: May 19, 2017, 12:40:20 pm »
Thanks to Varti for posting about this and testing it.

Thanks to Ant for providing it!

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

Edranom

  • Newbie
  • *
  • Posts: 19
    • View Profile
Zaurus Updater 2017.05 released
« Reply #6 on: May 19, 2017, 06:28:23 pm »
I asked because when I visited the LinuxPDA page I seen stuff for the collie. Was more curious about LinuxPDA. Not a lot of info on it that I could find

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Zaurus Updater 2017.05 released
« Reply #7 on: May 19, 2017, 07:14:35 pm »
Quote from: Edranom
I asked because when I visited the LinuxPDA page I seen stuff for the collie. Was more curious about LinuxPDA. Not a lot of info on it that I could find

Hi,

LinuxPDA is a project started by Dmitry, one of the few Zaurus kernel developers.
It was meant like a database for the handheld/palmtop/pocket/wearable devices supported under Linux.

See:
https://github.com/LinuxPDA/linuxpda.github.io

Nowadays I put there images self-built with OpenEmbedded.
These are test images for new kernels, not complete distros.

Cheers
Ant

Edranom

  • Newbie
  • *
  • Posts: 19
    • View Profile
Zaurus Updater 2017.05 released
« Reply #8 on: May 19, 2017, 07:27:54 pm »
oh, ok.

Thank you

Varti

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Zaurus Updater 2017.05 released
« Reply #9 on: May 22, 2017, 03:57:31 am »
Hi Ant, welcome back and thanks for the help! I wasn't aware that after every successfull or aborted operation the user is automatically back at the menu, I'll try to chose another option. Maybe at that stage it would be clearer to print again the menu? For the missing mainte_fix.bin warning, I'll try the same procedure with the 860 and see if it's printed there. Since all the required mainte_fix.bin files are on LinuxPDA now, the link to the files should be definitively added to the readme: https://github.com/LinuxPDA/mainte_fix.bin

Quote from: Edranom
What is the LinuxPDA all about? and can I use it on my SL-5500?
LinuxPDA is ant's personal GIT repository for all the work he's doing for the Zaurus. It is primarily a repository for all the recent kexecboot revisions:
https://github.com/LinuxPDA/linux-kexecboot
Kexecboot is useful in case you want to keep more than one ROM/distro and want to switch between them at boot time. There are versions for Collie (Sl-5500) too, though they have not been tested.
Other projects are updater.sh and various OpenEmbedded test builds: OpenEmbedded is a framework for compiling Linux distros that run on different embedded devices, and a test build can be made to check that the environment is correctly setup. This test build is actually a full-blown (although minimal) kernel, it is just not meant for end-user use. There's also an OPIE compile, which is the GUI forked from the stock ROM's/Cacko QTopia. Again, for both kernel and OPIE there's an untested Collie build, if you want to experiment with it.

Varti
Planet Gemini PDA WiFi/LTE with Mediatek x27
SL-C1000 running Arch Linux ARM May2017, K30225 Wi-Fi CF Card, 64GB SDXC card
and many other Zauruses!