fs_loader.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. * File system firmware loader
  2. Required properties:
  3. --------------------
  4. - compatible: should contain "u-boot,fs-loader"
  5. - phandlepart: which block storage device and partition the image loading from,
  6. this property is required for mmc, usb and sata. This is unsigned
  7. 32-bit array. For example phandlepart=<&mmc_0 1>, meaning use
  8. that MMC0 node pointer, partition 1.
  9. - mdtpart: which partition of ubi the image loading from, this property is
  10. required for ubi and mounting.
  11. - ubivol: which volume of ubi the image loading from, this property is required
  12. for ubi and mounting.
  13. Example of storage device and partition search set for mmc, usb, sata and
  14. ubi in device tree source as shown in below:
  15. Example of storage type and device partition search set for mmc, usb,
  16. sata and ubi as shown in below:
  17. Example for mmc:
  18. fs_loader0: fs-loader@0 {
  19. u-boot,dm-pre-reloc;
  20. compatible = "u-boot,fs-loader";
  21. phandlepart = <&mmc_0 1>;
  22. };
  23. Example for usb:
  24. fs_loader1: fs-loader@1 {
  25. u-boot,dm-pre-reloc;
  26. compatible = "u-boot,fs-loader";
  27. phandlepart = <&usb0 1>;
  28. };
  29. Example for sata:
  30. fs_loader2: fs-loader@2 {
  31. u-boot,dm-pre-reloc;
  32. compatible = "u-boot,fs-loader";
  33. phandlepart = <&sata0 1>;
  34. };
  35. Example for ubi:
  36. fs_loader3: fs-loader@3 {
  37. u-boot,dm-pre-reloc;
  38. compatible = "u-boot,fs-loader";
  39. mtdpart = "UBI",
  40. ubivol = "ubi0";
  41. };