Skip to contentSkip to conversation

rk3288 (Tinkerboard) not booting

U-Boot Alexander von Gluck IV 4 participants 16 messages Sep 22, 2019 – Sep 26, 2019

lore
Share & tools
lore
#0 lore raw

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/df2ceb65fb4cc433aa17304ed9d3d591c14ef5ac/0001-configs-tinker-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

#1 lore raw

Hi

Please use the latest uboot. The fixes should be already merged

Mcihael

Quoted 30 lines · Alexander von Gluck IV

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/df2ceb65fb4cc433aa17304ed9d3d591c14ef5ac/0001-configs-tinker-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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Signature · 4 lines
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |
#2 lore raw

Using master from git://git.denx.de/u-boot.git

commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD)
Merge: d6c7309f56 79907a4f84
Author: Tom Rini <[email protected]>
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
Quoted 45 lines · Michael Nazzareno Trimarchi

Hi

Please use the latest uboot. The fixes should be already merged

Mcihael

Quoted 14 lines · Alexander von Gluck IV

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/df2ceb65fb4cc433aa17304ed9d3d591c14ef5ac/0001-configs-
inker-rk3288-disable-CONFIG_SPL_I2C_SUPPORT.patch

However, that breaks the build :-|

Quoted 16 lines

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 at 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 |
#3 lore raw

Hi

https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip/commits/master

make idbloader.img

Michael

Quoted 76 lines · Alexander von Gluck IV

Using master from git://git.denx.de/u-boot.git

commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD)
Merge: d6c7309f56 79907a4f84
Author: Tom Rini <[email protected]>
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
Quoted 45 lines · Michael Nazzareno Trimarchi

Hi

Please use the latest uboot. The fixes should be already merged

Mcihael

Quoted 14 lines · Alexander von Gluck IV

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/df2ceb65fb4cc433aa17304ed9d3d591c14ef5ac/0001-configs-
inker-rk3288-disable-CONFIG_SPL_I2C_SUPPORT.patch

However, that breaks the build :-|

Quoted 16 lines

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 at 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 |
Signature · 4 lines
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |
#4 lore raw
$ sudo dd if=idbloader.img of=/dev/sdd seek=64
$ sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384

Still nothing.

Quoted 87 lines · Michael Nazzareno Trimarchi

Hi

https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip/commits/master

make idbloader.img

Michael

Quoted 65 lines · Alexander von Gluck IV

Using master from git://git.denx.de/u-boot.git

commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD)
Merge: d6c7309f56 79907a4f84
Author: Tom Rini <[email protected]>
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" <[email protected]> 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 <[email protected]> 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/df2ceb65fb4cc433aa17304ed9d3d591c14ef5ac/0001-configs-
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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Quoted 5 lines

--

| 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 |
#5 lore raw

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))

Quoted 98 lines · Alexander von Gluck IV
$ sudo dd if=idbloader.img of=/dev/sdd seek=64
$ sudo dd if=u-boot-dtb.img of=/dev/sdd seek=16384

Still nothing.

Quoted 10 lines · Michael Nazzareno Trimarchi

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 <[email protected]> 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 <[email protected]>
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" <[email protected]> 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 <[email protected]> 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/df2ceb65fb4cc433aa17304ed9d3d591c14ef5ac/0001-configs-
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 at 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 |
Quoted 5 lines

--

| 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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#6 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

In reply to Alexander von Gluck IV

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

Quoted 78 lines · Alexander von Gluck IV

Using master from git://git.denx.de/u-boot.git

commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD)
Merge: d6c7309f56 79907a4f84
Author: Tom Rini <[email protected]>
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
Quoted 39 lines · Michael Nazzareno Trimarchi

Hi

Please use the latest uboot. The fixes should be already merged

Mcihael

Quoted 14 lines · Alexander von Gluck IV

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/df2ceb65fb4cc433aa17304ed9d3d591c14ef5ac/0001-configs-
inker-rk3288-disable-CONFIG_SPL_I2C_SUPPORT.patch

However, that breaks the build :-|

Quoted 16 lines

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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Quoted 5 lines

--

| 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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#7 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

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

Quoted 82 lines · Kever Yang

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

Quoted 72 lines · Alexander von Gluck IV

Using master from git://git.denx.de/u-boot.git

commit 390183b58179ddaf986422f4d9446c596660f7e0 (HEAD -> master, origin/master, origin/HEAD)
Merge: d6c7309f56 79907a4f84
Author: Tom Rini <[email protected]>
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

Quoted 2 lines

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
Quoted 8 lines · Michael Nazzareno Trimarchi

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 <[email protected]> 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/df2ceb65fb4cc433aa17304ed9d3d591c14ef5ac/0001-configs-
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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Quoted 5 lines

--

| 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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#8 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

Quoted 8 lines · Alexander von Gluck IV

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 at 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 at 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 at 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

Quoted 1 line
Quoted 1 line

OpenBSD/armv7 BOOTARM 1.6

boot>

#9 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

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?

Quoted 49 lines · Jonathan Gray
Quoted 8 lines · Alexander von Gluck IV

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 at 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 at 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 at 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

Quoted 1 line
Quoted 1 line

OpenBSD/armv7 BOOTARM 1.6

boot>

#10 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

Quoted 3 lines · Alexander von Gluck IV

Ok, looking for differences now..

* Older Tinker Board? (I'm not using the Tinker Board S)

yes, the original one

Quoted 1 line

* 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

Quoted 1 line

* Same config? tinker-rk3288_defconfig?

yes

Quoted 1 line

* Uart 115200?

yes

Quoted 1 line

* Any HDMI Video output?

no hdmi connected only serial

Quoted 1 line

* GCC version?

gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target

Quoted 56 lines
Quoted 46 lines · Jonathan Gray
Quoted 8 lines · Alexander von Gluck IV

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 at 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 at 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 at 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

Quoted 3 lines
Quoted 1 line
Quoted 1 line

OpenBSD/armv7 BOOTARM 1.6

boot>

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#11 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

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

Quoted 88 lines · Jonathan Gray
Quoted 3 lines · Alexander von Gluck IV

Ok, looking for differences now..

* Older Tinker Board? (I'm not using the Tinker Board S)

yes, the original one

Quoted 1 line

* 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

Quoted 1 line

* Same config? tinker-rk3288_defconfig?

yes

Quoted 1 line

* Uart 115200?

yes

Quoted 1 line

* Any HDMI Video output?

no hdmi connected only serial

Quoted 1 line

* GCC version?

gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target

Quoted 55 lines

September 23, 2019 12:34 AM, "Jonathan Gray" <[email protected]> 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 at 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 at 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 at 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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#12 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

Quoted 12 lines · Alexander von Gluck IV

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
Quoted 8 lines

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

Quoted 4 lines

(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

Quoted 2 lines

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

Quoted 93 lines

-- Alex

Quoted 88 lines · Jonathan Gray
Quoted 3 lines · Alexander von Gluck IV

Ok, looking for differences now..

* Older Tinker Board? (I'm not using the Tinker Board S)

yes, the original one

Quoted 1 line

* 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

Quoted 1 line

* Same config? tinker-rk3288_defconfig?

yes

Quoted 1 line

* Uart 115200?

yes

Quoted 1 line

* Any HDMI Video output?

no hdmi connected only serial

Quoted 1 line

* GCC version?

gcc-linaro-6.3.2017.02 binutils 2.27 arm-none-eabi target

Quoted 55 lines

September 23, 2019 12:34 AM, "Jonathan Gray" <[email protected]> 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 at 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 at 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 at 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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#13 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

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

Quoted 132 lines · Jonathan Gray
Quoted 12 lines · Alexander von Gluck IV

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
Quoted 7 lines

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

Quoted 3 lines

(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

Quoted 1 line

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

Quoted 92 lines

-- Alex

September 23, 2019 8:31 AM, "Jonathan Gray" <[email protected]> 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" <[email protected]> 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 at 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 at 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 at 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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#14 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

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

Quoted 151 lines · Alexander von Gluck IV

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

Quoted 36 lines · Jonathan Gray
Quoted 12 lines · Alexander von Gluck IV

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
Quoted 7 lines

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

Quoted 3 lines

(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

Quoted 96 lines
Quoted 1 line

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

Quoted 92 lines

-- Alex

September 23, 2019 8:31 AM, "Jonathan Gray" <[email protected]> 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" <[email protected]> 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 at 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 at 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 at 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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#15 lore raw

[U-Boot] rk3288 (Tinkerboard) not booting【请注意,邮件由[email protected]代发】

Hi

Quoted 3 lines · Alexander von Gluck IV

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

Quoted 161 lines

Thanks!

-- Alex

Quoted 147 lines · Alexander von Gluck IV

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

Quoted 36 lines · Jonathan Gray
Quoted 12 lines · Alexander von Gluck IV

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
Quoted 7 lines

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

Quoted 3 lines

(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

Quoted 96 lines
Quoted 1 line

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

Quoted 92 lines

-- Alex

September 23, 2019 8:31 AM, "Jonathan Gray" <[email protected]> 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" <[email protected]> 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 at 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 at 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 at 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 at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Quoted 4 lines

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Signature · 4 lines
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |