I'm working to rebuild uboot-v2 (I think it's 2.0.0-rc10) for the
Beagle board and I'm running into some build issues. It looks like
the include/drivers.h file doesn't have the "driver_d" struct updated
with fields for the read/write/open/etc function pointers. So when
the code below in the board-beagle.c is compiled I get the error
below.
static struct driver_d ram_drv = {
.name = "ram",
.probe = dummy_probe,
.open = dev_open_default,
.close = dev_close_default,
.read = mem_read,
.write = mem_write,
.lseek = dev_lseek_default,
};
make[1]: `arch/arm/include/asm/mach-types.h' is up to date.
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/config.h -> board/omap/config.h
CC board/omap/board-beagle.o
board/omap/board-beagle.c:254: error: unknown field 'open' specified
in initializer
board/omap/board-beagle.c:254: warning: initialization from
incompatible pointer type
board/omap/board-beagle.c:255: error: unknown field 'close' specified
in initializer
board/omap/board-beagle.c:255: warning: initialization from
incompatible pointer type
board/omap/board-beagle.c:256: error: unknown field 'read' specified
in initializer
board/omap/board-beagle.c:256: warning: initialization from
incompatible pointer type
board/omap/board-beagle.c:257: error: unknown field 'write' specified
in initializer
board/omap/board-beagle.c:257: warning: initialization makes integer
from pointer without a cast
board/omap/board-beagle.c:258: error: unknown field 'lseek' specified
in initializer
board/omap/board-beagle.c:258: warning: initialization from
incompatible pointer type
board/omap/board-beagle.c: In function 'beagle_devices_init':
board/omap/board-beagle.c:277: warning: implicit declaration of
function 'armlinux_add_dram'
make[1]: *** [board/omap/board-beagle.o] Error 1
make: *** [board/omap] Error 2