Re: [U-Boot] help with serial on the rockchip64
Em ter, 2019-09-24 às 18:08 -0400, Simon South escreveu: > This is output from Rockchip's binary-only loader, which always resets the > UART speed to 1.5Mbps. But it should be running before > the U-Boot SPL, not after it. I use NetBSD-9 and pkgsrc to build the u-bootThe NetBSD builds a fat32 partition starting at offset 32768 with 80Mb that holds the u-boot and boot logic for the rockchip > How are you building the microSD-card image? Here are the commands I've been > using to build working images for the ROCK64: I burn the image on the sd card, and than I write the u-boot imgfileusing the command: dd if=/usr/pkg/share/u- boot/rock64/rksd_loader.img of=/dev/rsd0d seek=64 conv=syncnote that NetBSD only uses ONE boot file... In the fat32 partition there are 2 config files cmdline.txt:root=ld0a console=fb config.txt:arm_64bit=1kernel=netbsd.imgkernel_address=0x20enable_uart=1force_turbo=0 You said: Rockchip's binary-only loaderalways resets the UART speed to 1.5Mbps So the binary-only loader is it within the rockchip or makes part of the u-boot code??? why does the Rockchip's binary-only loader is unable to detect the serial once I change the baud rate??? Thanks for your help Sergio ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] help with serial on the rockchip64
Hello... I am having problem with the insane 1,500,000 bps baud rate serial2 port in rockchip64 I manage to configure the file in configs/rock64-rk3328_defconfig and change it from 150 to 115200.. The ship starts to boot in 115200 than it writes on the serial line: U-Boot SPL 2017.09 (Sep 24 2019 - 14:04:29) board_init_sdmmc_pwr_en setup_ddr_param 1 booted from SD Trying to boot from MMC2 after that it reverts to 1,500,000 bps and writes: D:0x805 Y In LPDDR3 333MHz Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB ddrconfig:7 OUT NOTICE: BL31: v1.3(release):22b599a NOTICE: BL31: Built : 09:06:22, Jul 12 2019 NOTICE: BL31:Rockchip release version: v1.3 INFO:ARM GICv2 driver initialized INFO:Using opteed sec cpu_context! INFO:boot cpu mask: 1 INFO:plat_rockchip_pmu_init: pd status 0xe INFO:BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO:BL31: Preparing for EL3 exit to normal world INFO:Entry point address = 0x20 INFO:SPSR = 0x3c9 No serial driver found ### ERROR ### Please RESET the board ### Where else must be done to make the chip continue in 115200 bps??? Thank for any help Sergio ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] baud rate of the rockchip uart
Hello, I am trying to setup the baud rate of the rockchip uart from the file => arch/arm/mach-rockchip/rk3328-board-tpl.c line 59 -> 63, the baud rate is at insane 1,500,000 bps... that speed it too fast for small computers using serial port to communicate with the rock64 SBC... I would like to set the baud rate at more "sane" values like 9600, 19200... or even 115200 bps Can some one point me what values must be written to the lcr and rbr of the chip to make it happen??? Thanks in advance... Sergio ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot