Hover Posted March 10, 2024 Posted March 10, 2024 Now the mainline u-boot has decent pcie and pcie phy driver for rk3399. The only deficiency is the clock of pcie phy not included. The first attached patch add this clock so that u-boot proper can load linux kernel residing in an ext4 partition of nvme ssd.pcie_phy_clk.patch The second patch enables loading the environment from a file in an ext4 partition of nvme ssd.env_nvme.patch More conveniently the u-boot proper(u-boot.itb) could be an ordinary file residing in an ext4 partition of nvme ssd. The idbloader(tpl/spl in spi/emmc/sdcard) could load it if pcie nvme support is enabled in spl. That's the third attachment.spl_nvme.patch The usb and usb phy is working so the usbkbd can be used to choose a boot option without a serial port debug console. The last attachment set the default env to enable usbkbd and vidconsole.env_vidconsole_usbkbd.patch And for your convenience my u-boot config for nanopc-t4 also attached here.u-boot.config 1 Quote
yongwn Posted December 1, 2024 Posted December 1, 2024 the config not work, I don't why MKIMAGE u-boot.img CC tpl/arch/arm/mach-rockchip/rk3399/rk3399.o In file included from include/part.h:9, from include/mmc.h:17, from include/spl.h:17, from arch/arm/mach-rockchip/rk3399/rk3399.c:9: include/blk.h: In function 'blk_dread': include/blk.h:552:30: error: 'struct blk_desc' has no member named 'block_read' 552 | blks_read = block_dev->block_read(block_dev, start, blkcnt, buffer); | ^~ include/blk.h: In function 'blk_dwrite': include/blk.h:564:25: error: 'struct blk_desc' has no member named 'block_write' 564 | return block_dev->block_write(block_dev, start, blkcnt, buffer); | ^~ include/blk.h: In function 'blk_derase': include/blk.h:571:25: error: 'struct blk_desc' has no member named 'block_erase' 571 | return block_dev->block_erase(block_dev, start, blkcnt); 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.