RobertCNelson / boot-scripts

Just a bunch of useful scripts placed under /opt/scripts/
124 stars 131 forks source link

Cannot boot flashed BBB from beaglebone-black-make-microSD-flasher-from-eMMC.sh #88

Open leearmstrong opened 5 years ago

leearmstrong commented 5 years ago

I have used beaglebone-black-make-microSD-flasher-from-eMMC.sh for quite some time and I have just come to update an image I was using.

I updated to the latest scripts in this repo and managed to create an SD card flasher as per normal.

The SD card on a new BBB boots and appears to flash the BBB all ok. However when it then does it's first "flashed" boot it halts with the following...

Trying to boot from MMC2

U-Boot 2016.11-rc3-00002-g73df7f7 (Nov 04 2016 - 15:20:36 -0500), Build: jenkins-github_Bootloader-Builder-479

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
Net:   eth0: MII MODE
cpsw
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] ...
board_rev=[00C0] ...
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
Card did not respond to voltage select!
Card did not respond to voltage select!
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc1(part 0) is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
380 bytes read in 21 ms (17.6 KiB/s)
Loaded environment from /boot/uEnv.txt
debug: [dtb=am335x-boneblack-emmc-pf-overlay-pps.dtb] ...
Using: dtb=am335x-boneblack-emmc-pf-overlay-pps.dtb ...
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-4.1.15-ti-r41 ...
8304880 bytes read in 554 ms (14.3 MiB/s)
loading /boot/dtbs/4.1.15-ti-r41/am335x-boneblack-emmc-pf-overlay-pps.dtb ...
57631 bytes read in 46 ms (1.2 MiB/s)
loading /boot/initrd.img-4.1.15-ti-r41 ...
4573448 bytes read in 316 ms (13.8 MiB/s)
debug: [console=ttyO0,115200n8 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M quiet] ...
debug: [bootz 0x82000000 0x88080000:45c908 0x88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8fba3000, end 8ffff908 ... OK
   Loading Device Tree to 8fb91000, end 8fba211e ... OK

Starting kernel ...

[    3.759210] cpu cpu0: cpu0 clock notifier not ready, retry
[    3.897748] bone_capemgr bone_capemgr: slot #0: No cape found
[    3.957671] bone_capemgr bone_capemgr: slot #1: No cape found
[    4.017667] bone_capemgr bone_capemgr: slot #2: No cape found
[    4.077668] bone_capemgr bone_capemgr: slot #3: No cape found
Loading, please wait...
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/mmcblk1p1 does not exist.  Dropping to a shell!
modprobe: module i8042 not found in modules.dep
modprobe: module ehci-orion not found in modules.dep
modprobe: module uhci-hcd not found in modules.dep
modprobe: module ohci-hcd not found in modules.dep

BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs) 
RobertCNelson commented 5 years ago

@leearmstrong , sorry was out a conference..

The issue, 4.1.x's need to use uuid instead of the partition number:

A quick grep, here are the if statements 4.1.x needs to drop into..

https://github.com/RobertCNelson/boot-scripts/blob/master/tools/eMMC/functions.sh#L914

https://github.com/RobertCNelson/boot-scripts/blob/master/tools/eMMC/functions.sh#L944

https://github.com/RobertCNelson/boot-scripts/blob/master/tools/eMMC/functions.sh#L954

https://github.com/RobertCNelson/boot-scripts/blob/master/tools/eMMC/functions.sh#L979

PS, 4.4.x "breaks" under uuid... So you gotta differentiate v4.1.x vs v4.4.x

Regards,

leearmstrong commented 5 years ago

Ah thanks Robert (and no worries!!!!),

Any way I can tell the script to use this then?

leearmstrong commented 5 years ago

Or any way to manually "fix" an image at all?

leearmstrong commented 5 years ago

I've just had a look and would replacing those if statements with... if [ -d /sys/devices/bone_capemgr.*/ ] || [[ $uname_r == 4.1* ]] ; then

Be a valid fix?

RobertCNelson commented 5 years ago

@leearmstrong that would work for you today, but break v4.10~4.19 kernels..

Regards,

leearmstrong commented 5 years ago

Yes fair point. Perhaps this would suffice then?

if [ -d /sys/devices/bone_capemgr.*/ ] || [[ $uname_r == 4.1.* ]] ; then

leearmstrong commented 5 years ago

I made that change as per the last comment and now the flashing from the SD Card does not work. When it boots into the flasher shows the log below.

Is there any other modifications I need to make at all?

I have mounted the SD card it created and the /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh file exists

Boot after flash

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.15-ti-r41 (root@a4-imx6q-wandboard-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP PREEMPT Thu Jan 14 22:52:39 UTC 2016
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI AM335x BeagleBone Black
[    0.000000] cma: Reserved 24 MiB at 0x9e000000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] PERCPU: Embedded 13 pages/cpu @df926000 s23104 r8192 d21952 u53248
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129408
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=UUID=6eca9a3a-a1d7-487d-a717-fca5fd9a129a ro rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 470728K/522240K available (10772K kernel code, 938K rwdata, 3724K rodata, 684K init, 901K bss, 26936K reserved, 24576K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0e30400   (14497 kB)
[    0.000000]       .init : 0xc0e31000 - 0xc0edc000   ( 684 kB)
[    0.000000]       .data : 0xc0edc000 - 0xc0fc6844   ( 939 kB)
[    0.000000]        .bss : 0xc0fc9000 - 0xc10aa618   ( 902 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000038] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000052] OMAP clocksource: timer1 at 24000000 Hz
[    0.000423] Console: colour dummy device 80x30
[    0.000452] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000462] This ensures that you still see kernel messages. Please
[    0.000470] update your kernel commandline.
[    0.000492] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.088852] pid_max: default: 32768 minimum: 301
[    0.089016] Security Framework initialized
[    0.089105] AppArmor: AppArmor disabled by boot time parameter
[    0.089115] Yama: becoming mindful.
[    0.089351] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089367] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090296] Initializing cgroup subsys blkio
[    0.090327] Initializing cgroup subsys memory
[    0.090377] Initializing cgroup subsys devices
[    0.090397] Initializing cgroup subsys freezer
[    0.090426] Initializing cgroup subsys net_cls
[    0.090443] Initializing cgroup subsys perf_event
[    0.090462] Initializing cgroup subsys net_prio
[    0.090524] CPU: Testing write buffer coherency: ok
[    0.090588] ftrace: allocating 34990 entries in 103 pages
[    0.185328] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.185466] Setting up static identity map for 0x80008280 - 0x800082d8
[    0.238863] Brought up 1 CPUs
[    0.238891] SMP: Total of 1 processors activated (996.14 BogoMIPS).
[    0.238901] CPU: All CPU(s) started in SVC mode.
[    0.239853] devtmpfs: initialized
[    0.258075] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.279116] omap_hwmod: tptc0 using broken dt data from edma
[    0.279362] omap_hwmod: tptc1 using broken dt data from edma
[    0.279581] omap_hwmod: tptc2 using broken dt data from edma
[    0.285521] omap_hwmod: debugss: _wait_target_disable failed
[    0.340366] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.342517] xor: measuring software checksum speed
[    0.438881]    arm4regs  :  1219.600 MB/sec
[    0.538805]    8regs     :  1092.400 MB/sec
[    0.638806]    32regs    :  1090.000 MB/sec
[    0.738804]    neon      :  1656.000 MB/sec
[    0.738814] xor: using function: neon (1656.000 MB/sec)
[    0.738977] pinctrl core: initialized pinctrl subsystem
[    0.741125] NET: Registered protocol family 16
[    0.744017] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.768854] cpuidle: using governor ladder
[    0.798835] cpuidle: using governor menu
[    0.803424] OMAP GPIO hardware version 0.1
[    0.816329] No ATAGs?
[    0.816364] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.818347] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.818371] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    1.018989] raid6: int32x1  gen()   234 MB/s
[    1.188933] raid6: int32x1  xor()   176 MB/s
[    1.358987] raid6: int32x2  gen()   304 MB/s
[    1.528957] raid6: int32x2  xor()   199 MB/s
[    1.698813] raid6: int32x4  gen()   283 MB/s
[    1.868925] raid6: int32x4  xor()   202 MB/s
[    2.038809] raid6: int32x8  gen()   286 MB/s
[    2.208884] raid6: int32x8  xor()   187 MB/s
[    2.378832] raid6: neonx1   gen()  1465 MB/s
[    2.548818] raid6: neonx2   gen()  1884 MB/s
[    2.718820] raid6: neonx4   gen()  1925 MB/s
[    2.888810] raid6: neonx8   gen()   812 MB/s
[    2.888819] raid6: using algorithm neonx4 gen() 1925 MB/s
[    2.888829] raid6: using intx1 recovery algorithm
[    2.898455] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    2.901977] vgaarb: loaded
[    2.902744] SCSI subsystem initialized
[    2.903537] usbcore: registered new interface driver usbfs
[    2.903617] usbcore: registered new interface driver hub
[    2.903739] usbcore: registered new device driver usb
[    2.904360] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    2.904418] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[    2.904570] pps_core: LinuxPPS API ver. 1 registered
[    2.904579] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.904613] PTP clock support registered
[    2.905686] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    2.906356] Advanced Linux Sound Architecture Driver Initialized.
[    2.907225] NetLabel: Initializing
[    2.907238] NetLabel:  domain hash size = 128
[    2.907246] NetLabel:  protocols = UNLABELED CIPSOv4
[    2.907318] NetLabel:  unlabeled traffic allowed by default
[    2.907624] Switched to clocksource timer1
[    3.035525] NET: Registered protocol family 2
[    3.036575] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    3.036628] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    3.036689] TCP: Hash tables configured (established 4096 bind 4096)
[    3.036775] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    3.036799] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    3.037032] NET: Registered protocol family 1
[    3.037790] RPC: Registered named UNIX socket transport module.
[    3.037809] RPC: Registered udp transport module.
[    3.037817] RPC: Registered tcp transport module.
[    3.037825] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.038483] Unpacking initramfs...
[    3.353549] Freeing initrd memory: 4468K (cfba3000 - d0000000)
[    3.354012] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
[    3.354085] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    3.356935] futex hash table entries: 256 (order: 2, 16384 bytes)
[    3.357075] audit: initializing netlink subsys (disabled)
[    3.357185] audit: type=2000 audit(3.290:1): initialized
[    3.359268] zpool: loaded
[    3.359293] zbud: loaded
[    3.359733] VFS: Disk quotas dquot_6.6.0
[    3.359823] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.360630] NFS: Registering the id_resolver key type
[    3.360700] Key type id_resolver registered
[    3.360710] Key type id_legacy registered
[    3.360740] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.361122] fuse init (API version 7.23)
[    3.361431] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    3.364858] NET: Registered protocol family 38
[    3.365007] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    3.365261] io scheduler noop registered
[    3.365280] io scheduler deadline registered
[    3.365322] io scheduler cfq registered (default)
[    3.366832] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    3.370345] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    3.373790] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 154, base_baud = 3000000) is a 8250
[    4.249996] console [ttyS0] enabled
[    4.254585] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 155, base_baud = 3000000) is a 8250
[    4.264488] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 156, base_baud = 3000000) is a 8250
[    4.274910] [drm] Initialized drm 1.1.0 20060810
[    4.279826] usbcore: registered new interface driver udl
[    4.347710] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    4.353855] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    4.360421] davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
[    4.374299] libphy: 4a101000.mdio: probed
[    4.378563] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    4.388726] cpsw 4a100000.ethernet: Detected MACID = 54:4a:16:bb:d0:b7
[    4.396480] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    4.404312] usbcore: registered new interface driver pegasus
[    4.410175] usbcore: registered new interface driver rtl8150
[    4.415918] usbcore: registered new interface driver r8152
[    4.423004] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.429733] ehci-pci: EHCI PCI platform driver
[    4.434278] ehci-platform: EHCI generic platform driver
[    4.439759] ehci-omap: OMAP-EHCI Host Controller driver
[    4.446778] 47401300.usb-phy supply vcc not found, using dummy regulator
[    4.521488] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    4.600060] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    4.606237] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    4.614488] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.621356] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.628635] usb usb1: Product: MUSB HDRC host driver
[    4.633622] usb usb1: Manufacturer: Linux 4.1.15-ti-r41 musb-hcd
[    4.639676] usb usb1: SerialNumber: musb-hdrc.1.auto
[    4.645575] hub 1-0:1.0: USB hub found
[    4.649501] hub 1-0:1.0: 1 port detected
[    4.688469] mousedev: PS/2 mouse device common for all mice
[    4.695519] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    4.703575] i2c /dev entries driver
[    4.707200] Driver for 1-wire Dallas network protocol.
[    4.714255] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    4.722474] omap_hsmmc 48060000.mmc: Got CD GPIO
[    4.809214] ledtrig-cpu: registered to indicate activity on CPUs
[    4.815618] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    4.823577] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    4.831207] hidraw: raw HID events driver (C) Jiri Kosina
[    4.838230] usbcore: registered new interface driver usbhid
[    4.843883] usbhid: USB HID core driver
[    4.848293] ashmem: initialized
[    4.855815] oprofile: using arm/armv7
[    4.859850] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.868465] NET: Registered protocol family 10
[    4.874394] mip6: Mobile IPv6
[    4.877584] mmc0: new high speed SDHC card at address aaaa
[    4.883276] NET: Registered protocol family 17
[    4.888598] mmcblk0: mmc0:aaaa SU04G 3.69 GiB 
[    4.893763] Key type dns_resolver registered
[    4.898579] mpls_gso: MPLS GSO support
[    4.902502]  mmcblk0: p1
[    4.906188] omap_voltage_late_init: Voltage driver support not added
[    4.913511] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
[    4.923466] cpu cpu0: cpu0 clock notifier not ready, retry
[    4.931885] PM: bootloader does not support rtc-only!
[    4.937284] ThumbEE CPU extension supported.
[    4.941733] Registering SWP/SWPB emulation handler
[    4.948076] registered taskstats version 1
[    4.956615] Btrfs loaded
[    4.982335] Key type encrypted registered
[    4.989995] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/input/input0
[    5.028147] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    5.034154] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    5.041194] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    5.048935] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    5.056297] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    5.063740] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    5.071286] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    5.078288] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    5.090677] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,00C0,5114BBBK022A'
[    5.098170] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
[    5.157642] bone_capemgr bone_capemgr: slot #0: No cape found
[    5.217633] bone_capemgr bone_capemgr: slot #1: No cape found
[    5.277632] bone_capemgr bone_capemgr: slot #2: No cape found
[    5.337633] bone_capemgr bone_capemgr: slot #3: No cape found
[    5.343521] bone_capemgr bone_capemgr: initialized OK.
[    5.349464] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1325000]:-22
[    5.359912] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1325000]:-22
[    5.370618] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[    5.379457] of_cfs_init
[    5.382110] of_cfs_init: OK
[    5.391788] ALSA device list:
[    5.394780]   No soundcards found.
[    5.398429] mmc1: MAN_BKOPS_EN bit is not set
[    5.404128] Freeing unused kernel memory: 684K (c0e31000 - c0edc000)
[    5.413224] mmc1: new high speed MMC card at address 0001
Loading, please wait...
[    5.425041] mmcblk1: mmc1:0001 MMC04G 3.65 GiB 
[    5.434461] mmcblk1boot0: mmc1:0001 MMC04G partition 1 1.00 MiB
[    5.446167] mmcblk1boot1: mmc1:0001 MMC04G partition 2 1.00 MiB
[    5.464082]  mmcblk1: p1
[    5.800060] systemd-udevd[109]: starting version 215
[    5.807445] random: systemd-udevd urandom read with 29 bits of entropy available
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check  file system ... fsck from util-linux 2.25.2
Checking all file systems.
done.
mount: can't find /root in /etc/fstab
done.
Target filesystem doesn't have requested /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
No init found. Try passing init= bootarg.
modprobe: module i8042 not found in modules.dep
modprobe: module ehci-orion not found in modules.dep
modprobe: module uhci-hcd not found in modules.dep
modprobe: module ohci-hcd not found in modules.dep

BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Flashing Log:

================================================================================
Starting eMMC Flasher from microSD media
Version: [1.20180412: all ssh regneration override...]
================================================================================

================================================================================
Prepare environment for flashing
Starting at Fri Nov  9 08:38:50 UTC 2018
----------------------------------------
==> sysctl: vm.min_free_kbytes=[2827]
==> sysctl: setting: [sysctl -w vm.min_free_kbytes=16384]
vm.min_free_kbytes = 16384
----------------------------------------
==> Determining root drive
==> console=ttyO0,115200n8 root=UUID=6eca9a3a-a1d7-487d-a717-fca5fd9a129a ro rootfstype=ext4 rootwait coherent_pool=1M quiet
----------------------------------------
==> root_drive=[/dev/mmcblk0p1]
====> Root drive identified at /dev/mmcblk0p1
==> Determining boot drive
==> Figuring out Source and Destination devices
====> Source identified: [/dev/mmcblk0]
====> Destination identified: [/dev/mmcblk1]
====> Unmounting auto-mounted partitions
==> Figuring out machine
====> Machine is TI_AM335x_BeagleBone_Black
====> Machine is compatible with BeagleBone Black
================================================================================
5 4 3 2 1 

================================================================================
Checking running system
==> Copying: [/dev/mmcblk0] -> [/dev/mmcblk1]
==> lsblk:
----------------------------------------
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0boot0 179:8    0    1M  1 disk 
mmcblk0boot1 179:16   0    1M  1 disk 
mmcblk0      179:0    0  3.7G  0 disk 
`-mmcblk0p1  179:1    0  3.7G  0 part /
mmcblk1      179:24   0  3.7G  0 disk 
`-mmcblk1p1  179:25   0  3.7G  0 part 
----------------------------------------
==> df -h | grep rootfs:
----------------------------------------
==> updating: /boot/initrd.img-4.1.15-ti-r41
update-initramfs: Generating /boot/initrd.img-4.1.15-ti-r41
==> Giving you time to check...
10 9 8 7 6 5 4 3 2 1 
================================================================================

================================================================================
Preparing drives

----------------------------------------
==> Erasing: /dev/mmcblk1
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB) copied, 17.7567 s, 6.4 MB/s
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB) copied, 5.34417 s, 21.2 MB/s
----------------------------------------
==> Erasing: /dev/mmcblk1 complete
----------------------------------------

----------------------------------------
==> Loading /boot/SOC.sh
************************************************************
#!/bin/sh
format=1.0

board=am335x_evm

bootloader_location=dd_spl_uboot_boot

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=1
conf_boot_endmb=
sfdisk_fstype=0x83

boot_label=BEAGLEBONE
rootfs_label=rootfs

#Kernel
dtb=
serial_tty=ttyO0
usbnet_mem=

************************************************************
==> Loaded

----------------------------------------

================================================================================
Writing bootloader to [/dev/mmcblk1]
----------------------------------------
==> Figuring out options for SPL U-Boot copy ...
===> Will use : count=1 seek=1 conv=notrunc bs=128k
==> Figuring out options for U-Boot copy ...
===> Will use : count=2 seek=1 conv=notrunc bs=384k
==> Copying SPL U-Boot with dd if=/opt/backup/uboot/MLO of=/dev/mmcblk1 count=1 seek=1 conv=notrunc bs=128k
------------------------------------------------------------
0+1 records in
0+1 records out
68344 bytes (68 kB) copied, 0.0443642 s, 1.5 MB/s
------------------------------------------------------------
==> Copying U-Boot with dd if=/opt/backup/uboot/u-boot.img of=/dev/mmcblk1 count=2 seek=1 conv=notrunc bs=384k
------------------------------------------------------------
0+1 records in
0+1 records out
376504 bytes (377 kB) copied, 0.159145 s, 2.4 MB/s
------------------------------------------------------------
Writing bootloader completed
================================================================================

================================================================================
Partitionning /dev/mmcblk1
----------------------------------------
==> sfdisk parameters:
sfdisk: [sfdisk from util-linux 2.25.2]
sfdisk: [sfdisk --force --Linux --in-order --unit M /dev/mmcblk1]
sfdisk: [1,,L,*]
==> Partitionning
------------------------------------------------------------
sfdisk: Checking that no-one is using this disk right now ...
sfdisk: OK

Disk /dev/mmcblk1: 121008 cylinders, 4 heads, 16 sectors/track
sfdisk:  /dev/mmcblk1: unrecognized partition table type
Old situation:
sfdisk: No partitions found
New situation:
Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/mmcblk1p1   *     1   3780   3780    3870720   83  Linux
/dev/mmcblk1p2         0      -      0          0    0  Empty
/dev/mmcblk1p3         0      -      0          0    0  Empty
/dev/mmcblk1p4         0      -      0          0    0  Empty
Successfully wrote the new partition table

Re-reading the partition table ...

sfdisk: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
------------------------------------------------------------

==> Partitionning Completed
==> Generated Partitions:
------------------------------------------------------------

Disk /dev/mmcblk1: 121008 cylinders, 4 heads, 16 sectors/track
Units: cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/mmcblk1p1   *     32  120991  120960    3870720   83  Linux
/dev/mmcblk1p2          0       -       0          0    0  Empty
/dev/mmcblk1p3          0       -       0          0    0  Empty
/dev/mmcblk1p4          0       -       0          0    0  Empty
------------------------------------------------------------
================================================================================

================================================================================
Preparing future rootfs to receive files
----------------------------------------

==> Formatting rootfs with mkfs.ext4  /dev/mmcblk1p1 -L BEAGLEBONE
--------------------------------------------------------------------------------

mke2fs 1.42.12 (29-Aug-2014)
Discarding device blocks: done                            
Creating filesystem with 967680 4k blocks and 241920 inodes
Filesystem UUID: 1cc0c975-05e6-4a5f-aa2b-12d70c02903a
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

--------------------------------------------------------------------------------
==> Formatting rootfs: /dev/mmcblk1p1 complete
==> Creating temporary rootfs directory (/tmp/rootfs)
==> Mounting /dev/mmcblk1p1 to /tmp/rootfs

================================================================================

================================================================================
Copying: Current rootfs to /dev/mmcblk1p1
----------------------------------------
==> rsync: / -> /tmp/rootfs
----------------------------------------
        634.27M  99%    1.53MB/s    0:06:35 (xfr#36749, to-chk=0/48659)   
----------------------------------------
==> Copying: Kernel modules
===> Creating directory for modules
===> rsync: /lib/modules/4.1.15-ti-r41/ -> /tmp/rootfs/lib/modules/4.1.15-ti-r41/
----------------------------------------
         61.03M 100%    3.33MB/s    0:00:17 (xfr#2048, to-chk=0/2419)   
----------------------------------------
Copying: Current rootfs to /dev/mmcblk1p1 complete
================================================================================

================================================================================
Final System Tweaks:
----------------------------------------

==> Generating: /etc/fstab
===> /etc/fstab generated
****************************************
# /etc/fstab: static file system information.
#
/dev/mmcblk1p1  /  ext4  noatime,errors=remount-ro  0  1
debugfs  /sys/kernel/debug  debugfs  defaults  0  0
****************************************

==> /boot/uEnv.txt: enabling eMMC flasher script
****************************************
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=4.1.15-ti-r41
dtb=am335x-boneblack-emmc-pf-overlay-pps.dtb

cmdline=coherent_pool=1M quiet

uuid=6eca9a3a-a1d7-487d-a717-fca5fd9a129a
cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
****************************************

================================================================================
Tearing down future rootfs
----------------------------------------

==> Unmounting /tmp/rootfs
================================================================================
================================================================================
Tearing Down script environment
==> Stopping Cylon LEDs ...
==> Setting LEDs to 
==> Force writeback of eMMC buffers by Syncing: /dev/mmcblk1
./functions.sh: line 280:  2525 Terminated              cylon_leds
----------------------------------------
100000+0 records in
100000+0 records out
51200000 bytes (51 MB) copied, 2.38938 s, 21.4 MB/s
----------------------------------------
===> Syncing: /dev/mmcblk1 complete
==> This script took 517 seconds to run
================================================================================

==> Setting LEDs to 
==> Displaying mount points
--------------------------------------------------------------------------------
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=58841,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=100092k,mode=755)
/dev/mmcblk0p1 on / type ext4 (rw,noatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
--------------------------------------------------------------------------------

================================================================================
eMMC has been flashed: please wait for device to power down.
================================================================================