g7102 or n7000

how to write boot 1 and boot 2 and how to write user bin