OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Zubuntu From Flash Attempt 2
thebaz67
post Jun 9 2010, 12:09 PM
Post #1





Group: Members
Posts: 17
Joined: 23-May 05
Member No.: 7,196



Trying to follow the instructions to move most of zubuntu to the internal flash to try to make the system work quickly and independent of the SDCard. I have found that the kexecboot will not see the boot folder on the /dev/mtdblock3 but will see it on /dev/mtdblock2.

I am using the updater and tools from the PDAXii3 site to resize the root mtd partition to 121 and see if that works.

we will see

Baz
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Dromede
post Jun 10 2010, 08:20 AM
Post #2





Group: Members
Posts: 156
Joined: 10-December 06
From: Croatia
Member No.: 13,288



MTD partitions can be hardcoded into the kernel or defined through the kernel command line. kexecboot kernels provided by openembedded default to partitions hardcoded into the kernel. the partitions are defined in "/drivers/mtd/nand/sharpsl.c". Now, i presume you want one partition of maximum size (121Mib i believe). This is a problem since the zubuntu flash installer assumes two partitions as defined by the sharp rom and it's derivatives (or maybe early 2.4 kernel based pdaxrom builds, i can't remember) while the kexecboot kernel also assumes two (or three?) partitions but of different sizes. I think that's your problem.

What i think you should do:

1). use pdaxrom R198 to run zubuntu flash installer and change the script to install to /dev/mtdblock2. R198 defines by default a 121Mib nand partition (mtdblock2).
2). You need to change the nand partitioning in the kexecboot kernel. Either change the definitions in sharpsl.c or provide partition definitions via the kernel command line.
(add "mtdparts=sharpsl-nand:7168k(System),-(Rootfs)" to the kernel command line).

This _should_ work but i can't give you any guarantees.

But be warned. If this works, zubuntu will still need the SD card inserted at all times. The biggest part of the rootfs tree is still on the SD card, namely the whole "/usr" tree. The zubuntu rootfs will simply not fit inside the nand chip. As for speed improvements, i dont think you will see a big difference.
Go to the top of the page
 
+Quote Post
ant
post Jun 18 2010, 02:06 AM
Post #3





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



QUOTE(Dromede @ Jun 10 2010, 05:20 PM) *
MTD partitions can be hardcoded into the kernel or defined through the kernel command line. kexecboot kernels provided by openembedded default to partitions hardcoded into the kernel. the partitions are defined in "/drivers/mtd/nand/sharpsl.c". Now, i presume you want one partition of maximum size (121Mib i believe). This is a problem since the zubuntu flash installer assumes two partitions as defined by the sharp rom and it's derivatives (or maybe early 2.4 kernel based pdaxrom builds, i can't remember) while the kexecboot kernel also assumes two (or three?) partitions but of different sizes. I think that's your problem.
...



This is no longer true: since december 2009 kexecboot is able to read the mtdparts from nand so you can resize the partitions.

Most kexeboot kernels out in the web are outdated.
Some don't boot from CF, others have an old kexecboot in the initramfs.

Please use the latest versions here: http://projects.linuxtogo.org/frs/?group_id=55

The 2.6.2x just work. The 2.6.34-rc have been tested only on clamshells.
We are working on the kernel 2.6.34 for Zaurus: this will be available very soon.

Regards

Ant

P.S. the updater.sh provides a simple way to flash 2 bootable jffs2 distros in nand: rename the first initrd.bin and the second home.bin
Go to the top of the page
 
+Quote Post

Posts in this topic


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

 



RSS Lo-Fi Version Time is now: 20th December 2014 - 04:13 AM