My friend wants to change the partition of software. It's an embedded system and he has a problem with memory, and needs to divide the files to specific sectors.

The old table - in config_g3_part.sh - only defines the start point with 1 sector = 1024 bytes, but now I want to implement the new table with 'startsector', and 'endsector', with 1 sector = 512 bytes, as defined in the second table.

I think the shell command that needs to be changed is 'fdisk' in all the functions like g3_part_create_primary_partition(). There is some documentation on fdisk here if it is any help: