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