modifying flasher script


I am trying to create custom flasher image using
It works fine and flasher is doing its job, but when I try to modify this script to add fstab entry resulting flasher unable to finish flashing with all leds going on and off constantly.

I am adding simple “/dev/sda1 /data ext4 defaults 0 0”

my modify script:

-i '/debugfs.*fstab/a \techo “/dev/sda1 /data ext4 defaults 0 0”

chmod +x


If I insert this line into /etc/fstab on a flashed device mounting works fine, but I would like it to come from flasher.

Is this the right way to modify fstab for flasher?


Well, that change shouldn't cause the condition you see. Your change
is perfectly fine. I'd say it's more random bad luck, maybe an
external cape plugged in on the eMMC pins?


I think I understand what is happening.

  1. microSD-flasher copies files and generates fstab on microSD
  2. Then auto started eMMC-flasher copies files and generates its own fstab

So I need to change /opt/scripts/tools/
And then run

Ahh right, i see what your doing!

cd /opt/scripts/tools/
git pull

edit 'both'

adding your /etc/fstab tweak..

run: (assumes your running from eMMC)

Take microSD and auto flash all your end devices..