Page 1 of 1

[Solved]How to build the kernel 3.4.4(Portues v1.20)?

Posted: 01 Oct 2012, 10:10
by kata930
When I'm using Porteus v1.10, I could build the kernel using Porteus-v1.1-kernel-patches_config-i486.tar.gz.

Now, I'm trying to use v1.20.
I want to build the kernel of Porteus v1.20, but there is no kernel-patches for v1.2.

I found the file,crippled_sources-porteus-v1.2-i486-1ftm.xzm.
It includes part of kernel source. But I did not understand how to use it.


Please advise!

Re: How to build the kernel 3.4.4(Portues v1.20)?

Posted: 01 Oct 2012, 13:53
by Hamza
This should be better to use original from kernel.org and uses kernel config from crippled sources or from Porteus.

Re: How to build the kernel 3.4.4(Portues v1.20)?

Posted: 01 Oct 2012, 21:08
by fanthom
When I'm using Porteus v1.10, I could build the kernel using Porteus-v1.1-kernel-patches_config-i486.tar.gz.
since Porteus-v1.2 all patches + kernel config are included directly in crippled_sources module in "Porteus-patches" folder.
this way there is no need for providing separated archive.

please grab them from there.

Re: How to build the kernel 3.4.4(Portues v1.20)?

Posted: 02 Oct 2012, 06:27
by kata930
Hi fanthom san,

Thank you for the comment.
I found the patches and kernel config.
I could build kernel 3.4.4, and get bzImage.

Re: [Solved]How to build the kernel 3.4.4(Portues v1.20)?

Posted: 02 Oct 2012, 06:56
by kata930
Hi Hamza san,

Yes, I know kernel.org, I usually use kernel.org ftp when I build kernel.

Anyway, thank you for the comment.

Re: [Solved]How to build the kernel 3.4.4(Portues v1.20)?

Posted: 14 Nov 2012, 08:24
by Spice_Boy
I'm still stuck with this.

I'm trying to build a kernel module for a DVB TV adapter as shown here:
http://xgazza.altervista.org/Linux/DVB/af9035.html

I get an error when I try to make it.
I got what I thought were the kernel headers from here:

http://ponce.cc/porteus/i486/current/pa ... 6-1ftm.xzm

But still, when I try to compile I get this:

make -C /usr/src/linux-headers-`uname -r` SUBDIRS=/mnt/sda1/programs/dvb/AF9035_xgaz_3.0.0 modules
make: *** /usr/src/linux-headers-3.4.4-porteus: No such file or directory. Stop.
make: *** [default] Error 2

This kernel stuff is new to me, so what might be clear to others isn't too clear to me. I'm just trying to get a TV adapter working.

Any help?
Thanks.

Re: [Solved]How to build the kernel 3.4.4(Portues v1.20)?

Posted: 14 Nov 2012, 08:53
by fanthom
the message is pretty straight forward:

Code: Select all

/usr/src/linux-headers-3.4.4-porteus: No such file or directory
please run

Code: Select all

ln -s /usr/src/linux /usr/src/linux-headers-3.4.4-porteus
and check if that helps.

Re: [Solved]How to build the kernel 3.4.4(Portues v1.20)?

Posted: 14 Nov 2012, 09:49
by Spice_Boy
Hey, that got me further, thanks.

The problem I am left with is that this kernel module I'm trying to build is for a 64bit system, whereas mine is only 32. I guess that's the end of that then. (If I understood this next error correctly)

/mnt/sda1/programs/dvb/AF9035_xgaz_3.0.0/mxl5007t.c:1:0: error: code model âkernelâ not supported in the 32 bit mode
/mnt/sda1/programs/dvb/AF9035_xgaz_3.0.0/mxl5007t.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [/mnt/sda1/programs/dvb/AF9035_xgaz_3.0.0/mxl5007t.o] Error 1
make[1]: *** [_module_/mnt/sda1/programs/dvb/AF9035_xgaz_3.0.0] Error 2
make[1]: Leaving directory `/mnt/sda1/programs/dvb/linux-3.4.4'
make: *** [default] Error 2