Kernel build

Development on core packages and the distribution goes on in here.

Kernel build

Postby aaddame » Sun Nov 18, 2012 4:40 pm

I want to build a new kernel, because I want to include a module that is missing (ata over ethernet)
I cd to /usr/src/linux-3.5.7-4-ARCH+
Run makemenuconfig to enable the module
Than run make uImage
This gives me the following error:

[root@alarmcubox linux-3.5.7-4-ARCH+]# make uImage
CHK include/linux/version.h
CHK include/generated/utsrelease.h
scripts/Makefile.build:44: /usr/src/linux-3.5.7-4-ARCH+/arch/arm/tools/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.5.7-4-ARCH+/arch/arm/tools/Makefile'. Stop.
make: *** [archprepare] Error 2
aaddame
 
Posts: 4
Joined: Sun Nov 18, 2012 4:37 pm

Re: Kernel build

Postby xenoxaos » Mon Nov 19, 2012 3:32 am

By the hostname, I'll assume you're wanting to do this on the Cubox.

First clone the PKGBUILDs git repo https://github.com/archlinuxarm/PKGBUILDs.git
Go into core/linux-cubox and change the config file, the makepkg with the new config.
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Kernel build

Postby aaddame » Sun Nov 25, 2012 11:29 am

Done that.
Now i get :

[root@alarmcubox linux-cubox]# makepkg --asroot
==> ERROR: linux-cubox is not available for the 'armv7h' architecture.
Note that many packages may need a line added to their PKGBUILD
such as arch=('armv7h').
aaddame
 
Posts: 4
Joined: Sun Nov 18, 2012 4:37 pm

Re: Kernel build

Postby aaddame » Sun Nov 25, 2012 11:33 am

Solved the previous by adding the required architecture (armv7h)
Now I get:

[root@alarmcubox linux-cubox]# makepkg --asroot
==> Making package: linux-cubox 3.5.7-5 (Sun Nov 25 12:31:31 CET 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found config
-> Found change-default-console-loglevel.patch
-> Downloading cryptodev-linux-1.4.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 49601 100 49601 0 0 242k 0 --:--:-- --:--:-- --:--:-- 284k
-> Found dovefb_patch1.patch
-> Found dovefb_patch2.patch
==> Validating source files with md5sums...
config ... FAILED
change-default-console-loglevel.patch ... Passed
cryptodev-linux-1.4.tar.gz ... Passed
dovefb_patch1.patch ... Passed
dovefb_patch2.patch ... Passed
==> ERROR: One or more files did not pass the validity check!

Looks like config failed becuase I made a change to it!!!!!
aaddame
 
Posts: 4
Joined: Sun Nov 18, 2012 4:37 pm

Re: Kernel build

Postby hydro » Sun Nov 25, 2012 1:20 pm

$this->bbcode_second_pass_code('', '
makepkg -g >> PKGBUILD
')
Then replace the md5sums array with the one that got appended.
Btw. You don't have to run makepkg as root. Checkout git as unprivileged user or copy core/linux-cubox to some directory you can access.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Kernel build

Postby aaddame » Sun Nov 25, 2012 6:10 pm

Found another way to do this.

Edit PKGBUILD and change
$this->bbcode_second_pass_code('', '# load configuration
# Configure the kernel. Replace the line below with one of your choice.
#make menuconfig # CLI menu for configuration
#make nconfig # new CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
')
to $this->bbcode_second_pass_code('', '# load configuration
# Configure the kernel. Replace the line below with one of your choice.
make menuconfig # CLI menu for configuration
#make nconfig # new CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
')
(or any of the other make config statements)
aaddame
 
Posts: 4
Joined: Sun Nov 18, 2012 4:37 pm


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 6 guests