Page 1 of 2

kernelive how to?

Posted: 13. Mar 2010, 21:12
by linus72
Just wonderin how exactly I use the kernel live pkg??

I am learning compiling and this interests me alot as I wanna make livecd too
all my PC's are K8's so I wanna make K8 kernel with livecd features

I was looking in the rc2's /usr/src and found the kernelive folder

What is the procedure?

I tried instaling kernelive from repo here
http://enialis.net/~jrd/salix/kernelive ... 6.smp-1cp/

however
kinda stuck at where to start??

thanks

Re: kernelive how to?

Posted: 14. Mar 2010, 01:32
by linus72
OK

so, progress at least...

I started by doing
make all

in kernel source and it did that....

then I did slkbuild
and it started running this time
as I had to change "i486" in slkbuild to "x86"
I think I should have made it "i386" ???

I had to change it cause there was no i486 folder
just a x86 and a i386 with symlink to x86 inside

anyway, the kernel was successful and I am running off it now

BUT
theres no aufs folder in my /lib/modules/2.6.29.6-smp folder???

I cant run LLS 6.3.0 without aufs
It says in kernelive txt that it makes a aufs kernel

what gives?

Re: kernelive how to?

Posted: 14. Mar 2010, 11:30
by JRD
How to compile the kernelive ?

First, the kernelive has been tested with kernel 2.6.29.6, the version of Slackware 13.0. patches should be adpapted for any further kernel version.

- Run any Linux distro. Install the kernel-source and headers packages. (slapt-get -i kernel-source kernel-headers with Salix if you want to compile the kernel live with the same version) or get the kernel source from kernel.org and put it in /usr/src/

- Get all files from http://enialis.net/~jrd/salix/kernelive ... 6.smp-1cp/, you can put this files wherever you want.
If you're running a kernel version different from the version you want to compile this kernel live, I strongly suggest to use my fake-uname package (http://enialis.net/~jrd/salix/fake-unam ... oarch-1cp/) and adjust the kernel version accordingly (here 2.6.29.6-smp)

Once you get all this, the only thing to do is running the SLKBUILD (with slkbuild binary) :

Code: Select all

slkbuild -X
[quote=linus72]BUT
theres no aufs folder in my /lib/modules/2.6.29.6-smp folder???[/quote]
Normal, aufs is not compiled as module but staticaly.

Re: kernelive how to?

Posted: 14. Mar 2010, 12:11
by linus72
Thanks much JRD

However
doesn't LLS 6.3.0 need aufs as module?

I tried running LLS on my salixos install running from kernel kernelive made
it conked out saying no aufs modules in /lib/modules

How do you get around this to make salix live??

Thanks for all your knowledge brother 8-)

Re: kernelive how to?

Posted: 15. Mar 2010, 03:39
by laprjns
linus72,
I try building kernellive using JRD's slkbuild and got the same error that you got

Code: Select all

########################################
Cloning /usr/src/linux-2.6.29.6...
########################################
Makefile:529: /home/rich_2/kernelive/enialis.net/~jrd/salix/kernelive/2.6.29.6.smp-1cp/src/linuxsrc/arch/i486/Makefile: No such file or directory
make: *** No rule to make target `/home/rich_2/kernelive/enialis.net/~jrd/salix/kernelive/2.6.29.6.smp-1cp/src/linuxsrc/arch/i486/Makefile'.  Stop.
Line 539 of the src/linuxsc/Makefile set this path based on the value of SRCARCH, which is turn is set by some logic at the top of the Makefile based on the value of ARCH. If ARCH is set to i386, then the path would be src/linuxsrc/arch/x86/Makefile. Which is valid path. In this logic, there is no test if the ARCH is set to i486, so the result is that SRCARCH is set to i486 and therefore you get the incorrect path of /src/linuxsrc/arch/i486/Makefile. So were is ARCH set to i486? In SLKBUILD
Just change the ARCH=i486 in SLKBUILD to ARCH=i386 and the build proceeds without problems. Or at least until stopped it.

Re: kernelive how to?

Posted: 15. Mar 2010, 11:15
by linus72
Thanks you much laprjns

It did work yesterday and I edited it to say "x86"

and as you say i386 also works

My problem is that I need aufs as a module
to use LinuxLiveScripts 6.3.0

I tried it yesterday but failed to boot...sad

I can use the default slax kernel/modules/firmware
but it 2.6.27.27
and I wanna use slack's kernel; 2.6.29.6-smp

according to JRD; the slkbuild is supposed to do its thing auto
maybe he caan explain why its set to i486 and how to get it to work...?

oh, how would I make a i486 folder in /usr/src/kernel/arch ?
I tried using 486 in config and it didnt make a i486 folder
so I dont know why/how the script goes looking for it

Re: kernelive how to?

Posted: 15. Mar 2010, 12:21
by JRD
I have no time for now and I'm at work. I promise to answer all this tonight after checking.

Re: kernelive how to?

Posted: 15. Mar 2010, 12:36
by linus72
Thanks brother
i dig your busy

I'm chillin till then and checking out New Salix Live i got last night
salixlive-13.0-20100314

very nice:)

I'll be puttin it thru some rigors till you get back.....I got a spare partition somehwree...

Re: kernelive how to?

Posted: 21. Mar 2010, 16:15
by JRD
laprjns wrote:Just change the ARCH=i486 in SLKBUILD to ARCH=i386 and the build proceeds without problems. Or at least until stopped it.
Yes, my mistake when I commited the SLKBUILD in svn and in the package itself. Should be i386. i486 could be used too but need a patch to the Kernel Makefile.

Re: kernelive how to?

Posted: 21. Mar 2010, 18:36
by linus72
thamks JRD
but; how do I get LLS 6.3.0 to work if aufs is * kernel instead of module?

it goes lookin for /lib/modules/*/aufs.ko

How do you make salixlive via Linux Live without aufs module?
thanks