Re: [U-Boot] U-Boot software debug tools ?

2011-07-06 Thread sywang

BDI JTAG

-Original Message-
From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] On
Behalf Of Bill Chan(袪益綸_ASR)
Sent: 2011年7月7日 12:28
To: u-boot@lists.denx.de
Subject: [U-Boot] U-Boot software debug tools ?

Dear Sir from U-Boot,

 

This is Bill from Taiwan, we are currently working on a board that
runs Freescale iMX53 CPU and using U-Boot as our bootloader.

As we are moving into source codes and start reading start.S, we
eagerly want to know what software tools do you use in implementing and
debugging Stage1 assembly codes?

Far as our experiences, we used to go with ADS1.2 to check r0~r15
status line by line;

May you kindly let us know if there is a recommend to do so in Linux
or Windows, thank you very much!

 

Regards

 

Bill Chan

ASRock Inc. 

Tel: +886-2-2896-5588 ext.11737

Email: bill_c...@asroack.com.tw

 


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] how does Linux call the function from u-boot?

2011-03-31 Thread sywang



___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how does Linux call the function from u-boot?

2011-03-31 Thread sywang

Thanks for your reply very much. 

In my scenario, I want to write the panic info into the flash, but the panic
is caused by interrupt routine, I cannot access the flash, so I think that
if the flash-write function from u-boot can be called, the issue should be
resolved. 

Any other comments? 


Thanks!
Shuyou 

-Original Message-
From: Wolfgang Denk [mailto:w...@denx.de] 
Sent: 2011年3月31日 18:01
To: sywang
Cc: u-boot@lists.denx.de
Subject: Re: [U-Boot] how does Linux call the function from u-boot?

Dear sywang,

In message E20D124831AF42E094DEFD4F59B45E9E@sywangPC you wrote:
 
 how does Linux call the function from u-boot?

Simply: it does not.

When Linux starts running, U-Boot is gone and dead; nothing of it
survives the boot of Linux except for the parameters passed to the
Linux kernel.

Linux has no idea which boot loader has been used to start it, nor
can Linux call any functions from the boot loader.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Punishment becomes ineffective after a certain point. Men become  in-
sensitive.
-- Eneg, Patterns of Force, stardate 2534.7

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] last reboot information for u-boot

2011-03-24 Thread sywang


I have a question about how to save last warm-reboot information. 


I am trying to find a method to save last warm-reboot reason. If I want to
save the information by DRAM memory, how to do this? 



Thanks!
Shuyou

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] TFTP Issue

2010-12-16 Thread sywang

Do you have bootp or DHCP server? 


-Original Message-
From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] On
Behalf Of T K, Sunil Kumar
Sent: 2010年12月17日 14:14
To: 'u-boot@lists.denx.de'
Subject: [U-Boot] TFTP Issue

Hi All,

When I start for TFTP I see below shown messages on my screen though I had
set serverip properly. Can anyone please comment on the issue.

=

Retry count exceeded; starting again
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5

=


Thanks in advance!

Best Regards,
Sunil


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Bad page state in process 'swapper'

2010-11-02 Thread sywang

-Original Message-
From: Albert ARIBAUD [mailto:albert.arib...@free.fr] 
Sent: 2010年11月2日 15:44
To: sywang
Cc: u-boot@lists.denx.de
Subject: Re: Bad page state in process 'swapper'

Le 02/11/2010 08:37, sywang a écrit :

 While U-boot loads the Linux image, I have the following error.   Do you
 have any suggestions on this?


 detected lzma initramfs
 initramfs: LZMA lc=3,lp=0,pb=2,dictSize=8388608,origSize=12677632
 Bad page state in process 'swapper'
 page:a87b3418 flags:0x mapping:
 mapcount:-16711680 count:0
 Trying to fix it up, but a reboot is needed
 Backtrace:
 Unwound Call Trace:
 [80211dc8] dump_stack+0x8/0x48
 [80265c98] bad_page+0x78/0xb0
 [80266988] get_page_from_freelist+0x230/0x488
 [80266c44] __alloc_pages+0x64/0x348
 [8027b4ac] __vmalloc_area_node+0x10c/0x230
 [804741cc] populate_rootfs+0x974/0xae0
 [802007e4] init+0x84/0x530
 [8020db58] kernel_thread_helper+0x10/0x18


 Thanks!
 Shuyou

Hi Shuyou,

This is not 'while u-boot loads Linux', this is 'while Linux boots after 
it was loaded by u-boot', because these messages are from Linux.

I'd say these messages typically occur when the image (kernel+ramfs) is 
corrupted. What does u-boot display before jumping to the Linux kernel?

Amicalement,
-- 
Albert.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Bad page state in process 'swapper'

2010-11-02 Thread sywang
Hi, 

I found that vmalloc is not able to allocate the memory.  What parameters
from u-boot are not right? 

Thanks!
Shuyou 

-Original Message-
From: sywang [mailto:syw...@dongniannetworks.com] 
Sent: 2010年11月2日 16:13
To: 'Albert ARIBAUD'
Cc: 'u-boot@lists.denx.de'
Subject: RE: Bad page state in process 'swapper' 

Albert, 

Thanks for your reply.  My log is shown below.  What you say is right.  The
error information is from Linux.  I guess that what parameters passed to
Linux by u-boot may be not right.  However, I don't know how to identify? 

TFTP from server 192.168.5.101; our IP address is 192.168.5.22
Filename 'mips.ari'.
Load address: 0x9f0
Loading: #
done
Bytes transferred = 2917360 (2c83f0 hex)

Image is not signed; verifying checksum... passed
do_tftpboot, Linux image has been verified: pass
do_tftpboot, going to do_bootoctlinux 
octeon_phy_mem_block_free addr: 0x10, size: 0x800
ELF file is 64 bit
block alloc called: req_size: 0x2b25e0, min_addr: 0xa0, max_addr: 0x0,
align: 0x0
Allocated memory for ELF segment: addr: 0xa0, size 0x2b25e0
block alloc called: req_size: 0xd0, min_addr: 0xcb25e0, max_addr: 0x0,
align: 0x0
Allocated memory for ELF segment: addr: 0xcb25e0, size 0xd0
Loading .text @ 0x80a0 (0x2b25b8 bytes)
Clearing .bss @ 0x80cb25c0 (0x20 bytes)
Loading .data @ 0x80cb25e0 (0x30 bytes)
Loading .MIPS.options @ 0x80cb2610 (0xa0 bytes)
naddr 2
addr vec 0, 0x2b25e0 @ 0xa0
addr vec 1, 0xd0 @ 0xcb25e0
## Loading OS kernel with entry point: 0x80a0 ...
block alloc called: req_size: 0x77, min_addr: 0x0, max_addr: 0x7fff,
align: 0x0
block alloc called: req_size: 0x190, min_addr: 0x0, max_addr: 0x7fff,
align: 0x0
block alloc called: req_size: 0x98, min_addr: 0x0, max_addr: 0x7fff,
align: 0x0
board type is: 11, CN3010_EVB_HS5
stack expected: 0x0, actual: 0x0
heap_base expected: 0x0, actual: 0x0
heap_top expected: 0x0, actual: 0x0
Entry point (virt): 0x80a0
Address of start app: 0x80096d90
Bootloader: Done loading app on coremask: 0x1
octeon_phy_mem_block_free addr: 0x9f0, size: 0x600
octeon_phy_mem_block_free addr: 0x810, size: 0x3200
octeon_phy_mem_block_free addr: 0x8103200, size: 0x2
octeon_phy_mem_block_free addr: 0x8123200, size: 0x32000
do_bootoctlinux, going to start_cores 
Bringing coremask: 0x1 out of reset!
Address of start app: 0x80070914
block alloc called: req_size: 0x330, min_addr: 0x0, max_addr: 0x4000,
align: 0x0
Bootloader: Starting app at cycle: 0
Welcome to start_cores. (octeon_boot.c:1547)
start_cores, going to BOOT_VECTOR_BASE app_start_func_addr 80096d90
 start_linux 
printf_boot_init_vector stack_addr:0x80062f58 code_addr: 0x80070568
k0_val:0x8003ff44 flags:0x0 boot_info_addr:0x800c2440 pad:0x0 pad2:0x0
printf_boot_info_block entry_point:0x80a0 boot_desc_addr: 0x100080
stack_top:0x0 exception_base:0x1000 cvmx_desc_addr:0x0 flags:0x0 
Welcome to start_linux. (cmd_octeon_linux.c:596)
Uncompressing..
Welcome to start_kernel. (init/main.c:458)

 Networks
OS Version  (build  / label #wan...@-eng.) 
Built by wan...@localhost on 2010-11-02 at 15:09:36 CST (gcc version 3.4.5
Cavium Networks Version: 1.4.0, build 58)
Welcome to start_kernel. (init/main.c:472)
prom_init(arch/mips/cavium-octeon/setup.c:783) arcs_cmdline:
console=ttyS0,9600
prom_init(arch/mips/cavium-octeon/setup.c:790) para[0]: bootoctlinux
prom_init(arch/mips/cavium-octeon/setup.c:790) para[1]: 9f00200
prom_init(arch/mips/cavium-octeon/setup.c:790) para[2]: bootver=
1.1.4.0/wan...@-eng.
CVMSEG size: 2 cache lines (256 bytes)
Setting flash physical map for 4MB flash at 0x1f80
Determined physical RAM map:
Welcome to start_kernel. (init/main.c:474)
Kernel command line: console=ttyS0,9600 rdinit=/sbin/init
Welcome to start_kernel. (init/main.c:505)
Primary instruction cache 32kB, virtually tagged, 4 way, 64 sets, linesize
128 bytes.
Primary data cache 16kB, 64-way, 2 sets, linesize 128 bytes.
Welcome to start_kernel. (init/main.c:518)
Using 500.000 MHz high precision timer. cycles_per_jiffy=100
Welcome to start_kernel. (init/main.c:532)
Memory: 57344k/65536k available (1918k kernel code, 8144k reserved, 561k
data, 2172k init, 0k highmem)
Calibrating delay using timer specific routine.. 1000.32 BogoMIPS
(lpj=1000323)
available.
Checking for the multiply/shift bug... no.
Checking for the daddi bug... no.
Checking for the daddiu bug... no.
Welcome to start_kernel. (init/main.c:616)
Welcome to rest_init. (init/main.c:396)
Welcome to schedule. (kernel/sched.c:2889)
Welcome to schedule. (kernel/sched.c:3065)
detected lzma initramfs
initramfs: LZMA lc=3,lp=0,pb=2,dictSize=8388608,origSize=12677632
Bad page state in process 'swapper'
page:a87b3418 flags:0x mapping:
mapcount:-16711680 count:0
Trying to fix it up, but a reboot is needed
Backtrace:
Unwound Call Trace:
[80211dc8] dump_stack+0x8/0x48

Re: [U-Boot] Bad page state in process 'swapper'

2010-11-02 Thread sywang
Hi Wolfgang, 

Although the error is reported by Linux, I think that the linux is booted by
u-boot.   Or the issue at least is the extension issue of u-boot.  

I believe that there are guys who fixed my issues in our community.  So send
the sos email. Thanks for your understanding.  

Thanks!
Shuyou  

-Original Message-
From: Wolfgang Denk [mailto:w...@denx.de] 
Sent: 2010年11月2日 16:40
To: sywang
Cc: u-boot@lists.denx.de
Subject: Re: [U-Boot] Bad page state in process 'swapper'

Dear sywang,

In message 20101102073757.0c5e828...@theia.denx.de you wrote:
 
 While U-boot loads the Linux image, I have the following error.   Do you
 have any suggestions on this? 
 
 
 detected lzma initramfs
 initramfs: LZMA lc=3,lp=0,pb=2,dictSize=8388608,origSize=12677632
 Bad page state in process 'swapper'
 page:a87b3418 flags:0x mapping:
 mapcount:-16711680 count:0
 Trying to fix it up, but a reboot is needed
 Backtrace:
 Unwound Call Trace:
 [80211dc8] dump_stack+0x8/0x48
 [80265c98] bad_page+0x78/0xb0
 [80266988] get_page_from_freelist+0x230/0x488
 [80266c44] __alloc_pages+0x64/0x348
 [8027b4ac] __vmalloc_area_node+0x10c/0x230
 [804741cc] populate_rootfs+0x974/0xae0
 [802007e4] init+0x84/0x530
 [8020db58] kernel_thread_helper+0x10/0x18

These are Linux error messages.  This is the U-Boot mailing list.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Those who will be able to conquer software will be able  to  conquer
the world. - Tadahiro Sekimoto, president, NEC Corp.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Data bus error

2010-10-19 Thread sywang

Did you have the data bus error with CN5010-based board at porting u-boot? 

How to debug? Any suggestions on this? 

Thanks!
Shuyou  

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] GDB: cannot access memory at adderss 0xbfc00000

2010-10-17 Thread sywang

Do you encounter the following question while u-boot is debugged by BDI3000
and GBD? 

Cannot access memory at address 0xbfc0? 

Thanks!
Shuyou  

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] warning: GDB can't find the start of the function at 0x1fc0003c.

2010-10-09 Thread sywang

While debugging u-boot by BDI3000 and GDB, I have the following issue.  Do
you encounter such a problem? How to fix it?  Any suggestions are warmly
welcome? 


(gbd) n
[wan...@localhost u-boot]$ /home/wangsy/gdb-mips/bin/mips-linux-gdb
u-boot-octeon_bbgw_ref_failsafe
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as --host=i686-pc-linux-gnu --target=mips-linux.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from
/home/wangsy/uboot_porting/OCTEON-SDK_1008_ago/bootloader/u-boot/u-boot-octe
on_bbgw_ref_failsafe...done.
(gdb) target extended-remote 192.168.5.20:2001
Remote debugging using 192.168.5.20:2001
0x1fc0003c in ?? ()
(gdb) n
warning: GDB can't find the start of the function at 0x1fc0003c.

GDB is unable to find the start of the function at 0x1fc0003c
and thus can't determine the size of that function's stack frame.
This means that GDB may be unable to access that stack frame, or
the frames below it.
This problem is most likely caused by an invalid program counter or
stack pointer.
However, if you think GDB should simply search farther back
from 0x1fc0003c for code which looks like the beginning of a
function, you can increase the range of the search using the `set
heuristic-fence-post' command.
Cannot find bounds of current function
(gdb) set heuristic-fence-post 0
(gdb) n
warning: GDB can't find the start of the function at 0x1fc0003c.
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function
(gdb) n
Cannot find bounds of current function

Thanks!
Shuyou  

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] u-boot vs. Cavium 5010 pci init

2010-10-08 Thread sywang

Who debuged u-boot on the board based on Cavium CN5010? 

Thanks!
Shuyou 

-Original Message-
From: Wolfgang Denk [mailto:w...@denx.de] 
Sent: 2010年9月26日 16:56
To: Graeme Russ
Cc: sywang; u-boot@lists.denx.de
Subject: Re: [U-Boot] u-boot vs. Cavium 5010 pci init

Dear Graeme Russ,

In message 4c9f087d.3010...@gmail.com you wrote:

  Cavium never provided free access to their code, nor did they ever
  attempt to push their changes upstream.
 
 Would they not, therefore, be in breach of the GPL?

According to the GPL, you don't have to provide free access to
everybody.

It is sufficient to accompany the delivery of U-Boot to each of their
customers with a written offer to provide any third party a copy of
the corresponding source code.

Of course, each of Cavium's customers could request that code, and
then put it on a public server - but it seems nobody ever did.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Was heißt Windows auf Indianisch? - Weißer  Mann,  der  auf  Sanduhr
wartet!

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] U-boot debug with BDI3000

2010-10-07 Thread sywang
Hi, 

 

 

Does anyone have a working BDI2000/3000 configuration for CN5010 dev.board?
I need it to have DDR and NOR flash support so that I can flash a new
bootloader into NOR. 

 

Thanks!

Shuyou 

 

 

 

 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-boot debug with BDI3000

2010-10-07 Thread sywang
Andreas, 

Thanks for your help. When you have it, please send an email with the
configuration file to me.  

Thanks!
Shuyou

-Original Message-
From: Andreas Bießmann [mailto:andreas.de...@googlemail.com] 
Sent: 2010年10月8日 0:14
To: sywang
Cc: u-boot@lists.denx.de
Subject: Re: [U-Boot] U-boot debug with BDI3000

Dear sywang,

Am 07.10.2010 um 09:49 schrieb sywang:

 Hi, 
 
 Does anyone have a working BDI2000/3000 configuration for CN5010
dev.board?

Yes I have one, but not on-hand currently. Will have a look for it tomorrow
or on monday.

 I need it to have DDR and NOR flash support so that I can flash a new
 bootloader into NOR. 

AFAIR it is enough to setup bootbus for correct sizes. TLB is not necessary
to get access to NOR cause this is already setup by reset. It is not as
fast as it could be but you have at least access to NOR and erase/prog
works.

regards

Andreas Bießmann

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] DDR SPD table

2010-10-04 Thread sywang

Do you have the general materials about DDR programming in u-boot?  

Thanks!
Shuyou



___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] u-boot cannot jump to board_init_f

2010-10-02 Thread sywang
Hi, 

Do you get the following problem while porting the u-boot for CN50XX? 

U-boot cannot jump to board_init_f.  

What reasons can lead to this problem? 

Thanks!
Shuyou

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] How to do pci_init in flash

2010-09-27 Thread sywang

Wolfgang, 

Thanks for your feedback. 

Because the CPU-hang issue when pci_init still puzzle me, I want to check if
the issue is caused by relocate_code, in spite of the very probability. 

Do you have any suggestions about how to identify the root cause of PCI Init
configuration hang?  

Thanks!
Shuyou

-Original Message-
From: Wolfgang Denk [mailto:w...@denx.de] 
Sent: 2010年9月27日 15:27
To: sywang
Cc: u-boot@lists.denx.de
Subject: Re: [U-Boot] How to do pci_init in flash

Dear sywang,

In message 20100927020635.0547228...@theia.denx.de you wrote:
 
 I want to do pci configuration in the function 'board_init_f'.  How to do
 this? 

Why would you want to do that? Why cannot you wait until U-Boot has
relocateditself to RAM so you have full access to all resources?

 Could I call the function pci_init in the function 'board_init_f' or add
 the function pci_init into the function array  init_sequence ? 

This might be difficult, as you still have a very limted runtime
environment only, with just a minimal stack, without writable data,
without valid BSS.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
The more complex the mind, the greater the need for the simplicity of
play.
-- Kirk, Shore Leave, stardate 3025.8

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] How to debug u-boot with GDB BDI3000

2010-09-27 Thread sywang
Thanks for your time. 


I 'm just working on a u-boot on the board with CN5010, but it looks like
there are some problems with GDB and BDI3000.   I have built the debug
environment covering GDB  BDI3000  my board, but later I sadly found that
the breakpoint doesn't work. 

 

Could you give me some suggestions? 

Thanks!
Shuyou 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] How to debug u-boot with GDB BDI3000

2010-09-27 Thread sywang
Thanks for your comments. 

Who has done this? Please contact me. 

Thanks!
Shuyou


-Original Message-
From: Wolfgang Denk [mailto:w...@denx.de] 
Sent: 2010年9月27日 18:08
To: sywang
Cc: u-boot@lists.denx.de
Subject: Re: [U-Boot] How to debug u-boot with GDB  BDI3000

Dear sywang,

In message 20100927093617.0423028...@theia.denx.de you wrote:
 
 I 'm just working on a u-boot on the board with CN5010, but it looks like
 there are some problems with GDB and BDI3000.   I have built the debug
 environment covering GDB  BDI3000  my board, but later I sadly found
that
 the breakpoint doesn't work. 

We don't know your hardware, and we don't know your code.

We cannot support you with stuff that is kept closed. And we
explained this before.

Please contact Cavium technical support.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
At the source of every error which is blamed on the computer you will
find at least two human errors, including the error of blaming it  on
the computer.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] u-boot vs. Cavium 5010 pci init

2010-09-26 Thread sywang
Andreas, 

Now the key is that I am not sure if the board can work or not. 

Who had the similar experience ( debugged the board with CN5010)? Please
email to me. Thanks for your help. 


Thanks!
Shuyou 

-Original Message-
From: Andreas Bießmann [mailto:andreas.de...@googlemail.com] 
Sent: 2010年9月26日 14:53
To: sywang
Cc: u-boot@lists.denx.de
Subject: Re: [U-Boot] u-boot vs. Cavium 5010 pci init

Dear sywang,

Am 26.09.2010 um 02:21 schrieb sywang:

 Hello, everyone, 
 
 Do you know what bugs or problems there are on u-boot with Cavium CN5010
PCI
 init?

The problem is that the whole cavium code is proprietary. They develop
their cvmx code completely out of tree and link the code at file basis into
a specific tree with more proprietary changes. Since this code is
completely unknown to the community the community can not help you solving
SW issues. Therefor go and ask cavium for support.
On the other hand you may ask cavium to push their proprietary code
upstream. Then it would be possible (some day) to solve those issues within
the community.
The third chance is to take your documentation, the current code and
current u-boot tree and begin to implement open source support for your
device.

 Now I have the following on the board with Cavium CN5010. The board
 will hang when PCI init with the U-boot. Any suggestions are welcome. How
to
 identify if the issue's cause is HW or SW? 

If you have started building your own u-boot for a working device/board
then I guess it is a SW issue (missing support in mainline). If you have
received a _not_ working device/board it may be HW related ...

regards

Andreas Bießmann

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] How to do pci_init in flash

2010-09-26 Thread sywang
 

Hello everyone, 

 

I want to do pci configuration in the function 'board_init_f'.  How to do
this? 

 

Could I call the function pci_init in the function 'board_init_f' or add
the function pci_init into the function array  init_sequence ? 

 

In other words, what pre-conditions there are before calling pci_init? How
to check the condition is ready? 

 

 

Thanks!

Shuyou 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] u-boot vs. Cavium 5010 pci init

2010-09-25 Thread sywang
Hello, everyone, 

 

Do you know what bugs or problems there are on u-boot with Cavium CN5010 PCI
init?  Now I have the following on the board with Cavium CN5010. The board
will hang when PCI init with the U-boot. Any suggestions are welcome. How to
identify if the issue's cause is HW or SW? 

 

 

Thanks!

Shuyou

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] The board hangs while PCI-init

2010-09-23 Thread sywang
Hello, everyone, 

 

I try to bring the u-boot up on the board with Cavium CN5010.  When pci-init
is executed on the board_init_r, the board will hang.  Did you have such a
question before?  Any suggestions are welcome.

 

 

Thanks!

Shuyou

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot