Arm Linux Kernel Hacks

rousalome.egloos.com

포토로그 Kernel Crash


통계 위젯 (화이트)

793
557
422266


[부록 C] 리눅스 커널 프로젝트에 기여하기: 설정 방법 - 리눅스 커널 소스코드 내려받기 부록

리눅스 커널 소스 코드를 수정하려면 최신 리눅스 커널 소스를 내려받아야 합니다. 
이를 위해 다음 명령어를 입력할 필요가 있습니다.

git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next

아래는 리눅스 터미널에서 리눅스 커널 소스 코드를 내려받기 위해 사용한 명령어입니다.

root@raspberrypi:/home/pi# mkdir kernel_src
root@raspberrypi:/home/pi# cd kernel_src
root@raspberrypi:/home/pi/kernel_src# git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next

Cloning into 'linux-next'...
remote: Sending approximately 1.32 GiB ...
remote: Counting objects: 13164, done
remote: Finding sources: 100% (7076597/7076597)
remote: Total 7076597 (delta 5964592), reused 7076255 (delta 5964592)
Receiving objects: 100% (7076597/7076597), 1.31 GiB | 10.35 MiB/s, done.
Resolving deltas: 100% (5964592/5964592), done.
Checking connectivity... done.
Checking out files: 100% (65459/65459), done.

이렇게 kernel_src 디렉토리를 생성한 후 해당 디렉토리에 이동해 소스를 내려 받았습니다.

소스를 다 내려 받고 나면 linux-next 폴더가 생성됐음을 확인할 수 있습니다. 

root@raspberrypi:/home/pi/kernel_src# ls
linux-next

이어서 linux-next 디렉토리에 이동해 커밋을 확인해볼까요?

root@raspberrypi:/home/pi/kernel_src# cd linux-next/
root@raspberrypi:/home/pi/kernel_src/linux-next# git log
commit 5d18cb62218608a1388858880ad3ec76d6cb0d3b
Author: Stephen Rothwell <sfr@canb.auug.org.au>
Date:   Wed Aug 28 19:59:14 2019 +1000

    Add linux-next specific files for 20190828

    Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>

이렇게 커밋 정보를 볼 수 있습니다.

참고로, 세부 커밋 정보는 다음 사이트에서 확인할 수 있습니다.
https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next/

리눅스 커널에서는 세부 서브 시스템별로 git을 운영합니다. 이 정보를 확인하려면 다음 사이트에 접속하면 됩니다.

https://kernel.googlesource.com/pub/scm/linux/kernel/git/


"혹시 궁금한 점이 있으면 댓글로 질문 남겨주세요. 아는 한 성실히 답변 올려드리겠습니다!" 

Thanks,
Austin Kim(austindh.kim@gmail.com)


[부록 A] GCC 지시어
   * inline    
   * noinline    
   * __noreturn   
   * unused   
[부록 B] 리눅스 커널 실력을 키우는 방법
[부록 C] 리눅스 커널 프로젝트에 기여하기  
C.1 리눅스 커널 오픈소스 프로젝트 소개 
   * 용어  
C.2 설정 방법 
C.3 패치 코드를 작성한 후 이메일로 보내기  
C.5 리눅스 커널 오픈소스 프로젝트로 얻는 지식 


# Reference: For more information on 'Linux Kernel';

디버깅을 통해 배우는 리눅스 커널의 구조와 원리. 1

디버깅을 통해 배우는 리눅스 커널의 구조와 원리. 2


 



핑백

덧글

댓글 입력 영역