How to compile new kernel?

Discussion about U-Boot and the kernel.

How to compile new kernel?

Postby xanb » Sun Dec 08, 2013 9:42 pm

Are the instructions [1] [2] provided in general archlinux wiki aplicable for ARM?

I have raspberrypi.
How can I do for compiling kernel with PaX patches for example?

Thanks in advance,
Xan

[1] https://wiki.archlinux.org/index.php/Ke ... ild_System
[2] https://wiki.archlinux.org/index.php/Ke ... raditional
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: How to compile new kernel?

Postby WarheadsSE » Sun Dec 08, 2013 10:10 pm

The PKGBUILD is on our github. It is well commented.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to compile new kernel?

Postby xanb » Mon Dec 09, 2013 9:01 am

Can you provide some information? How to compile it? What's the difference between "normal" archlinux and "arm"?. Please, be more explicit. I'm a begginer with all of stuff.

Thanks,
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: How to compile new kernel?

Postby moonman » Mon Dec 09, 2013 10:42 am

Research PKGBUILD and makepkg in ArchWiki then take a look at the PKGBUILDs that we have and you will understand.

https://github.com/archlinuxarm/PKGBUIL ... aspberrypi
https://github.com/archlinuxarm/PKGBUIL ... ypi-latest

You will need to checkout our github repo, then modify the PKGBUILD files to your liking.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: How to compile new kernel?

Postby xanb » Fri Dec 13, 2013 8:06 am

I don't understant yet.

Is there any tutorial? I searched in your references but I considered difficult. I searched in google and in forums and I found nothing. Can anyone please put the steps I have to follow to compile new kernel for Raspberrypi?

Thanks,
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: How to compile new kernel?

Postby pepedog » Fri Dec 13, 2013 7:57 pm

On a raspberry pi
Try to put rootfs on hard drive, find out how make swap file
pacman -Syu
sync
reboot
pacman -S dase-devel git
git clone https://github.com/archlinuxarm/PKGBUILDs.git
cd core/linux-raspberrypi
Get your patches, edit PKGBUILD, gen the mdsums with makepkg -g and edit PKGBUILD to put in
Now make kernel pkg with
makepkg -Acs
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: How to compile new kernel?

Postby xanb » Mon Dec 16, 2013 12:09 pm

Thank you. A lot of work.

Another question: why in archarm there is no linux-lts package? I want to make my raspberrypi server and linux-lts package fits more properly here.

Thanks,
Xan
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: How to compile new kernel?

Postby WarheadsSE » Mon Dec 16, 2013 2:44 pm

For that, don't use linux-raspberrypi-latest, but just linux-raspberrypi.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to compile new kernel?

Postby xanb » Mon Dec 16, 2013 5:24 pm

[url="http://elinux.org/Rpi_kernel_compilation"]Here[/url] it's a generic tutorial
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 10 guests