From: Tom Rini Date: Sat, 8 Apr 2017 21:14:21 -0400 Subject: [U-Boot] Apparent conflict between CONFIG_BLK and CONFIG_API In-Reply-To: <20170307215317.GA30688@fuz.su> References: <20170307215317.GA30688@fuz.su> Message-ID: <20170409011421.GA19897@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Mar 07, 2017 at 10:53:17PM +0100, fuz at fuz.su wrote: > Good evening, > > I am trying to port FreeBSD to the ASUS Tinker Board, a computer based > on the Rockchip 3288 SoC. FreeBSD's boot loader (named loader(8)) needs > CONFIG_API to be enabled, but trying to build an U-Boot from trunk with > both CONFIG_API and CONFIG_BLK (as required for Rockchip SoC's?) leads > to the following build failure: > > $ CROSS_COMPILE=arm-none-eabi- gmake tinker-rk3288_defconfig all > ... > CC api/api_storage.o > api/api_storage.c: In function 'dev_read_stor': > api/api_storage.c:334:9: error: 'struct blk_desc' has no member named 'block_read' > if ((dd->block_read) == NULL) { > ^~ > api/api_storage.c:339:11: error: 'struct blk_desc' has no member named 'block_read' > return dd->block_read(dd, start, len, buf); > ^~ > api/api_storage.c:340:1: warning: control reaches end of non-void function [-Wreturn-type] > } > ^ > gmake[2]: *** [scripts/Makefile.build:281: api/api_storage.o] Fehler 1 > gmake[1]: *** [Makefile:1229: api] Fehler 2 > gmake: *** [Makefile:460: __build_one_by_one] Error 2 > > I applied the following fix, but the product doesn't boot. Perhaps > that's not a property of the fix though: > > > Yours, > Robert Clausecker > > diff --git a/api/api_storage.c b/api/api_storage.c > index e80818df1c..815ed1128d 100644 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: