You are not logged in.

#1 2012-08-22 19:01:49

burninate
Member
Registered: 2012-07-28
Posts: 22

[SOLVED] Where can I browse the Arch kernel source?

I tried to look for the kernel source code under /usr/src/linux-3.4.9-1-ARCH but there's only a binary file (an image?) vmlinuz in there. I wanted to look for drivers concerning usb for fun, but I can't seem to find the excact location of the kernel source code.

Last edited by burninate (2012-08-25 09:48:56)

Offline

#2 2012-08-22 19:07:32

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [SOLVED] Where can I browse the Arch kernel source?

I think arch uses a vanilla kernel with only a patch that can be found here:

https://projects.archlinux.org/svntogit … ages/linux

Offline

#3 2012-08-22 19:14:13

burninate
Member
Registered: 2012-07-28
Posts: 22

Re: [SOLVED] Where can I browse the Arch kernel source?

Soo, I can't browse the kernel source code on my system then?

Offline

#4 2012-08-22 19:22:12

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,095
Website

Re: [SOLVED] Where can I browse the Arch kernel source?

burninate wrote:

Soo, I can't browse the kernel source code on my system then?

On my system, /usr/src/linux-3.4.9-1-ARCH/kernel/ appears to have the browsable source. I was under the impression that that was pretty standard, but I am not actually sure, so if that's not on your rig, I am unsure of where you'd go.

All the best,

-HG

Offline

#5 2012-08-22 19:25:31

SidK
Member
Registered: 2011-03-03
Posts: 116

Re: [SOLVED] Where can I browse the Arch kernel source?

Sure you can, but it'll pretty much be the same as if you downloaded the code from kernel.org. You can use makepkg and the ABS to easily get the source and Arch's patch(es) on your computer.

Edit: If you have linux-headers installed, then the path HalosGhost refers to has the headers, not the full source

Last edited by SidK (2012-08-22 19:29:08)

Offline

#6 2012-08-22 22:44:40

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,375

Re: [SOLVED] Where can I browse the Arch kernel source?

If you are looking for a device driver you can type modinfo <module> and it will give the path that you can expect to find it.
If you want the C source for the kernel, most likely you will have to download the entire kernel from kernel.org and for the package to be manageable ABS would be a good choice.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#7 2012-08-22 23:34:22

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,254

Re: [SOLVED] Where can I browse the Arch kernel source?

Since 89c51 has already pointed you at the source for the patch, the rest of the kernel source can be gotten from kernel.org in it's entirety. Happy browsing.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#8 2012-08-25 03:30:52

Arctus
Member
Registered: 2012-07-14
Posts: 99

Re: [SOLVED] Where can I browse the Arch kernel source?

An easy way to view it is:

pacman -S abs (If ABS is not already installed).
sudo abs
cp -r /var/abs/core/linux/ linux
cd linux
makepkg --nobuild

Offline

#9 2012-08-25 09:48:39

burninate
Member
Registered: 2012-07-28
Posts: 22

Re: [SOLVED] Where can I browse the Arch kernel source?

Thanks! I'm now happy browsing the kernel code.

Offline

Board footer

Powered by FluxBB