public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] PROBLEM ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD
@ 2006-06-12  1:45 Paradise
  0 siblings, 0 replies; 6+ messages in thread
From: Paradise @ 2006-06-12  1:45 UTC (permalink / raw)
  To: u-boot

hi,u-boot-users

	I am trying to port u-boot-1.1.4 to my board,But i meet some problems.

Main resources of the board:
		CPU : INTEL PXA255 400MHZ
	  FLASH : INTEL TE28F128J3C150 32M
	  SDRAM : SAMSUNG 64M

Problem description :	
	According to the Lubbock developing board and the manual of my board , i have modified some files of uboot and compiled correctly(u-boot.bin is about 108K).
	Because i have no any hardware emulator, so i write a simple program to trace the uboot running, i find it stop in board_init() function(/u-boot-1.1.4/board/xhyper255/xhyper255.c).

int board_init (void)
{
	DECLARE_GLOBAL_DATA_PTR;

	/* memory and cpu-speed are setup before relocation */
	/* so we do _nothing_ here */

	/* arch number of cerf PXA Board */
	gd->bd->bi_arch_number = MACH_TYPE_XHYPER255;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~It stops here!!!!  
			
	/* adress of boot parameters */
	gd->bd->bi_boot_params = 0xa0000100;

	return(0);
}

The simple program writes as follows:
asm("mov r11,#0x08300000;\
	mov r0,#0x0F;\
	strh r0,[r11];\
        \
	ldr r1,=0x40A00010;\
	ldr r2,=0x40A0000C;\
	mov r0,#0x0;\
	str r0,[r1];\
	nop;\
	nop;\
	nop;\
	nop;\
	nop;\
	nop;\
	nop;\
     	mov r0,#0x780000;\
	str r0,[r2];\
        \
      	ldr r1,=0x40A0001C;\
	mov r0,#0x8;\
	str r0,[r1];\
	\
delay1:;\
	ldr r10,=0x40A00014;\
	ldr r0,[r10];\
	tst r0,#0x8;\
	beq delay1;\     	ldr r11,=0x40A0001C;\
	ldr r4,[r11];\
	and r4,r4,#0x07;\
	str r4,[r11];\ 
        \
	str r0,[r10];\
        \
	ldr r1,=0x40A00010;\
	ldr r2,=0x40A0000C;\
	mov r0,#0x0;\
	str r0,[r1];\
	nop;\
	nop;\
	nop;\
	nop;\
	nop;\
	nop;\
	nop;\
 	mov r0,#0x780000;\
	str r0,[r2];\
        \
      	ldr r1,=0x40A0001C;\
	mov r0,#0x8;\
	str r0,[r1];\
	\
delay2:;\
	ldr r10,=0x40A00014;\
	ldr r0,[r10];\
	tst r0,#0x8;\
	beq delay2;\
        \
     	ldr r11,=0x40A0001C;\
	ldr r4,[r11];\
	and r4,r4,#0x07;\
	str r4,[r11];\
        \
	str r0,[r10]");

Appreciate any help. 

THANKS

????????Paradise
????????scut.paradise at gmail.com
??????????2006-06-08

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] PROBLEM ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD
@ 2006-06-19  3:37 Paradise
  0 siblings, 0 replies; 6+ messages in thread
From: Paradise @ 2006-06-19  3:37 UTC (permalink / raw)
  To: u-boot

hi,u-boot-users

	I am trying to port u-boot-1.1.4 to my board,But i meet some problems.

Main resources of the board:
		CPU : INTEL PXA255 400MHZ
	  FLASH : INTEL TE28F128J3C150 32M
	  SDRAM : SAMSUNG 64M

Problem description :	
	According to the Lubbock developing board and the manual of my board , i have modified some files of uboot and compiled correctly(u-boot.bin is about 108K).
	Because i have no any hardware emulator, so i write a simple program to trace the uboot running, i find it stop in board_init() function(/u-boot-1.1.4/board/xhyper255/xhyper255.c).

int board_init (void)
{
	DECLARE_GLOBAL_DATA_PTR;

	/* memory and cpu-speed are setup before relocation */
	/* so we do _nothing_ here */

	/* arch number of cerf PXA Board */
	gd->bd->bi_arch_number = MACH_TYPE_XHYPER255;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~It stops here!!!!  
			
	/* adress of boot parameters */
	gd->bd->bi_boot_params = 0xa0000100;

	return(0);
}

when executing "gd->bd->bi_arch_number=MACH_TYPE_XHYPER255;" or other similiar sentences("gd->bd->**=**"), the progress was terminated. But when executing other sentences such as "gd->env_addr  = (ulong)&default_environment[0];gd->env_valid = 0;"(these sentences are in function env_init(),common/env_flash.c),the progress can do them well.

Does anyone meet this problem,or give some useful debug methods without any hardware emulator? Appreciate for any help.

THANKS

????????Paradise
????????scut.paradise at gmail.com
??????????2006-06-19

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] PROBLEM ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD
@ 2006-06-19  8:22 Paradise
  0 siblings, 0 replies; 6+ messages in thread
From: Paradise @ 2006-06-19  8:22 UTC (permalink / raw)
  To: u-boot

hi,u-boot-users

	      I am trying to port u-boot-1.1.4 to my board,But i meet some problems.

Main resources of the board:
		CPU : INTEL PXA255 400MHZ
	  FLASH : INTEL TE28F128J3C150 32M
	  SDRAM : SAMSUNG 64M

Problem description :	
	According to the Lubbock developing board and the manual of my board , i have modified some files of uboot and compiled correctly(u-boot.bin is about 108K).
	Because i have no any hardware emulator, so i write a simple program to trace the uboot running, i find it stop in board_init() function(/u-boot-1.1.4/board/xhyper255/xhyper255.c).

int board_init (void)
{
	DECLARE_GLOBAL_DATA_PTR;

	/* memory and cpu-speed are setup before relocation */
	/* so we do _nothing_ here */

	/* arch number of cerf PXA Board */
	gd->bd->bi_arch_number = MACH_TYPE_XHYPER255;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~It stops here!!!!  
			
	/* adress of boot parameters */
	gd->bd->bi_boot_params = 0xa0000100;

	return(0);
}

when executing "gd->bd->bi_arch_number=MACH_TYPE_XHYPER255;" or other similiar sentences("gd->bd->**=**"), the progress was terminated. But when executing other sentences such as "gd->env_addr  = (ulong)&default_environment[0];gd->env_valid = 0;"(these sentences are in function env_init(),common/env_flash.c),the progress can do them well.

Does anyone meet this problem,or give some useful debug methods without any hardware emulator? Appreciate for any help.

THANKS

        Paradise
        scut.paradise at gmail.com
          2006-06-19

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] PROBLEM ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD
@ 2006-06-19  8:38 陈洪宝
  2006-06-19 10:30 ` Markus Klotzbücher
  0 siblings, 1 reply; 6+ messages in thread
From: 陈洪宝 @ 2006-06-19  8:38 UTC (permalink / raw)
  To: u-boot

hi,u-boot-users

	I am trying to port u-boot-1.1.4 to my board,But i meet some problems.

Main resources of the board:
	       CPU : INTEL PXA255 400MHZ
	   FLASH : INTEL TE28F128J3C150 32M
	  SDRAM : SAMSUNG 64M

Problem description :	
	According to the Lubbock developing board and the manual of my board
, i have modified some files of uboot and compiled
correctly(u-boot.bin is about 108K).
	Because i have no any hardware emulator, so i write a simple program
to trace the uboot running, i find it stop in board_init()
function(/u-boot-1.1.4/board/xhyper255/xhyper255.c).

int board_init (void)
{
	DECLARE_GLOBAL_DATA_PTR;

	/* memory and cpu-speed are setup before relocation */
	/* so we do _nothing_ here */

	/* arch number of cerf PXA Board */
	gd->bd->bi_arch_number = MACH_TYPE_XHYPER255;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~It stops here!!!!
			
	/* adress of boot parameters */
	gd->bd->bi_boot_params = 0xa0000100;

	return(0);
}

when executing "gd->bd->bi_arch_number=MACH_TYPE_XHYPER255;" or other
similiar sentences("gd->bd->**=**"), the progress was terminated. But
when executing other sentences such as "gd->env_addr  =
(ulong)&default_environment[0];gd->env_valid = 0;"(these sentences are
in function env_init(),common/env_flash.c),the progress can do them
well.

Does anyone meet this problem,or give some useful debug methods
without any hardware emulator? Appreciate for any help.

THANKS

        Paradise
        scut.paradise at gmail.com
          2006-06-19

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] PROBLEM ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD
  2006-06-19  8:38 陈洪宝
@ 2006-06-19 10:30 ` Markus Klotzbücher
       [not found]   ` <fc0f2070606190528m214e3591w762c88ecf994b29f@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Klotzbücher @ 2006-06-19 10:30 UTC (permalink / raw)
  To: u-boot

Hi Scut Paradise,

If you think you're going to get more help the more times you resend you
message, you are probably wrong.

"???" <scut.paradise@gmail.com> writes:

> int board_init (void)
> {
> 	DECLARE_GLOBAL_DATA_PTR;
>
> 	/* memory and cpu-speed are setup before relocation */
> 	/* so we do _nothing_ here */
>
> 	/* arch number of cerf PXA Board */
> 	gd->bd->bi_arch_number = MACH_TYPE_XHYPER255;
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~It stops here!!!!
> 			
> 	/* adress of boot parameters */
> 	gd->bd->bi_boot_params = 0xa0000100;
>
> 	return(0);

The fact that the "DECLARE_GLOBAL_DATA_PTR" is defined inside board_init
indicates that you are not using top of the tree U-Boot. Please switch
to current sourcen first of all. The DECLARE_GLOBAL_DATA_PTR statement
needs to be defined globally due to gcc misbehaviour.

Regards

Markus Klotzbuecher

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] PROBLEM ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD
       [not found]   ` <fc0f2070606190528m214e3591w762c88ecf994b29f@mail.gmail.com>
@ 2006-06-19 14:24     ` Markus Klotzbücher
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Klotzbücher @ 2006-06-19 14:24 UTC (permalink / raw)
  To: u-boot

Dear Scut Paradise,

Please reply to the list too.

"???" <scut.paradise@gmail.com> writes:

> ? 06-6-19?Markus Klotzb?cher<mk@denx.de> ???

>> The fact that the "DECLARE_GLOBAL_DATA_PTR" is defined inside board_init
>> indicates that you are not using top of the tree U-Boot. Please switch
>> to current sourcen first of all. The DECLARE_GLOBAL_DATA_PTR statement
>> needs to be defined globally due to gcc misbehaviour.
>>
> I don't quite understand the meaning of this paragraph, what should i do?

Use the newest version of U-Boot from the git repository. The version
you are using is old.

Regards

Markus Klotzb?cher

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-19 14:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-12  1:45 [U-Boot-Users] PROBLEM ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD Paradise
  -- strict thread matches above, loose matches on Subject: below --
2006-06-19  3:37 Paradise
2006-06-19  8:22 Paradise
2006-06-19  8:38 陈洪宝
2006-06-19 10:30 ` Markus Klotzbücher
     [not found]   ` <fc0f2070606190528m214e3591w762c88ecf994b29f@mail.gmail.com>
2006-06-19 14:24     ` Markus Klotzbücher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox