eMMC flasher not working after update linux kernel

Hi,

I try to prepare my Beagle Bone black image to new hardware using this gist: https://gist.github.com/RobertCNelson/39faf80ddc9fcefae74dce2c6ca2eb45 . I was update from Linux kernel 3.8.13-bone59 to version 3.8.13-bone86. When I start from SD card linux is booting and working well. My problem is that flasher to eMMC not working. Script cannot find Source and Destination devices and throw kernel panic. I’m posting below logs with enabled flashing on booting.

`

U-Boot SPL 2014.07-rc4-00015-g5bcd74d (Jul 04 2014 - 16:03:33)
reading u-boot.img
reading u-boot.img

U-Boot 2014.07-rc4-00015-g5bcd74d (Jul 04 2014 - 16:03:33), Build: jenkins-github_Bootloader-Builder-345

I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

Net: not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
SD/MMC found on device 0
gpio: pin 55 (gpio 55) value is 1
373 bytes read in 16 ms (22.5 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt…
gpio: pin 56 (gpio 56) value is 1
loading /boot/vmlinuz-3.8.13-bone86 …
5580368 bytes read in 337 ms (15.8 MiB/s)
loading /boot/dtbs/3.8.13-bone86/am335x-boneblack.dtb …
26118 bytes read in 28 ms (910.2 KiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x552650 ]

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Device Tree to 8fff6000, end 8ffff605 … OK

Starting kernel …

Uncompressing Linux… done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.8.13-bone86 (km@ubuntu) (gcc version 4.7.3 20130328 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) ) #1 SMP Mon Aug 6 15:45:25 CEST 2018
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x BeagleBone
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES2.1 (l2cache sgx neon )
[ 0.000000] PERCPU: Embedded 9 pages/cpu @c0d64000 s14080 r8192 d14592 u36864
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129792
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk1p2 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] __ex_table already sorted, skipping sort
[ 0.000000] allocated 1048576 bytes of page_cgroup
[ 0.000000] please try ‘cgroup_disable=memory’ option if you don’t want memory cgroups
[ 0.000000] Memory: 511MB = 511MB total
[ 0.000000] Memory: 508064k/508064k available, 16224k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 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 : 0xbf800000 - 0xbfe00000 ( 6 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08123a4 (8233 kB)
[ 0.000000] .init : 0xc0813000 - 0xc0850700 ( 246 kB)
[ 0.000000] .data : 0xc0852000 - 0xc08da100 ( 545 kB)
[ 0.000000] .bss : 0xc08da100 - 0xc0953880 ( 486 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] NR_IRQS:0 nr_irqs:0 0
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000230] Calibrating delay loop… 993.47 BogoMIPS (lpj=969728)
[ 0.029183] pid_max: default: 32768 minimum: 301
[ 0.029324] Security Framework initialized
[ 0.029379] Mount-cache hash table entries: 512
[ 0.035010] Initializing cgroup subsys cpuacct
[ 0.035066] Initializing cgroup subsys memory
[ 0.035109] Initializing cgroup subsys blkio
[ 0.035196] CPU: Testing write buffer coherency: ok
[ 0.035571] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.035626] Setting up static identity map for 0x804aa138 - 0x804aa184
[ 0.036545] Brought up 1 CPUs
[ 0.036559] SMP: Total of 1 processors activated (993.47 BogoMIPS).
[ 0.037331] devtmpfs: initialized
[ 0.045695] omap_hwmod: wd_timer2: _wait_target_disable failed
[ 0.097843] pinctrl core: initialized pinctrl subsystem
[ 0.097976] rstctl core: initialized rstctl subsystem
[ 0.098266] regulator-dummy: no parameters
[ 0.098574] NET: Registered protocol family 16
[ 0.099090] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.104665] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.105205] platform 49000000.edma: alias fck already exists
[ 0.105221] platform 49000000.edma: alias fck already exists
[ 0.105235] platform 49000000.edma: alias fck already exists
[ 0.105973] OMAP GPIO hardware version 0.1
[ 0.108418] gpio-rctrl rstctl.4: loaded OK
[ 0.111636] No ATAGs?
[ 0.111651] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.112891] cpsw.0: No hwaddr in dt. Using c4:f3:12:6a:1b:a7 from efuse
[ 0.112911] cpsw.1: No hwaddr in dt. Using c4:f3:12:6a:1b:a9 from efuse
[ 0.121218] bio: create slab at 0
[ 0.127526] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[ 0.127798] vmmcsd_fixed: 3300 mV
[ 0.129364] SCSI subsystem initialized
[ 0.129606] usbcore: registered new interface driver usbfs
[ 0.129680] usbcore: registered new interface driver hub
[ 0.129869] usbcore: registered new device driver usb
[ 0.130668] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 0.131623] input: tps65217_pwr_but as /devices/ocp.3/44e0b000.i2c/i2c-0/0-0024/input/input0
[ 0.133215] DCDC1: at 1500 mV
[ 0.134042] vdd_mpu: 925 <–> 1325 mV at 1325 mV
[ 0.134843] vdd_core: 925 <–> 1150 mV at 1125 mV
[ 0.135644] LDO1: at 1800 mV
[ 0.136427] LDO2: at 3300 mV
[ 0.137945] LDO3: 1800 mV
[ 0.138777] LDO4: at 3300 mV
[ 0.139503] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 0.139946] omap_i2c 44e0b000.i2c: unable to select pin group
[ 0.140398] omap_i2c 4819c000.i2c: bus 1 rev0.11 at 100 kHz
[ 0.141760] omap_i2c 4819c000.i2c: unable to select pin group
[ 0.141903] media: Linux media interface: v0.10
[ 0.141967] Linux video capture interface: v2.00
[ 0.142052] pps_core: LinuxPPS API ver. 1 registered

no "initrd"

run:

sudo update-initramfs -ck `uname -r`

Regards,

please reply to my post also. I am new here. I am looking for a solution

Would it maybe be helpful to add the above step to the kernel upgrade sections of the following procedure pages or other pages (for specific kernel versions)?

https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone+Black

https://www.digikey.com/eewiki/display/linuxonarm/BeagleBoard-X15

https://www.digikey.com/eewiki/display/linuxonarm/*

I THINK you said that “newer kernels” don’t need this step or will no longer need this step, as they don’t use initramfs, right?

Thanks!

It works :).

Thank You.
W dniu wtorek, 7 sierpnia 2018 18:37:25 UTC+2 użytkownik RobertCNelson napisał: