added missing files: sched_shutdown script for Recovery partition and genimage-prod.cfg to make the prod img

This commit is contained in:
Vincent-FK 2020-11-21 18:43:08 +01:00
parent 29697c75cb
commit 3971b4d171
2 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/bin/sh
# No waiting period in Recovery
shutdown_funkey

65
genimage-prod.cfg Normal file
View File

@ -0,0 +1,65 @@
config {
}
image sdcard-prod.img {
hdimage {
gpt = true
gpt-location = 800K
}
# partition gpt-header {
# in-partition-table = "no"
# offset = 1K
# size = 512
# }
partition u-boot {
in-partition-table = "no"
image = "Recovery/output/images/u-boot-sunxi-with-spl.bin"
offset = 8K
size = 536K # 544KB - 8KB
}
partition u-boot-env {
in-partition-table = "no"
offset = 544K
size = 128K
image = "Recovery/output/images/u-boot-env-prod.img"
}
# partition gpt-table {
# in-partition-table = "no"
# offset = 800K
# size = 16K
# }
partition Recovery {
offset = 1M
partition-type = 0x83
image = "Recovery/output/images/rootfs.ext4"
size = 100M
}
partition FunKey {
offset = 101M
partition-type = 0x83
bootable = "yes"
image = "FunKey/output/images/rootfs.ext4"
size = 100M # This will be resized to 1G during first boot
}
# These partitions will be created during first boot
# partition swap {
# offset = 1.01G
# partition-type = 0xC
# bootable = "false"
# size = 128M
# }
#
# partition share {
# offset = 1.138G
# partition-type = 0xC
# bootable = "false"
# size = 0 # Fill in the disk up to its full size
# }
}