Author Topic: Howto Run Both Opie And Gpe At The Same Time  (Read 2209 times)

papercrane

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://reversefold.com
Howto Run Both Opie And Gpe At The Same Time
« on: December 03, 2004, 04:04:01 pm »
I've made a simple HowTo for those who wish to try running both Opie and GPE at the same time. I wrote this from memory, so if anyone tries it let me know how it works.

http://www.reversefold.com/tikiwiki/tiki-i...page=OpieAndGPE

thesing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Howto Run Both Opie And Gpe At The Same Time
« Reply #1 on: December 03, 2004, 07:34:04 pm »
Hi,

I tried your howto, but unfortunatly it didn't work. I installed everything but gpe doesn't start. (there ist no thing like /etc/init.d/gpe, but I don't know, if it should be there) I found no way to start gpe myself. So maybe you forgot to metion something ... ?

Anyway, really nice howto.

Thomas
Cheers,
Thomas

SL5500G Angstrom-unstable with Kernel 2.6 in devellopment
C3100 mostly occupied by my girlfriend ;)

anonuk

  • Full Member
  • ***
  • Posts: 176
    • View Profile
    • http://
Howto Run Both Opie And Gpe At The Same Time
« Reply #2 on: December 04, 2004, 05:31:03 pm »
I managed to get opie and gpe running together on my C860 with a few problems.
There are a few more things i needed to install, such as libfontconfig-util, i now have opie on vt2 and gpe on vt3 (didnt follow your instructions, as i tried it before i found this thread). './etc/init.d/gpe-dm start' starts gpe if you need to start it manually.

The problem is that my opie is always rotated portrait (like a 5500) rather than landscape. The machine is an 860 - GPE is in landscape, but opie in portrait when i switch vts. Any idea how to change this so that opie runs by default in landscape?
« Last Edit: December 04, 2004, 05:32:52 pm by anonuk »
* C3100 with Cacko 1.23 and debian (pocketworkstation) - 1Gb SD / 1Gb CF / Prism Wifi
* C-860 with Cacko 1.21b/pdaXrom dualboot with 256Mb CF / 512 Mb SD / Prism Wifi
* SL-5500 with Cacko rom with 128Mb SD home on SD / 96 Mb CF

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Howto Run Both Opie And Gpe At The Same Time
« Reply #3 on: December 13, 2004, 09:56:26 am »
How can I run my Zaurus entirely off of the SD card?
I got this from Google cached OpenZaurus FAQ!
Quote
The Zaurus can be booted entirely off external memory by doing the following steps. Here we are assuming that you want to boot off of the sd card but this will work for any external memory or even the internal RAM (a shell script is provided at the end):

The following assumptions are made:
/mnt/card = sd card

   1. copy the /dev/mmcda1 file to a different location
   2. create a script that mounts the sd card (using your new mmcda1 file), and then uses pivot_root to change the root to /mnt/card and remounts the old root someplace else.
   3. link the /etc/init.d/sd script into the /etc/rcS.d folder so that it loads immediately after the 01banner script.
   4. link your script that pivots the root into the /etc/rcS.d folder so that it loads immediately after the sd script.
   5. copy (using cp -a) the /bin, /boot, /etc, /home, /lib, /opt, /root, /sbin, /tmp, and /usr folders to the sd card
   6. create the dev, mnt, mnt/ram, mnt/cf, mnt/root, mnt/net, proc, and var folders on the sd card.
   7. copy the following files from the /dev folder to the dev folder on the sd card: (for now just copy the entire /dev folder)

The advantages to this way are that the original filesystem is modified only very slightly, and if you have a problem with the SD card you can pop it out and reboot, and the original filesystem will then load.

If you want to boot off of the RAM or the cf card you can skip steps 1 and 3.

You can execute the following script to do all this (don't forget chmod -x. I always do. :-):

#!/bin/sh

#
# Script to setup a Zaurus system to boot from the sd card (/mnt/card).
#
# I don't really know very much about shell scripting so this script is not
# very robust.  If someone wants to contribute a better one it would be
# great.

# copy the /dev/mmcda1 to /etc
/bin/cp /dev/mmcda1 /etc

#create our proot script to pivot the root

cd /etc/init.d

echo "#!/bin/sh" > proot
echo " " >> proot
echo "#Script to pivot the root to /mnt/card" >> proot
echo " " >> proot
echo "/bin/mount -t ext2 -o defaults,noatime /etc/mmcda1 /mnt/card" >> proot
echo "/sbin/pivot_root /mnt/card /mnt/card/mnt/root" >> proot

# make script executable
chmod +x proot

# setup our boot sequence
cd /etc/rcS.d
mv S01devices S04devices
ln -s ../init.d/sd ./S02sd
ln -s ../init.d/proot ./S03proot

# copy the files
cp -a /bin /mnt/card/
cp -a /boot /mnt/card/
cp -a /etc /mnt/card/
cp -a /home /mnt/card/
cp -a /lib /mnt/card/
cp -a /opt /mnt/card/
cp -a /root /mnt/card/
cp -a /sbin /mnt/card/
cp -a /tmp /mnt/card/
cp -a /usr /mnt/card/

#fixme
cp -a /dev /mnt/card/

# make the folders that we don't copy
mkdir /mnt/card/var
mkdir /mnt/card/proc
mkdir /mnt/card/mnt
mkdir /mnt/card/mnt/root
mkdir /mnt/card/mnt/cf
mkdir /mnt/card/mnt/net
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)