Hi Robert,
I built a set of images using the latest image-builder (from the master
branch), after booting from the SD card, the image fails to flash. There
doesn't appear to be a log file, but after running the
beaglebone-black-eMMC-flasher.sh script with -x, it seems that it's failing
in the partition_drive() step. I think it's because /boot/uboot is mounted
in /etc/fstab to the SD card (mmcblk0p1) and the script is trying to umount
mmcblk1p1 which isn't actually mounted, which in turn causes
write_failure() to get called. Anyway, here's the output (below).
-W.
root@beaglebone:/etc/init.d# /bin/bash -x
/opt/scripts/tools/beaglebone-black-eMMC-flasher.sh
+ grep -q root
+ id
+ unset boot_drive
++ grep /boot/uboot
++ LC_ALL=C
++ lsblk -l
++ awk '{print $1}'
+ boot_drive=mmcblk0p1
+ '[' xmmcblk0p1 = x ']'
+ '[' xmmcblk0p1 = xmmcblk0p1 ']'
+ source=/dev/mmcblk0
+ destination=/dev/mmcblk1
+ '[' xmmcblk0p1 = xmmcblk1p1 ']'
+ check_running_system
+ '[' '!' -f /boot/uboot/uEnv.txt ']'
+ echo -----------------------------
-----------------------------
+ echo 'debug copying: [/dev/mmcblk0] -> [/dev/mmcblk1]'
debug copying: [/dev/mmcblk0] -> [/dev/mmcblk1]
+ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk1boot0 179:16 0 1M 1 disk
mmcblk1boot1 179:24 0 1M 1 disk
mmcblk0 179:0 0 3.7G 0 disk
├─mmcblk0p1 179:1 0 96M 0 part /boot/uboot
└─mmcblk0p2 179:2 0 1.6G 0 part /
mmcblk1 179:8 0 1.8G 0 disk
├─mmcblk1p1 179:9 0 96M 0 part
└─mmcblk1p2 179:10 0 1.7G 0 part
+ echo -----------------------------
-----------------------------
+ '[' '!' -b /dev/mmcblk1 ']'
+ update_boot_files
++ uname -r
+ '[' '!' -f /boot/initrd.img-3.8.13-bone50 ']'
++ uname -r
+ update-initramfs -u -k 3.8.13-bone50
update-initramfs: Generating /boot/initrd.img-3.8.13-bone50
++ uname -r
+ '[' -f /boot/vmlinuz-3.8.13-bone50 ']'
++ uname -r
+ '[' -f /boot/initrd.img-3.8.13-bone50 ']'
++ uname -r
+ cp -v /boot/initrd.img-3.8.13-bone50 /boot/uboot/initrd.img
`/boot/initrd.img-3.8.13-bone50' -> `/boot/uboot/initrd.img'
++ uname -r
+ mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d
/boot/initrd.img-3.8.13-bone50 /boot/uboot/uInitrd
Image Name: initramfs
Created: Thu May 15 03:19:02 2014
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2959366 Bytes = 2890.01 kB = 2.82 MB
Load Address: 00000000
Entry Point: 00000000
+ partition_drive
+ flush_cache
+ sync
+ umount_p1
+ '[' -b /dev/mmcblk1p1 ']'
+ echo 'umounting: /dev/mmcblk1p1'
umounting: /dev/mmcblk1p1
+ umount /dev/mmcblk1p1
umount: /dev/mmcblk1p1: not mounted
+ force_umount_p1
+ echo 'Trying to force umount -l of /dev/mmcblk1p1'
Trying to force umount -l of /dev/mmcblk1p1
+ flush_cache
+ sync
+ umount -l /dev/mmcblk1p1
umount: /dev/mmcblk1p1: not mounted
+ write_failure
+ echo 'writing to [/dev/mmcblk1] failed...'
writing to [/dev/mmcblk1] failed...
+ '[' -e /sys/class/leds/beaglebone:green:usr0/trigger ']'
+ echo heartbeat
+ echo heartbeat
+ echo heartbeat
+ echo heartbeat
+ echo -----------------------------
-----------------------------
+ flush_cache
+ sync
+ umount /dev/mmcblk1p1
umount: /dev/mmcblk1p1: not mounted
+ true
+ umount /dev/mmcblk1p2
umount: /dev/mmcblk1p2: not mounted
+ true
+ exit
--
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].
For more options, visit https://groups.google.com/d/optout.