OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Zaurus Updater 2017.05 released, Betatesters are welcome!
Varti
post May 18 2017, 05:09 AM
Post #1





Group: Admin
Posts: 296
Joined: 30-April 08
Member No.: 21,713



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
Go to the top of the page
 
+Quote Post
Varti
post May 18 2017, 05:10 AM
Post #2





Group: Admin
Posts: 296
Joined: 30-April 08
Member No.: 21,713



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
Go to the top of the page
 
+Quote Post
ant
post May 18 2017, 01:10 PM
Post #3





Group: Members
Posts: 165
Joined: 11-March 04
From: IT
Member No.: 2,270



QUOTE(Varti @ May 18 2017, 03:10 PM) *
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(Varti @ May 18 2017, 03:10 PM) *
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(Varti @ May 18 2017, 03:10 PM) *
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(Varti @ May 18 2017, 03:10 PM) *
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(Varti @ May 18 2017, 03:10 PM) *
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(Varti @ May 18 2017, 03:10 PM) *
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(Varti @ May 18 2017, 03:10 PM) *
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(Varti @ May 18 2017, 03:10 PM) *
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(Varti @ May 18 2017, 03:10 PM) *
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(Varti @ May 18 2017, 03:10 PM) *
Varti


Thanks for testing
Ant
Go to the top of the page
 
+Quote Post
Edranom
post May 18 2017, 01:32 PM
Post #4





Group: Members
Posts: 14
Joined: 20-April 17
From: Pennsylvania
Member No.: 803,415



What is the LinuxPDA all about? and can I use it on my SL-5500?
Go to the top of the page
 
+Quote Post
ArchiMark
post May 19 2017, 08:39 AM
Post #5





Group: Members
Posts: 1,366
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



QUOTE(Edranom @ May 18 2017, 02:32 PM) *
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
Go to the top of the page
 
+Quote Post
ArchiMark
post May 19 2017, 08:40 AM
Post #6





Group: Members
Posts: 1,366
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Thanks to Varti for posting about this and testing it.

Thanks to Ant for providing it!

Mark
Go to the top of the page
 
+Quote Post
Edranom
post May 19 2017, 02:28 PM
Post #7





Group: Members
Posts: 14
Joined: 20-April 17
From: Pennsylvania
Member No.: 803,415



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
Go to the top of the page
 
+Quote Post
ant
post May 19 2017, 03:14 PM
Post #8





Group: Members
Posts: 165
Joined: 11-March 04
From: IT
Member No.: 2,270



QUOTE(Edranom @ May 20 2017, 12:28 AM) *
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
Go to the top of the page
 
+Quote Post
Edranom
post May 19 2017, 03:27 PM
Post #9





Group: Members
Posts: 14
Joined: 20-April 17
From: Pennsylvania
Member No.: 803,415



oh, ok.

Thank you
Go to the top of the page
 
+Quote Post
Varti
post May 21 2017, 11:57 PM
Post #10





Group: Admin
Posts: 296
Joined: 30-April 08
Member No.: 21,713



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(Edranom @ May 18 2017, 11:32 PM) *
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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd August 2017 - 01:14 PM