Skip to contentSkip to conversation

U-Boot on MPC8280

U-Boot-Users sudhakar rajashekhara 3 participants 5 messages Jan 7, 2004 – Jan 8, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hello,

Quoted 3 lines · in message <[email protected]> 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.

Quoted 1 line

using VisionPROBE utility to debug. One of the line

Sincere condolences.

Quoted 8 lines

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

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
A meeting is an event at which the minutes are kept and the hours are
lost.
#2 lore raw
In reply to sudhakar rajashekhara
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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.

Signature · 4 lines
========================================================================
 Yuli Barcohen       | Phone +972-9-765-1788 |  Software Project Leader
 yuli at arabellasw.com | Fax   +972-9-765-7494 | Arabella Software, Israel
========================================================================
#3 lore raw

[U-Boot-Users] Porting U-boot to MPC8280 from MPC8260ADS

In reply to sudhakar rajashekhara

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

#4 lore raw

[U-Boot-Users] Porting U-boot to MPC8280 from MPC8260ADS

Quoted 7 lines · In message <[email protected]> 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

Signature · 4 lines
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
A stone was placed at a ford in a river with the inscription:
"When this stone is covered it is dangerous to ford here."