So I usually use this method:
On Beaglebone:
root@wgd:~# cat /etc/dogtag
BeagleBoard.org Debian Image 2017-04-02
On Debian support system:
william@eee-pc:~$ unxz bone-debian-8.7-console-armhf-2017-04-02-1gb.img.xz
william@eee-pc:~$ file bone-debian-8.7-console-armhf-2017-04-02-1gb.img
bone-debian-8.7-console-armhf-2017-04-02-1gb.img: x86 boot sector; partition 1: ID=0x83 , active, starthead 130, startsector 8192, 1732608 sectors, code offset 0x0
I forget if fdisk will also give this information or not, but it should if you run fdisk -l /dev/. However, running this on a live partition may not work ? Let’s find out.
root@wgd:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk1boot0 179:8 0 2M 1 disk
mmcblk1boot1 179:16 0 2M 1 disk
mmcblk1 179:0 0 3.7G 0 disk
`-mmcblk1p1 179:1 0 3.7G 0 part /
root@wgd:~# fdisk -l /dev/mmcblk1
Disk /dev/mmcblk1: 3.7 GiB, 3909091328 bytes, 7634944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 * 8192 7634943 7626752 3.7G 83 Linux
And SOC.sh says . . .
root@wgd:~# cat /boot/SOC.sh
#!/bin/sh
format=1.0
board=am335x_evm
bootloader_location=dd_spl_uboot_boot
bootrom_gpt=
dd_spl_uboot_count=1
dd_spl_uboot_seek=1
dd_spl_uboot_conf=notrunc
dd_spl_uboot_bs=128k
dd_spl_uboot_backup=/opt/backup/uboot/MLO
dd_uboot_count=2
dd_uboot_seek=1
dd_uboot_conf=notrunc
dd_uboot_bs=384k
dd_uboot_backup=/opt/backup/uboot/u-boot.img
boot_fstype=ext4
conf_boot_startmb=4 ???
conf_boot_endmb=
sfdisk_fstype=L
boot_label=BOOT
rootfs_label=rootfs
#Kernel
dtb=
serial_tty=ttyO0
usbnet_mem=
I’m assuming this is file is marked executable so it can be “sourced” ?