I get "No serial driver found" error when I have compiled u-boot

Mario Marietto <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <CA+1FSij3PJTtPnqTM6RC7ORptqsrRh_TN_AzytWtHrCNmhJwYQ@mail.gmail.com>
Hello to everyone.

I tried to compile u-boot version 2020.07 + the patches offered here :

https://personalbsd.org/download/u-boot-ports/u-boot-khadas-edge-v-2020.07/

without changing anything. That's old but I want to compile everything to
see if it is able to turn on and make my monitor work correctly at
1920x1080.

So,the procedure that I followed has been the following.

First off I went to another board's build and I checked if a defconfig file
exists for this board.


1) Checked ./u-boot/configs/ directory :

/usr/ports/sysutils/u-boot-radxa-zero3/work/u-boot-2025.07-rc2/configs/khadas-edge-v-rk3399_defconfig


Then I found the defconfig file for the board and I tried to build a slave
u-boot port for the khadas :


# mkdir /usr/ports/sysutils/u-boot-khadas-edge-v

# cd /usr/ports/sysutils/u-boot-khadas-edge-v

# ee Makefile

MASTERDIR=      ${.CURDIR}/../u-boot-master

MODEL=          khadas-edge-v
BOARD_CONFIG=   khadas-edge-v-rk3399_defconfig
FAMILY=         rk3399

.include "${MASTERDIR}/Makefile"


2) Then I created the package description file :


# ee pkg-descr

U-Boot loader and related files for the khadas-edge-v :

To install this bootloader on an sdcard just do:

dd if=/usr/local/share/u-boot/u-boot-khadas-edge-v/idbloader.img
of=/path/to/sdcarddevice seek=64 conv=sync

dd if=/usr/local/share/u-boot/u-boot-khadas-edge-v/u-boot.itb
of=/path/to/sdcarddevice seek=16384 bs=512 conv=sync


3) At this point I tried to build the port :


Installed dependencies:

# make build-depends-list | cut -c 12- | xargs pkg install -A -y


Tried to build it :

# make install

What happened :


U-Boot TPL 2020.07 (Aug 26 2025 - 18:13:49)

Channel 0: LPDDR4, 50MHz

BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB

Channel 1: LPDDR4, 50MHz

BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB

256B stride

256B stride

lpddr4_set_rate: change freq to 400000000 mhz 0, 1

lpddr4_set_rate: change freq to 800000000 mhz 1, 0

Trying to boot from BOOTROM

Returning to boot ROM...

No serial driver found

resetting ...


This is my defconfig file :


CONFIG_ARM=y
CONFIG_ARCH_ROCKCHIP=y
CONFIG_SYS_TEXT_BASE=0x00200000
CONFIG_SYS_SPI_U_BOOT_OFFS=0x60000
CONFIG_ENV_SIZE=0x8000
CONFIG_ENV_SECT_SIZE=0x1000
# CONFIG_NR_DRAM_BANKS=1
CONFIG_DM_KEYBOARD=y
CONFIG_DISPLAY=y
CONFIG_VIDEO_ROCKCHIP=y
CONFIG_DISPLAY_ROCKCHIP_HDMI=y
CONFIG_ENV_OFFSET=0x3F8000
CONFIG_ROCKCHIP_RK3399=y
CONFIG_TARGET_EVB_RK3399=y
CONFIG_NR_DRAM_BANKS=1
CONFIG_DEBUG_UART_BASE=0xFF1A0000
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_DEBUG_UART=y
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-khadas-edge-v.dtb"
CONFIG_DISPLAY_BOARDINFO_LATE=y
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
CONFIG_SPL_STACK_R=y
CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000
CONFIG_TPL=y

Mariuccio, [26 Aug 2025 22:23:59]
CONFIG_SYS_PROMPT="kedge# "
CONFIG_CMD_BOOTZ=y
CONFIG_CMD_GPT=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_TIME=y
CONFIG_SPL_OF_CONTROL=y
CONFIG_DEFAULT_DEVICE_TREE="rk3399-khadas-edge-v"
CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names
interrupt-parent assigned-clocks assigned-clock-rates assigned>
CONFIG_ENV_IS_IN_MMC=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_ROCKCHIP_GPIO=y
CONFIG_SYS_I2C_ROCKCHIP=y
CONFIG_MMC_DW=y
CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_ROCKCHIP=y
CONFIG_PHY_REALTEK=y
CONFIG_DM_ETH=y

Mariuccio, [26 Aug 2025 22:24:17]
CONFIG_ETH_DESIGNWARE=y
CONFIG_GMAC_ROCKCHIP=y
CONFIG_PMIC_RK8XX=y
CONFIG_REGULATOR_PWM=y
CONFIG_REGULATOR_RK8XX=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_RAM_RK3399_LPDDR4=y
CONFIG_BAUDRATE=1500000
CONFIG_DEBUG_UART_SHIFT=2
CONFIG_SYSRESET=y
CONFIG_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_DWC3=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_GENERIC=y
CONFIG_USB_HOST_ETHER=y
CONFIG_USB_ETHER_ASIX=y
CONFIG_USB_ETHER_ASIX88179=y
CONFIG_USB_ETHER_MCS7830=y
CONFIG_USB_ETHER_RTL8152=y
CONFIG_USB_ETHER_SMSC95XX=y
CONFIG_SPL_TINY_MEMSET=y
CONFIG_ERRNO_STR=y


Some help to understand what's missing / wrong ? thanks.

-- 
Mario.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.