double boot and rootfs partitions

Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
This commit is contained in:
Michel Stempin 2020-10-13 13:41:02 +02:00
parent 5d825dd7bb
commit 829a1c3973
3 changed files with 36 additions and 5 deletions

View File

@ -1,4 +1,4 @@
setenv bootargs console=ttyS0,115200 panic=5 rootwait fbcon=map:10 fbcon=font:VGA8x8 vt.global_cursor_default=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=commit=120,data=writeback,barrier=0,journal_async_commit rw quiet
setenv bootargs console=ttyS0,115200 panic=5 rootwait fbcon=map:10 fbcon=font:VGA8x8 vt.global_cursor_default=0 root=/dev/mmcblk0p3 rootfstype=ext4 rootflags=commit=120,data=writeback,barrier=0,journal_async_commit rw quiet
load mmc 0:1 0x41000000 uImage
load mmc 0:1 0x41800000 sun8i-v3s-funkey.dtb
bootm 0x41000000 - 0x41800000

View File

@ -0,0 +1,4 @@
setenv bootargs console=ttyS0,115200 panic=5 rootwait fbcon=map:10 fbcon=font:VGA8x8 vt.global_cursor_default=0 root=/dev/mmcblk0p4 rootfstype=ext4 rootflags=commit=120,data=writeback,barrier=0,journal_async_commit rw quiet
load mmc 0:2 0x41000000 uImage
load mmc 0:2 0x41800000 sun8i-v3s-funkey.dtb
bootm 0x41000000 - 0x41800000

View File

@ -28,22 +28,49 @@ image sdcard.img {
size = 536K # 544KB - 8KB
}
# partition u-boot-env {
# partition u-boot-env0 {
# in-partition-table = "no"
# offset = 544K
# size = 128K
# }
partition boot {
# partition u-boot-env1 {
# in-partition-table = "no"
# offset = 672K
# size = 128K
# }
# partition gpt-table {
# in-partition-table = "no"
# offset = 800K
# size = 16K
# }
partition boot0 {
offset = 1M
partition-type = 0xC
bootable = "true"
image = "boot.vfat"
}
partition rootfs {
partition boot1 {
offset = 9M
partition-type = 0xC
bootable = "true"
image = "boot.vfat"
}
partition rootfs0 {
offset = 17M
partition-type = 0x83
image = "rootfs.ext4"
size = 0
size = 111M
}
partition rootfs1 {
offset = 128M
partition-type = 0x83
image = "rootfs.ext4"
size = 128M
}
}