[BeagleBone Black] not bootable emmc after D2646?

From: Andrey Fesenko <f0andrey_at_gmail.com>
Date: Thu, 4 Jun 2015 03:22:17 +0300
Hello,

Booting from emmc possible only if you have installed sdcard (u-boot
start from sdcard) if stop boot and set loaderdev='mmc 1' system boot
emmc.
Without this, when sdcard slot empty, in terminal i'm see CCCCCCCCCCCC
(u-boot not start)

It looks like this is due to https://reviews.freebsd.org/D2646

# uname -a
FreeBSD bb.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283948: Wed Jun
 3 18:45:48 MSK 2015
root_at_des.local:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE-V6  arm

for copy to emmc uses # sh copy-to-emmc.sh

copying succes, fix fstab (remove lables)
# cat /etc/fstab
/dev/mmcsd1s1           /boot/msdos msdosfs rw,noatime       0 0
/dev/mmcsd1s2a          /           ufs     rw,noatime       1 1
md                    /tmp        mfs     rw,noatime,-s30m 0 0
md                    /var/log    mfs     rw,noatime,-s15m 0 0
md                    /var/tmp    mfs     rw,noatime,-s5m  0 0

root_at_bb:~ # fdisk mmcsd1
******* Working on device /dev/mmcsd1 *******
parameters extracted from in-core disklabel are:
cylinders=233 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=233 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
    start 1024, size 4096 (2 Meg), flag 80 (active)
        beg: cyl 0/ head 31/ sector 2;
        end: cyl 1/ head 27/ sector 5
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 5120, size 3745792 (1829 Meg), flag 0
        beg: cyl 1/ head 27/ sector 6;
        end: cyl 887/ head 127/ sector 33
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

# fsck_msdosfs /dev/mmcsd1s1
** /dev/mmcsd1s1
** Phase 1 - Read and Compare FATs
** Phase 2 - Check Cluster Chains
** Phase 3 - Checking Directories
** Phase 4 - Checking for Lost Files
10 files, 1180 free (2360 clusters)

# diskinfo -v /dev/mmcsd1
/dev/mmcsd1
        512             # sectorsize
        1920991232      # mediasize in bytes (1.8G)
        3751936         # mediasize in sectors
        524288          # stripesize
        0               # stripeoffset
        98E43448        # Disk ident.

# gpart show
=>     63  7698369  mmcsd0  MBR  (3.7G)
       63     4095       1  !12  [active]  (2.0M)
     4158  7688130       2  freebsd  (3.7G)
  7692288     6144          - free -  (3.0M)

=>      0  7688130  mmcsd0s2  BSD  (3.7G)
        0       66            - free -  (33K)
       66  7688064         1  freebsd-ufs  (3.7G)
Received on Wed Jun 03 2015 - 22:22:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:58 UTC