[U-Boot] Many Blackfin boards are broken

Hello Sonic and other Blackfin board maintainers.
I cannot build many of Blackfin boards.
(1) gpio.c:780: error: ‘PORTA_FER’ undeclared here (not in a function) gpio.c:781: error: ‘PORTB_FER’ undeclared here (not in a function) gpio.c:782: error: ‘PORTC_FER’ undeclared here (not in a function) gpio.c:783: error: ‘PORTD_FER’ undeclared here (not in a function) gpio.c:784: error: ‘PORTE_FER’ undeclared here (not in a function)
I confirmed this error message for: bf506f-ezkit, bf525-ucr2, bf537-minotaur, bf537-srv1, blackstamp, dnp5370.
(2) Compiling cm-bf548 board failed with the following message: gpio.c:61:3: error: #error no gpio arrays defined
(3) Compiling bf533-stamp failed with the following message: soft_i2c.c:155: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:155: error: (Each undeclared identifier is reported only once soft_i2c.c:155: error: for each function it appears in.) soft_i2c.c:155: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:158: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:160: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:182: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:182: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:183: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:183: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:198: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:198: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:201: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:201: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:217: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:217: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:219: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:219: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:238: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:238: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:240: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:240: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:262: error: ‘pFIO_FLAG_D’ undeclared (first use in this function) soft_i2c.c:283: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:283: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:284: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:284: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:292: error: ‘pFIO_FLAG_D’ undeclared (first use in this function)
Best Regards Masahiro Yamada

Hi Masahiro,
Thank you for report these failure. They are all fixed. See my 4 patches in the other emails.
Regards,
Sonic Zhang
On Mon, Nov 18, 2013 at 12:22 PM, Masahiro Yamada yamada.m@jp.panasonic.com wrote:
Hello Sonic and other Blackfin board maintainers.
I cannot build many of Blackfin boards.
(1) gpio.c:780: error: ‘PORTA_FER’ undeclared here (not in a function) gpio.c:781: error: ‘PORTB_FER’ undeclared here (not in a function) gpio.c:782: error: ‘PORTC_FER’ undeclared here (not in a function) gpio.c:783: error: ‘PORTD_FER’ undeclared here (not in a function) gpio.c:784: error: ‘PORTE_FER’ undeclared here (not in a function)
I confirmed this error message for: bf506f-ezkit, bf525-ucr2, bf537-minotaur, bf537-srv1, blackstamp, dnp5370.
(2) Compiling cm-bf548 board failed with the following message: gpio.c:61:3: error: #error no gpio arrays defined
(3) Compiling bf533-stamp failed with the following message: soft_i2c.c:155: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:155: error: (Each undeclared identifier is reported only once soft_i2c.c:155: error: for each function it appears in.) soft_i2c.c:155: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:158: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:160: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:182: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:182: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:183: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:183: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:198: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:198: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:201: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:201: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:217: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:217: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:219: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:219: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:238: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:238: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:240: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:240: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:262: error: ‘pFIO_FLAG_D’ undeclared (first use in this function) soft_i2c.c:283: error: ‘pFIO_DIR’ undeclared (first use in this function) soft_i2c.c:283: error: ‘pFIO_INEN’ undeclared (first use in this function) soft_i2c.c:284: error: ‘pFIO_FLAG_S’ undeclared (first use in this function) soft_i2c.c:284: error: ‘pFIO_FLAG_C’ undeclared (first use in this function) soft_i2c.c:292: error: ‘pFIO_FLAG_D’ undeclared (first use in this function)
Best Regards Masahiro Yamada

Hello Sonic
Thanks for your patches.
And a discussion is going on to fix another error: http://u-boot.10912.n7.nabble.com/PATCH-cmd-test-fix-a-compile-error-on-Blac...
But it looks like there are still various errors and warnings on Blackfin boards.
I pick up some of them I noticed:
(1) For many boards arch/blackfin/include/asm/serial1.h:238: warning: implicit declaration of function ‘BUG’
(2) For many boards
initcode.c: In function ‘serial_init’: initcode.c:150: warning: unused variable ‘uart_base’ initcode.c: In function ‘initcode’: initcode.c:743: warning: ‘sdivB’ is used uninitialized in this function initcode.c:1004: note: ‘sdivB’ was declared here initcode.c:743: warning: ‘divB’ is used uninitialized in this function initcode.c:1004: note: ‘divB’ was declared here initcode.c:744: warning: ‘vcoB’ is used uninitialized in this function initcode.c:1004: note: ‘vcoB’ was declared here
(3) For bf609-ezkit board
bf609-ezkit.c:26: error: ‘P_A3’ undeclared (first use in this function) bf609-ezkit.c:26: error: (Each undeclared identifier is reported only once bf609-ezkit.c:26: error: for each function it appears in.) bf609-ezkit.c:28: error: ‘P_NORCK’ undeclared (first use in this function) bf609-ezkit.c:41: error: ‘P_RMII0’ undeclared (first use in this function) bf609-ezkit.c:41: error: invalid initializer bf609-ezkit.c:43: error: ‘EMAC0_MACCFG’ undeclared (first use in this function) bf609-ezkit.c:46: error: ‘P_RMII1’ undeclared (first use in this function) bf609-ezkit.c:46: error: invalid initializer bf609-ezkit.c:48: error: ‘EMAC1_MACCFG’ undeclared (first use in this function)
(4) For some boards such as tcm-bf537, link error
bfin-elf-ld: u-boot section `.bss' will not fit in region `ram' bfin-elf-ld: region `ram' overflowed by 8084 bytes
So, what I'd like you to do is to compile all Blackfin boards and fix errors and warnings you find. (Or send emals to board maintainers for the errors you are not responsible for)
Best Regards Masahiro Yamada
participants (2)
-
Masahiro Yamada
-
Sonic Zhang