edgeble / u-boot

0 stars 0 forks source link

Develop code to identify the type of SOC (RK3588 / RK3588M / RK3588J) #1

Open Suniel24 opened 1 month ago

Suniel24 commented 1 month ago

Develop code: 1. to identify the type of SOC (RK3588 / RK3588M / RK3588J) 2. print the information

sample log:

CPU: Rockchip RK3588J rev1.2 at 792MHz CPU: Industrial temperature grade (-40C to +85C) at 28C

Suniel24 commented 1 month ago

use this for reference: https://github.com/radxa/kernel/blob/linux-5.10-gen-rkr4.1/drivers/cpufreq/rockchip-cpufreq.c#L231

openedev commented 1 month ago

Goal is to identify the chip and load right DTB

If RK3588, then ncm6a dtb If RK3588J, then ncm6b dtb

So, create another issue with this support

Suniel24 commented 1 month ago

U-Boot build steps: git clone https://github.com/rockchip-linux/rkbin.git git clone https://github.com/openaia/u-boot && cd u-boot export BL31=../rkbin/bin/rk35/rk3588_bl31_v1.40.elf export ROCKCHIP_TPL=../rkbin/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.12.bin PATH=$PATH:~path to cross compiler (PATH=$PATH:/home/buildroot/output/rockchip_rk3588_edgeble_cam012345/host/bin/) make neu6b-io-rk3588_defconfig make CROSS_COMPILE=aarch64-buildroot-linux-gnu- sudo dd if=u-boot-rockchip.bin of=/dev/sdX seek=64 && sudo sync

Kernel Build steps: git clone git@github.com:edgeble/kernel.git -b linux-5.10-gen-rkr3.4 cd kernel ARCH=arm64 CROSS_COMPILE=aarch64-buildroot-linux-gnu- make rockchip_linux_defconfig rk3588_linux.config ARCH=arm64 CROSS_COMPILE=aarch64-buildroot-linux-gnu- make

openedev commented 1 month ago

Why we need build steps here? document it in readthedocs.