Mainline Uboot( RockPi4A )

Hello All,
I have been trying unsuccessfully to build mainline uboot for rockpi4A…

Via serial, I receive garbage info in loops, resetting then trying to boot again from MMC1, this over and over again…

( Uboot + ATF ) mainline:

Compilers ATF:
aarch64-elf
arm-eabi( to built drivers for builtin Cortex M0 )

Compiler Uboot
aarch64-elf

I am using ( idbloader.img, and uboot.itb…with bl31 atf stage…)

Partitions:
Number Start End Size File system Name Flags
1 64s 8063s 8000s idbloader
2 16384s 24575s 8192s uboot
3 24576s 32767s 8192s trust
4 32768s 253951s 221184s ext2 boot boot, esp
5 262144s 3319807s 3057664s ext4 rootfs

Can somebody help me to produce a bootable uboot?

Thanks in Advance,

Please show us the output you’re getting over serial.

Hello,
Thanks in advance for the help on this…

I redirected stdout to a file, and uploaded the file to here:

That file has the Log, of the uboot, since poweron is applied…
Open it with ‘less’ command

This bellow is the extlinux.cfg:
indent preformatted text by 4 spaces
# cat /mnt/extlinux/extlinux.conf

timeout 50
menu title select kernel
label linux-5.6
    kernel /Image
    devicetreedir /dtbs
    append earlyprintk console=ttyS2,1500000n8 root=/dev/mmcblk0p5 ro rootfstype=ext4 fsck.repair=yes rootwait init=/sbin/init

Thanks in Advance,
tux

Maybe the default defconfig for rockpi4 needs some adjustments, any one can share a good defconfig for mainline u-boot?

Thanks in Advance
tux

Hi,I have a defconfig for rockpi4b,you can have a try
I worked on uboot v2019.01
https://mega.nz/#!Wc10mIhB!WMJ9dHYvgXna-49Yy_lD1Nn1TRWqZpfK_OSF6szZLUk

Hello brian,
Thanks a lot!

In the meantime I managed to find out, and the problem was not even u-boot related, but intead my filesystem had problems :frowning:

Many thanks to all of you, and sorry for my wrong doings
Now Everything is up and running, enjoying kernel 5.6-rc7 :slight_smile:

Best Regards,
tux