- setenv ethaddr 42 6A C3 80 24 65
- setenv console tty0
- setenv stdout serial,vga
- setenv stderr serial,vga
- setenv scriptaddr 0x00500000
- setenv kernel_addr_r 0x02080000
- setenv fdt_addr_r 0x01f00000
- part uuid ${devtype} ${devnum}:${bootpart} uuid
- setenv bootargs earlyprintk debug=on loglevel=1 net.ifnames=0 console=ttyS2,1500000n8 console=tty0 root=PARTUUID=${uuid} rw rootfstype=ext4 fsck.repair=yes rootwait
- if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} vmlinuz; then
- if load ${devtype} ${devnum}:2 ${fdt_addr_r} usr/lib/linux-image-5.5.0/rockchip/rk3399-rock-pi-4.dtb; then
- fdt addr ${fdt_addr_r}
- fdt resize
- #fdt set /ethernet@ff540000 local-mac-address "[${ethaddr}]"
- booti ${kernel_addr_r} - ${fdt_addr_r};
- fi;
- fi
I am loading dtb from rootfs 'usr/lib/linux-image-5.5.0/rockchip/rk3399-rock-pi-4.dtb'
Thats why I fixed :
load ${devtype} ${devnum}:2 <-----