On Sat, Oct 26, 2019 at 03:38:19PM +0200, Unicorn wrote: > On Sat, 2019-10-26 at 21:54 +1100, Jonathan Gray wrote: > > On Sat, Oct 26, 2019 at 09:38:20AM +0200, Unicorn wrote: > > > Do you have advice on how to proceed? I assume I need to build it > > > myself, but I don't know what exactly that entails. I would be > > > happy to > > > work on it though if you point me to the general steps I need to > > > take. > > > > Building all the boards in ports would take a while so for just this > > one > > assuming an existing OpenBSD host > > > > Install packages > > arm-none-eabi-gcc-linaro bison dtc swig gsed python (2.7) > > > > ftp https://ftp.denx.de/pub/u-boot/u-boot-2019.10.tar.bz2 > > tar jxvf u-boot-2019.10.tar.bz2 > > patch -p0 < /path/to/patch > > cd u-boot-2019.10 > > mkdir -p build > > gmake PYTHON=python2.7 CROSS_COMPILE="arm-none-eabi-" \ > > O=build A20-OLinuXino-Lime2-eMMC_defconfig > > gmake PYTHON=python2.7 CROSS_COMPILE="arm-none-eabi-" \ > > O=build all > > > > The file you need will be build/u-boot-sunxi-with-spl.bin > > > > diff -upr u-boot-2019.10.orig/configs/A20-OLinuXino-Lime2- > > eMMC_defconfig u-boot-2019.10/configs/A20-OLinuXino-Lime2- > > eMMC_defconfig > > --- u-boot-2019.10.orig/configs/A20-OLinuXino-Lime2-eMMC_defconfig > > Sat Oct 26 21:36:23 2019 > > +++ u-boot-2019.10/configs/A20-OLinuXino-Lime2-eMMC_defconfig Sat Oct > > 26 21:37:03 2019 > > @@ -11,6 +11,7 @@ CONFIG_USB0_VBUS_DET="PH5" > > CONFIG_I2C1_ENABLE=y > > CONFIG_SATAPWR="PC3" > > CONFIG_SPL_SPI_SUNXI=y > > +CONFIG_GMAC_TX_DELAY=4 > > CONFIG_AHCI=y > > # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set > > CONFIG_USE_PREBOOT=y > > @@ -25,6 +26,8 @@ CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino- > > lime2- > > CONFIG_SCSI_AHCI=y > > CONFIG_DFU_RAM=y > > CONFIG_FASTBOOT_CMD_OEM_FORMAT=y > > +CONFIG_PHY_MICREL=y > > +CONFIG_PHY_MICREL_KSZ90X1=y > > CONFIG_ETH_DESIGNWARE=y > > CONFIG_RGMII=y > > CONFIG_MII=y > > diff -upr u-boot-2019.10.orig/scripts/check-config.sh u-boot- > > 2019.10/scripts/check-config.sh > > --- u-boot-2019.10.orig/scripts/check-config.sh Sat Oct 26 > > 21:36:30 2019 > > +++ u-boot-2019.10/scripts/check-config.sh Sat Oct 26 21:36:46 > > 2019 > > @@ -39,12 +39,12 @@ new_adhoc="${path}.adhoc" > > export LC_ALL=C > > export LC_COLLATE=C > > > > -cat ${path} |sed -n 's/^#define \(CONFIG_[A-Za-z0-9_]*\).*/\1/p' > > |sort |uniq \ > > +cat ${path} | gsed -n 's/^#define \(CONFIG_[A-Za-z0-9_]*\).*/\1/p' > > |sort |uniq \ > > >${configs} > > > > comm -23 ${configs} ${whitelist} > ${suspects} > > > > -cat `find ${srctree} -name "Kconfig*"` |sed -n \ > > +cat `find ${srctree} -name "Kconfig*"` | gsed -n \ > > -e 's/^\s*config *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \ > > -e 's/^\s*menuconfig \([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \ > > |sort |uniq > ${ok} > > > > This did the trick, thank you! > Working perfectly now on Rev. K; internet works, installing as I write > this. > > Is there a way to get this supported or at least the package updated to > make this more accessible to others with the same board? I could also > contact Olimex about this if there is something they could do.
To do this in a way that does not break older revisions the eeprom would need to be parsed to get the revision and then make the delay conditional. https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-eeprom-contents/Olimex-A20-EEPROM-October-2019.pdf There is code to do that along with many other changes in the olimex repository but it appears to be missing from upstream U-Boot.