[U-Boot-Users] Flash Initializing problem, porting u-boot-1.1.3 on mpc850

2008-06-29 Thread li xuguang
hi,
I am try to port u-boot-1.1.3 on a board with the processor MPC850. And i
try to change the board of TQM850.

It boots from flash on the board. I have successfully initialized clock,
serial port (connect to RS232). The program can excute in flash
and relocate to ram. But I got trouble on board/tqm8xx/flash.c
flash_init(). The problem is finially located get_flash_size(),
line 340-342.
The 3 lines aim to get flash device ID.

addr[0x0555] = 0x00AA00AA;
addr[0x02AA] = 0x00550055;
addr[0x0555] = 0x00900090;

I change this code to fit my board:
*(volatile unsigned short *) 0x02800aaa = (unsigned short) 0x00aa;
*(volatile unsigned short *) 0x02800554 = (unsigned short) 0x0055;
*(volatile unsigned short *) 0x02800aaa = (unsigned short) 0x0090;
unsigned short ID;
ID = *(unsigned short *) 0x0280;
( address connect as follows: mpc  a[11..30]  ==flash a[19..0],
flash a19 mpc a11, flasha18 -mpc a12 ,..
notice LSB of mpc is a[30] not a[31], for flash is word mode.
so the flash address 0x555, 0x2aa are corresponding the system address
0xaaa, 0x554 , left shift by 1 bit.)

those 3 lines code have been tested on vxworks' bootrom on this board.

Now , my trouble is : I cannot use printf to print number after executing
the 3 line codes, like printf(Device ID is: %x\n,*(unsigned short *)
0x280);
But it can print string , likes printf(Read Device ID\n). it seems just
the second parameter cause the trouble.
Sadly,this kind of printf can be used several times , then it stops.
other kinds of function or instruction can be executed a little more, but
stop finilly.

I simply convert address to string ,then print. The result of ID is 0x0001,
which is just the correct number.

If I ignore the 3 line code above, the program runs ok except the
initialization of flash.
I really cann't figure out where the problem is. Could anyone help me ,
or give me some suggest!



Below is the configuration on my board:
oscillator 4MHz
DRAM: 8M
flash: AM29LV160DB (16 bit)
IMMR.ISB = 0x0220
BR0 = 0x02800801
OR0 = 0xffe00936
Cross Compiler: GNU  gcc 4.0.2

Result on hyper-terminal:
CPU:   XPC850xxZTB at 64 MHz: 2 kB I-Cache 1 kB D-Cache
Board: ### No HW ID - assuming TQM8xxL
DRAM:   8 MB
Now running in RAM - U-Boot at: 007c1000
FLASH:
## Get flash bank 0 size @ 0x0280
BR0 :  2800801
OR0 : ffe00936


 Thanks!
 Xuguang Li
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] DTC and Binary Includes

2008-06-29 Thread Jon Loeliger
Sascha(?) and/or others,

I seem to recall that those working on the either
the next U-Boot V2 or the next version of the FDT
image structure were planning on using the binary
include mechanism of the DTC.

Several days ago I added the Binary Include patch
to DTC and tagged a candidate release.  Could you
verify that this version satisfies your needs and
works for you?

Thanks,
jdl

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Does U-boot support ethernet chip LAN9210 from SMSC?

2008-06-29 Thread 이승열
Hi,

Does U-boot support ethernet chip LAN9210 from SMSC?
If yes, how can I get driver source code?

Best Regards.
Seung Youl.-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Does U-boot support ethernet chip LAN9210 from SMSC?

2008-06-29 Thread Ben Warren
Hi Seung,

On Sun, Jun 29, 2008 at 6:56 PM, 이승열 [EMAIL PROTECTED] wrote:
 Hi,

 Does U-boot support ethernet chip LAN9210 from SMSC?
 If yes, how can I get driver source code?

The smc911x driver claims to support many different 9[12]1x chips,
although I can't speak for certain about the 9210.  It was added
recently, so be sure to clone the latest source tree.  Have a look in
drivers/net/smc911x.c

regards,
Ben
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH][RFC] pci: Divided pci code of the powerpc

2008-06-29 Thread Nobuhiro Iwamatsu
Hi, all.

Could comment about this patch.

Best regards,
  Nobuhiro

Nobuhiro Iwamatsu wrote:
 A source code of pci is written mainly on powerpc.
 Macro uses a pci source code of powerpc because other architecture
 (ex. SuperH) doesn't work.
 
 I made asm-ppc/pci.h and moved macro of pci.
 Other archtecture need to make the following macro in asm-xxx/pci.h
  #define pci_phys_to_mem(dev, addr)  (addr)
  #define pci_mem_to_phys(dev, addr)  (addr)
  #define pci_phys_to_io(dev, addr)   (addr)
  #define pci_io_to_phys(dev, addr)   (addr)
 
 Or have to make a function for pci address conversion.
 However, I want comment because I do not know the other architecture.
 
 Signed-off-by: Nobuhiro Iwamatsu [EMAIL PROTECTED]



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Does U-boot support ethernet chip LAN9210 from SMSC?

2008-06-29 Thread 이승열
Hi Ben,

Sorry for bothering you.

I have downloaded the latest version of U-boot.
There is smc911x.c file. I have added this file to Makefile.
The compilation is successful.

But, there are two problems.
1. there is no LAN9210 entry in chip id list
2. Only 32-bit is supported.

Is there any recent driver for LAN9210?



- Original Message - 
From: Ben Warren [EMAIL PROTECTED]
To: 이승열 [EMAIL PROTECTED]
Cc: u-boot-users@lists.sourceforge.net
Sent: Monday, June 30, 2008 12:25 PM
Subject: Re: [U-Boot-Users] Does U-boot support ethernet chip LAN9210 from SMSC?


 Hi Seung,
 
 On Sun, Jun 29, 2008 at 6:56 PM, 이승열 [EMAIL PROTECTED] wrote:
 Hi,

 Does U-boot support ethernet chip LAN9210 from SMSC?
 If yes, how can I get driver source code?

 The smc911x driver claims to support many different 9[12]1x chips,
 although I can't speak for certain about the 9210.  It was added
 recently, so be sure to clone the latest source tree.  Have a look in
 drivers/net/smc911x.c
 
 regards,
 Ben

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] CPU (405ep) clock upgrade..

2008-06-29 Thread Yi-Neng Lin (林義能)
Hi there,
We've got a board powered by 405ep running at 266MHz. Now we want to
upgrade the clock rate to 333MHz (model: 3LB333C), can anyone give us
some pointers doing this? I've tried to search the mailing list but
found nothing quite related. Also there seems to exist very limited
ports, if not none, of this model to which I may reference.
Below are questions that are more specific:
1. For CPU clock rate configuration, exactly what parameters should I
modify? The suspected ones are FWDV (Feedback Divide) and FBDVB (Forward
Divide B) which according to the processor user manual determines the
PLLOUT A.
2. SDRAM clocking. I guess the clocking should be adapted to something
like 111MHz (given the 333MHz CPU clock); however, the manual shows
there there seems to be only two options, namely 100MHz and 133MHz.
3. Clocking of others such as PCI (on-chip PLB clock, sync/async PCI
clock) and serial port. Are they supposed to be modified accordingly?
4. Any other parameters?

Thank you very much for your guidance.

Yi-Neng

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Does U-boot support ethernet chip LAN9210 from SMSC?

2008-06-29 Thread Ben Warren
On Sun, Jun 29, 2008 at 10:06 PM, 이승열 [EMAIL PROTECTED] wrote:
 Hi Ben,

 Sorry for bothering you.

 I have downloaded the latest version of U-boot.
 There is smc911x.c file. I have added this file to Makefile.
 The compilation is successful.
You don't have to add anything to the Makefile, just use the correct
CONFIG options

 But, there are two problems.
 1. there is no LAN9210 entry in chip id list
So add it.  I haven't looked at the LAN9210 data sheet to even know if
it will work with this chip.  You're going to have to do some work.
 2. Only 32-bit is supported.

Not true.  Both 16 and 32 bit access is supported.  Check the source
code (hint: look for CONFIG_DRIVER_SMC911X_16_BIT)
 Is there any recent driver for LAN9210?

I don't know of another or I would have told you about it.

Good luck,
Ben
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users