modifying flasher script

Hi,

I am trying to create custom flasher image using https://raw.github.com/RobertCNelson/tools/master/scripts/beaglebone-black-make-microSD-flasher-from-eMMC.sh
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:

`
wget https://raw.github.com/RobertCNelson/tools/master/scripts/beaglebone-black-make-microSD-flasher-from-eMMC.sh
sed
-i '/debugfs.*fstab/a \techo “/dev/sda1 /data ext4 defaults 0 0”

/tmp/rootfs/etc/fstab’
beaglebone-black-make-microSD-flasher-from-eMMC.sh
chmod +x beaglebone-black-make-microSD-flasher-from-eMMC.sh
./beaglebone-black-make-microSD-flasher-from-eMMC.sh

`

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?

Thanks.

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?

Regards,

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/beaglebone-black-eMMC-flasher.sh
And then run https://raw.github.com/RobertCNelson/tools/master/scripts/beaglebone-black-make-microSD-flasher-from-eMMC.sh

Ahh right, i see what your doing!

first:
cd /opt/scripts/tools/
git pull

edit 'both'
beaglebone-black-eMMC-flasher.sh
eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh

adding your /etc/fstab tweak..

run: (assumes your running from eMMC)
./eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh

Take microSD and auto flash all your end devices..

Regards,