[U-Boot] question about add new board to MAKEALL

Hi all.
I am try to add new board to "MAKEALL" here[1] is the patch. but "MAKEALL" doesn't compile the new board qi_lb60. here[2] is the tail of compile log
this board is base on next branch commit: 953b7e629198fe2eb0adf272fb9140f2a4a51826
I am sure that when I use mipsel-openwrt-linux-, the qi_lb60 compile fine. did I need add the "mipsel-openwrt-linux-" to MAKEALL??
give me some advice? thanks.
[1]------------------ diff --git a/MAKEALL b/MAKEALL index d6d5f5b..3b6953b 100755 --- a/MAKEALL +++ b/MAKEALL @@ -786,7 +786,8 @@ LIST_mips=" \ ## MIPS Systems (little endian) #########################################################################
-LIST_mips4kc_el="" +LIST_mips4kc_el=" \ + qi_lb60"
LIST_mips5kc_el=""
[2] xiangfu@openmobilefree:~/u-boot/u-boot.git$ tail ../build.all.log text data bss dec hex filename 191056 14820 22604 228480 37c80 ../u-boot-build/u-boot Configuring for ppmc7xx board... text data bss dec hex filename 144420 9768 22464 176652 2b20c ../u-boot-build/u-boot
--------------------- SUMMARY ---------------------------- Boards compiled: 354 Boards with warnings or errors: 19 ( MVBC_P lwmon TQM823L_LCD BMW caddy2 MPC8536DS MPC8536DS_NAND MPC8536DS_SDCARD MPC8536DS_SPIFLASH MPC8544DS P2020DS P2020DS_36BIT PM854 AP1000 ML2 sc3 EVB64260 P3G4 ZUMA ) ----------------------------------------------------------

Dear =?UTF-8?B?IlhpYW5nZnUgTGl1KOWImOWQkeWvjCki?=,
In message 4C280BE4.8030207@openmobilefree.net you wrote:
I am try to add new board to "MAKEALL" here[1] is the patch. but "MAKEALL" doesn't compile the new board qi_lb60.
MAKEALL is just a wrapper script that runs "make xxx_config" and "make all" for you. It has zero impact on the actual compilation of your board. If it doesn't work, then pothe problem is elsewhere.
I am sure that when I use mipsel-openwrt-linux-, the qi_lb60 compile fine. did I need add the "mipsel-openwrt-linux-" to MAKEALL??
No, never. Maybe you did not read the documentation and forgot to set the CROSS_COMPILE environment variable?
xiangfu@openmobilefree:~/u-boot/u-boot.git$ tail ../build.all.log text data bss dec hex filename 191056 14820 22604 228480 37c80 ../u-boot-build/u-boot Configuring for ppmc7xx board... text data bss dec hex filename 144420 9768 22464 176652 2b20c ../u-boot-build/u-boot
--------------------- SUMMARY ---------------------------- Boards compiled: 354 Boards with warnings or errors: 19 ( MVBC_P lwmon TQM823L_LCD BMW caddy2 MPC8536DS MPC8536DS_NAND MPC8536DS_SDCARD MPC8536DS_SPIFLASH MPC8544DS P2020DS P2020DS_36BIT PM854 AP1000 ML2 sc3 EVB64260 P3G4 ZUMA )
These are all PowerPC boards - if your cross compiler is set for the Power Architecture, you should not be surprised that it cannot compile your MIPS code.
Best regards,
Wolfgang Denk

Hi Wolfgang
thanks for reply.
before I apply the new board patches. the "MAKEALL" compile 359 boards. after I applied the new board patches. the "MAKEALL" still compile 359 boards. and the build log is the same. is that mean my patch is ok to send to mailist list??
if I am wrong just correct me :)
---- some git question: I try to update my local [next] branch with upstream. but I got this error: "fatal: Couldn't find remote ref next".
but I run the same command in [master] branch. works fine. please give me some advice. very thanks.
more info about my git: xiangfu@openmobilefree:~/u-boot/u-boot.git$ git br -a master * next remotes/origin/GPL-Cleanup remotes/origin/HEAD -> origin/master remotes/origin/i.MX31 remotes/origin/lwmon5 remotes/origin/master remotes/origin/next remotes/origin/origin remotes/origin/tx25 remotes/origin/u-boot-2009.11.y xiangfu@openmobilefree:~/u-boot/u-boot.git$ git pull origin next fatal: Couldn't find remote ref next xiangfu@openmobilefree:~/u-boot/u-boot.git$
On 06/28/2010 03:43 PM, Wolfgang Denk wrote:
Dear =?UTF-8?B?IlhpYW5nZnUgTGl1KOWImOWQkeWvjCki?=,
In message4C280BE4.8030207@openmobilefree.net you wrote:
I am try to add new board to "MAKEALL" here[1] is the patch. but "MAKEALL" doesn't compile the new board qi_lb60.
MAKEALL is just a wrapper script that runs "make xxx_config" and "make all" for you. It has zero impact on the actual compilation of your board. If it doesn't work, then pothe problem is elsewhere.
I am sure that when I use mipsel-openwrt-linux-, the qi_lb60 compile fine. did I need add the "mipsel-openwrt-linux-" to MAKEALL??
No, never. Maybe you did not read the documentation and forgot to set the CROSS_COMPILE environment variable?
xiangfu@openmobilefree:~/u-boot/u-boot.git$ tail ../build.all.log text data bss dec hex filename 191056 14820 22604 228480 37c80 ../u-boot-build/u-boot Configuring for ppmc7xx board... text data bss dec hex filename 144420 9768 22464 176652 2b20c ../u-boot-build/u-boot
--------------------- SUMMARY ---------------------------- Boards compiled: 354 Boards with warnings or errors: 19 ( MVBC_P lwmon TQM823L_LCD BMW caddy2 MPC8536DS MPC8536DS_NAND MPC8536DS_SDCARD MPC8536DS_SPIFLASH MPC8544DS P2020DS P2020DS_36BIT PM854 AP1000 ML2 sc3 EVB64260 P3G4 ZUMA )
These are all PowerPC boards - if your cross compiler is set for the Power Architecture, you should not be surprised that it cannot compile your MIPS code.
Best regards,
Wolfgang Denk

Dear =?UTF-8?B?IlhpYW5nZnUgTGl1KOWImOWQkeWvjCki?=,
In message 4C43C9A9.7020707@openmobilefree.net you wrote:
before I apply the new board patches. the "MAKEALL" compile 359 boards. after I applied the new board patches. the "MAKEALL" still compile 359 boards.
Then you obviously missed to add your board to the MAKEALL script.
and the build log is the same. is that mean my patch is ok to send to mailist list??
No, on contrary.
some git question: I try to update my local [next] branch with upstream. but I got this error: "fatal: Couldn't find remote ref next".
Try: "git checkout master; git remote prune origin"
xiangfu@openmobilefree:~/u-boot/u-boot.git$ git pull origin next fatal: Couldn't find remote ref next
There is no "next" branch in the mainline repository at this point of the release cycle.
Best regards,
Wolfgang Denk

Hi Wolfgang Denk
On 07/20/2010 01:45 AM, Wolfgang Denk wrote:
Dear =?UTF-8?B?IlhpYW5nZnUgTGl1KOWImOWQkeWvjCki?=,
In message4C43C9A9.7020707@openmobilefree.net you wrote:
before I apply the new board patches. the "MAKEALL" compile 359 boards. after I applied the new board patches. the "MAKEALL" still compile 359 boards.
Then you obviously missed to add your board to the MAKEALL script.
and the build log is the same. is that mean my patch is ok to send to mailist list??
No, on contrary.
ok. will keep working on that today.
some git question: I try to update my local [next] branch with upstream. but I got this error: "fatal: Couldn't find remote ref next".
Try: "git checkout master; git remote prune origin"
xiangfu@openmobilefree:~/u-boot/u-boot.git$ git pull origin next fatal: Couldn't find remote ref next
There is no "next" branch in the mainline repository at this point of the release cycle.
thanks for the info.
Best regards,
Wolfgang Denk
thanks again :)

Hi Wolfgang
is this patch[1] ok for "MAKEALL"? or how to add my board "qi_lb60_config" to "MAKEALL"
I am just apply the patch_[1]. now it's making. it need several hours for "MAKEALL" in my pc. so I will got the build log several hours later. but I would also ask in list for some advice.
thanks.
On 07/20/2010 01:45 AM, Wolfgang Denk wrote:
Then you obviously missed to add your board to the MAKEALL script.
[1] diff --git a/MAKEALL b/MAKEALL index 2133559..ac9c16d 100755 --- a/MAKEALL +++ b/MAKEALL @@ -797,7 +797,9 @@ LIST_mips=" \ ## MIPS Systems (little endian) #############################################################
-LIST_mips4kc_el="" +LIST_mips4kc_el=" \ + qi_lb60 \ +"
LIST_mips5kc_el=""

Dear Xiangfu Liu,
In message 4C45580F.6080708@openmobilefree.net you wrote:
is this patch[1] ok for "MAKEALL"? or how to add my board "qi_lb60_config" to "MAKEALL"
Well, did you try it out? And did it work for you?
It looks good, buty I cannot test it.
I am just apply the patch_[1]. now it's making. it need several hours for "MAKEALL" in my pc.
MIPS has only few targets - building should be much faster. You may try and find a faster machine, especially with faster storage and more RAM?
Best regards,
Wolfgang Denk

On 07/20/2010 05:51 PM, Wolfgang Denk wrote:
Dear Xiangfu Liu,
is this patch[1] ok for "MAKEALL"? or how to add my board "qi_lb60_config" to "MAKEALL"
Well, did you try it out? And did it work for you?
I modify the patch to a new one[1], since this board use a new cpu named "xburst". this new patch works fine when I run "./MAKEALL mips_el" :)
(this company name is "Ingenic". their cpu name is xburst jz4740 #which is our board used :) xburst jz4760 just FYI.)
[1]diff --git a/MAKEALL b/MAKEALL index 2133559..d909700 100755 --- a/MAKEALL +++ b/MAKEALL @@ -806,10 +806,15 @@ LIST_au1xx0_el=" \ pb1000 \ "
+LIST_xburst_el=" \ + qi_lb60 \ +" + LIST_mips_el=" \ ${LIST_mips4kc_el} \ ${LIST_mips5kc_el} \ ${LIST_au1xx0_el} \ + ${LIST_xburst_el} \ "

Dear Xiangfu Liu,
In message 4C45B400.2000509@openmobilefree.net you wrote:
I modify the patch to a new one[1], since this board use a new cpu named "xburst". this new patch works fine when I run "./MAKEALL mips_el" :)
Well, we don't want to add lists for each and every CPU, especially not for MIPS where we have only very few systems supported; which family does xburst best fit in?
Best regards,
Wolfgang Denk

Hi Wolfgang
On 07/20/2010 11:47 PM, Wolfgang Denk wrote:
Dear Xiangfu Liu,
In message4C45B400.2000509@openmobilefree.net you wrote:
I modify the patch to a new one[1], since this board use a new cpu named "xburst". this new patch works fine when I run "./MAKEALL mips_el" :)
Well, we don't want to add lists for each and every CPU, especially not for MIPS where we have only very few systems supported; which
ok. understand.
family does xburst best fit in?
in there website[1], they don't mention MIPS at all, but I found this in their head file: "MIPS 4Kc (32 bit RISC)" and the gcc argument is "-march=4kc -mtune=4kc -EL -mabicalls -mips32"
here[2] is the new files for the jz4740 soc. give me some advice on this. thanks.
(some linke for our board: http://sharism.cc/products/ben-nanonote/ http://en.qi-hardware.com/wiki/Ben_NanoNote in this wiki you can find all the document of our boards. include hardware design files. )
[1] http://www.ingenic.cn/eng/productServ/AppPro/JZ4740/pfCustomPage.aspx ftp://ftp.ingenic.cn/2soc/Jz4740_ds.pdf
[2] . ├── arch │ └── mips │ ├── cpu │ │ └── xburst │ │ ├── cache.S │ │ ├── config.mk │ │ ├── cpu.c │ │ ├── interrupts.c │ │ ├── jz4740.c │ │ ├── jz_mmc.c │ │ ├── jz_mmc.h │ │ ├── jz_serial.c │ │ ├── Makefile │ │ ├── nanonote_gpm940b0.c │ │ ├── nanonote_gpm940b0.h │ │ ├── start.S │ │ ├── start_spl.S │ │ └── usbboot.S │ └── include │ └── asm │ └── jz4740.h ├── board │ └── xburst │ ├── nanonote │ ├── config.mk │ ├── config.tmp │ ├── Makefile │ ├── nanonote.c │ ├── u-boot.lds │ └── u-boot-nand.lds ├── drivers │ └── mtd │ └── nand │ └── jz4740_nand.c ├── include │ └── configs │ ├── nanonote.h │ └── qi_lb60.h └── nand_spl ├── board │ └── xburst │ └── nanonote │ ├── config.mk │ ├── Makefile │ └── u-boot.lds └── nand_boot_jz4740.c
Best regards,
Wolfgang Denk

Dear Xiangfu Liu,
In message 4C464389.6070207@openmobilefree.net you wrote:
in there website[1], they don't mention MIPS at all, but I found this in their head file: "MIPS 4Kc (32 bit RISC)" and the gcc argument is "-march=4kc -mtune=4kc -EL -mabicalls -mips32"
OK. So please add the entry to the mips4kc (or mips4kc_el) list, please.
Best regards,
Wolfgang Denk
participants (3)
-
"Xiangfu Liu(刘向富)"
-
Wolfgang Denk
-
Xiangfu Liu