hc
2024-03-22 f63cd4c03ea42695d5f9b0e1798edd196923aae6
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# LEGO MINDSTORMS EV3 can boot from a 16MB flash or from a microSD card.
# The U-Boot bootloader from the flash is always used, even when booting
# from a microSD card.
 
# The Flash image
 
flash nor-16M-256 {
   pebsize = 4K
   numpebs = 4K
   minimum-io-unit-size = 256
}
 
image flash.bin {
   flash {
   }
   flashtype = "nor-16M-256"
 
   partition uboot {
       image = "u-boot.bin"
       size = 256K
   }
 
   partition dtb {
       image = "da850-lego-ev3.dtb"
       offset = 256K
       size = 64K
   }
 
   partition uimage {
       image = "uImage"
       offset = 320K
       size = 4M
   }
 
   partition rootfs {
       image = "rootfs.squashfs"
       offset = 4416K # 4M + 320KB
       size = 10M
   }
}
 
# The SD card image
 
image boot.vfat {
   vfat {
       file uImage {
           image = "uImage"
       }
 
       file da850-lego-ev3.dtb {
           image = "da850-lego-ev3.dtb"
       }
   }
 
   size = 16M
}
 
image sdcard.img {
   hdimage {
   }
 
   partition boot {
       partition-type = 0xC
       bootable = "true"
       image = "boot.vfat"
       offset = 4M
   }
 
   partition rootfs {
       partition-type = 0x83
       image = "rootfs.ext2"
   }
}