We are using BBB based custom board with eMMC.
We want board to BOOt from raw eMMC partition,
Could you please help us if following partition structure would be okay or not.
I am pasting two partition table, we are planning to use table 1.
| Table 1 | ||||
| Sr No | binary | Partition | Address | |
| 1 | SPL1 | raw | 0x0 | 128 KB |
| 2 | SPL2 | raw | 0x20000 | 128 KB |
| 3 | SPL3 | raw | 0x40000 | 128 KB |
| 4 | SPL4 | raw | 0x60000 | 128 KB |
| 5 | uEnv.txt1 | raw | 0x80000 | 128 KB |
| 6 | uEnv.txt2 | raw | 0x100000 | 128 KB |
| 7 | U-Boot1 | raw | 0x120000 | 1 MB |
| 8 | U-Boot2 | raw | 0x220000 | 1 MB |
| 9 | uImage1 | raw | 0x320000 | 8 MB |
| 10 | uImage2 | raw | 0xB20000 | 8 MB |
| 11 | dtb1 | raw | 0x1320000 | 128 KB |
| 12 | dtb2 | raw | 0x1340000 | 128 KB |
| 13 | rootfs1 | ext4 | 0x2000000 | 1 GB |
| 14 | rootfs2 | ext4 | 0x42000000 | 1GB |
| Table 2 | ||||
| Sr No | binary | Partition | Address | Size |
| 1 | SPL1 | raw | 0x0 | 128 KB |
| 2 | SPL2 | raw | 0x20000 | 128 KB |
| 3 | SPL3 | raw | 0x40000 | 128 KB |
| 4 | SPL4 | raw | 0x60000 | 128 KB |
| 5 | U-Boot1 | vFAT | 0x100000 | Partition size can be 32 MB u-boot - 1MB u-Image - 8MB dtb - 128 KB uenv.txt - 128 KB Total = 2 * ( 9 MB + 256 kb) + 12 MB buffer = 32 MB |
| 6 | U-Boot2 | vFAT | ||
| 7 | uEnv.txt1 | vFAT | ||
| 8 | uEnv.txt2 | vFAT | ||
| 9 | uImage1 | vFAT | ||
| 10 | uImage2 | vFAT | ||
| 11 | dtb1 | vFAT | ||
| 12 | dtb2 | vFAT | ||
| 13 | rootfs1 | ext4 | 0x2000000 | 1 GB |
| 14 | rootfs2 | ext4 | 0x42000000 | 1GB |
So now my questions are
is it possible to have partition structure as mentioned in "Table1" ?
is it possible to have partition structure as mentioned in "Table2" ?
Any pitfall in either of the partition table structure ?
Any further suggestions/correction ?
Thank you,
Regards,
Ankur