17 lines
907 B
Plaintext
17 lines
907 B
Plaintext
# short-description: Create USB image for Eagle 40-03
|
|
# long-description: Creates a partitioned USB image for Eagle 40-03.
|
|
|
|
# offset 1S => 1 sector (1x512 byte)
|
|
# The bootloader can be at 4 different position in raw mode: 0S, 256S, 512S, 768S
|
|
# MBR disk use only the sector 0, so 1S is free
|
|
# GPT disk use sector 0-33S, so first free slot is 256S
|
|
# Offset are from the BBB default settings
|
|
|
|
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
# Don't name partition in the installer disk image, otherwise the installer may not work as it rely on partition label!
|
|
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
part --offset 256S --source bootimg-partition --part-type=EF00 --ondisk mmcblk0
|
|
part --fixed-size 3G --fstype=vfat --label=image
|
|
bootloader --ptable gpt
|