Author Topic: Chroot Gentoo Environment On 3100  (Read 3759 times)

crstophr

  • Newbie
  • *
  • Posts: 18
    • View Profile
Chroot Gentoo Environment On 3100
« 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

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Chroot Gentoo Environment On 3100
« Reply #1 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....
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Chroot Gentoo Environment On 3100
« Reply #2 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...
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

crstophr

  • Newbie
  • *
  • Posts: 18
    • View Profile
Chroot Gentoo Environment On 3100
« Reply #3 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

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Chroot Gentoo Environment On 3100
« Reply #4 on: July 11, 2005, 08:42:39 pm »
thanks, I really needed that nfo, now I can move debian to a real ext2fs
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

gcf

  • Newbie
  • *
  • Posts: 18
    • View Profile
Chroot Gentoo Environment On 3100
« Reply #5 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?

crstophr

  • Newbie
  • *
  • Posts: 18
    • View Profile
Chroot Gentoo Environment On 3100
« Reply #6 on: July 16, 2005, 03:15:11 pm »
http://forums.gentoo.org/viewtopic-t-13124...ght-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]