View previous topic :: View next topic |
Author |
Message |
mepython n00b
Joined: 24 Jan 2003 Posts: 24
|
Posted: Tue Dec 30, 2003 6:55 pm Post subject: catalyst - livecd creation tool |
|
|
Finally gentoo will have a very powerful tool to create livecd.
This link contain information about catalyst. http://www.gentoo.org/proj/en/releng/catalyst/.
You can download latest tar.gz from http://dev.gentoo.org/~drobbins/catalyst/.
This what I have to change to (catalyst-20031229.tar.gz) targets.py file to make it run:
***********************************************************
diff modules/targets.py /data/catalyst/modules/targets.py
275c275
< if not os.path.exists(self.settings["boot/kernel/"+x+"/config"]:
---
> if not os.path.exists(self.settings["boot/kernel/"+x+"/config"]):
277c277
< retval=os.system("cp "+self.settings["boot/kernel/"+x+"/config "+self.settings["chroot_dir"]+"/var/tmp/"+x+".config")
---
> retval=os.system("cp "+self.settings["boot/kernel/"+x+"/config "]+self.settings["chroot_dir"]+"/var/tmp/"+x+".config")
281c281
< cmd(self.settings["sharedir"]+"/targets/livecd-stage2/livecd-stage2.sh run "+args))
---
> cmd(self.settings["sharedir"]+"/targets/livecd-stage2/livecd-stage2.sh run "+args)
*************************************************************************
After changing this, I was successfully able to create stage1, 2 and 3 for x86 architecture (with subarch pentium4). "grp" is also looking good (need to make a change to self.settings["grp"]) . It run successfully but it did not created any .bz2 file (does it suppose to create one? if so where it will be)
IMHO, this will increase popularity of gentoo manyfolds.
Please post your experience, tricks and tips for catalyst. |
|
Back to top |
|
|
GentooBox Veteran
Joined: 22 Jun 2003 Posts: 1168 Location: Denmark
|
Posted: Tue Dec 30, 2003 8:24 pm Post subject: |
|
|
It would be nice with a ebuild that patches the source with your fixes (hacks).
many Gentoonites are really lazy. _________________ Encrypt, lock up everything and duct tape the rest |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Thu Jan 01, 2004 12:19 am Post subject: |
|
|
Not bad, just a couple typos. did you post this to the gentoo-dev mail list so it would be fixed right away? _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
Keyed Tux's lil' helper
Joined: 26 Jul 2002 Posts: 135 Location: Tennessee
|
Posted: Thu Jan 01, 2004 6:12 pm Post subject: |
|
|
Well I was looking to see how to report the problems/fixes to get the latest catalyst working or if anyone had already encountered it, but it looks like you beat me to it. Search works wonders. Anyway snapshot building in progress. _________________ Windows is not a virus: Viruses are well supported by their authors, are running on most systems, their program code is fast, compact and efficient and they tend to become more sophisticated as they mature. |
|
Back to top |
|
|
axxackall l33t
Joined: 06 Nov 2002 Posts: 651 Location: Toronto, Ontario, 3rd Rock From Sun
|
Posted: Fri Jan 02, 2004 9:38 am Post subject: |
|
|
Can it be used to reate LiveDVD? _________________ "Lisp is a programmable programming language." - John Foderaro, CACM, September 1991 |
|
Back to top |
|
|
Keyed Tux's lil' helper
Joined: 26 Jul 2002 Posts: 135 Location: Tennessee
|
Posted: Fri Jan 02, 2004 4:42 pm Post subject: |
|
|
There are some additional changes needed in targets.py also. To get livecd-stage1 and livecd-stage2 just to initialize the environment correctly the following changes are needed:
Code: | class livecd_stage1_target(generic_stage_target):
def __init__(self,spec,addlargs):
-- generic_target.__init__(self,spec,addlargs)
++ generic_stage_target.__init__(self,spec,addlargs)
class livecd_stage2_target(generic_stage_target):
def __init__(self,spec,addlargs):
-- generic_target.__init__(self,spec,addlargs)
++ generic_stage_target.__init__(self,spec,addlargs)
|
I haven't got any further on what stage of developement the livecd-stage1 part is at. I will try later tonight. _________________ Windows is not a virus: Viruses are well supported by their authors, are running on most systems, their program code is fast, compact and efficient and they tend to become more sophisticated as they mature. |
|
Back to top |
|
|
DrNick n00b
Joined: 02 Jan 2004 Posts: 15 Location: Sweden
|
Posted: Fri Jan 02, 2004 4:57 pm Post subject: |
|
|
Hello everybody
to build the liveCD stages there's some additional patching needed. Here's what I did to get it going at least. Before the the portage snapshot I changed the keyword flag ~x86 to x86 in genkernel 3.0.1 beta2 and bootsplash 0.6-r2. Also added bootsplash as a package in the stage1 spec file.
Patch with
# patch -p0 < patchfile |
|
Back to top |
|
|
Keyed Tux's lil' helper
Joined: 26 Jul 2002 Posts: 135 Location: Tennessee
|
Posted: Fri Jan 02, 2004 5:31 pm Post subject: |
|
|
Thanks for the information. I saw that some changes were needed further down after the environment was initialized but haven't got to play with it yet. This should sve me some time. _________________ Windows is not a virus: Viruses are well supported by their authors, are running on most systems, their program code is fast, compact and efficient and they tend to become more sophisticated as they mature. |
|
Back to top |
|
|
mepython n00b
Joined: 24 Jan 2003 Posts: 24
|
Posted: Fri Jan 02, 2004 8:48 pm Post subject: |
|
|
For livecd-stage1 snapshot file (example folder) does not contain key:
livecd-stage1/use. Make sure to add this key, otherwise livecd-stage1 won't work. livecd-stage2/use key might be needed in livecd-stage2 build. |
|
Back to top |
|
|
mepython n00b
Joined: 24 Jan 2003 Posts: 24
|
Posted: Fri Jan 02, 2004 10:03 pm Post subject: livecd-stage2 and genkernel |
|
|
If I want to use genkernel for livecd-stage2 kernel build, why does it require config file? Should it create automatically from genkernel? |
|
Back to top |
|
|
mepython n00b
Joined: 24 Jan 2003 Posts: 24
|
Posted: Fri Jan 02, 2004 10:50 pm Post subject: Strage problem in livecd-stage2 |
|
|
livecd-stage2 successfully emerge kernel source but than fail:
./catalyst -f x86-livecd-stage2-20031229.spec
spec file:
*************************************************************************
subarch: x86
version_stamp: 20031229
target: livecd-stage2
rel_type: default
rel_version: 1.4
snapshot: 20031229
source_subpath: default-x86-1.4/livecd-stage1-x86-20031229
boot/kernel: gentoo
boot/kernel/gentoo/sources: =sys-kernel/gentoo-dev-sources-2.6.0
boot/kernel/gentoo/config: /data/catalyst/mykernelconfig
***************************************************************************
error
**************************************************************************
>>> Regenerating /etc/ld.so.cache...
7G [ ok ] service dependencies...
>>> sys-kernel/gentoo-dev-sources-2.6.0 merged.
>>> clean: No packages selected for removal.
>>> Regenerating /etc/ld.so.cache...
7G [ ok ] service dependencies...
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
Unrecognized option "--kerneldir=/usr/src/linux"
catalyst: GRP build aborting due to error. |
|
Back to top |
|
|
Keyed Tux's lil' helper
Joined: 26 Jul 2002 Posts: 135 Location: Tennessee
|
Posted: Sat Jan 03, 2004 9:02 pm Post subject: |
|
|
Quote: | spec file:
*************************************************************************
subarch: x86
version_stamp: 20031229
target: livecd-stage2
rel_type: default
rel_version: 1.4
snapshot: 20031229
source_subpath: default-x86-1.4/livecd-stage1-x86-20031229
boot/kernel: gentoo
boot/kernel/gentoo/sources: =sys-kernel/gentoo-dev-sources-2.6.0
boot/kernel/gentoo/config: /data/catalyst/mykernelconfig
|
Thie first thing that I see that is wrong in your spec file and in the catalyst instructions also is:
Code: |
boot/kernel/gentoo/sources: =sys-kernel/gentoo-dev-sources-2.6.0
|
should be:
Code: |
boot/kernel/gentoo/sources: =sys-kernel/gentoo-dev-sources/gentoo-dev-sources-2.6.0
|
I initially had the same problem. I stuck to the gentoo-sources-2.4.22-r2 sources and the stable packages, with one exception so far. genkernel-3.0.1_beta2
Instead of changing the global flag to "x86", I tweaked the line in livecd-stage2.sh:
Code: | <-- emerge genkernel
++>ACCEPT_KEYWORDS="~x86" emerge genkernel
|
genkernel-3.0.1_beta2 is radically different than "1.8" and is needed for catalyst. It will solve the current failure you are having:
Quote: | * GNU info directory index is up-to-date.
Unrecognized option "--kerneldir=/usr/src/linux"
catalyst: GRP build aborting due to error.
|
Here is where I am at in livecd-stage2 at the moment:
Code: | >>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
GenKernel v3.0
* ARCH: x86
* KERNEL VER: 2.4.22-gentoo-r2
* kernel: configuring source
* kernel: running mrproper
* kernel: using config from /var/tmp/gentoo.config
* kernel: running oldconfig
yes: standard output: Broken pipe
yes: write error
* kernel: running clean
* kernel: Making dependencies for linux 2.4.22-gentoo-r2
* kernel: Starting compile of linux 2.4.22-gentoo-r2 make
* kernel: Starting compile of linux 2.4.22-gentoo-r2 modules
* Dietlibc: make
* gen_die(): compile of failed
catalyst: GRP build aborting due to error.
|
_________________ Windows is not a virus: Viruses are well supported by their authors, are running on most systems, their program code is fast, compact and efficient and they tend to become more sophisticated as they mature.
Last edited by Keyed on Sat Jan 03, 2004 10:46 pm; edited 1 time in total |
|
Back to top |
|
|
Keyed Tux's lil' helper
Joined: 26 Jul 2002 Posts: 135 Location: Tennessee
|
Posted: Sat Jan 03, 2004 10:44 pm Post subject: |
|
|
Here is an additional tidbit on where mine failed from the genkernel.log file:
Code: | * Dietlibc: make
COMMAND: make -j2 prefix=/tmp/diet
mkdir bin-i386
gcc -I. -Iinclude -pipe -nostdinc -Os -fomit-frame-pointer -falign-functions=1 -falign-jumps=1 -falign-loops=1 -mpreferred-stack-boundary=2 -Wall -W -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused -c i386/start.S -o bin-i386/start.o
Assembler messages:
FATAL: can't create bin-i386/start.o: No such file or directory
make: *** [bin-i386/start.o] Error 1
make: *** Waiting for unfinished jobs....
* gen_die(): compile of failed
|
I will probably continue on this later tonight or tomorrow. _________________ Windows is not a virus: Viruses are well supported by their authors, are running on most systems, their program code is fast, compact and efficient and they tend to become more sophisticated as they mature. |
|
Back to top |
|
|
mepython n00b
Joined: 24 Jan 2003 Posts: 24
|
Posted: Fri Jan 16, 2004 2:44 am Post subject: New catalyst package build 20040114 |
|
|
Get it and start testing, I will start doing it right away. |
|
Back to top |
|
|
mepython n00b
Joined: 24 Jan 2003 Posts: 24
|
Posted: Wed Feb 18, 2004 5:07 pm Post subject: catalyst 1.0 in ebuild system - Few issues |
|
|
/etc/catalyst.conf has wrong default path for sharedir, is should be
sharedir="/usr/lib/catalyst" and comment out envscript if you don't have one.
Do 755 chmod /usr/lib/catalyst/targets/stage{1,2,3}/*.sh, otherwise chroot will fail
On other note, do we need USE variable while building stage1, stage2 or stage3? |
|
Back to top |
|
|
kompressor Tux's lil' helper
Joined: 17 Apr 2003 Posts: 127 Location: Randolph, VT
|
Posted: Wed Mar 03, 2004 12:48 am Post subject: |
|
|
Im having an issue when trying to make my stage1 target. It complains about
'catalyst: Can't find envscript /root/catalyst-env.sh'
I cant find this script anywhere on my system. any ideas?
~kompressor |
|
Back to top |
|
|
gaz Tux's lil' helper
Joined: 12 Oct 2002 Posts: 126
|
Posted: Wed Mar 03, 2004 11:37 am Post subject: |
|
|
kompressor wrote: | Im having an issue when trying to make my stage1 target. It complains about
'catalyst: Can't find envscript /root/catalyst-env.sh'
I cant find this script anywhere on my system. any ideas?
~kompressor |
im having the same problem |
|
Back to top |
|
|
GenKiller n00b
Joined: 04 Mar 2003 Posts: 66 Location: United States of America
|
Posted: Wed Mar 03, 2004 12:29 pm Post subject: |
|
|
kompressor wrote: | Im having an issue when trying to make my stage1 target. It complains about
'catalyst: Can't find envscript /root/catalyst-env.sh'
I cant find this script anywhere on my system. any ideas?
~kompressor |
If you don't have a script you want to use, then comment out that line in /etc/catalyst.conf _________________ http://www.digital-drip.com |
|
Back to top |
|
|
gaz Tux's lil' helper
Joined: 12 Oct 2002 Posts: 126
|
Posted: Wed Mar 03, 2004 12:50 pm Post subject: |
|
|
cheers
right at the bottom where i didnt see it |
|
Back to top |
|
|
kompressor Tux's lil' helper
Joined: 17 Apr 2003 Posts: 127 Location: Randolph, VT
|
Posted: Wed Mar 03, 2004 3:10 pm Post subject: |
|
|
Thanx. that worked.
one more question. whats the differance between catalyst and livecd-ng? |
|
Back to top |
|
|
langthang Retired Dev
Joined: 27 Nov 2003 Posts: 620
|
Posted: Thu Mar 04, 2004 5:34 pm Post subject: |
|
|
Have anyone created a liveCD using catalyst? If you did, can you post the steps. The Catalyst Reference Manual stop at licecd-stage2. |
|
Back to top |
|
|
kompressor Tux's lil' helper
Joined: 17 Apr 2003 Posts: 127 Location: Randolph, VT
|
Posted: Fri Mar 05, 2004 1:43 am Post subject: |
|
|
langthang: the last 2 targets aren't implemented yet. Thus livecd's cannot
be made as of yet.
So far I just completed stage2. stage1 took me about 30 hours to make.
mainly because my internet is pathetic. and it needs to emerge things to
create these targets. I was in awe when I saw stage1 tarball was a mere 12
megs. |
|
Back to top |
|
|
kompressor Tux's lil' helper
Joined: 17 Apr 2003 Posts: 127 Location: Randolph, VT
|
Posted: Mon Mar 08, 2004 12:55 am Post subject: |
|
|
I have a problem building my livecd-stage1:
i used the sample livecd-stage1.spec file. told it what snapshot and stage3 tar
ball to use but. the catalyst commned finished executing but it didnt build
anything. There are no new tar balls in my builds directory. Any ideas?
Rick S. |
|
Back to top |
|
|
Clete2 Guru
Joined: 09 Aug 2003 Posts: 530 Location: Bloomington, Illinois
|
Posted: Mon Mar 08, 2004 2:36 am Post subject: |
|
|
Sweet, I will try later.
You CAN make an Enemy Territory or something CD, right?
(since gentoogames seems to be gone) _________________ My Blog |
|
Back to top |
|
|
langthang Retired Dev
Joined: 27 Nov 2003 Posts: 620
|
Posted: Sun Mar 14, 2004 9:06 pm Post subject: |
|
|
kompressor wrote: | I have a problem building my livecd-stage1:
i used the sample livecd-stage1.spec file. told it what snapshot and stage3 tar
ball to use but. the catalyst commned finished executing but it didnt build
anything. There are no new tar balls in my builds directory. Any ideas?
Rick S. |
after you finish livecd-stage1, you will have a driectory "[storedir]/tmp/default-x86-[rel_version]/livecd-stage1-[subarch]-[version_stamp]/". livecd-stage2 will uses it to build livecd-stage2. Do
Code: |
# cd [storedir]/builds/default-x86-[rel_version]/livecd-stage2-[subarch]-[version_stamp]
# /usr/lib/catalyst/livecd/isogen/x86-isogen.sh # to generate livecd ISO
|
have fun |
|
Back to top |
|
|
|