OESF Portables Forum

General Forums => General Discussion => Topic started by: crstophr on July 11, 2005, 01:58:49 pm

Title: Chroot Gentoo Environment On 3100
Post by: crstophr on July 11, 2005, 01:58:49 pm
I'm not sure if this is news but I just got gentoo working on my 3100.  I'm brand new to the zaurus (my last pda was an apple newton!)  but not new to gentoo or linux.

All I had to do was put the gentoo-arm distribution on the internal microdrive

I repartitioned the internal hdd to have a 2G vfat on /hdd3
made a 2G ext3 FS mounted to /home/gentoo
unpacked the gentoo-arm dist into /home/gentoo
mounted proc
chroot into /home/gentoo/gentoo-dist

emerged joe as my first test and succeeded.  (had to edit the ebuild to add the arm keyword)

The neat part is that it doesn't change the default sharp rom.  The OS looks for a /dev/hdc3 to mount as vfat to /hdd3.  /hdd3 can be empty, the OS doen't need anything from it to boot.  As long as you make some kind of vfat FS on /dev/hdc3 you're fine and you can give the rest of the space to /dev/hdc4 for ext3 and gentoo.

I'm not sure where I'm going on this I'm just desperate to do something interesting with my Z since there are no roms out for the 3100 yet.

--Chris
Title: Chroot Gentoo Environment On 3100
Post by: bluedevils on July 11, 2005, 02:11:39 pm
suweet!  Though I don't think I would like to compile kde on it though.  Hmm... zaurus get togethers turn into distcc parties....
Title: Chroot Gentoo Environment On 3100
Post by: bam on July 11, 2005, 03:37:26 pm
how did you repartition...details please. I'm gonna do that with debian, so no loopback fs...
Title: Chroot Gentoo Environment On 3100
Post by: crstophr on July 11, 2005, 05:16:03 pm
First I connected the Z to a linux desktop and tarred up the whole /hdd3 over the USB link so I would have a backup.  This procedure will wipe out everything in /hdd3.

After that just unmount /hdd1 /hdd2 and /hdd3

fdisk /dev/hdc

Don't delete partitions 1 or 2!  I think they hold the data for a full reset.  Again, I'm a zaurus newb and have lots to learn.  In any case they are small and I wanted to retain as much original function as possible.

delete partition 3
new partition, primary, 3
make the size anything you like as long as you leave enough for the linux part.
type fat32
new partition, primary, 4
For gentoo this has to be >1G  I went with 2G.
type linux
write, quit

mkdosfs -F 32 /dev/hdc3
mkfs.ext2 -j /dev/hdc4

either remount /hdd1 /hdd2 and /hdd3 or reboot.

mkdir /home/gentoo (or whatever)
mount -t ext3 /dev/hdc4 /home/gentoo

--Chris
Title: Chroot Gentoo Environment On 3100
Post by: bam on July 11, 2005, 08:42:39 pm
thanks, I really needed that nfo, now I can move debian to a real ext2fs
Title: Chroot Gentoo Environment On 3100
Post by: gcf on July 15, 2005, 08:16:48 am
Quote
I'm not sure if this is news but I just got gentoo working on my 3100.  I'm brand new to the zaurus (my last pda was an apple newton!)  but not new to gentoo or linux.

Like to try same - where did you get the Gentoo for the Z ? How recent (portage) is it, can one "emerge sync" too?
Title: Chroot Gentoo Environment On 3100
Post by: crstophr on July 16, 2005, 03:15:11 pm
http://forums.gentoo.org/viewtopic-t-13124...ght-zaurus.html (http://forums.gentoo.org/viewtopic-t-131240-highlight-zaurus.html)

This thread has the download locations, howto, etc for the NFS chroot environment.  You just install it to the internal microdrive rather than over nfs.

I've already removed this from my z.  It takes up 1G of space and the performance is numbingly slow.  3hrs to emerge sync!  The IO rate to that microdrive is not great.  I think I'm going to try to get the nfs environment upgraded to gcc 3.4 and see what happens when we start turning on xscale optimizations.  

--Chris

Quote
Quote
I'm not sure if this is news but I just got gentoo working on my 3100.  I'm brand new to the zaurus (my last pda was an apple newton!)  but not new to gentoo or linux.

Like to try same - where did you get the Gentoo for the Z ? How recent (portage) is it, can one "emerge sync" too?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88463\"][{POST_SNAPBACK}][/a][/div]