요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
=============================
Linux 2.6.x on MPC52xx family
=============================
For the latest info, go to https://www.246tNt.com/mpc52xx/
To compile/use :
- U-Boot::
# <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
- DBug::
# <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
Some remarks:
- The port is named mpc52xxx, and config options are PPC_MPC52xx. The MGT5100
is not supported, and I'm not sure anyone is interested in working on it
so. I didn't took 5xxx because there's apparently a lot of 5xxx that have
nothing to do with the MPC5200. I also included the 'MPC' for the same
reason.
- Of course, I inspired myself from the 2.4 port. If you think I forgot to
mention you/your company in the copyright of some code, I'll correct it
ASAP.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
MPC52xx family의 Linux 2.6.x
1-6MPC52xx port의 최신 정보는 `https://www.246tNt.com/mpc52xx/`에서 제공된다고 문서에 안내되어 있습니다.
U-Boot 빌드와 부팅
7-20Makefile에서 `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-33DBug 경로도 같은 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를 로드합니다.
같은 board configuration에서 boot monitor에 맞는 image를 만듭니다.
Port 명칭과 지원 범위
34-43Port 이름은 `mpc52xxx`, config option은 `PPC_MPC52xx`입니다. `MGT5100`은 지원하지 않습니다.
다른 계열에도 `5xxx` 이름이 많아 혼동을 피하려고 `MPC`와 `52xxx`를 사용했습니다.
이 port는 Linux 2.4 port를 참고해 작성되었습니다. 빠진 개인이나 회사의 copyright 표기가 있으면 수정하겠다는 작성자의 설명도 포함되어 있습니다.
요약과 해설
mpc52xx.rst:1-43MPC52xx 문서는 legacy `ARCH=ppc` tree에서 `lite5200_defconfig`로 U-Boot용 `uImage` 또는 DBug용 initrd image를 만드는 절차를 보존합니다.