hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Minimal microSD card image for Grinn's liteBoard
#
# We mimic the .sdcard Freescale's image format for i.MX6UL:
# * the microSD card must have 1 kB free space at the beginning,
# * SPL is dumped as is,
# * U-Boot is dumped at 69K offset, as configured in SPL
# * a FAT partition at offset 8 MB is containing zImage and dtbs,
# * a single root filesystem partition is required (Ext4 in this case).
#
 
image boot.vfat {
  vfat {
    files = {
      "imx6ul-liteboard.dtb",
      "zImage"
    }
  }
  size = 16M
}
 
image sdcard.img {
  hdimage {
  }
 
  partition SPL {
    in-partition-table = "no"
    image = "SPL"
    offset = 1K
  }
 
  partition u-boot {
    in-partition-table = "no"
    image = "u-boot.img"
    offset = 69K
  }
 
  partition boot {
    partition-type = 0xC
    bootable = "true"
    image = "boot.vfat"
    offset = 8M
  }
 
  partition rootfs {
    partition-type = 0x83
    image = "rootfs.ext4"
  }
}