genimage.cfg 790 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. image boot.vfat {
  2. vfat {
  3. files = {
  4. "Image",
  5. "sun50i-h5-orangepi-zero-plus2.dtb",
  6. "boot.scr"
  7. }
  8. }
  9. size = 64M
  10. }
  11. image sdcard.img {
  12. hdimage {
  13. # for root=PARTLABEL support
  14. gpt = true
  15. # default GPT location conflicts with bootloaders, move it after
  16. gpt-location = 1M
  17. }
  18. partition spl {
  19. in-partition-table = "no"
  20. image = "sunxi-spl.bin"
  21. offset = 8192
  22. }
  23. partition u-boot {
  24. in-partition-table = "no"
  25. image = "u-boot.itb"
  26. offset = 40K
  27. size = 1024000 # 1MB - 40K + 16K(GPT)
  28. }
  29. partition boot {
  30. partition-type = 0xC
  31. bootable = "true"
  32. image = "boot.vfat"
  33. }
  34. # 'rootfs' will be used as the partition label, used
  35. # with root=PARTLABEL=rootfs kernel command line
  36. partition rootfs {
  37. partition-type = 0x83
  38. image = "rootfs.ext4"
  39. size = 256M
  40. }
  41. }