Debian support for the x15

I finally tested the Beagle-x15 on Debian after getting a power supply
(thanks for the links on those).

It worked with rootfs on microSD, hope to test eSATA soon once the
adapter gets here.

Requested to enable DRA7XX for the debian kernel packaging:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807624

I was also asked about a few kernel drivers that might be relevent, are
the following appropriate for the Beagle-x15:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807624#10

CONFIG_SND_DAVINCI_SOC_MCASP
CONFIG_VIDEO_TI_VPE
CONFIG_SPI_TI_QSPI
CONFIG_PCI_DRA7XX

I made a quick attempt at forward-porting patches from ti-u-boot-2015.07
to mainline u-boot 2016.01-rc2, and it compiled fine, but SPL couldn't
find the u-boot image. I'll try and grab a (fail to) boot log soon.

Do I have the offsets (same as I use on the BBB) right?

dd if=MLO of=/dev/mmcblkX count=1 seek=1 conv=notrunc bs=128k
dd if=u-boot.img of=/dev/mmcblkX count=2 seek=1 conv=notrunc bs=384k

Am I missing something obvious in the patch series?

http://cascadia.debian.net/~vagrant/ti-u-boot-to-mainline/

From 527ed79ce84d48862ab6af631efbca5764232384 Mon Sep 17 00:00:00 2001

I finally tested the Beagle-x15 on Debian after getting a power supply

...

I made a quick attempt at forward-porting patches from ti-u-boot-2015.07
to mainline u-boot 2016.01-rc2, and it compiled fine, but SPL couldn't
find the u-boot image. I'll try and grab a (fail to) boot log soon.

I'm getting the same error on beaglebone black:

U-Boot SPL 2016.01-rc2+dfsg1-1~20151212~1 (Dec 13 2015 - 03:00:32)
Trying to boot from MMC
MMC Device 1 not found
spl: could not find mmc device. error: -19
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

So at least it's not specific to the beagle-x15...

live well,
  vagrant

I'm getting the same error on beaglebone black:

U-Boot SPL 2016.01-rc2+dfsg1-1~20151212~1 (Dec 13 2015 - 03:00:32)
Trying to boot from MMC
MMC Device 1 not found
spl: could not find mmc device. error: -19
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

Bisected the issue down to:

commit a1e56cf6d430d78db3a4dc08a422311145e32315
Author: Nikita Kiryanov <nikita@compulab.co.il>

    spl: mmc: add support for BOOT_DEVICE_MMC2

    Currently the mmc device that SPL looks at is always mmc0,
    regardless
    of the BOOT_DEVICE_MMCx value. This forces some boards to
    implement hacks in order to boot from other mmc devices.

    Make SPL take into account the correct mmc device.

    Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
    Reviewed-by: Tom Rini <trini@konsulko.com>

arch/arm/cpu/armv7/sunxi/board.c | 10 +---------
common/spl/spl.c | 2 +-
common/spl/spl_mmc.c | 41 +++++++++++++++++++++++++++++++++--------
include/spl.h | 2 +-
4 files changed, 36 insertions(+), 19 deletions(-)

Mentioned in u-boot IRC, will get this fixed upstream...

live well,
  vagrant

Should be good now, along with having re-fixed the case of BBB eMMC booting
not working with 'am335x_evm' builds.