Skip to content

Commit 3971b4d

Browse files
committed
added missing files: sched_shutdown script for Recovery partition and genimage-prod.cfg to make the prod img
1 parent 29697c7 commit 3971b4d

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
# No waiting period in Recovery
4+
5+
shutdown_funkey

genimage-prod.cfg

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
config {
2+
}
3+
4+
image sdcard-prod.img {
5+
hdimage {
6+
gpt = true
7+
gpt-location = 800K
8+
}
9+
10+
# partition gpt-header {
11+
# in-partition-table = "no"
12+
# offset = 1K
13+
# size = 512
14+
# }
15+
16+
partition u-boot {
17+
in-partition-table = "no"
18+
image = "Recovery/output/images/u-boot-sunxi-with-spl.bin"
19+
offset = 8K
20+
size = 536K # 544KB - 8KB
21+
}
22+
23+
partition u-boot-env {
24+
in-partition-table = "no"
25+
offset = 544K
26+
size = 128K
27+
image = "Recovery/output/images/u-boot-env-prod.img"
28+
}
29+
30+
# partition gpt-table {
31+
# in-partition-table = "no"
32+
# offset = 800K
33+
# size = 16K
34+
# }
35+
36+
partition Recovery {
37+
offset = 1M
38+
partition-type = 0x83
39+
image = "Recovery/output/images/rootfs.ext4"
40+
size = 100M
41+
}
42+
43+
partition FunKey {
44+
offset = 101M
45+
partition-type = 0x83
46+
bootable = "yes"
47+
image = "FunKey/output/images/rootfs.ext4"
48+
size = 100M # This will be resized to 1G during first boot
49+
}
50+
51+
# These partitions will be created during first boot
52+
# partition swap {
53+
# offset = 1.01G
54+
# partition-type = 0xC
55+
# bootable = "false"
56+
# size = 128M
57+
# }
58+
#
59+
# partition share {
60+
# offset = 1.138G
61+
# partition-type = 0xC
62+
# bootable = "false"
63+
# size = 0 # Fill in the disk up to its full size
64+
# }
65+
}

0 commit comments

Comments
 (0)