Hi,
I also tried with FAT32 previously, but the problem was elsewhere.
However, I reformatted to FAT32 to eliminate the risk.
Here is how I finally made it work with my version:
...
#Allow the USB mass storage to be "not read only". Be careful...
usb_ms_ro=0
...
usb_image_file="/dev/mmcblk0p1"
#Do not use the .img or .iso file on boot.
#*.iso priority over *.img
#if [ -f /var/local/bb_usb_mass_storage.iso ] ; then
# usb_image_file="/var/local/bb_usb_mass_storage.iso"
#elif [ -f /var/local/bb_usb_mass_storage.img ] ; then
# usb_image_file="/var/local/bb_usb_mass_storage.img"
#fi
...
#in run_libcomposite, force has_img_file to true so it works everytime:
has_img_file="true"
if [ "x${has_img_file}" = "xtrue" ] ; then
echo "${log} enable USB mass_storage ${usb_image_file}"
...
# in use_libcomposite:
# Allow to share mmcblk0p1 over USB
#if [ "x${root_drive}" = "x/dev/mmcblk0p1" ] || [
"x${root_drive}" = "x/dev/mmcblk1p1" ] ; then
# echo "${log} FIXME: no valid drive to share over
usb"
#else
# actual_image_file="${root_drive%?}1"
#fi
...
actual_image_file="/dev/mmcblk0p1"
This is not super clean but it does what I want, as long as the boot device
is the eMMC.
Note that this is with Debian 9.5, Linux 4.14.71-ti-r80 #1 SMP PREEMPT Fri
Oct 5 23:50:11 UTC 2018 armv7l GNU/Linux.
I can't attach files here but if it could be useful to anyone, just e-mail
me.
Guillaume
>
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/2ca1efcf-dfbc-4fe0-98e5-bc38f7b9ce86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.