Hi,
- https://wiki.seeedstudio.com/ODYSSEY-STM32MP157C/ " A. Boot from SD card" and " B. Boot from eMMC" are no problem, then I export file “init-eMMC-flasher-v3-stm32mp1.sh” from board.
- refer “https://forum.digikey.com/t/debian-getting-started-with-the-odyssey-stm32mp157c/12838#ODYSSEY-STM32MP157C-SetupmicroSDcard” to prepare a SD card, and choose kernel branch “v5.5.x”.
- insert the SD card to " ODYSSEY – STM32MP157C", and power, it work fine.
- upload “init-eMMC-flasher-v3-stm32mp1.sh” file to “/opt/scripts/tools/eMMC/” on board, and change permission with “chmod 755 …”.
- execute:
sudo sh -c “echo cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3-stm32mp1.sh >> /boot/uboot/uEnv.txt”
sudo reboot - it fail to copy the file, err log in below.
Please advise,
Thanks,
QiZhang
================================================================================
Starting eMMC Flasher from microSD media
Version: [1.20180412: all ssh regneration override…]
================================================================================
Prepare environment for flashing
Starting at Thu Jan 1 00:00:04 UTC 1970
==> Giving system time to stablize…
5 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
blockdev: no device specified
Try ‘blockdev --help’ for more information.
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-stm32mp1.sh:174
The command blockdev --flushbufs ${destination} exited with exit code 1.
=============================[ 9.976421] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[ 9.984116] CPU: 1 PID: 1 Comm: init-eMMC-flash Tainted: G W 5.5.19-armv7-lpae-x27 #1
[ 9.993297] Hardware name: STM32 (Device Tree Support)
[ 9.998492] [] (unwind_backtrace) from [] (show_stack+0x11/0x14)
[ 10.006266] [] (show_stack) from [] (dump_stack+0x63/0x70)
[ 10.013530] [] (dump_stack) from [] (panic+0xcb/0x248)
[ 10.020446] [] (panic) from [] (complete_and_exit+0x1/0x18)
[ 10.027798] [] (complete_and_exit) from [] (0xd713bfb0)
[ 10.034806] CPU0: stopping
[ 10.037508] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.5.19-armv7-lpae-x27 #1
[ 10.046167] Hardware name: STM32 (Device Tree Support)
[ 10.051347] [] (unwind_backtrace) from [] (show_stack+0x11/0x14)
[ 10.059133] [] (show_stack) from [] (dump_stack+0x63/0x70)
[ 10.066400] [] (dump_stack) from [] (handle_IPI+0x305/0x328)
[ 10.073843] [] (handle_IPI) from [] (gic_handle_irq+0x69/0x6c)
[ 10.081458] [] (gic_handle_irq) from [] (__irq_svc+0x53/0x94)
[ 10.088979] Exception stack(0xc1401f20 to 0xc1401f68)
[ 10.094064] 1f20: 00000000 00004cd8 db990bb4 c0217b01 ffffe000 c1405ff0 c1406038 00000001
[ 10.102293] 1f40: 00000000 c12fc468 c0e6742c 00000000 c15a6d58 c1401f70 c02080ef c02080f0
[ 10.110516] 1f60: 40070033 ffffffff
[ 10.114030] [] (__irq_svc) from [] (arch_cpu_idle+0x28/0x2c)
[ 10.121471] [] (arch_cpu_idle) from [] (do_idle+0x173/0x1f4)
[ 10.128911] [] (do_idle) from [] (cpu_startup_entry+0x19/0x20)
[ 10.136532] [] (cpu_startup_entry) from [] (start_kernel+0x457/0x472)
[ 10.144767] —[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]—