public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Paradise <scut.paradise@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] HELP ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD
Date: Thu, 8 Jun 2006 22:23:08 +0800	[thread overview]
Message-ID: <4488329b.0c9b07e4.31f1.392c@mx.gmail.com> (raw)

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

             reply	other threads:[~2006-06-08 14:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-08 14:23 Paradise [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-06-12  1:44 [U-Boot-Users] HELP ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD Paradise

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4488329b.0c9b07e4.31f1.392c@mx.gmail.com \
    --to=scut.paradise@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox