Firefly Open Source Community

Title: Booting from NVME and SATA storage? [Print This Page]

Author: arlam88    Time: 7/13/2021 09:17
Title: Booting from NVME and SATA storage?
Last edited by arlam88 In 7/13/2021 20:53 Editor

Hi,
Can AIO-3568J boot from NVME and SATA storage?
How to configure SATA/NVME storage in u-boot?
Author: neutionwei    Time: 7/19/2021 11:45
Hi,
The AIO-3568J can only boot from SATA storage.
You can refer to this patch:
  1. diff --git a/arch/arm/dts/rk3568-u-boot.dtsi b/arch/arm/dts/rk3568-u-boot.dtsi
  2. index f4a466e327..f1236742be 100644
  3. --- a/arch/arm/dts/rk3568-u-boot.dtsi
  4. +++ b/arch/arm/dts/rk3568-u-boot.dtsi
  5. @@ -427,3 +427,22 @@
  6.         u-boot,dm-pre-reloc;
  7.         status = "okay";
  8. };
  9. +
  10. +&sata1 {
  11. +       u-boot,dm-pre-reloc;
  12. +       status = "okay";
  13. +};
  14. +
  15. +&combphy1_usq {
  16. +       u-boot,dm-pre-reloc;
  17. +       status = "okay";
  18. +};
  19. +
  20. +&pipegrf {
  21. +       u-boot,dm-pre-reloc;
  22. +};
  23. +
  24. +&pipe_phy_grf1{
  25. +       u-boot,dm-pre-reloc;
  26. +};
  27. +
  28. diff --git a/configs/rk3568-sata.config b/configs/rk3568-sata.config
  29. new file mode 100644
  30. index 0000000000..110e611bab
  31. --- /dev/null
  32. +++ b/configs/rk3568-sata.config
  33. @@ -0,0 +1,11 @@
  34. +# CONFIG_AHCI_PCI is not set
  35. +CONFIG_AHCI=y
  36. +CONFIG_BASE_DEFCONFIG="rk3568_defconfig"
  37. +CONFIG_CMD_SCSI=y
  38. +CONFIG_DM_SCSI=y
  39. +CONFIG_DWC_AHCI=y
  40. +CONFIG_LIBATA=y
  41. +CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
  42. +# CONFIG_SATA_CEVA is not set
  43. +CONFIG_SCSI_AHCI=y
  44. +CONFIG_SCSI=y
Copy the code





Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1