Build an embedded Linux distro from scratch 무 에서 유 를 창조 하 는 리 눅 스 패키지 3 구축 커 널
http://www.ibm.com/developerworks/linux/tutorials/l-embedded-distro/section4.html
Building the kernel
Downloading the source
Download Technologic's Linux source and TS-7800 configuration files and unzip them in a suitable location.
원본 파일 다운로드
Technologic 의 Linux 원본 파일 과 TS-7800 프로필 을 다운로드 하여 적당 한 위치 로 압축 을 풀 수 있 습 니 다.
Kernel configuration
A complete discussion of kernel configuration is beyond the scope of this tutorial. In this case, the
ts7800_defconfig target gave me a default usable configuration for the 7800, with one small hiccup: the CONFIG_DMA_ENGINE setting ended up off when it should have been on. 커 널 설정
커 널 설정 에 대한 완전한 토론 은 본 튜 토리 얼 의 범 위 를 넘 어 섰 다.이 실례 에서 ts 7800defconfig 는 7800 에 기본 사용 가능 한 설정 을 보 여 주 었 습 니 다.안에 작은 문제 가 있 습 니 다:CONFIGDMA_ENGINE 설정 이 열 려 야 하 는데 사실상 닫 혔 습 니 다.
Tweaking the kernel
It is usually best to edit the kernel using
make menuconfig , which offers a semi-graphical interface to kernel configuration. This interface is navigated using arrow keys to move the cursor, theTab key to select options from the bottom of the screen, and the space orEnter keys to select options. For instance, to exit without changing anything, pressTab until the make menuconfig again reopens the editor. 내 핵 을 조정 하 다
일반적으로 커 널 편집 은 make menuconfig 를 사용 하 는 것 이 좋 습 니 다.커 널 설정 에 반 도형 화 된 인 터 페 이 스 를 제공 합 니 다.이 인 터 페 이 스 는 화살표 키 로 커서 를 이동 시 켜 내 비게 이 션 을 합 니 다.Tab 키 는 화면 아래쪽 에 있 는 옵션 을 선택 하고 빈 칸 이나 Enter 키 로 옵션 을 선택 합 니 다.예 를 들 어 어떠한 수정 도 하지 않 고 종료 하기 위해 Tab 키 를 누 르 면 화면 아래쪽 의
Changing the default console
The TS-7800 normally boots silently, because the default kernel configuration specifies a null console device to keep the display quiet. To change this, use the arrow keys to navigate down to "Boot options," and pressEnter. The third line shows the default kernel options, which select the ramdisk, the startup script, and the console. Use the arrow keys to navigate down to this line, pressEnter, and change
console none to console ttyS0,115200 . Then, pressTab to move the cursor to the For the goal of booting as fast as possible, the console device isn't useful, and indeed, even at a high baud rate, sending kernel messages can take a noticeable fraction of the time the system takes to boot. For debugging and playing around, though, you want the console.
기본 콘 솔 변경
일반적으로 TS-7800 이 시 작 될 때 는 조용 합 니 다.기본 커 널 설정 은 디 스 플레이 가 조용 하도록 null 콘 솔 장 치 를 지정 하기 때 문 입 니 다.이 점 을 바 꾸 려 면 화살표 키 를 사용 하여'Boot options'로 내 비게 이 션 하고 Enter 키 를 누 르 십시오.세 번 째 줄 은 기본 커 널 옵션 을 보 여 줍 니 다.ramdisk 를 선택 하고 스 크 립 트 를 시작 하 며 콘 솔 도 있 습 니 다.화살표 키 를 사용 하여 이 줄 로 탐색 하고 Enter 키 를 누 르 면 console none 을 console ttyS 0,115200 으로 변경 합 니 다.이후 Tab 키 를 눌 러 제어 판 밑 에 있 는
가능 한 한 빨리 작 동 하 는 목 표를 위해 콘 솔 장 치 는 유용 하지 않 으 며,확실히 높 은 포트 율 을 설정 하 더 라 도 시스템 이 작 동 하 는 시간 에 커 널 정 보 를 보 내 는 데 상당 한 시간 이 걸 릴 것 이다.디 버 깅 을 하거나 놀 려 면 콘 솔 이 필요 할 것 이다.
Enabling the DMA engine
Navigate down to "Device drivers" and press Enter. This list is longer than the usual display, so you will have to scroll down to the very end to reach the option for "DMA Engines." Navigate to that with the arrow keys, and pressEnter. There are two options at the top of this page that have square brackets indicating a boolean option. The second, "Support for DMA engines," was not enabled by default in the download I started with. Navigate to it with the arrow keys, and press space to toggle its state. Now use Tab and Enter to select
DMA 엔진 오픈
"Device Drivers"로 탐색 하고 Enter 키 를 누 르 십시오.표 시 된 목록 이 길 기 때문에 끝까지 내 려 가 야'DMA Engines'옵션 에 도달 할 수 있 습 니 다.화살표 키 를 사용 하여 이 옵션 으로 탐색 하고 Enter 를 누 르 십시오.이 페이지 의 맨 위 에 두 개의 옵션 이 있 고 괄호 가 있 습 니 다.이것 은 옵션 이 불 형 임 을 표시 합 니 다.두 번 째,"Support for DMA engines"는 기본적으로 켜 지지 않 았 습 니 다.화살표 키 를 사용 하여 탐색 하고 스페이스 바 를 누 르 면 상 태 를 반전 시 킵 니 다.현재 Tab 과 Enter 키 를 사용 하여 디 스 플레이 에 있 는
Compiling the kernel
Type
make . Yes, it really is that simple. This builds a kernel, as well as a collection of modules. Once again, multi-core users might want multiple jobs; try make -j 5 . For the purposes of this project, I'm going to ignore kernel modules, and favor compiling-in any needed features. The bootstrap ramdisk technique used to get needed drivers into the kernel early seems excessive, and building a root file system is already complicated enough. This, of course, brings up the question of how to get a kernel booting, the subject of the next section. 컴 파일 커 널
make 를 입력 하 십시오.네,그렇게 간단 해 요.이것 은 커 널 과 각 모듈 의 집합 을 구축 할 것 이다.다시 한 번,다 중 핵 사용 자 는 여러 작업 을 원 할 수도 있 습 니 다.make 해 봐.-j 5.이 프로젝트 의 목적 에 있어 서 나 는 커 널 의 모듈 을 무시 하고 커 널 에 필요 한 모든 특성 을 컴 파일 하 는 데 중심 을 둘 것 이다.필요 한 구동 을 커 널 에 넣 는 boottstrap ramdisk 기술 이 좀 많아 보이 고 루트 file system 을 구축 하 는 것 만으로 도 충분히 복잡 하 다.물론 커 널 을 어떻게 작 동 시 키 느 냐 가 다음 절 주제 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.