Jan Kundrát | 420a6d8 | 2017-09-29 16:56:31 +0200 | [diff] [blame] | 1 | image sdcard.img { |
2 | hdimage { | ||||
3 | } | ||||
4 | |||||
5 | partition u-boot { | ||||
6 | in-partition-table = "no" | ||||
7 | image = "u-boot-spl.kwb" | ||||
8 | offset = 512 | ||||
9 | } | ||||
10 | |||||
Jan Kundrát | 1f66d16 | 2017-10-11 11:54:04 +0200 | [diff] [blame] | 11 | partition rootfs-A { |
Jan Kundrát | 420a6d8 | 2017-09-29 16:56:31 +0200 | [diff] [blame] | 12 | partition-type = 0x83 |
13 | image = "rootfs.ext4" | ||||
Jan Kundrát | 6da3461 | 2017-10-11 12:28:53 +0200 | [diff] [blame] | 14 | offset = 1M |
Jan Kundrát | b425ea8 | 2017-10-19 17:56:36 +0200 | [diff] [blame] | 15 | size = 1999M |
16 | } | ||||
17 | |||||
18 | partition cfg-A { | ||||
19 | partition-type = 0x83 | ||||
20 | image = "cfg.ext4" | ||||
21 | offset = 2000M | ||||
22 | size = 2000M | ||||
Jan Kundrát | 1f66d16 | 2017-10-11 11:54:04 +0200 | [diff] [blame] | 23 | } |
24 | |||||
25 | partition rootfs-B { | ||||
26 | partition-type = 0x83 | ||||
27 | image = "rootfs.ext4" | ||||
Jan Kundrát | b425ea8 | 2017-10-19 17:56:36 +0200 | [diff] [blame] | 28 | offset = 4001M |
29 | size = 1999M | ||||
30 | } | ||||
31 | |||||
32 | partition cfg-B { | ||||
33 | partition-type = 0x83 | ||||
34 | image = "cfg.ext4" | ||||
35 | offset = 6000M | ||||
36 | size = 2000M | ||||
Jan Kundrát | 420a6d8 | 2017-09-29 16:56:31 +0200 | [diff] [blame] | 37 | } |
38 | } | ||||
Jan Kundrát | bdaf934 | 2018-01-12 18:18:35 +0100 | [diff] [blame] | 39 | |
40 | image usb-flash.vfat { | ||||
41 | vfat { | ||||
Jan Kundrát | fa53cc8 | 2018-01-15 17:14:20 +0100 | [diff] [blame^] | 42 | file "boot.scr" { image = "usb-boot.scr" } |
Jan Kundrát | bdaf934 | 2018-01-12 18:18:35 +0100 | [diff] [blame] | 43 | files = { |
Jan Kundrát | bdaf934 | 2018-01-12 18:18:35 +0100 | [diff] [blame] | 44 | "zImage", |
45 | "czechlight-clearfog.dtb", | ||||
46 | "rootfs.cpio.uboot" | ||||
47 | } | ||||
48 | } | ||||
49 | size = 64M | ||||
50 | } | ||||
51 | |||||
52 | image usb-flash.img { | ||||
53 | hdimage { | ||||
54 | } | ||||
55 | |||||
56 | partition boot { | ||||
57 | partition-type = 0xc | ||||
Jan Kundrát | fa53cc8 | 2018-01-15 17:14:20 +0100 | [diff] [blame^] | 58 | bootable = true |
Jan Kundrát | bdaf934 | 2018-01-12 18:18:35 +0100 | [diff] [blame] | 59 | image = "usb-flash.vfat" |
60 | } | ||||
61 | } |