On Tue, Oct 4, 2016 at 11:23 AM, Sylvain Lamontagne <sylvain.lamonta...@gmail.com> wrote: > Hi Robert, > > thank you for your answer. > I've tried what you proposed, but it seems the script doesn't like it when > it tries to rsync the files. > I've added a set -x here is the relevant output: > + message='Copying: /dev/mmcblk0p1 -> /dev/mmcblk1p1' > + broadcast > + '[' 'xCopying: /dev/mmcblk0p1 -> /dev/mmcblk1p1' '!=' x ']' > + echo 'Copying: /dev/mmcblk0p1 -> /dev/mmcblk1p1' > Copying: /dev/mmcblk0p1 -> /dev/mmcblk1p1 > + echo 'Copying: /dev/mmcblk0p1 -> /dev/mmcblk1p1' > + mkdir -p /tmp/boot/ > + mount /dev/mmcblk1p1 /tmp/boot/ -o sync > + '[' -f /boot/uboot/MLO ']' > + message='rsync: /boot/uboot/ -> /tmp/boot/' > + broadcast > + '[' 'xrsync: /boot/uboot/ -> /tmp/boot/' '!=' x ']' > + echo 'rsync: /boot/uboot/ -> /tmp/boot/' > rsync: /boot/uboot/ -> /tmp/boot/ > + echo 'rsync: /boot/uboot/ -> /tmp/boot/' > + rsync -aAx /boot/uboot/ /tmp/boot/ --exclude=MLO --exclude=u-boot.img > --exclude=uEnv.txt > + flush_cache > + sync > + blockdev --flushbufs /dev/mmcblk1 > + flush_cache > + sync > + blockdev --flushbufs /dev/mmcblk1 > + umount /tmp/boot/ > + flush_cache > + sync > + blockdev --flushbufs /dev/mmcblk1 > + umount /boot/uboot > umount: /boot/uboot: not mounted > + umount -l /boot/uboot > umount: /boot/uboot: not mounted > root@beaglebone:~# ls /boot/uboot/ > > I used BeagleBoard.org Debian Image 2016-09-04 and I guess that the problem > come from the fact that /boot/uboot is empty. > I'll modify the script to sync /boot instead and let you know.
Oh yeah we just fixed this issue too.. When your image is a single partition, the flasher will bomb when writting a dual partition.. we've added a option to setup_sdcard.sh to fix this: --enable-fat-partition so it'll crate a dual partition base image.. For: 2016-09-04, grab the base file: https://rcn-ee.online/rootfs/bb.org/testing/2016-09-04/iot/debian-8.5-iot-armhf-2016-09-04.tar.xz extract it You'll want to then update the "setup_sdcard.sh" here's the master: https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_sdcard.sh sudo ./setup_sdcard.sh --img-4gb bone --dtb beaglebone --bbb-old-bootloader-in-emmc --rootfs_label rootfs --hostname beaglebone --enable-cape-universal --enable-fat-partition If you want it to flash the eMMC just add "--emmc-flasher" to the list of options Then just dd that bone-4gb.img to a microsd Regards, -- Robert Nelson https://rcn-ee.com/ -- 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 beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYjWBs2rhDWQmoJBvTQ-Q_Z-_ban_nCktFN4Lps-J7aK_A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.