RE: [U-Boot-Users] Motorola PPC8270

Hi Yuli, I am not sure if I have understood the file structure of U-boot. I downloaded U-boot-0.4.0, but I cant find ppc8270 under the CPU folder, nor can I find the PQ2FADS board under the board folder...
Can you explain me where the code for PPC8270 resides in the file structure?
Cheers // Matias
-----Original Message----- From: Yuli Barcohen [mailto:yuli@arabellasw.com] Sent: den 1 september 2003 18:24 To: Matias Sundman (TB/EAB) Cc: u-boot-users@lists.sourceforge.net Subject: Re:[U-Boot-Users] Motorola PPC8270
Matias Sundman writes:
Matias> Hi, I have now started my work on porting u-boot to a Matias> Motorola PPC8270 based board. I wonder if anybody has Matias> already made a CPU (PPC8270) port?
Yes, HiP7 support code is already in U-Boot. U-Boot runs on Motorola PQ2FADS board.
Matias> I guess the PPC8260 is pretty close to the PPC8270, perhaps Matias> I can use that as my guiding principle im my coming efforts?
Matias> P.S. In the top level README file, the C - code on how to Matias> port u-boot made me LOL!

Matias Sundman writes:
Matias> Hi Yuli, I am not sure if I have understood the file Matias> structure of U-boot. I downloaded U-boot-0.4.0, but I cant Matias> find ppc8270 under the CPU folder, nor can I find the Matias> PQ2FADS board under the board folder...
Matias> Can you explain me where the code for PPC8270 resides in the Matias> file structure?
First of all, download the latest version from CVS (0.4.7 or CVS HEAD).
Differences between 8260 and 8270 do not justify creating a separate CPU directory. In fact, all the differences result in some 10-20 lines of code, so look at cpu/mpc8260. Use `grep' to find HiP7 and you'll see the changes I made to support 8270/75/80. The same is true for PQ2FADS. I ported U-Boot to this board but since it's very similar to older MPC8260ADS I modified existing port to support all Motorola evaluation boards (MPC8260ADS/MPC8266ADS/PQ2FADS). Some differences are handled by #ifdefs. Cloning an existing port and changing ten lines to support new board as it's done in many cases creates maintenance nightmare. So the right place to look is board/mpc8260ads. BTW, I think it's mentioned in README.
Hope this helps,
participants (2)
-
Matias Sundman (TB/EAB)
-
Yuli Barcohen