- It does some things specific to my application, like performing a few web requests.- Instead of just creating one partition, it creates the root/boot partition, and a second read-write partition.
The partition table looks like this:
Formatting: /dev/mmcblk1Disk /dev/mmcblk1: 119808 cylinders, 4 heads, 16 sectors/trackOld situation:New situation:Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0Device Boot Start End MiB #blocks Id System/dev/mmcblk1p1 * 1 1500 1500 1536000 83 Linux/dev/mmcblk1p2 1501 3743 2243 2296832 83 Linux/dev/mmcblk1p3 0 - 0 0 0 Empty/dev/mmcblk1p4 0 - 0 0 0 EmptySuccessfully wrote the new partition tableRe-reading the partition table ...
- It was originally based on an older version of the script, however, some parts have been updated. The EEPROM flashing for instance, has been upgraded to the current version of RCN's script.
Copying: /dev/mmcblk0p1 -> /dev/mmcblk1p1mount /dev/mmcblk1p1 /tmp/rootfs/ -o async,noatimersync: / -> /tmp/rootfs/[ 432.938083] EXT4-fs error (device mmcblk1p1): ext4_mb_generate_buddy:757: group 0, block bitmap and bg descriptor inconsistent: 32768 vs 23112 free clusters[ 432.953982] EXT4-fs error (device mmcblk1p1): ext4_find_dest_de:1829: inode #2: block 6119: comm rsync: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0[ 432.984704] EXT4-fs error (device mmcblk1p1): ext4_find_dest_de:1829: inode #2: block 6119: comm rsync: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0[ 433.011220] EXT4-fs error (device mmcblk1p1): ext4_find_dest_de:1829: inode #2: block 6119: comm rsync: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0[ 433.041931] EXT4-fs error (device mmcblk1p1): ext4_find_dest_de:1829: inode #2: block 6119: comm rsync: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0[ 433.064714] EXT4-fs error (device mmcblk1p1): ext4_find_dest_de:1829: inode #2: block 6119: comm rsync: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0[ 433.087946] EXT4-fs error (device mmcblk1p1): ext4_find_dest_de:1829: inode #2: block 6119: comm rsync: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0[ 433.109954] EXT4-fs error (device mmcblk1p1): ext4_find_dest_de:1829: inode #2: block 6119: comm rsync: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0[ 433.131633] EXT4-fs error (device mmcblk1p1): ext4_find_dest_de:1829: inode #2: block 6119: comm rsync: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0[ 433.153583] EXT4-fs error (device mmcblk1p1): ext4_find_dest_de:1829: inode #2: block 6119: comm rsync: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0writing to [/dev/mmcblk1] failed...U-Boot SPL 2015.04-dirty (Apr 14 2015 - 10:12:34)U-Boot 2015.04-dirty (Apr 14 2015 - 10:12:34)
Watchdog enabledI2C: readyDRAM: 512 MiBMMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1Using default environment
Net: <ethaddr> not set. Validating first E-fuse MACcpswHit any key to stop autoboot: 0gpio: pin 53 (gpio 53) value is 1Card did not respond to voltage select!Card did not respond to voltage select!gpio: pin 56 (gpio 56) value is 0gpio: pin 55 (gpio 55) value is 0gpio: pin 54 (gpio 54) value is 0switch to partitions #0, OKmmc1(part 0) is current devicegpio: pin 54 (gpio 54) value is 1Checking for: /uEnv.txt ...Checking for: /boot.scr ...Checking for: /boot/boot.scr ...Checking for: /boot/uEnv.txt ...** Invalid partition 3 **** Invalid partition 4 **** Invalid partition 5 **** Invalid partition 6 **** Invalid partition 7 **
FAILSAFE: U-Boot UMS (USB Mass Storage) enabled, media now available over the usb slave port ...UMS: disk start sector: 0x0, count: 0x750000\root@arm:~# lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTmmcblk1boot0 179:16 0 1M 1 diskmmcblk1boot1 179:24 0 1M 1 diskmmcblk0 179:0 0 7.4G 0 disk└─mmcblk0p1 179:1 0 7.4G 0 part /mmcblk1 179:8 0 3.7G 0 disk├─mmcblk1p1 179:9 0 1.5G 0 part└─mmcblk1p2 179:10 0 2.2G 0 partroot@arm:~# mount /dev/mmcblk1p1 /media[ 4127.908991] EXT4-fs (mmcblk1p1): no journal foundmount: wrong fs type, bad option, bad superblock on /dev/mmcblk1p1, missing codepage or helper program, or other error
In some cases useful info is found in syslog - try dmesg | tail or so.root@arm:~# mount /dev/mmcblk1p2 /mediaroot@arm:~# ls /mediaetc logs lost+found photos varLC_ALL=C sfdisk --force --in-order --Linux --unit M "${destination}" <<-__EOF__ ${conf_boot_startmb},${root_part_size},${sfdisk_fstype},* ,,${sfdisk_fstype} __EOF__
I have tried checking the power supply to the beaglebone (the beaglebone is powered by a daughterboard) with an oscilloscope, and it appears to be stable.Different SD cards - they still fail
Different Beaglebones
Adding more sync/flush_cache operations around everything in partition_drive and copy_rootfs
I also added this (unexplained code in RCNs script which claims to flush the eMMC buffers - anyone know why this works?)
in many places around the script.#https://github.com/beagleboard/meta-beagleboard/blob/master/contrib/bone-flash-tool/emmc.sh#L 158-L159# force writeback of eMMC buffersflush_cachedd if=${destination} of=/dev/null count=100000sync
So, we've found a problem.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/815d709d-9b51-495b-a8b9-c29b213bd0b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Jul 6, 2016, at 7:13 PM, Joshua Collins <josh.m...@gmail.com> wrote:
Hi all,
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/5d912772-b91d-4d21-9d4c-cb73ab0eb1e5%40googlegroups.com.