Last active
November 4, 2019 16:37
-
-
Save RobertCNelson/3cc015244175fa61109ad006fee1a7ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ================================================================================ | |
| Starting eMMC Flasher from microSD media | |
| Version: [1.20180412: all ssh regneration override...] | |
| ================================================================================ | |
| ================================================================================ | |
| Prepare environment for flashing | |
| Starting at Sat Jan 1 00:00:02 UTC 2000 | |
| ---------------------------------------- | |
| ==> Giving system time to stablize... | |
| 5 [ 3.806671] [drm] Cannot find any crtc or sizes | |
| 4 3 2 1 | |
| ==> Preparing /tmp | |
| ==> Determining root drive | |
| no /proc/cmdline | |
| ====> Root drive identified at [] | |
| ==> Boot Drive [1] | |
| ==> Figuring out Source and Destination devices | |
| !!! Could not reliably determine Source and Destination | |
| !!! We need to stop here | |
| ================================================================================ | |
| Tearing Down script environment | |
| ==> Unmounting /tmp | |
| Usage: | |
| blockdev -V | |
| blockdev --report [devices] | |
| blockdev [-v|-q] commands devices | |
| Available commands: | |
| --getsz get size in 512-byte sectors | |
| --setro set read-only | |
| --setrw set read-write | |
| --getro get read-only | |
| --getdiscardzeroes get discard zeroes support status | |
| --getss get logical block (sector) size | |
| --getpbsz get physical block (sector) size | |
| --getiomin get minimum I/O size | |
| --getioopt get optimal I/O size | |
| --getalignoff get alignment offset in bytes | |
| --getmaxsect get max sectors per request | |
| --getbsz get blocksize | |
| --setbsz <bytes> set blocksize on file descriptor opening the block device | |
| --getsize get 32-bit sector count (deprecated, use --getsz) | |
| --getsize64 get size in bytes | |
| --setra <sectors> set readahead | |
| --getra get readahead | |
| --setfra <sectors> set filesystem readahead | |
| --getfra get filesystem readahead | |
| --flushbufs flush buffers | |
| --rereadpt reread partition table | |
| Traceback (last called is first): | |
| flush_cache() in /opt/scripts/tools/eMMC/functions.sh:356 | |
| teardown_environment() in /opt/scripts/tools/eMMC/functions.sh:260 | |
| prepare_environment() in /opt/scripts/tools/eMMC/functions.sh:171 | |
| main() in /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh:43 | |
| The command blockdev --flushbufs ${destination} exited with exit code 1. | |
| ================================================================================ | |
| Tearing Down script environment | |
| ==> Unmounting /tmp | |
| Usage: | |
| blockdev -V | |
| blockdev --report [devices] | |
| blockdev [-v|-q] commands devices | |
| Available commands: | |
| --getsz get size in 512-byte sectors | |
| --setro set read-only | |
| --setrw set read-write | |
| --getro get read-only | |
| --getdiscardzeroes get discard zeroes support status | |
| --getss get logical block (sector) size | |
| --getpbsz get physical block (sector) size | |
| --getiomin get minimum I/O size | |
| --getioopt get optimal I/O size | |
| --getalignoff get alignment offset in bytes | |
| --getmaxsect get max sectors per request | |
| --getbsz get blocksize | |
| --setbsz <bytes> set blocksize on file descriptor opening the block device | |
| --getsize get 32-bit sector count (deprecated, use --getsz) | |
| --getsize64 get size in bytes | |
| --setra <sectors> set readahead | |
| --getra get readahead | |
| --setfra <sectors> set filesystem readahead | |
| --getfra get filesystem readahead | |
| --flushbufs flush buffers | |
| --rereadpt reread partition table | |
| !==> We don't know how to reset the leds as we are not a BBB compatible device | |
| [ 8.949987] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 | |
| [ 8.949987] | |
| [ 8.959190] CPU: 0 PID: 1 Comm: init-eMMC-flash Not tainted 4.14.108-ti-r123 #1 | |
| [ 8.966530] Hardware name: Generic AM33XX (Flattened Device Tree) | |
| [ 8.972698] [<c0113180>] (unwind_backtrace) from [<c010d690>] (show_stack+0x20/0x24) | |
| [ 8.980491] [<c010d690>] (show_stack) from [<c0ced794>] (dump_stack+0x80/0x94) | |
| [ 8.987755] [<c0ced794>] (dump_stack) from [<c013f7f0>] (panic+0x100/0x284) | |
| [ 8.994758] [<c013f7f0>] (panic) from [<c0145678>] (complete_and_exit+0x0/0x2c) | |
| [ 9.002105] [<c0145678>] (complete_and_exit) from [<c0145714>] (do_group_exit+0x50/0xd0) | |
| [ 9.010236] [<c0145714>] (do_group_exit) from [<c01457b4>] (__wake_up_parent+0x0/0x30) | |
| [ 9.018199] [<c01457b4>] (__wake_up_parent) from [<c0108d40>] (ret_fast_syscall+0x0/0x54) | |
| [ 9.026438] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 | |
| [ 9.026438] | |
| [ 53.237504] random: crng init done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find_root_drive(){ | |
| unset root_drive | |
| if [ -f /proc/cmdline ] ; then | |
| proc_cmdline=$(cat /proc/cmdline | tr -d '\000') | |
| echo_broadcast "==> ${proc_cmdline}" | |
| generate_line 40 | |
| root_drive=$(cat /proc/cmdline | tr -d '\000' | sed 's/ /\n/g' | grep root=UUID= | awk -F 'root=' '{print $2}' || true) | |
| if [ ! "x${root_drive}" = "x" ] ; then | |
| root_drive=$(/sbin/findfs ${root_drive} || true) | |
| else | |
| root_drive=$(cat /proc/cmdline | sed 's/ /\n/g' | grep root= | awk -F 'root=' '{print $2}' || true) | |
| fi | |
| echo_broadcast "==> root_drive=[${root_drive}]" | |
| else | |
| echo_broadcast "no /proc/cmdline" | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment