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

IPB

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Running Zubuntu From Internal Memory, .. with cacko discussion
cortez
post Jan 5 2009, 02:14 AM
Post #1





Group: Members
Posts: 376
Joined: 18-March 04
From: The Netherlands
Member No.: 2,380



Hi,

I've posted how-to instructions on my blog. Following these instructions makes it possible to run Zubuntu from internal flash memory. This should work for all currently supported models.

Most part of Zubuntu is squashed into the small amount of internal memory, except for the /usr and /var directories. Unfortunately these have to be located on a different place, being a CF, SD, or MD.

Cheers,
cortez
Go to the top of the page
 
+Quote Post
ppyo
post Jan 5 2009, 03:44 PM
Post #2





Group: Members
Posts: 28
Joined: 14-December 07
From: Charlotte, NC, USA
Member No.: 21,078



QUOTE(cortez @ Jan 5 2009, 05:14 AM) *
Hi,

I've posted how-to instructions on my blog. Following these instructions makes it possible to run Zubuntu from internal flash memory. This should work for all currently supported models.

Most part of Zubuntu is squashed into the small amount of internal memory, except for the /usr and /var directories. Unfortunately these have to be located on a different place, being a CF, SD, or MD.

Cheers,
cortez


Hi Cortez
Once again, congrats on your achievement, very cool!
Now the question: How about keeping Cacko in the internal flash and Zubuntu in SD? This due to Cack being a lot smaller than Zubuntu. How can I do this?
Thanks in advance!

Go to the top of the page
 
+Quote Post
Capn_Fish
post Jan 5 2009, 05:47 PM
Post #3





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



Easy*:

-Get Cacko kernel, put it in Cacko's /boot (if it doesn't exist, make it, call it zImage)
-Untar the Zubuntu stuff to SD
-Look at the Zubuntu files in /boot (minus the kernel)
-Copy them to Cacko's /boot and adapt as necessary
-Flash the Kexec/altboot/whatever it is kernel
-Reboot and enjoy

*These steps have not been tested by me, and are from my understanding, based off of other posts.
Go to the top of the page
 
+Quote Post
jfv
post Jan 5 2009, 07:30 PM
Post #4





Group: Members
Posts: 438
Joined: 24-June 03
Member No.: 202



QUOTE(Capn_Fish @ Jan 5 2009, 07:47 PM) *
Easy*:

-Get Cacko kernel, put it in Cacko's /boot (if it doesn't exist, make it, call it zImage)
-Untar the Zubuntu stuff to SD
-Look at the Zubuntu files in /boot (minus the kernel)
-Copy them to Cacko's /boot and adapt as necessary
-Flash the Kexec/altboot/whatever it is kernel
-Reboot and enjoy

*These steps have not been tested by me, and are from my understanding, based off of other posts.


That can't possibly work. The GUI, programs, etc. that make Cacko what it is do not reside in the kernel. What is needed is to make a mirror of /bin, /lib, /usr, /home, /etc, etc :-) and copy to the SD. I've tried to do that with the Sharp ROM but it didn't work and I'm not sure why.

I'd love to hear of anybody who managed to get Cacko or Sharp alongside Zubuntu in the multiboot setup with detailed instructions. Thanks.

EDIT: Maybe I misunderstood your instructions. Do you mean that the Cacko ROM (except the kernel) will be left untouched by the reflash?
So if I start with a Cacko/Sharp ROM in my internal flash it will still be there? Maybe I'll try that. Thanks.

EDIT 2: /boot on Sharp ROM is readonly. I vaguely recall there is a way to get around this. Any suggestions?

EDIT 3: Figured out how to do the remount ( mount -o remount,rw / ), now the Sharp ROM shows up as internal flash option in the omegamoon boot menu but I have the same problem with "init" as in this post.
Go to the top of the page
 
+Quote Post
cortez
post Jan 5 2009, 10:25 PM
Post #5





Group: Members
Posts: 376
Joined: 18-March 04
From: The Netherlands
Member No.: 2,380



QUOTE(ppyo @ Jan 6 2009, 12:44 AM) *
Hi Cortez
Once again, congrats on your achievement, very cool!
Now the question: How about keeping Cacko in the internal flash and Zubuntu in SD? This due to Cack being a lot smaller than Zubuntu. How can I do this?
Thanks in advance!

This is kind of off-topic... running Cacko from internal memory should work. The only important thing would be to adjust the kernel-cmdline by adding the correct mtdpart parameters. That's all. By doing that Cacko should boot normally. Running it from a memory card would mean a lot more tweaking though
Go to the top of the page
 
+Quote Post
pelrun
post Jan 5 2009, 10:25 PM
Post #6





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



That would be because the kernel cmdline being passed to the cacko kernel has a wrong/missing mtdparts option - you have to explicitly and correctly describe your nand partition layout.
Go to the top of the page
 
+Quote Post
jfv
post Jan 6 2009, 08:08 AM
Post #7





Group: Members
Posts: 438
Joined: 24-June 03
Member No.: 202



QUOTE(cortez @ Jan 6 2009, 12:25 AM) *
QUOTE(ppyo @ Jan 6 2009, 12:44 AM) *
Hi Cortez
Once again, congrats on your achievement, very cool!
Now the question: How about keeping Cacko in the internal flash and Zubuntu in SD? This due to Cack being a lot smaller than Zubuntu. How can I do this?
Thanks in advance!

This is kind of off-topic... running Cacko from internal memory should work. The only important thing would be to adjust the kernel-cmdline by adding the correct mtdpart parameters. That's all. By doing that Cacko should boot normally. Running it from a memory card would mean a lot more tweaking though


And what would these correct mtdpart parameters be?
Go to the top of the page
 
+Quote Post
tanjian2
post Jan 6 2009, 09:05 AM
Post #8





Group: Members
Posts: 99
Joined: 13-November 06
Member No.: 12,390



Hi,
I installed zubuntu - it was so easy. I see from your sig that you have pdaXii13 on the microdrive - is it possible to dual boot this on a C3000? Can you point me at what might need changed to make it happen?
What exactly does updater.sh and zImage.bin replace on the C3000? Is it the boot loader? How does the new one detect what distros/devices are bootable?

Thanks for all the work on zubuntu.
Go to the top of the page
 
+Quote Post
Capn_Fish
post Jan 6 2009, 12:01 PM
Post #9





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



Look at my (apparently incorrect for Cacko) Cacko instructions above. It gives a good idea of how to add distros to the boot list.
Go to the top of the page
 
+Quote Post
jfv
post Jan 6 2009, 12:57 PM
Post #10





Group: Members
Posts: 438
Joined: 24-June 03
Member No.: 202



QUOTE(Capn_Fish @ Jan 6 2009, 02:01 PM) *
Look at my (apparently incorrect for Cacko) Cacko instructions above. It gives a good idea of how to add distros to the boot list.


So I've located the mntpart info in /proc/cmdline in the Sharp ROM, I copied that to /boot/kernel-cmdline, followed the flashing procedure again and still get the same init error.
Go to the top of the page
 
+Quote Post
ofels
post Jan 6 2009, 01:28 PM
Post #11





Group: Members
Posts: 142
Joined: 4-December 06
From: Lake Constance, Germany
Member No.: 13,087



QUOTE(tanjian2 @ Jan 6 2009, 06:05 PM) *
What exactly does updater.sh and zImage.bin replace on the C3000? Is it the boot loader? How does the new one detect what distros/devices are bootable?


updater.sh is the script which normally flashes kernel and root image into NAND memory.

The zImage.bin provided by cortez is a special kernel image which pretends to be a kernel but instead shows the boot screen with all partitions found which either have a kernel-cmd-line file or a *.nfo file in the /boot directory.
After the user selected a partition it loads the kernel file from the /boot directory (usually labelled zImage) and boots the corresponding distribution as usual.

The only difference to the normal boot process is the kernel location (/boot/zImage instead of a NAND image).

Oliver
Go to the top of the page
 
+Quote Post
tanjian2
post Jan 7 2009, 07:15 AM
Post #12





Group: Members
Posts: 99
Joined: 13-November 06
Member No.: 12,390



Thanks to everyone for the replies.
I guess I should have read Cortez's blog more closely as he also explains how it all works. Also searched this forum - thanks for bearing with me.
I have created the /boot directory and added the nfo file and zImage.
Not sure yet where to find the command line for pdaxrom.... but booting fails
Why do I need to pass the NAND partition into the kernel - given pdaXrom for the C3000 actually runs of the microdrive - is it sufficient to put the correct kernel in /boot and then set root=/dev/hda1 for the commandline (no it fails too)? The kernel boots but I can not work out what it is looking for and not finding.....
Any more help would be appreciated.


Go to the top of the page
 
+Quote Post
speculatrix
post Jan 7 2009, 03:23 PM
Post #13





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



cacko's root would be an mtdblock device, not hdaX. I'm hoping to get this working too, so if someone can post the exact text for the cacko /boot nfo file, it'd be great (assuming that you previously had cacko installed, then installed zubuntu to hard drive, and flashed the multiboot kernel)
Go to the top of the page
 
+Quote Post
scottlfa
post Jan 7 2009, 05:07 PM
Post #14





Group: Members
Posts: 283
Joined: 1-October 07
From: Blacksburg, SC, USA
Member No.: 20,773



How much faster is it running from flash? Booting etc?
Go to the top of the page
 
+Quote Post
ppyo
post Jan 8 2009, 06:17 PM
Post #15





Group: Members
Posts: 28
Joined: 14-December 07
From: Charlotte, NC, USA
Member No.: 21,078



QUOTE(speculatrix @ Jan 7 2009, 06:23 PM) *
cacko's root would be an mtdblock device, not hdaX. I'm hoping to get this working too, so if someone can post the exact text for the cacko /boot nfo file, it'd be great (assuming that you previously had cacko installed, then installed zubuntu to hard drive, and flashed the multiboot kernel)



This is what I found in /proc for the kernel-cmdline file:

CODE
console=ttyS0 root=/dev/mtdblock2 mtdparts=sharpsl-nand:7168k@0k(smf),32768k@7168k(root),-(home) jffs2_orphaned_inodes=delete EQUIPMENT=0 LOGOLANG=1 DEFYEAR=2006 LOGO=1 LAUNCH=q


I am still tinkering with it, but so far I get as far as the blue splash screen that reads Loading Linnux and QTopia. I think I need to do it with a fresh Cacko installation.

BTW Zubuntu works great! Many, many thanks again, Cortez!
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
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: 31st July 2014 - 01:27 AM