Jump to content

Recommended Posts

Posted

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

Posted

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);

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines