← Documents Documentation/arch/powerpc/mpc52xx.rst GitHub 원문 ↗

Linux 6.18.37 · Architecture

Linux 2.6.x on MPC52xx Family

Lite5200용 U-Boot·DBug build와 boot 명령, port 이름과 지원 범위를 정리합니다.

Source pathDocumentation/arch/powerpc/mpc52xx.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

mpc52xx.rst:1-43

MPC52xx 문서는 legacy `ARCH=ppc` tree에서 `lite5200_defconfig`로 U-Boot용 `uImage` 또는 DBug용 initrd image를 만드는 절차를 보존합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 =============================
2 Linux 2.6.x on MPC52xx family
3 =============================
4
5 For the latest info, go to https://www.246tNt.com/mpc52xx/
6
7 To compile/use :
8
9 - U-Boot::
10
11 # <edit Makefile to set ARCH=ppc & CROSS_COMPILE=... ( also EXTRAVERSION
12 if you wish to ).
13 # make lite5200_defconfig
14 # make uImage
15
16 then, on U-boot:
17 => tftpboot 200000 uImage
18 => tftpboot 400000 pRamdisk
19 => bootm 200000 400000
20
21 - DBug::
22
23 # <edit Makefile to set ARCH=ppc & CROSS_COMPILE=... ( also EXTRAVERSION
24 if you wish to ).
25 # make lite5200_defconfig
26 # cp your_initrd.gz arch/ppc/boot/images/ramdisk.image.gz
27 # make zImage.initrd
28 # make
29
30 then in DBug:
31 DBug> dn -i zImage.initrd.lite5200
32
33
34 Some remarks:
35
36 - The port is named mpc52xxx, and config options are PPC_MPC52xx. The MGT5100
37 is not supported, and I'm not sure anyone is interested in working on it
38 so. I didn't took 5xxx because there's apparently a lot of 5xxx that have
39 nothing to do with the MPC5200. I also included the 'MPC' for the same
40 reason.
41 - Of course, I inspired myself from the 2.4 port. If you think I forgot to
42 mention you/your company in the copyright of some code, I'll correct it
43 ASAP.
44

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

MPC52xx family의 Linux 2.6.x

1-6

MPC52xx port의 최신 정보는 `https://www.246tNt.com/mpc52xx/`에서 제공된다고 문서에 안내되어 있습니다.

U-Boot 빌드와 부팅

7-20

Makefile에서 `ARCH=ppc`, `CROSS_COMPILE`과 필요하면 `EXTRAVERSION`을 설정한 뒤 `lite5200_defconfig`와 `uImage`를 build합니다.

# <edit Makefile to set ARCH=ppc & CROSS_COMPILE=... ( also EXTRAVERSION
   if you wish to ).
# make lite5200_defconfig
# make uImage

then, on U-boot:
=> tftpboot 200000 uImage
=> tftpboot 400000 pRamdisk
=> bootm 200000 400000

U-Boot에서는 TFTP로 `uImage`를 `0x200000`, `pRamdisk`를 `0x400000`에 올린 뒤 `bootm 200000 400000`으로 시작합니다.

DBug 빌드와 부팅

21-33

DBug 경로도 같은 architecture/cross-compiler 설정과 `lite5200_defconfig`를 사용합니다. Initrd를 `arch/ppc/boot/images/ramdisk.image.gz`로 복사한 뒤 `zImage.initrd`와 나머지 target을 build합니다.

# <edit Makefile to set ARCH=ppc & CROSS_COMPILE=... ( also EXTRAVERSION
   if you wish to ).
# make lite5200_defconfig
# cp your_initrd.gz arch/ppc/boot/images/ramdisk.image.gz
# make zImage.initrd
# make

then in DBug:
DBug> dn -i zImage.initrd.lite5200

DBug monitor에서는 `dn -i zImage.initrd.lite5200`으로 image를 적재합니다.

MPC52xx 두 boot 경로
`lite5200_defconfig``uImage`U-Boot TFTP`bootm`
`lite5200_defconfig``zImage.initrd`DBug `dn -i`

같은 board configuration에서 boot monitor에 맞는 image를 만듭니다.

Port 명칭과 지원 범위

34-43

Port 이름은 `mpc52xxx`, config option은 `PPC_MPC52xx`입니다. `MGT5100`은 지원하지 않습니다.

다른 계열에도 `5xxx` 이름이 많아 혼동을 피하려고 `MPC`와 `52xxx`를 사용했습니다.

이 port는 Linux 2.4 port를 참고해 작성되었습니다. 빠진 개인이나 회사의 copyright 표기가 있으면 수정하겠다는 작성자의 설명도 포함되어 있습니다.