================================================================================ Starting eMMC Flasher from microSD media Version: [1.20180412: all ssh regneration override...] ================================================================================ ================================================================================ Prepare environment for flashing Starting at Sat Jan 1 00:00:11 UTC 2000 ---------------------------------------- ==> Giving system time to stablize... 5 4 3 2 1 ==> Preparing /tmp ==> Preparing sysctl ==> sysctl: vm.min_free_kbytes=[2648] ==> sysctl: setting: [sysctl -w vm.min_free_kbytes=16384] vm.min_free_kbytes = 16384 ---------------------------------------- ==> Determining root drive ==> console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh ---------------------------------------- ==> root_drive=[/dev/mmcblk1p1] ====> Root drive identified at [/dev/mmcblk1p1] ==> Boot Drive [/dev/mmcblk1p1] ==> Figuring out Source and Destination devices ====> Source identified: [/dev/mmcblk1] ====> Destination identified: [/dev/mmcblk0] ==> Figuring out machine ====> Machine is TI_AM335x_BeagleBone_Black ====> Machine is compatible with BeagleBone Black ================================================================================ 5 4 3 2 1 ======================================== Checking for Valid bbb-eeprom header ==> Valid bbb-eeprom header found [335] ======================================== ================================================================================ Checking running system ==> Copying: [/dev/mmcblk1] -> [/dev/mmcblk0] ==> lsblk: ---------------------------------------- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 31.3G 0 disk `-mmcblk0p1 179:1 0 31.3G 0 part mmcblk1 179:8 0 3.6G 0 disk `-mmcblk1p1 179:9 0 3.6G 0 part / mmcblk1boot0 179:16 0 2M 1 disk mmcblk1boot1 179:24 0 2M 1 disk ---------------------------------------- ==> df -h | grep rootfs: ---------------------------------------- ==> Giving you time to check... 10 9 8 7 6 5 4 3 2 1 ================================================================================ ================================================================================ Preparing drives ---------------------------------------- ==> Erasing: /dev/mmcblk0 ---------------------------------------- 108+0 records in 108+0 records out 113246208 bytes (113 MB, 108 MiB) copied, 18.8224 s, 6.0 MB/s ---------------------------------------- 108+0 records in 108+0 records out 113246208 bytes (113 MB, 108 MiB) copied, 10.7007 s, 10.6 MB/s ---------------------------------------- ==> Erasing: /dev/mmcblk0 complete ---------------------------------------- ---------------------------------------- ==> Loading /boot/SOC.sh ************************************************************ #!/bin/sh format=1.0 board=am335x_evm bootloader_location=dd_spl_uboot_boot bootrom_gpt= dd_spl_uboot_count=2 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=4 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= #Advanced options #disable_ssh_regeneration=true ************************************************************ ==> Loaded ---------------------------------------- ================================================================================ Writing bootloader to [/dev/mmcblk0] ---------------------------------------- ==> Figuring out options for SPL U-Boot copy ... ===> Will use : count=2 seek=1 conv=notrunc bs=128k ==> Figuring out options for U-Boot copy ... ===> Will use : count=4 seek=1 conv=notrunc bs=384k ==> Copying SPL U-Boot with dd if=/opt/backup/uboot/MLO of=/dev/mmcblk0 count=2 seek=1 conv=notrunc bs=128k ------------------------------------------------------------ 0+1 records in 0+1 records out 92456 bytes (92 kB, 90 KiB) copied, 0.0215123 s, 4.3 MB/s ------------------------------------------------------------ ==> Copying U-Boot with dd if=/opt/backup/uboot/u-boot.img of=/dev/mmcblk0 count=4 seek=1 conv=notrunc bs=384k ------------------------------------------------------------ 1+1 records in 1+1 records out 474352 bytes (474 kB, 463 KiB) copied, 0.0865045 s, 5.5 MB/s ------------------------------------------------------------ Writing bootloader completed ================================================================================ ================================================================================ Partitionning /dev/mmcblk0 ---------------------------------------- sfdisk: [2.26.x or greater] ==> sfdisk parameters: sfdisk: [sfdisk from util-linux 2.33.1] sfdisk: [sfdisk --force /dev/mmcblk0] sfdisk: [4M,,L,*] ==> Partitionning ------------------------------------------------------------ Checking that no-one is using this disk right now ... OK Disk /dev/mmcblk0: 31.3 GiB, 33555480576 bytes, 65538048 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 >>> Created a new DOS disklabel with disk identifier 0x33ea34b0. /dev/mmcblk0p1: Created a new partition 1 of type 'Linux' and of size 31.3 GiB. /dev/mmcblk0p2: Done. New situation: Disklabel type: dos Disk identifier: 0x33ea34b0 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 * 8192 65538047 65529856 31.3G 83 Linux The partition table has been altered. Calling ioctl() to re-read partition table. [ 64.895653] mmcblk0: p1 Syncing disks. ------------------------------------------------------------ ==> Partitionning Completed ==> Generated Partitions: ------------------------------------------------------------ Disk /dev/mmcblk0: 31.3 GiB, 33555480576 bytes, 65538048 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: 0x33ea34b0 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 * 8192 65538047 65529856 31.3G 83 Linux ------------------------------------------------------------ ================================================================================ ================================================================================ Preparing future rootfs to receive files ---------------------------------------- ==> Formatting rootfs with mkfs.ext4 /dev/mmcblk0p1 -L rootfs -------------------------------------------------------------------------------- mke2fs 1.44.5 (15-Dec-2018) Discarding device blocks: done Creating filesystem with 8191232 4k blocks and 2048000 inodes Filesystem UUID: ee8340cb-4aaa-4fd9-b787-694a2854130d Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done -------------------------------------------------------------------------------- ==> Formatting rootfs: /dev/mmcblk0p1 complete ==> Creating temporary rootfs directory (/tmp/rootfs) ==> Mounting /dev/mmcblk0p1 to /tmp/rootfs [ 92.193082] JBD2: no valid journal superblock found [ 92.198069] EXT4-fs (mmcblk0p1): error loading journal mount: /tmp/rootfs: wrong fs type, bad option, bad superblock on /dev/mmcblk0p1, missing codepage or helper program, or other error. Traceback (last called is first): _prepare_future_rootfs() in /opt/scripts/tools/eMMC/functions.sh:1368 prepare_drive() in /opt/scripts/tools/eMMC/functions.sh:1414 main() in /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh:49 The command mount ${rootfs_partition} ${tmp_rootfs_dir} -o async,noatime exited with exit code 32. ================================================================================ Tearing Down script environment ==> Unmounting /tmp ==> Stopping Cylon LEDs ... ==> Setting LEDs to ==> Force writeback of eMMC buffers by Syncing: /dev/mmcblk0 ---------------------------------------- 100000+0 records in 100000+0 records out 51200000 bytes (51 MB, 49 MiB) copied, 3.78393 s, 13.5 MB/s ---------------------------------------- ===> Syncing: /dev/mmcblk0 complete ==> This script took 83 seconds to run ================================================================[ 96.194640] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00002000 [ 96.194640] [ 96.204165] CPU: 0 PID: 1 Comm: init-eMMC-flash Not tainted 4.19.94-ti-r42 #1buster [ 96.211853] Hardware name: Generic AM33XX (Flattened Device Tree) [ 96.218018] [] (unwind_backtrace) from [] (show_stack+0x20/0x24) [ 96.225812] [] (show_stack) from [] (dump_stack+0x8c/0xa0) [ 96.233076] [] (dump_stack) from [] (panic+0x10c/0x278) [ 96.240078] [] (panic) from [] (do_exit+0xbf0/0xc08) [ 96.246814] [] (do_exit) from [] (do_group_exit+0x50/0xd0) [ 96.254071] [] (do_group_exit) from [] (__wake_up_parent+0x0/0x30) [ 96.262028] [] (__wake_up_parent) from [] (ret_fast_syscall+0x0/0x54) [ 96.270241] Exception stack(0xdc149fa8 to 0xdc149ff0) [ 96.275318] 9fa0: b6f516d8 b6f516d8 00000020 00000000 d55ad600 00000020 [ 96.283534] 9fc0: b6f516d8 b6f516d8 00000000 000000f8 00000001 00000000 b6f56140 b6f53000 [ 96.291747] 9fe0: 000000f8 beb06b64 b6ed2389 b6e74746 [ 96.296841] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00002000 [ 96.296841] ]--- ================ ==> Setting LEDs to