[U-Boot] new cpu(Ingenic), new board(PI)

Wolfgang Denk wd at denx.de
Sun May 17 16:40:59 CEST 2009


Dear xiangfu_gmail,

In message <4A101E59.8050505 at gmail.com> you wrote:
>
> I have try to add new device(PI) to u-boot.
> when I compile the code I get error message:
...
> -c -o bedbug.o bedbug.c
> bedbug.c: In function 'find_next_address':
> bedbug.c:1081: error: 'struct pt_regs' has no member named 'nip'
> bedbug.c:1089: error: 'struct pt_regs' has no member named 'ctr'
> bedbug.c:1090: error: 'struct pt_regs' has no member named 'ccr'
> bedbug.c:1091: error: 'struct pt_regs' has no member named 'link'
...
> give me some advice

Well, obviously you have a problem with the dfitions for your CPU in
some of the header files. As I don't know your code (and I don't
review any out-of-tree repositories) I can just say that you should
fix your header files.  As a quick and dirty workaound you could also
disable KGDB support in your board configuration unless you really
need it.

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: wd at denx.de
Brain: an apparatus with which we think we think.    - Ambrose Bierce


More information about the U-Boot mailing list