overriding beagle-flasher

I see in /etc/default/beagle-flasher that rfs_partition defines the number and type of partitions and I see options for single, dual and fat_swap.

In our solution I don’t want fstab to define a swap partition - what is the thinking about user control of /etc/default/beagle-flasher config? Is this something I can safely change, what are risks of beagle-flasher contents changing when running apt update etc?

In our case the user would be the developer creating a beaglebone product specific setup on micro-sd card (our production version) , where the uEnv.txt will be modified so that booting of card will flash the beaglebone’s eMMC.

By default, if /etc/default/beagle-flasher exits, it’ll never get overwritten. (there was time years ago it didn’t exist..) that’s where this logic comes in from: repos-armhf/bb-beagle-flasher/suite/bookworm/debian/enable-beagle-flasher at master · beagleboard/repos-armhf · GitHub

On am335x devices, there are really 2 tested supported partition setups, these configurations for /etc/default/beagle-flasher are stored here:

voodoo@21-am335x-bbb:~$ tree /etc/beagle-flasher/ | grep beagle
/etc/beagle-flasher/
├── beaglebone-black-emmc-to-microsd
├── beaglebone-black-emmc-to-microsd-fat-swap
├── beaglebone-black-microsd-to-emmc
└── beaglebone-black-microsd-to-emmc-fat-swap

Switching between a single partition to a 3 partition setup is not recommended..

With UK/CRA stuff, the single partition doesn’t work.. No place to hold the fat partition with the user editable config.

By default the 3 partition setup uses this config… omap-image-builder/tools/hwpack/beaglebone-fat-swap.conf at master · RobertCNelson/omap-image-builder · GitHub While i did create a 2 partition (no swap) option omap-image-builder/tools/hwpack/beaglebone-fat.conf at master · RobertCNelson/omap-image-builder · GitHub i don’t think i finished the ‘flasher for 2 partitions’… repos-armhf/bb-beagle-flasher/suite/bookworm/debian/beagle-flasher at master · beagleboard/repos-armhf · GitHub

1 Like

Thanks. I’ll need to noodle on this. We have no need to switch number of partitions. Just don’t want the swap drive.

In our case we have a production ready micro-sd card that is used to flash BBB eMMC. My thinking was to have dual partition on micro-sd. But sounds like this may not be fully available yet.