[U-Boot] rk3288 (Tinkerboard) not booting

Anyone know a way to get a functional u-boot on the rk3288? (Tinkerboard, SD)
The docs seem to recommend: $ /tmp/arm-build/tools/mkimage -n rk3288 -T rksd -d arm/tinkerboard/u-boot-spl-dtb.bin out
However, that produces: Warning: SPL image is too large (size 0xb000) and will not boot
I saw this patch to disable I2C in the SPL to reduce its size: https://github.com/xypron/u-boot-patches/blob/df2ceb65fb4cc433aa17304ed9d3d5...
However, that breaks the build :-|
LD spl/u-boot-spl arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_write': /tmp/arm-build/drivers/power/pmic/rk8xx.c:30: undefined reference to `dm_i2c_write' arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_read': /tmp/arm-build/drivers/power/pmic/rk8xx.c:43: undefined reference to `dm_i2c_read' make[1]: *** [scripts/Makefile.spl:404: spl/u-boot-spl] Error 1 make: *** [Makefile:1762: spl/u-boot-spl] Error 2 make: Leaving directory '/tmp/arm-build' Disabling SPL Power then results in an error compiling MMC support Any alternative methods to getting u-boot running from SD? Rockchip devices seem to be kind of complex to get going :-| -- Alex

Hi
Please use the latest uboot. The fixes should be already merged
Mcihael
On Sun, Sep 22, 2019 at 10:53 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Anyone know a way to get a functional u-boot on the rk3288? (Tinkerboard, SD)
The docs seem to recommend: $ /tmp/arm-build/tools/mkimage -n rk3288 -T rksd -d arm/tinkerboard/u-boot-spl-dtb.bin out
However, that produces: Warning: SPL image is too large (size 0xb000) and will not boot
I saw this patch to disable I2C in the SPL to reduce its size: https://github.com/xypron/u-boot-patches/blob/df2ceb65fb4cc433aa17304ed9d3d5...
However, that breaks the build :-|
LD spl/u-boot-spl arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_write': /tmp/arm-build/drivers/power/pmic/rk8xx.c:30: undefined reference to `dm_i2c_write' arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_read': /tmp/arm-build/drivers/power/pmic/rk8xx.c:43: undefined reference to `dm_i2c_read' make[1]: *** [scripts/Makefile.spl:404: spl/u-boot-spl] Error 1 make: *** [Makefile:1762: spl/u-boot-spl] Error 2 make: Leaving directory '/tmp/arm-build' Disabling SPL Power then results in an error compiling MMC support Any alternative methods to getting u-boot running from SD? Rockchip devices seem to be kind of complex to get going :-| -- Alex _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Using master from git://git.denx.de/u-boot.git
commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD) Merge: d6c7309f56 79907a4f84 Author: Tom Rini trini@konsulko.com Date: Sat Sep 21 07:31:23 2019 -0400
Merge tag 'efi-2019-10-rc4-5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for v2019.10-rc4 (5)
This patch set fixes errors in the UEFI sub-system and adds a function to compare u16 strings which is prerequisite for further patches.
Same error:
$ ./tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out Warning: SPL image is too large (size 0xb000) and will not boot Error: image verification failed
$ ls -lah spl/u-boot-spl-dtb.bin -rw-rw-r-- 1 kallisti5 kallisti5 43K Sep 22 16:17 spl/u-boot-spl-dtb.bin
September 22, 2019 4:03 PM, "Michael Nazzareno Trimarchi" michael@amarulasolutions.com wrote:
Hi
Please use the latest uboot. The fixes should be already merged
Mcihael
On Sun, Sep 22, 2019 at 10:53 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Anyone know a way to get a functional u-boot on the rk3288? (Tinkerboard, SD)
The docs seem to recommend: $ /tmp/arm-build/tools/mkimage -n rk3288 -T rksd -d arm/tinkerboard/u-boot-spl-dtb.bin out
However, that produces: Warning: SPL image is too large (size 0xb000) and will not boot
I saw this patch to disable I2C in the SPL to reduce its size: https://github.com/xypron/u-boot-patches/blob/df2ceb65fb4cc433aa17304ed9d3d5... inker-rk3288-disable-CONFIG_SPL_I2C_SUPPORT.patch
However, that breaks the build :-|
LD spl/u-boot-spl arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_write': /tmp/arm-build/drivers/power/pmic/rk8xx.c:30: undefined reference to `dm_i2c_write' arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_read': /tmp/arm-build/drivers/power/pmic/rk8xx.c:43: undefined reference to `dm_i2c_read' make[1]: *** [scripts/Makefile.spl:404: spl/u-boot-spl] Error 1 make: *** [Makefile:1762: spl/u-boot-spl] Error 2 make: Leaving directory '/tmp/arm-build' Disabling SPL Power then results in an error compiling MMC support Any alternative methods to getting u-boot running from SD? Rockchip devices seem to be kind of complex to get going :-| -- Alex _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |

Hi
https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip/commits/master
make idbloader.img
Michael
On Sun, Sep 22, 2019 at 11:22 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Using master from git://git.denx.de/u-boot.git
commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD) Merge: d6c7309f56 79907a4f84 Author: Tom Rini trini@konsulko.com Date: Sat Sep 21 07:31:23 2019 -0400
Merge tag 'efi-2019-10-rc4-5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi Pull request for UEFI sub-system for v2019.10-rc4 (5) This patch set fixes errors in the UEFI sub-system and adds a function to compare u16 strings which is prerequisite for further patches.
Same error:
$ ./tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out Warning: SPL image is too large (size 0xb000) and will not boot Error: image verification failed
$ ls -lah spl/u-boot-spl-dtb.bin -rw-rw-r-- 1 kallisti5 kallisti5 43K Sep 22 16:17 spl/u-boot-spl-dtb.bin
September 22, 2019 4:03 PM, "Michael Nazzareno Trimarchi" michael@amarulasolutions.com wrote:
Hi
Please use the latest uboot. The fixes should be already merged
Mcihael
On Sun, Sep 22, 2019 at 10:53 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Anyone know a way to get a functional u-boot on the rk3288? (Tinkerboard, SD)
The docs seem to recommend: $ /tmp/arm-build/tools/mkimage -n rk3288 -T rksd -d arm/tinkerboard/u-boot-spl-dtb.bin out
However, that produces: Warning: SPL image is too large (size 0xb000) and will not boot
I saw this patch to disable I2C in the SPL to reduce its size: https://github.com/xypron/u-boot-patches/blob/df2ceb65fb4cc433aa17304ed9d3d5... inker-rk3288-disable-CONFIG_SPL_I2C_SUPPORT.patch
However, that breaks the build :-|
LD spl/u-boot-spl arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_write': /tmp/arm-build/drivers/power/pmic/rk8xx.c:30: undefined reference to `dm_i2c_write' arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_read': /tmp/arm-build/drivers/power/pmic/rk8xx.c:43: undefined reference to `dm_i2c_read' make[1]: *** [scripts/Makefile.spl:404: spl/u-boot-spl] Error 1 make: *** [Makefile:1762: spl/u-boot-spl] Error 2 make: Leaving directory '/tmp/arm-build' Disabling SPL Power then results in an error compiling MMC support Any alternative methods to getting u-boot running from SD? Rockchip devices seem to be kind of complex to get going :-| -- Alex _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |

$ sudo dd if=idbloader.img of=/dev/sdd seek=64 $ sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384
Still nothing.
September 22, 2019 4:47 PM, "Michael Nazzareno Trimarchi" michael@amarulasolutions.com wrote:
Hi
https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip/commits/master
make idbloader.img
Michael
On Sun, Sep 22, 2019 at 11:22 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Using master from git://git.denx.de/u-boot.git
commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD) Merge: d6c7309f56 79907a4f84 Author: Tom Rini trini@konsulko.com Date: Sat Sep 21 07:31:23 2019 -0400
Merge tag 'efi-2019-10-rc4-5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for v2019.10-rc4 (5)
This patch set fixes errors in the UEFI sub-system and adds a function to compare u16 strings which is prerequisite for further patches.
Same error:
$ ./tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out Warning: SPL image is too large (size 0xb000) and will not boot Error: image verification failed
$ ls -lah spl/u-boot-spl-dtb.bin -rw-rw-r-- 1 kallisti5 kallisti5 43K Sep 22 16:17 spl/u-boot-spl-dtb.bin
September 22, 2019 4:03 PM, "Michael Nazzareno Trimarchi" michael@amarulasolutions.com wrote:
Hi
Please use the latest uboot. The fixes should be already merged
Mcihael
On Sun, Sep 22, 2019 at 10:53 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Anyone know a way to get a functional u-boot on the rk3288? (Tinkerboard, SD)
The docs seem to recommend: $ /tmp/arm-build/tools/mkimage -n rk3288 -T rksd -d arm/tinkerboard/u-boot-spl-dtb.bin out
However, that produces: Warning: SPL image is too large (size 0xb000) and will not boot
I saw this patch to disable I2C in the SPL to reduce its size: https://github.com/xypron/u-boot-patches/blob/df2ceb65fb4cc433aa17304ed9d3d5... inker-rk3288-disable-CONFIG_SPL_I2C_SUPPORT.patch
However, that breaks the build :-|
LD spl/u-boot-spl arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_write': /tmp/arm-build/drivers/power/pmic/rk8xx.c:30: undefined reference to `dm_i2c_write' arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_read': /tmp/arm-build/drivers/power/pmic/rk8xx.c:43: undefined reference to `dm_i2c_read' make[1]: *** [scripts/Makefile.spl:404: spl/u-boot-spl] Error 1 make: *** [Makefile:1762: spl/u-boot-spl] Error 2 make: Leaving directory '/tmp/arm-build' Disabling SPL Power then results in an error compiling MMC support Any alternative methods to getting u-boot running from SD? Rockchip devices seem to be kind of complex to get going :-| -- Alex _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |

Sorry for spam, reposting with more context :-)
$ make clean $ make tinker-rk3288_defconfig $ ARCH=arm CROSS_COMPILE=$TOOLCHAIN/bin/arm-unknown-haiku- make -j2
$ sudo dd if=idbloader.img of=/dev/sdd seek=64 $ sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384
I can confirm this toolchain successfully builds working u-boots for 4 other 32-bit arm boards. (gcc version 8.3.0 (GCC))
September 22, 2019 5:00 PM, "Alexander von Gluck IV" kallisti5@unixzen.com wrote:
$ sudo dd if=idbloader.img of=/dev/sdd seek=64 $ sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384
Still nothing.
September 22, 2019 4:47 PM, "Michael Nazzareno Trimarchi" michael@amarulasolutions.com wrote:
Hi
https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip/commits/master
make idbloader.img
Michael
On Sun, Sep 22, 2019 at 11:22 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Using master from git://git.denx.de/u-boot.git
commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD) Merge: d6c7309f56 79907a4f84 Author: Tom Rini trini@konsulko.com Date: Sat Sep 21 07:31:23 2019 -0400
Merge tag 'efi-2019-10-rc4-5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for v2019.10-rc4 (5)
This patch set fixes errors in the UEFI sub-system and adds a function to compare u16 strings which is prerequisite for further patches.
Same error:
$ ./tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out Warning: SPL image is too large (size 0xb000) and will not boot Error: image verification failed
$ ls -lah spl/u-boot-spl-dtb.bin -rw-rw-r-- 1 kallisti5 kallisti5 43K Sep 22 16:17 spl/u-boot-spl-dtb.bin
September 22, 2019 4:03 PM, "Michael Nazzareno Trimarchi" michael@amarulasolutions.com wrote:
Hi
Please use the latest uboot. The fixes should be already merged
Mcihael
On Sun, Sep 22, 2019 at 10:53 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Anyone know a way to get a functional u-boot on the rk3288? (Tinkerboard, SD)
The docs seem to recommend: $ /tmp/arm-build/tools/mkimage -n rk3288 -T rksd -d arm/tinkerboard/u-boot-spl-dtb.bin out
However, that produces: Warning: SPL image is too large (size 0xb000) and will not boot
I saw this patch to disable I2C in the SPL to reduce its size: https://github.com/xypron/u-boot-patches/blob/df2ceb65fb4cc433aa17304ed9d3d5... inker-rk3288-disable-CONFIG_SPL_I2C_SUPPORT.patch
However, that breaks the build :-|
LD spl/u-boot-spl arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_write': /tmp/arm-build/drivers/power/pmic/rk8xx.c:30: undefined reference to `dm_i2c_write' arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_read': /tmp/arm-build/drivers/power/pmic/rk8xx.c:43: undefined reference to `dm_i2c_read' make[1]: *** [scripts/Makefile.spl:404: spl/u-boot-spl] Error 1 make: *** [Makefile:1762: spl/u-boot-spl] Error 2 make: Leaving directory '/tmp/arm-build' Disabling SPL Power then results in an error compiling MMC support Any alternative methods to getting u-boot running from SD? Rockchip devices seem to be kind of complex to get going :-| -- Alex _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Hi Alexander,
The tinker board already enable TPL, so it should be use TPL instead of SPL with mkimage tool.
The idbloader should have including both, if the idbloader boot fail, could you share the boot log?
Thanks, - Kever On 2019/9/23 上午5:22, Alexander von Gluck IV wrote:
Using master from git://git.denx.de/u-boot.git
commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD) Merge: d6c7309f56 79907a4f84 Author: Tom Rini trini@konsulko.com Date: Sat Sep 21 07:31:23 2019 -0400
Merge tag 'efi-2019-10-rc4-5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi Pull request for UEFI sub-system for v2019.10-rc4 (5) This patch set fixes errors in the UEFI sub-system and adds a function to compare u16 strings which is prerequisite for further patches.
Same error:
$ ./tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out Warning: SPL image is too large (size 0xb000) and will not boot Error: image verification failed
$ ls -lah spl/u-boot-spl-dtb.bin -rw-rw-r-- 1 kallisti5 kallisti5 43K Sep 22 16:17 spl/u-boot-spl-dtb.bin
September 22, 2019 4:03 PM, "Michael Nazzareno Trimarchi" michael@amarulasolutions.com wrote:
Hi
Please use the latest uboot. The fixes should be already merged
Mcihael
On Sun, Sep 22, 2019 at 10:53 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Anyone know a way to get a functional u-boot on the rk3288? (Tinkerboard, SD)
The docs seem to recommend: $ /tmp/arm-build/tools/mkimage -n rk3288 -T rksd -d arm/tinkerboard/u-boot-spl-dtb.bin out
However, that produces: Warning: SPL image is too large (size 0xb000) and will not boot
I saw this patch to disable I2C in the SPL to reduce its size: https://github.com/xypron/u-boot-patches/blob/df2ceb65fb4cc433aa17304ed9d3d5... inker-rk3288-disable-CONFIG_SPL_I2C_SUPPORT.patch
However, that breaks the build :-|
LD spl/u-boot-spl arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_write': /tmp/arm-build/drivers/power/pmic/rk8xx.c:30: undefined reference to `dm_i2c_write' arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_read': /tmp/arm-build/drivers/power/pmic/rk8xx.c:43: undefined reference to `dm_i2c_read' make[1]: *** [scripts/Makefile.spl:404: spl/u-boot-spl] Error 1 make: *** [Makefile:1762: spl/u-boot-spl] Error 2 make: Leaving directory '/tmp/arm-build' Disabling SPL Power then results in an error compiling MMC support Any alternative methods to getting u-boot running from SD? Rockchip devices seem to be kind of complex to get going :-| -- Alex _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Hello!
There is no uart output and no video with u-boot master. The board works as expected booting the Asus Armbian image on an SD.
At this point i'd be happy to get some u-boot uart output :-)
-- Alex
September 22, 2019 8:04 PM, "Kever Yang" kever.yang@rock-chips.com wrote:
Hi Alexander,
The tinker board already enable TPL, so it should be use TPL instead of SPL with mkimage tool.
The idbloader should have including both, if the idbloader boot fail, could you share the boot log?
Thanks,
- Kever
On 2019/9/23 上午5:22, Alexander von Gluck IV wrote:
Using master from git://git.denx.de/u-boot.git
commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD) Merge: d6c7309f56 79907a4f84 Author: Tom Rini trini@konsulko.com Date: Sat Sep 21 07:31:23 2019 -0400
Merge tag 'efi-2019-10-rc4-5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for v2019.10-rc4 (5) This patch set fixes errors in the UEFI sub-system and adds a function to
compare u16 strings which is prerequisite for further patches.
Same error:
$ ./tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out Warning: SPL image is too large (size 0xb000) and will not boot Error: image verification failed
$ ls -lah spl/u-boot-spl-dtb.bin -rw-rw-r-- 1 kallisti5 kallisti5 43K Sep 22 16:17 spl/u-boot-spl-dtb.bin
September 22, 2019 4:03 PM, "Michael Nazzareno Trimarchi" michael@amarulasolutions.com wrote:
Hi
Please use the latest uboot. The fixes should be already merged
Mcihael
On Sun, Sep 22, 2019 at 10:53 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Anyone know a way to get a functional u-boot on the rk3288? (Tinkerboard, SD)
The docs seem to recommend: $ /tmp/arm-build/tools/mkimage -n rk3288 -T rksd -d arm/tinkerboard/u-boot-spl-dtb.bin out
However, that produces: Warning: SPL image is too large (size 0xb000) and will not boot
I saw this patch to disable I2C in the SPL to reduce its size: https://github.com/xypron/u-boot-patches/blob/df2ceb65fb4cc433aa17304ed9d3d5... inker-rk3288-disable-CONFIG_SPL_I2C_SUPPORT.patch
However, that breaks the build :-|
LD spl/u-boot-spl arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_write': /tmp/arm-build/drivers/power/pmic/rk8xx.c:30: undefined reference to `dm_i2c_write' arm-unknown-haiku-ld.bfd: drivers/built-in.o: in function `rk8xx_read': /tmp/arm-build/drivers/power/pmic/rk8xx.c:43: undefined reference to `dm_i2c_read' make[1]: *** [scripts/Makefile.spl:404: spl/u-boot-spl] Error 1 make: *** [Makefile:1762: spl/u-boot-spl] Error 2 make: Leaving directory '/tmp/arm-build' Disabling SPL Power then results in an error compiling MMC support Any alternative methods to getting u-boot running from SD? Rockchip devices seem to be kind of complex to get going :-| -- Alex _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

On Mon, Sep 23, 2019 at 01:17:40AM +0000, Alexander von Gluck IV wrote:
Hello!
There is no uart output and no video with u-boot master. The board works as expected booting the Asus Armbian image on an SD.
At this point i'd be happy to get some u-boot uart output :-)
-- Alex
uart output works here with the latest master (780a17e814503f71d1b51d578b32bc9c89933183)
U-Boot TPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20) Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) Trying to boot from MMC1
U-Boot 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000)
Model: Tinker-RK3288 DRAM: 2 GiB MMC: dwmmc@ff0c0000: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Model: Tinker-RK3288 rockchip_dnl_key_pressed: adc_channel_single_shot fail! Net: eth0: ethernet@ff290000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk dwmmc@ff0c0000.blk... Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 88176 bytes read in 9 ms (9.3 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC
OpenBSD/armv7 BOOTARM 1.6
boot>

Ok, looking for differences now..
* Older Tinker Board? (I'm not using the Tinker Board S) * Same steps? * Same config? tinker-rk3288_defconfig? * Uart 115200? * Any HDMI Video output? * GCC version?
September 23, 2019 12:34 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:17:40AM +0000, Alexander von Gluck IV wrote:
Hello!
There is no uart output and no video with u-boot master. The board works as expected booting the Asus Armbian image on an SD.
At this point i'd be happy to get some u-boot uart output :-)
-- Alex
uart output works here with the latest master (780a17e814503f71d1b51d578b32bc9c89933183)
U-Boot TPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20) Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) Trying to boot from MMC1
U-Boot 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000)
Model: Tinker-RK3288 DRAM: 2 GiB MMC: dwmmc@ff0c0000: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Model: Tinker-RK3288 rockchip_dnl_key_pressed: adc_channel_single_shot fail! Net: eth0: ethernet@ff290000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk dwmmc@ff0c0000.blk... Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 88176 bytes read in 9 ms (9.3 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC
OpenBSD/armv7 BOOTARM 1.6
boot>

On Mon, Sep 23, 2019 at 01:06:35PM +0000, Alexander von Gluck IV wrote:
Ok, looking for differences now..
- Older Tinker Board? (I'm not using the Tinker Board S)
yes, the original one
- Same steps?
along the lines of
gmake CROSS_COMPILE="arm-none-eabi-" tinker-rk3288_defconfig gmake CROSS_COMPILE="arm-none-eabi-" all tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
- Same config? tinker-rk3288_defconfig?
yes
- Uart 115200?
yes
- Any HDMI Video output?
no hdmi connected only serial
- GCC version?
gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target
September 23, 2019 12:34 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:17:40AM +0000, Alexander von Gluck IV wrote:
Hello!
There is no uart output and no video with u-boot master. The board works as expected booting the Asus Armbian image on an SD.
At this point i'd be happy to get some u-boot uart output :-)
-- Alex
uart output works here with the latest master (780a17e814503f71d1b51d578b32bc9c89933183)
U-Boot TPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20) Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) Trying to boot from MMC1
U-Boot 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000)
Model: Tinker-RK3288 DRAM: 2 GiB MMC: dwmmc@ff0c0000: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Model: Tinker-RK3288 rockchip_dnl_key_pressed: adc_channel_single_shot fail! Net: eth0: ethernet@ff290000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk dwmmc@ff0c0000.blk... Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 88176 bytes read in 9 ms (9.3 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC
OpenBSD/armv7 BOOTARM 1.6
boot>
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Oh, a difference:
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
I'm using the idbloader.img that u-boot automatically spits out.
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader-manual.img Image Type: Rockchip RK32 (SD/MMC) boot image Data Size: 20480 bytes $ cat spl/u-boot-spl-dtb.bin >> idbloader-manual.img
However.. the generated idbloader-manual.img from the commands above is identical to idbloader.img that u-boot produces compared with md5sum.
Are you writing the following?
sudo dd if=idbloader.img of=/dev/sdd seek=64 sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384
(where /dev/sdd is a MicroSD card)
These should be enough to get into u-boot at startup... correct?
I'm not missing some requirement of u-boot.bin on a FAT32 partition or something?
-- Alex
September 23, 2019 8:31 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:06:35PM +0000, Alexander von Gluck IV wrote:
Ok, looking for differences now..
- Older Tinker Board? (I'm not using the Tinker Board S)
yes, the original one
- Same steps?
along the lines of
gmake CROSS_COMPILE="arm-none-eabi-" tinker-rk3288_defconfig gmake CROSS_COMPILE="arm-none-eabi-" all tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
- Same config? tinker-rk3288_defconfig?
yes
- Uart 115200?
yes
- Any HDMI Video output?
no hdmi connected only serial
- GCC version?
gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target
September 23, 2019 12:34 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:17:40AM +0000, Alexander von Gluck IV wrote:
Hello!
There is no uart output and no video with u-boot master. The board works as expected booting the Asus Armbian image on an SD.
At this point i'd be happy to get some u-boot uart output :-)
-- Alex
uart output works here with the latest master (780a17e814503f71d1b51d578b32bc9c89933183)
U-Boot TPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20) Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) Trying to boot from MMC1
U-Boot 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000)
Model: Tinker-RK3288 DRAM: 2 GiB MMC: dwmmc@ff0c0000: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Model: Tinker-RK3288 rockchip_dnl_key_pressed: adc_channel_single_shot fail! Net: eth0: ethernet@ff290000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk dwmmc@ff0c0000.blk... Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 88176 bytes read in 9 ms (9.3 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC OpenBSD/armv7 BOOTARM 1.6
boot> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

On Mon, Sep 23, 2019 at 01:55:32PM +0000, Alexander von Gluck IV wrote:
Oh, a difference:
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
I'm using the idbloader.img that u-boot automatically spits out.
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader-manual.img Image Type: Rockchip RK32 (SD/MMC) boot image Data Size: 20480 bytes $ cat spl/u-boot-spl-dtb.bin >> idbloader-manual.img
However.. the generated idbloader-manual.img from the commands above is identical to idbloader.img that u-boot produces compared with md5sum.
Are you writing the following?
sudo dd if=idbloader.img of=/dev/sdd seek=64 sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384
those files/offsets yes
(where /dev/sdd is a MicroSD card)
These should be enough to get into u-boot at startup... correct?
yes
I am using uart2 https://www.asus.com/us/Single-Board-Computer/Tinker-Board/ 32 UART2TX_PWM3 33 UART2RX_PWM2 and 30 for ground
I'm not missing some requirement of u-boot.bin on a FAT32 partition or something?
the tpl/spl and u-boot proper are at raw offsets in this case
-- Alex
September 23, 2019 8:31 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:06:35PM +0000, Alexander von Gluck IV wrote:
Ok, looking for differences now..
- Older Tinker Board? (I'm not using the Tinker Board S)
yes, the original one
- Same steps?
along the lines of
gmake CROSS_COMPILE="arm-none-eabi-" tinker-rk3288_defconfig gmake CROSS_COMPILE="arm-none-eabi-" all tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
- Same config? tinker-rk3288_defconfig?
yes
- Uart 115200?
yes
- Any HDMI Video output?
no hdmi connected only serial
- GCC version?
gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target
September 23, 2019 12:34 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:17:40AM +0000, Alexander von Gluck IV wrote:
Hello!
There is no uart output and no video with u-boot master. The board works as expected booting the Asus Armbian image on an SD.
At this point i'd be happy to get some u-boot uart output :-)
-- Alex
uart output works here with the latest master (780a17e814503f71d1b51d578b32bc9c89933183)
U-Boot TPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20) Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) Trying to boot from MMC1
U-Boot 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000)
Model: Tinker-RK3288 DRAM: 2 GiB MMC: dwmmc@ff0c0000: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Model: Tinker-RK3288 rockchip_dnl_key_pressed: adc_channel_single_shot fail! Net: eth0: ethernet@ff290000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk dwmmc@ff0c0000.blk... Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 88176 bytes read in 9 ms (9.3 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC OpenBSD/armv7 BOOTARM 1.6
boot> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

ACK! I'm on UART1. Mix that with video potentially not working in u-boot and I think I have my answer.
I'll test this afternoon.
(PS, since the Tinker is supposed to be "Raspberry Pi like", why would u-boot present on UART2 on it while the Raspberry Pi u-boot uses UART1?)
Thanks for the help!
-- Alex
September 23, 2019 9:19 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:55:32PM +0000, Alexander von Gluck IV wrote:
Oh, a difference:
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
I'm using the idbloader.img that u-boot automatically spits out.
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader-manual.img Image Type: Rockchip RK32 (SD/MMC) boot image Data Size: 20480 bytes $ cat spl/u-boot-spl-dtb.bin >> idbloader-manual.img
However.. the generated idbloader-manual.img from the commands above is identical to idbloader.img that u-boot produces compared with md5sum.
Are you writing the following?
sudo dd if=idbloader.img of=/dev/sdd seek=64 sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384
those files/offsets yes
(where /dev/sdd is a MicroSD card)
These should be enough to get into u-boot at startup... correct?
yes
I am using uart2 https://www.asus.com/us/Single-Board-Computer/Tinker-Board 32 UART2TX_PWM3 33 UART2RX_PWM2 and 30 for ground
I'm not missing some requirement of u-boot.bin on a FAT32 partition or something?
the tpl/spl and u-boot proper are at raw offsets in this case
-- Alex
September 23, 2019 8:31 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:06:35PM +0000, Alexander von Gluck IV wrote:
Ok, looking for differences now..
- Older Tinker Board? (I'm not using the Tinker Board S)
yes, the original one
- Same steps?
along the lines of
gmake CROSS_COMPILE="arm-none-eabi-" tinker-rk3288_defconfig gmake CROSS_COMPILE="arm-none-eabi-" all tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
- Same config? tinker-rk3288_defconfig?
yes
- Uart 115200?
yes
- Any HDMI Video output?
no hdmi connected only serial
- GCC version?
gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target
September 23, 2019 12:34 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:17:40AM +0000, Alexander von Gluck IV wrote:
Hello!
There is no uart output and no video with u-boot master. The board works as expected booting the Asus Armbian image on an SD.
At this point i'd be happy to get some u-boot uart output :-)
-- Alex
uart output works here with the latest master (780a17e814503f71d1b51d578b32bc9c89933183)
U-Boot TPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20) Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) Trying to boot from MMC1
U-Boot 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000)
Model: Tinker-RK3288 DRAM: 2 GiB MMC: dwmmc@ff0c0000: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Model: Tinker-RK3288 rockchip_dnl_key_pressed: adc_channel_single_shot fail! Net: eth0: ethernet@ff290000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk dwmmc@ff0c0000.blk... Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 88176 bytes read in 9 ms (9.3 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC OpenBSD/armv7 BOOTARM 1.6
boot> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Just rounding this one out.. I was definitely looking at the wrong uart. After moving to uart2, things are working as expected (minus hdmi output from u-boot)
Thanks!
-- Alex
September 23, 2019 9:27 AM, "Alexander von Gluck IV" kallisti5@unixzen.com wrote:
ACK! I'm on UART1. Mix that with video potentially not working in u-boot and I think I have my answer.
I'll test this afternoon.
(PS, since the Tinker is supposed to be "Raspberry Pi like", why would u-boot present on UART2 on it while the Raspberry Pi u-boot uses UART1?)
Thanks for the help!
-- Alex
September 23, 2019 9:19 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:55:32PM +0000, Alexander von Gluck IV wrote:
Oh, a difference:
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
I'm using the idbloader.img that u-boot automatically spits out.
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader-manual.img Image Type: Rockchip RK32 (SD/MMC) boot image Data Size: 20480 bytes $ cat spl/u-boot-spl-dtb.bin >> idbloader-manual.img
However.. the generated idbloader-manual.img from the commands above is identical to idbloader.img that u-boot produces compared with md5sum.
Are you writing the following?
sudo dd if=idbloader.img of=/dev/sdd seek=64 sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384
those files/offsets yes
(where /dev/sdd is a MicroSD card)
These should be enough to get into u-boot at startup... correct?
yes
I am using uart2 https://www.asus.com/us/Single-Board-Computer/Tinker-Board 32 UART2TX_PWM3 33 UART2RX_PWM2 and 30 for ground
I'm not missing some requirement of u-boot.bin on a FAT32 partition or something?
the tpl/spl and u-boot proper are at raw offsets in this case
-- Alex
September 23, 2019 8:31 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:06:35PM +0000, Alexander von Gluck IV wrote:
Ok, looking for differences now..
- Older Tinker Board? (I'm not using the Tinker Board S)
yes, the original one
- Same steps?
along the lines of
gmake CROSS_COMPILE="arm-none-eabi-" tinker-rk3288_defconfig gmake CROSS_COMPILE="arm-none-eabi-" all tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
- Same config? tinker-rk3288_defconfig?
yes
- Uart 115200?
yes
- Any HDMI Video output?
no hdmi connected only serial
- GCC version?
gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target
September 23, 2019 12:34 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:17:40AM +0000, Alexander von Gluck IV wrote:
Hello!
There is no uart output and no video with u-boot master. The board works as expected booting the Asus Armbian image on an SD.
At this point i'd be happy to get some u-boot uart output :-)
-- Alex
uart output works here with the latest master (780a17e814503f71d1b51d578b32bc9c89933183)
U-Boot TPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20) Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) Trying to boot from MMC1
U-Boot 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000)
Model: Tinker-RK3288 DRAM: 2 GiB MMC: dwmmc@ff0c0000: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Model: Tinker-RK3288 rockchip_dnl_key_pressed: adc_channel_single_shot fail! Net: eth0: ethernet@ff290000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk dwmmc@ff0c0000.blk... Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 88176 bytes read in 9 ms (9.3 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC OpenBSD/armv7 BOOTARM 1.6
boot> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Hi
On Wed, Sep 25, 2019 at 8:19 PM Alexander von Gluck IV kallisti5@unixzen.com wrote:
Just rounding this one out.. I was definitely looking at the wrong uart. After moving to uart2, things are working as expected (minus hdmi output from u-boot)
This can be enabled, but it's not the default on tinker
Michael
Thanks!
-- Alex
September 23, 2019 9:27 AM, "Alexander von Gluck IV" kallisti5@unixzen.com wrote:
ACK! I'm on UART1. Mix that with video potentially not working in u-boot and I think I have my answer.
I'll test this afternoon.
(PS, since the Tinker is supposed to be "Raspberry Pi like", why would u-boot present on UART2 on it while the Raspberry Pi u-boot uses UART1?)
Thanks for the help!
-- Alex
September 23, 2019 9:19 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:55:32PM +0000, Alexander von Gluck IV wrote:
Oh, a difference:
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
I'm using the idbloader.img that u-boot automatically spits out.
$ tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader-manual.img Image Type: Rockchip RK32 (SD/MMC) boot image Data Size: 20480 bytes $ cat spl/u-boot-spl-dtb.bin >> idbloader-manual.img
However.. the generated idbloader-manual.img from the commands above is identical to idbloader.img that u-boot produces compared with md5sum.
Are you writing the following?
sudo dd if=idbloader.img of=/dev/sdd seek=64 sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384
those files/offsets yes
(where /dev/sdd is a MicroSD card)
These should be enough to get into u-boot at startup... correct?
yes
I am using uart2 https://www.asus.com/us/Single-Board-Computer/Tinker-Board 32 UART2TX_PWM3 33 UART2RX_PWM2 and 30 for ground
I'm not missing some requirement of u-boot.bin on a FAT32 partition or something?
the tpl/spl and u-boot proper are at raw offsets in this case
-- Alex
September 23, 2019 8:31 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:06:35PM +0000, Alexander von Gluck IV wrote:
Ok, looking for differences now..
- Older Tinker Board? (I'm not using the Tinker Board S)
yes, the original one
- Same steps?
along the lines of
gmake CROSS_COMPILE="arm-none-eabi-" tinker-rk3288_defconfig gmake CROSS_COMPILE="arm-none-eabi-" all tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img && \ cat spl/u-boot-spl-dtb.bin >> idbloader.img
- Same config? tinker-rk3288_defconfig?
yes
- Uart 115200?
yes
- Any HDMI Video output?
no hdmi connected only serial
- GCC version?
gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target
September 23, 2019 12:34 AM, "Jonathan Gray" jsg@jsg.id.au wrote:
On Mon, Sep 23, 2019 at 01:17:40AM +0000, Alexander von Gluck IV wrote:
Hello!
There is no uart output and no video with u-boot master. The board works as expected booting the Asus Armbian image on an SD.
At this point i'd be happy to get some u-boot uart output :-)
-- Alex
uart output works here with the latest master (780a17e814503f71d1b51d578b32bc9c89933183)
U-Boot TPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20) Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000) Trying to boot from MMC1
U-Boot 2019.10-rc3-00401-ge23a6e5c43 (Sep 23 2019 - 15:13:20 +1000)
Model: Tinker-RK3288 DRAM: 2 GiB MMC: dwmmc@ff0c0000: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Model: Tinker-RK3288 rockchip_dnl_key_pressed: adc_channel_single_shot fail! Net: eth0: ethernet@ff290000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk dwmmc@ff0c0000.blk... Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 88176 bytes read in 9 ms (9.3 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC OpenBSD/armv7 BOOTARM 1.6
boot> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
participants (4)
-
Alexander von Gluck IV
-
Jonathan Gray
-
Kever Yang
-
Michael Nazzareno Trimarchi