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

there is a device name PI, the CPU is Ingenic 4740 [1], now we have the u-boot-1.1.6 patch.[2]
I want the u-boot Integrate with 'upstream' what am I got do. just give some advice or step.
very thanks
[1]: a Chinese company. http://www.ingenic.cn/pfwebplus/productServ/App/JZ4740/pfCustomPage.aspx [2]: http://code.google.com/p/pi-project/source/browse/trunk/u-boot/patchs/u-boot...
Xiangfu Blog: http://www.openmobilefree.net

Dear xiangfu_gmail,
In message 49E5A2ED.2060503@gmail.com you wrote:
there is a device name PI, the CPU is Ingenic 4740 [1], now we have the u-boot-1.1.6 patch.[2]
I want the u-boot Integrate with 'upstream' what am I got do. just give some advice or step.
Please see http://www.denx.de/wiki/U-Boot/CodingStyle and http://www.denx.de/wiki/U-Boot/Patches .
We appreciate if you submit your patches following the above guidelines - but you got to spend a lot of work before being able to do that. U-Boot 1.1.6 is extremely old, so you must rebase your code first against current top of tree.
Best regards,
Wolfgang Denk

Hi Wolfgang. if I have any progress , I will send it to this list.
thanks Xiangfu Best Regards.
Wolfgang Denk wrote:
Dear xiangfu_gmail,
In message 49E5A2ED.2060503@gmail.com you wrote:
there is a device name PI, the CPU is Ingenic 4740 [1], now we have the u-boot-1.1.6 patch.[2]
I want the u-boot Integrate with 'upstream' what am I got do. just give some advice or step.
Please see http://www.denx.de/wiki/U-Boot/CodingStyle and http://www.denx.de/wiki/U-Boot/Patches .
We appreciate if you submit your patches following the above guidelines - but you got to spend a lot of work before being able to do that. U-Boot 1.1.6 is extremely old, so you must rebase your code first against current top of tree.
Best regards,
Wolfgang Denk

Wolfgang Denk wrote:
Dear xiangfu_gmail,
In message 49E5A2ED.2060503@gmail.com you wrote:
there is a device name PI, the CPU is Ingenic 4740 [1], now we have the u-boot-1.1.6 patch.
I have try to add new device(PI) to u-boot. when I compile the code I get error message: ------------------------------------ make[1]: Entering directory `/home/xiangfu/workspace/pi-project/pi-u-boot/common' mipsel-linux-gcc -g -Os -D__KERNEL__ -DTEXT_BASE=0x80100000 -I/home/xiangfu/workspace/pi-project/pi-u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mipseltools-gcc412-glibc261/lib/gcc/mipsel-linux/4.1.2/include -pipe -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -march=4kc -mtune=4kc -EB -Wall -Wstrict-prototypes -fno-stack-protector -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' make[1]: *** [bedbug.o] Error 1 make[1]: Leaving directory `/home/xiangfu/workspace/pi-project/pi-u-boot/common' make: *** [common/libcommon.a] Error 2
give me some advice very thanks.
you can find all the code at http://github.com/xiangfu/pi-u-boot/tree/master and checkout branch "xiangfu" it's the branch I try to merge with upstream.

Dear xiangfu_gmail,
In message 4A101E59.8050505@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
participants (2)
-
Wolfgang Denk
-
xiangfu_gmail