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

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
Post Reply
User avatar
kata930
White ninja
White ninja
Posts: 15
Joined: 31 Mar 2011, 05:32
Location: Japan

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

Post#1 by kata930 » 01 Oct 2012, 10:10

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!
Last edited by kata930 on 02 Oct 2012, 06:33, edited 1 time in total.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

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

Post#2 by Hamza » 01 Oct 2012, 13:53

This should be better to use original from kernel.org and uses kernel config from crippled sources or from Porteus.
NjVFQzY2Rg==

User avatar
fanthom
Site Admin
Site Admin
Posts: 4623
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

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

Post#3 by fanthom » 01 Oct 2012, 21:08

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.
Please add [Solved] to your thread title if the solution was found.

User avatar
kata930
White ninja
White ninja
Posts: 15
Joined: 31 Mar 2011, 05:32
Location: Japan

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

Post#4 by kata930 » 02 Oct 2012, 06:27

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.

User avatar
kata930
White ninja
White ninja
Posts: 15
Joined: 31 Mar 2011, 05:32
Location: Japan

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

Post#5 by kata930 » 02 Oct 2012, 06:56

Hi Hamza san,

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

Anyway, thank you for the comment.

Spice_Boy
White ninja
White ninja
Posts: 6
Joined: 11 Mar 2011, 22:04
Location: Country

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

Post#6 by Spice_Boy » 14 Nov 2012, 08:24

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.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4623
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

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

Post#7 by fanthom » 14 Nov 2012, 08:53

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.
Please add [Solved] to your thread title if the solution was found.

Spice_Boy
White ninja
White ninja
Posts: 6
Joined: 11 Mar 2011, 22:04
Location: Country

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

Post#8 by Spice_Boy » 14 Nov 2012, 09:49

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

Post Reply