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

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Hdd-free Patch For Cacko Rom!, updated to scriptpack v0.2 (080416)
ZDevil
post Mar 5 2008, 01:29 AM
Post #1





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



SOLVED: for details see post #15 below.

===============================================
Hi,

I am stilling thinking of setting up dualbooting Cacko and Debian/EABI using the sharp bootloader and kexec as described here: http://www.oesf.org/forum/index.php?showtopic=25555

Even though dualbooting Debian and PdaXii works fine, I feel like having the NAND run Cacko so that there are more varieties.

The question is: the internal disk is already partitioned with one big giant partition filled by the Debian rootfs.
The fact is Cacko/Sharp rom require the internal disk to be partitioned in exactly three parts with exact sizes/sectors.
I cannot do this with GParted in Debian because the program can only resize in terms of MBs, not sectors.
fdisk doesn't work here because repartitioning with fdisk will wipe the disk content clean.

Of course there is a straightforward way: just tar up/create a back up image of the Debian rootfs, then use fdisk to repartition the disk, then put the Debian rootfs back in HDD1, and finally install Cacko and set up dualbooting using the method in that thread. Actually this is also what I may do.

But many Debian Z users have already got the whole system working. This method, however simple, is clumsy and not without risks.

So would it be feasible to do it the other way round: tweak Cacko/Sharp rom in such a way that it simply ignores the HDDs part. In principle it seems workable to me, because the files living in the three hdax do not seem to be critical for the system to operate. Everything important is all in the NAND flash.
I have tried to play with /root/etc/rc.d/rc.rofilesys in Cacko by taking away all the instructions to mount the HDDs. But Cacko fails to boot because of something missing in the process (let me skip the details here).

Has someone ever tried to do a similar thing? I would great appreciate if you could share your insights here. Thanks! wink.gif


This post has been edited by ZDevil: Apr 16 2008, 01:35 AM
Go to the top of the page
 
+Quote Post
adf
post Mar 5 2008, 02:02 AM
Post #2





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



It has been done as a part of on old pocketworkstaion intallation--the guy doing it wanted to make PW look native on (I think) a 3000. the project got superceded by XQT, but in part of his instrucions he boots cacko by doing a key combo (ctrl -c?) when cacko complains about the missing partitions--it then loads just fine. This surely could be massaged into something workable.
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 5 2008, 02:07 AM
Post #3





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



That's nice! Thanks!

So it does sound workable. The question now may be: can we make use of the PW solution/script(s) and make it work for Cacko? What are these files? Any pointer?

Just think of one more advantage of doing this: it is not just good for dualbooting, but also perhaps good for backing up and restoring, as the system will entirely live in one disk.
Go to the top of the page
 
+Quote Post
adf
post Mar 5 2008, 02:30 AM
Post #4





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



QUOTE(ZDevil @ Mar 5 2008, 01:07 AM) *
That's nice! Thanks!

So it does sound workable. The question now may be: can we make use of the PW solution/script(s) and make it work for Cacko? What are these files? Any pointer?

Just think of one more advantage of doing this: it is not just good for dualbooting, but also perhaps good for backing up and restoring, as the system will entirely live in one disk.

According to meanie's big pdf of zaurus lore at www.users.on.net/~hluc/myZaurus/book/zbook3k.pdf he hacked rc.rofilesys to get rid of those annoyances re hdd1 and hdd2. maybe there is a solution there?

1 biggie--do any of the sharp/cacko mail clients handle g-mail? I mention it since it seems like a big advantage is the combo of pdaishness and laptopishness would seem to indicate that quick email checks and that sort of thing should be handled by the pda style boot. Possibly the javaj based gmail mobile client could be used ith the qte stuff doesn't do it?-- not trying to hijack--just a concern for the results of getting this working'
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 5 2008, 03:26 AM
Post #5





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Yes, it is always enjoyable to read Meanie's "Bible for the Zaurus". wink.gif

So this is Meanie's hacked rc.rofilesys: http://www.users.on.net/~hluc/myZaurus/cus...ofilesys.hacked

I am still looking at it and can't use it right away, because I don't fully understand the bits there. There are still scripts to mount the three hdd partitions, and i don't quite sure what the "restorepc" does in the boot. Any idea?
Go to the top of the page
 
+Quote Post
adf
post Mar 5 2008, 08:18 AM
Post #6





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



QUOTE(ZDevil @ Mar 5 2008, 02:26 AM) *
Yes, it is always enjoyable to read Meanie's "Bible for the Zaurus". wink.gif

So this is Meanie's hacked rc.rofilesys: http://www.users.on.net/~hluc/myZaurus/cus...ofilesys.hacked

I am still looking at it and can't use it right away, because I don't fully understand the bits there. There are still scripts to mount the three hdd partitions, and i don't quite sure what the "restorepc" does in the boot. Any idea?



None. I was more interested in the idea that the size and content of the 3 partitions was variable, and guessed that this might lead to the working dual system under discussion.
Go to the top of the page
 
+Quote Post
speculatrix
post Mar 5 2008, 01:44 PM
Post #7





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



are you sure the partition sizes have to be correct - AFAIK all that matters is that they're the right type of file system and have the smattering of files on the which sharp use for recovery?
Go to the top of the page
 
+Quote Post
matthis
post Mar 5 2008, 03:40 PM
Post #8





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



Size doesn't have to be correct, file partition type is adjustable in rc.rofilesys.
The problem is that of .sys files, and the requirement for the actual existence of the partitions.
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 5 2008, 11:18 PM
Post #9





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Thanks, speculatrix and matthis. Yes, I was mistaken. Size doesn't matter, as long as the right files go to the right partitions.
Still this is an annoying feature. Perhaps only C3000 needs this setting. But why do C3100 and C3200 have to follow suit?
Cacko/Sharp can be (even) much more user-friendly without this setting.

Has anyone tried Meanie's hacked rc.rofilesys?
Go to the top of the page
 
+Quote Post
speculatrix
post Mar 6 2008, 12:08 AM
Post #10





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(ZDevil @ Mar 6 2008, 07:18 AM) *
Has anyone tried Meanie's hacked rc.rofilesys?


I simply created small partitions to allow rofilesys to not barf, so that everything worked normally if I reflashed, it still allowed me to create a swap and an ext3 partition which is all I really wanted!
Go to the top of the page
 
+Quote Post
adf
post Mar 6 2008, 09:21 AM
Post #11





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



QUOTE(speculatrix @ Mar 5 2008, 11:08 PM) *
QUOTE(ZDevil @ Mar 6 2008, 07:18 AM) *
Has anyone tried Meanie's hacked rc.rofilesys?


I simply created small partitions to allow rofilesys to not barf, so that everything worked normally if I reflashed, it still allowed me to create a swap and an ext3 partition which is all I really wanted!

yeah,that might be simplest
Go to the top of the page
 
+Quote Post
jocasmi
post Mar 16 2008, 03:38 PM
Post #12





Group: Members
Posts: 99
Joined: 4-December 06
From: Barcelona, Spain
Member No.: 13,088



@Adf. I 've configured Sharpmail and opiemail with stunnel to deal with my gmail account, as explained in some post earlier in OESF, if you have any problem, let my know and I'll post the steps.
Go to the top of the page
 
+Quote Post
adf
post Mar 17 2008, 10:37 PM
Post #13





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



QUOTE(jocasmi @ Mar 16 2008, 03:38 PM) *
@Adf. I 've configured Sharpmail and opiemail with stunnel to deal with my gmail account, as explained in some post earlier in OESF, if you have any problem, let my know and I'll post the steps.

Thanks, I will
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 28 2008, 08:38 AM
Post #14





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



How forgetful I was! This problem has been solved for long by mathemajikian's "Cacko patch" for OpenBSD/Zaurus ( http://www.oesf.org/forum/index.php?showtopic=21249 ) ! My 3200 did run OpenBSD for quite a few months before moving to Debian. Anyway here it is. I incorporate mathemajikian's hacks into one automatized scriptpack with some enhancements and tools.

Here is the readme FYI: Attached File  readme.txt ( 4.6K ) Number of downloads: 63

The scriptpack can be downloaded from here.

Now Cacko boots happily without caring about the HDD anymore! laugh.gif

Now sure how this fix works for Sharp ROM, but I suppose it will. wink.gif

Have fun!
Go to the top of the page
 
+Quote Post
ZDevil
post Apr 16 2008, 12:12 AM
Post #15





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Updated to v0.2:
  • Changed the timestamp to a truly unique one
  • Made the backup files move to the installer's backup directory instead of leaving copies in the small flash space.

Otherwise v0.2 works exactly the same way as v0.1. So don't worry if you have used v0.1. You may just want to delete the backup copies in /root/etc/rc.d in Cacko (you have to do it in the [D+B] Linux Emergency Console and mount the flash partitions /dev/mtdblock2 there).

Have fun! wink.gif
Attached File(s)
Attached File  cackohddfix_0.2.tar.gz ( 111.95K ) Number of downloads: 216
 
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
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: 21st December 2014 - 01:15 AM