[U-Boot-Users] U-Boot on MPC8280

Hi,
I am trying to port U-boot-1.0.0 on a board which has MPC8280 processor. I have started with RAM boot. I am using VisionPROBE utility to debug. One of the line which U-boot executes is as follows.
boot_warm: mfmsr r5 /* save msr contents */
This line is supposed to move the contents of MSR register to R5 register. I am seeing the content of these two registers before the execution of the above statement and after the execution, using "DR" command. But I feel that the above statement is not executed properly as the content of R5 register is same even after the above line is executed (in my case 40) whereas MSR is all ZEROes. Why is it happening so? I also want to know whether anyone has sucessfully ported U-boot to MPC8280?
regards, Sudhakar.
__________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus

Hello,
in message 20040107131759.31653.qmail@web10602.mail.yahoo.com you wrote:
I am trying to port U-boot-1.0.0 on a board which has MPC8280 processor. I have started with RAM boot. I am
As pointed out many times before this is probably not a good idea unless you know exactly what you are doing and how U-Boot is working. If this is one of your first ports of U-Boot and/or if you don;t know the processor really well I recommend to use the standard way of booting from flash instead.
using VisionPROBE utility to debug. One of the line
Sincere condolences.
This line is supposed to move the contents of MSR register to R5 register. I am seeing the content of these two registers before the execution of the above statement and after the execution, using "DR" command. But I feel that the above statement is not executed properly as the content of R5 register is same even after the above line is executed (in my case 40) whereas MSR is all ZEROes. Why is it happening so? I
Maybe your debugger is not working as expected...
Best regards,
Wolfgang Denk

Sudhakar Rajashekhara writes:
Sudhakar> Hi, I am trying to port U-boot-1.0.0 on a board which has Sudhakar> MPC8280 processor. I have started with RAM boot. I am Sudhakar> using VisionPROBE utility to debug. One of the line which Sudhakar> U-boot executes is as follows.
Sudhakar> boot_warm: Sudhakar> mfmsr r5 /* save msr contents */
Sudhakar> This line is supposed to move the contents of MSR register Sudhakar> to R5 register. I am seeing the content of these two Sudhakar> registers before the execution of the above statement and Sudhakar> after the execution, using "DR" command. But I feel that Sudhakar> the above statement is not executed properly as the Sudhakar> content of R5 register is same even after the above line Sudhakar> is executed (in my case 40) whereas MSR is all ZEROes. Why Sudhakar> is it happening so? I also want to know whether anyone has Sudhakar> sucessfully ported U-boot to MPC8280?
Yes, look at board/mpc8260ads. The port runs on PQ2FADS board on MPC8280. Our customers use U-Boot on their MPC8270-based boards.

Hi,
I have started porting U-boot to MPC8280 taking the port on MPC8260ADS as base. I have modified the MPC8260ADS.h configuration file to include CONSOLE_ON_SMC, ETHER_ON_FCC, 8260_CLKIN is 100MHz, FLASH_BASE to be 0xfff00000 and TEXT_BASE to be 0x02000000. I am debugging by booting the U-boot from RAM. Everything goes well till I reach the following lines in cpu/mpc8260/serial_smc.c.
###################################################### /* Initialize Tx/Rx parameters. */
while (cp->cp_cpcr & CPM_CR_FLG) /* wait if cp is busy */;
cp->cp_cpcr = mk_cr_cmd(CPM_CR_SMC_PAGE, CPM_CR_SMC_SBLOCK, 0, CPM_CR_INIT_TRX) | CPM_CR_FLG;
while (cp->cp_cpcr & CPM_CR_FLG) /* wait if cp is busy */; ###################################################### While executing the above set of lines, it comes to the third statement and just hangs in that while loop. Why is it happening so?
Thanks in advance, regards, Sudhakar.
__________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus

In message 20040108142554.75126.qmail@web10607.mail.yahoo.com you wrote:
while (cp->cp_cpcr & CPM_CR_FLG) /* wait if cp is busy */; ###################################################### While executing the above set of lines, it comes to the third statement and just hangs in that while loop. Why is it happening so?
Where is the IMMR mapped? Which reset vector are you using?
Best regards,
Wolfgang Denk
participants (3)
-
sudhakar rajashekhara
-
Wolfgang Denk
-
Yuli Barcohen