[Barnes & Noble Nook Tablet] fattire:
For now, just fix what's missing?

Sorry I've been in nookcolor and touchpadland for a while and not paying much attention to what's going on here, so I apologize if this has been said previously, but the issue w/building u-boot seems to be the following few lines in distro/u-boot/common/Makefile:

ifeq ($(BOARD),omap4430sdp)
# Pull in the default kernel command line
include $(TOPDIR)/../../../device/ti/blaze/BoardConfig.mk
CFLAGS += -DBOARD_KERNEL_CMDLINE="$(BOARD_KERNEL_CMDLINE)"
endif

That BoardConfig.mk file isn't included in the u-boot source, but it's obviously referring to the board file in the device tree in their version of Android and is where the kernel's default bootcmd is apparently being set.

You can also see the reference again here in distro/u-boot/include/configs/omap4430sdp.h

// bootargs are set in device/ti/blaze/BoardConfig.mk
#define CONFIG_BOOTARGS ""
#define CONFIG_EXTRA_ENV_SETTINGS \
"commonbootargs=" stringify(BOARD_KERNEL_CMDLINE) "\0" \
"sdbootargs=${commonbootargs} root=/dev/mmcblk1p2 rw" "\0"

So, to be more specific, they're just setting "commonbootargs" to whatever BOARD_KERNEL_CMDLINE is set at in Android BoardConfig.mk.

You can petition them into handing that little file over under the GPL, but I'm guessing there's not going to be much interesting in there (for u-boot building anyway), except a line that looks something like:

BOARD_KERNEL_CMDLINE := "something"

So what is that "something"? Well, we might compare with the Nook Color u-boot source... Note this is the cm7-customized version, and it's omap3621/encore (nook color) not the omap4430/blaze (nook tablet) , but anyway, maybe there will be some inspiration:

"commonbootargs=console=ttyO0,115200n8 rw init=/init videoout=omap24xxvout omap_vout_mod.video1_numbuffers=6 omap_vout_mod.vid1_static_vrfb_alloc=y omap_vout_mod.video2_numbuffers=6 omap_vout_mod.vid2_static_vrfb_alloc=y omapfb.vram=0:8M no_console_suspend" \

Okay, y'know, so most of that is bull****, but still, it's something to reference maybe. Also, keep in mind that dalingrin modified the NC kernel so that bootargs are specified in the kernel config instead of via u-boot but whatever. It may be totally irrelevant to the nook tablet, but there you have it.

Anyway, let's move on to Method #2, going to omapzoom's omap4430 repo to see if we can figure out what BOARD_KERNEL_CMDLINE is supposed to be.

So in their file-- include/configs/omap4_sdp4430.h, you can see CONFIG_EXTRA_ENV_SETTINGS is also being set. So that's another source of settings.

And finally, I don't have a nook tablet, and I can't check the following, but if you've got one rooted, can someone try Method #3?

# cat /proc/cmdline

to see what command line your kernel is using?

If you got it, then change the end of distro/u-boot/common/Makefile to:

ifeq ($(BOARD),omap4430sdp)
# Pull in the default kernel command line
#include $(TOPDIR)/../../../device/ti/blaze/BoardConfig.mk
BOARD_KERNEL_CMDLINE := "(what I found with cat /proc/cmdline)"
CFLAGS += -DBOARD_KERNEL_CMDLINE="$(BOARD_KERNEL_CMDLINE)"
endif

And try building again. For me, putting in a bs string got me past that error, to this one:

arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: internal error in relocate, at /tmp/android-build-bb7e003d31d08f72cabc269a652912b7/src/build/../binutils/binutils-20100303/gold/arm.cc:9134

This error may be related to something similar I found here. Perhaps downgrade to an older compiler? I had a similar internal error with xloader (mlo), but I'm lazy and don't have a NT anyway, but just throwing this all out there for someone to try.