Page 1 of 2

missing files in 007-devel.xzm

Posted: 15 Jul 2011, 09:48
by bour59
hello,
after activating 007-devel.xzm
/usr/src is empty that should contains linux-2.6.38 (System.map ... and others ) (about 40k in .09)
maybe a complement in ponce- porteus/i486/ ?
thanks

Re: missing files in 007-devel.xzm

Posted: 15 Jul 2011, 09:53
by Hamza
Bonjour,

To be sure that your version is complete, please do these steps

1)
Check the md5sum of your initial ISO

2)
Execute the chkbase.sh

3)
Check if there is any symlink or files in /usr/src/linux

Cordialement,

Re: missing files in 007-devel.xzm

Posted: 15 Jul 2011, 10:13
by bour59
@hamza
1/ ckksum for iso is ok
2/chkbase.sh says md5sum for /base/007-devel.xzm is ok
3/ usr/src is empty

Re: missing files in 007-devel.xzm

Posted: 15 Jul 2011, 10:29
by Hamza
Hi,

You were right,
I just tested myself, looks like something is wrong.

I will give you a link to download "stripped" source of kernel. but you won't be able to compile a kernel from it.

What do you want to do with kernel source ?

crippled_sources-porteus-v1.0-i486.xzm

I sent a PM to main developpers to inform them about this problem.

Cheers,

Re: missing files in 007-devel.xzm

Posted: 15 Jul 2011, 20:15
by brokenman
/usr/src/linux is a link pointing to the sources in the same folder. These sources do not exist in vanilla ... only in crippled sources, therefore the symlink is packed along with the sources. You can create your own symlink in /usr/src if you wish.

Re: missing files in 007-devel.xzm

Posted: 16 Jul 2011, 08:37
by bour59
@hamza
I have to create external modules in /lib/modules/.../extra
as described in slackware
to do this the "make" uses the .config of /usr/src/linux
that I found easyly in remix .. porteus v.09
but that I can't find in porteus v1.0 due to /usr/src is empty.
sorry for the late response
for others needs I have to find entry points in System.map

@brokenman
what can I do with a symbolic link pointing to a directory that don't exist ?
I will try to activate the crippled.. and see if I can install my extra .ko files

Re: missing files in 007-devel.xzm

Posted: 16 Jul 2011, 15:34
by Ahau
Download and activate the crippled sources module. this will inject the kernel headers into /usr:src.

to load the configs, you need to modprobe them:

modprobe configs && zcat /proc/config.gz > .config

Re: missing files in 007-devel.xzm

Posted: 16 Jul 2011, 15:39
by Hamza
Great idea Ahau!

but, it doesn't need to install the crippled sources to have the config file.

You can use this command in terminal without install crippled sources

Code: Select all

modprobe configs && zcat /proc/config.gz > .config
That is normal, because, the "configs" modules have been built with the kernel.
This module save the config in its memory, and you don't need the sources to have the kernel config.

Cheers!

Re: missing files in 007-devel.xzm

Posted: 16 Jul 2011, 15:57
by Ahau
yes, Hamza, of course you are correct -- my apologies for being overly terse (I'm posting from my phone). I was trying to answer both questions (populating /usr/src/linux, and finding the kernel configs), and did not specify that the two can be done separately.

Cheers!

Re: missing files in 007-devel.xzm

Posted: 16 Jul 2011, 16:31
by Hamza
No Problem!

Re: missing files in 007-devel.xzm

Posted: 16 Jul 2011, 22:27
by brokenman
what can I do with a symbolic link pointing to a directory that don't exist ?
Not a hell of alot ... but obviously i didn't mean for you to point it to a non existing directory. Perhaps usr/include/linux would help, but i don't know what you end goal is. Easiest thing is to use the crippled sources ... but even these may not be enough for some jobs.

Re: missing files in 007-devel.xzm

Posted: 20 Jul 2011, 09:27
by bour59
thanks to all
I can now recreate my own external kernel modules by two ways :
1st : activate crippled (sorry but I don't know it was sources)
2st : buidd the kernel to recreate the "missing" (excellent build kernel in documentation from fanthom)

Re: missing files in 007-devel.xzm

Posted: 20 Jul 2011, 09:32
by Hamza
Topic Solved?

Re: missing files in 007-devel.xzm

Posted: 20 Jul 2011, 11:44
by bour59
@hamza yes indeed
may be an explain of what is "crippled" in a part of the doc( if don' t exists)

Re: missing files in 007-devel.xzm

Posted: 20 Jul 2011, 11:55
by Hamza
A Crippled Sources is an archive with all important files only, all unnecessary files have been removed to have the smallest archive size. That is why we says "Crippled Sources".

Regards,