Skip to contentSkip to conversation

rk3288 SPL size

U-Boot Wadim Egorov 4 participants 5 messages Apr 5, 2019 – Apr 16, 2019

lore
Share & tools
lore
#0 lore raw

Hi,

it seems the new common rockchip pinctrl driver does not really fit into our phycore-rk3288 SPL setup. It works for every other rk3288 based board because they don't need special power configurations at the SPL stage.

So my question is: is there any work going on to reduce the SPL size even more?

Besides that, I think I can remove the power stuff at the SPL stage from our board. The SOM was redesigned and is equipped with an STM8 connected to the RK818. The required setup we did before in the SPL is now done by the ST controller. I know there are only a few SOMs without the STM8 out in the wild. So if I remove it it will affect only a few people who probably already have both boards.

Regards,
Wadim

#1 lore raw

Hi,

Am Freitag, 5. April 2019, 12:10:21 CEST schrieb Wadim Egorov:

Quoted 7 lines

it seems the new common rockchip pinctrl driver does not really fit into our phycore-rk3288 SPL setup. It works for every other rk3288 based board because they don't need special power configurations at the SPL stage.

So my question is: is there any work going on to reduce the SPL size even more?

Quoted 6 lines

Besides that, I think I can remove the power stuff at the SPL stage from our board. The SOM was redesigned and is equipped with an STM8 connected to the RK818. The required setup we did before in the SPL is now done by the ST controller. I know there are only a few SOMs without the STM8 out in the wild. So if I remove it it will affect only a few people who probably already have both boards.

alternatively you could introduce a tpl-stage, similar to what Amarula does with their Vyasa board. With spl in ram there is obviously no size limitation anymore.

But obviously if the power-fix isn't actually needed anymore, dropping it might be the easiest solution.

#2 lore raw
In reply to Wadim Egorov

Wadim,

Quoted 7 lines · Wadim Egorov

Hi,

it seems the new common rockchip pinctrl driver does not really fit into our phycore-rk3288 SPL setup. It works for every other rk3288 based board because they don't need special power configurations at the SPL stage.

I recommend to implement a simple-pinctrl for SPL, which is similar to what we’ve done for the RK3399 (not on the list yet, as it’s collocated with a bigger rework of the DMC initialisation that reads some data from an I2C EEPROM).

As you’ll probably need to do this initialisation even at the TPL stage (if you use one on the RK3288), then the simple pinctrl will need to be available at TPL.

Thanks,
Phiilipp.

Quoted 13 lines

So my question is: is there any work going on to reduce the SPL size even more?

Besides that, I think I can remove the power stuff at the SPL stage from our board. The SOM was redesigned and is equipped with an STM8 connected to the RK818. The required setup we did before in the SPL is now done by the ST controller. I know there are only a few SOMs without the STM8 out in the wild. So if I remove it it will affect only a few people who probably already have both boards.

Regards,
Wadim

#3 lore raw
In reply to Wadim Egorov
Quoted 5 lines · Wadim Egorov

Hi,

it seems the new common rockchip pinctrl driver does not really fit into our phycore-rk3288 SPL setup. It works for every other rk3288 based board because they don't need special power configurations at the SPL stage.

It turns out tinker-rk3288 SPL no longer fits in 2019.04 and previously worked fine in 2019.01.

Warning: SPL image is too large (size 0x8800) and will not boot
Error: image verification failed

built with gcc-linaro 6.3.2017.02

bisecting led to the pinctrl changes.

with SPL_PINCTRL_ROCKCHIP disabled it fits and U-Boot output on serial gets as far as the efi loader then no output appears on serial when a kernel is loaded.

Quoted 18 lines

So my question is: is there any work going on to reduce the SPL size even more?

Besides that, I think I can remove the power stuff at the SPL stage from our board. The SOM was redesigned and is equipped with an STM8 connected to the RK818. The required setup we did before in the SPL is now done by the ST controller. I know there are only a few SOMs without the STM8 out in the wild. So if I remove it it will affect only a few people who probably already have both boards.

Regards,
Wadim

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

#4 lore raw
Quoted 13 lines · Jonathan Gray
Quoted 5 lines · Wadim Egorov

Hi,

it seems the new common rockchip pinctrl driver does not really fit into our phycore-rk3288 SPL setup. It works for every other rk3288 based board because they don't need special power configurations at the SPL stage.

It turns out tinker-rk3288 SPL no longer fits in 2019.04 and previously worked fine in 2019.01.

Warning: SPL image is too large (size 0x8800) and will not boot
Error: image verification failed

Quoted 7 lines

built with gcc-linaro 6.3.2017.02

bisecting led to the pinctrl changes.

with SPL_PINCTRL_ROCKCHIP disabled it fits and U-Boot output on serial gets as far as the efi loader then no output appears on serial when a kernel is loaded.

Changing the defconfig to not have CONFIG_SPL_I2C_SUPPORT=y also fits and also still hangs on loading a kernel.