Gentoo Archives: gentoo-embedded

From: Jonas MG <jonasmg@××××××××.net>
To: gentoo-user@l.g.o
Cc: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] Catalyst - Building a minimal system
Date: Sat, 19 Jun 2004 13:53:01
Message-Id: 200406191555.13379.jonasmg@softhome.net
1 I'm trying to building a very small system (less of 50M) to fit a business
2 card. A bootable live-cd distribution based on knoppix exists (dammsmall),
3 but I do not know if I will be able to do using it catalyst.
4
5 I want to build a minimum system that it has:
6 Tiny X server and window manager
7 kdrive or xdirectfb w/ openbox or fluxbox
8
9 Autodetection of hardware
10 I believe that the best thing is to use scripts of knoppix (kudzu, hwsetup,
11 hwdata-knoppix, ddcxinfo-knoppix)
12
13 Sound and Connection to Internet
14
15 Base tools
16 Firefox web browser, xmms, xpdf, nedit
17
18 I want to share what I have obtained until now, in order that the people who
19 are making something similar we pruned to help us. Unfortunately there is not
20 much help on catalyst. :(
21
22 As I am building the live-cd from my debian I have made these steps:
23 tar xjf stage3* -C /mnt/gentoo
24 tar xjf portage* -C /mnt/gentoo/usr
25 cp /etc/resolv.conf /mnt/gentoo/etc
26 mkdir -p /mnt/gentoo/var/tmp/catalyst/{builds/default,snapshots}
27 mv stage3* /mnt/gentoo/var/tmp/catalyst/builds/default
28 mount -o bind /proc /mnt/gentoo/proc
29 chroot /mnt/gentoo /bin/bash
30 env-update; source /etc/profile
31 ---------------------------------------------------------------------------------------------------
32 emerge portage; USE="doc" emerge catalyst
33
34 Config Files:
35
36 ->/etc/catalyst/catalyst.conf
37 i comment out envscript
38 envscript="/root/catalyst-env.sh"
39
40 ->/root/catalyst-env.sh
41 export ARCH="x86"
42 export ACCEPT_KEYWORDS="x86 ~x86"
43 export CHOST="i586-pc-linux-gnu"
44 export CFLAGS="-march=pentium -Os -pipe -fomit-frame-pointer \
45 -frename-registers -ftracer -ffast-math"
46 export CXXFLAGS="${CFLAGS} -frepo"
47
48 ->livecd-stage1.spec
49 subarch: i586
50 version_stamp: 2004.1
51 target: livecd-stage1
52 rel_type: default
53 profile: default-x86-2004.1
54 snapshot: 20040619
55 source_subpath: default/stage3-x86-2004.1
56 livecd/use: -* livecd apm nls fbcon directfb gif jpeg png svg imlib
57 xv alsa oggvorbis xmms X truetype gtk2 mozilla libwww zlib pdflib
58 livecd/packages:
59 baselayout bootsplash livecd-tools
60 # Hardware
61 kudzu hwsetup hwdata-knoppix pciutils usbutils hotplug
62 # Kernel
63 module-init-tools
64 # Filesystem
65 e2fsprogs
66 # General
67 ucl
68 # Network
69 speedtouch rp-pppoe dhcpcd iputils net-tools dillo elinks mozilla-firefox
70 # Sound
71 alsa-utils xmms alsa-xmms
72 # X
73 directfb directfb-extra xdirectfb freetype fluxbox idesk
74 # Others
75 libflash gplflash xpdf nedit
76 ----------------------------------------------------------------------------------
77 emerge sync
78 catalyst target=livecd-stage1 version_stamp=`date +%Y%m%d`
79 nano -w livecd-stage1.spec (change the day of snapshot and write the actual
80 day)
81 catalyst -f livecd-stage1.spec
82
83 --
84 Jonas MG
85
86 --
87 gentoo-embedded@g.o mailing list