Building the image

Hi,

I’m trying to build an image to flash on the Rockpi S.
I followed this documentation: https://wiki.radxa.com/RockpiS/dev/Debian.
The problem I have is that I can’t get the U-Boot to build, because the config file is missing.
./build/mk-uboot.sh rockpis #For ROCK Pi S
./build/mk-uboot.sh rockpis #For ROCK Pi S
Building U-boot for rockpis board!
Using rockpi-s-rk3308_defconfig
***
*** Can’t find default configuration
“arch/…/configs/rockpi-s-rk3308_defconfig”!
***
scripts/kconfig/Makefile:121: recipe for target
‘rockpi-s-rk3308_defconfig’ failed
make[2]: *** [rockpi-s-rk3308_defconfig] Error 1
Makefile:479: recipe for target ‘rockpi-s-rk3308_defconfig’ failed
make[1]: *** [rockpi-s-rk3308_defconfig] Error 2
Makefile:461: recipe for target ‘__build_one_by_one’ failed
make: *** [__build_one_by_one] Error 2
MAKE UBOOT IMAGE FAILED.

I’m pretty sure I failed at checkouting the right branch, but could it be something else?
Thanks.

@poddingue prob need to do a @jack as think your the first

try the stable-4.4-rockpis branch rather than master -b stable-4.4-rockpis

from u-boot dir
git branch -a

git checkout stable-4.4-rockpis

git branch

to check

It has started now, thanks a lot Stuart!
I have another error later on…
load addr is 0x600000!
pack input ./u-boot-dtb.bin
pack file size: 569853
crc = 0xc1a4ac87
pack uboot.img success!
Image Type: Rockchip RK33 (SD/MMC) boot image
Data Size: 12288 bytes
cat: …/rkbin/bin/rk33/rk3308_miniloader_v1.13.bin: Aucun fichier ou
dossier de ce type
MAKE UBOOT IMAGE FAILED.

Rockchip-bsp actually just pulls in all the separate repos build, kernel, rkbin, rootfs, u-boot.
With each one being the root of a git repo.

You might have to go into each and set each by doing the git checkout stable-4.4-rockpis in each.

Maybe you can just go to the root of rockchip-bsp git checkout stable-4.4-rockpis and that will check them all out correct.

git branch in each just to check that its correct.
git branch -a to see what is available.

Dunno as have not got a RockPiS but thought it might be that you where not checked out correct.
Still might wrong so check other than that, that is all I know and for now its stick with
https://dl.radxa.com/rockpis/images/debian/rockpis_debian_stretch_minimal_arm64_190626_1527-gpt.img.gz

1 Like

Hi, to meet the need of building target images for rockpis board, we have added one branch, stable-4.4-rockpis, for the git repo rockchip-bsp. See https://wiki.radxa.com/RockpiS/dev/Debian

About debug console.

Specially, image https://dl.radxa.com/rockpis/images/debian/rockpis_debian_stretch_minimal_arm64_190626_1527-gpt.img.gz
use UART2 debug console.

The other images including the images compiled from the rockchip-bsp source code are all using UART0 debug console.

Thanks, I will have a look at it.