Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.dt-shell/commands-multi/daffy/init_sd_card/dd.py #84

Open
SayBender opened this issue Apr 21, 2022 · 0 comments
Open

.dt-shell/commands-multi/daffy/init_sd_card/dd.py #84

SayBender opened this issue Apr 21, 2022 · 0 comments

Comments

@SayBender
Copy link

SayBender commented Apr 21, 2022

I am reflashing an SD card that was working fine Yesterday.

I use the same instructions that worked perfectly before:

dts init_sd_card --hostname db18yazdi --type duckiebot --configuration DB18 --wifi ShervinY2020:mirrortown041

.....

Do you accept? (y=Yes, n=No) [y]: y

INFO:dts:Looking for ZIP image file...
INFO:dts:Reusing cached ZIP image file [/tmp/duckietown/dts/init_sd_card/dt-hypriotos-rpi-v1.2.1.zip].
INFO:dts:Reusing cached DISK image file [/tmp/duckietown/dts/init_sd_card/dt-hypriotos-rpi-v1.2.1.img].

(NOTE: The problem happens regardless of removing tmp and downloading from scratch or not)

==============================
Please, enter the size of your SD card (in GB): 32
The following devices were found (size ~32GB):

Name           Size        Plugged in
/dev/mmcblk0   29.1GB      11 seconds ago

Type the name of your device: /dev/mmcblk0
INFO:dts:Trying to unmount all partitions from device /dev/mmcblk0
INFO:dts:All partitions unmounted.
INFO:dts:Flashing File[/tmp/duckietown/dts/init_sd_card/dt-hypriotos-rpi-v1.2.1.img] -> SD[/dev/mmcblk0]:
Traceback (most recent call last):
  File "/home/amirhesam/.dt-shell/commands-multi/daffy/init_sd_card/dd.py", line 55, in <module>
    os.fsync(tgt.fileno())
OSError: [Errno 5] Input/output error

dts :  Traceback (most recent call last):
    :    File "/home/amirhesam/.local/lib/python3.8/site-packages/dt_shell/main.py", line 39, in cli_main
    :      cli_main_()
    :    File "/home/amirhesam/.local/lib/python3.8/site-packages/dt_shell/main.py", line 197, in cli_main_
    :      shell.onecmd(cmdline)
    :    File "/usr/lib/python3.8/cmd.py", line 217, in onecmd
    :      return func(arg)
    :    File "/home/amirhesam/.local/lib/python3.8/site-packages/dt_shell/cli.py", line 278, in <lambda>
    :      do_command_lam = lambda s, w: do_command(klass, s, w)
    :    File "/home/amirhesam/.local/lib/python3.8/site-packages/dt_shell/dt_command_abs.py", line 48, in do_command
    :      cls.command(shell, args)
    :    File "/home/amirhesam/.dt-shell/commands-multi/daffy/init_sd_card/command.py", line 280, in command
    :      data.update(step2function[step_name](shell, parsed, data))
    :    File "/home/amirhesam/.dt-shell/commands-multi/daffy/init_sd_card/command.py", line 487, in step_flash
    :      _run_cmd(dd_cmd)
    :    File "/home/amirhesam/.dt-shell/commands-multi/daffy/init_sd_card/command.py", line 732, in _run_cmd
    :      subprocess.check_call(cmd, shell=shell, env=env, **outputs)
    :    File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    :      raise CalledProcessError(retcode, cmd)
    :  subprocess.CalledProcessError: Command '['sudo', '/home/amirhesam/.dt-shell/commands-multi/daffy/init_sd_card/dd.py', '--input', '/tmp/duckietown/dts/init_sd_card/dt-hypriotos-rpi-v1.2.1.img', '--output', '/dev/mmcblk0', '--block-size', '1048576']' returned non-zero exit status 1.

dts :  To report a bug, please also include the contents of /home/amirhesam/shell-debug-info.txt

(base) [ amirhesam: Desktop ]$ cat /home/amirhesam/shell-debug-info.txt

commands-version: daffy
dt-authentication-daffy: 0.1.5
dt-data-api-daffy: 1.0.1
duckietown-docker-utils-daffy: 6.0.97
duckietown-shell: 5.2.19
duckietown-shell-commands: 5.4.5
encodings:
  locale: ANSI_X3.4-1968
  stderr: utf-8
  stdout: utf-8
python: "3.8.10 (default, Mar 15 2022, 12:22:08) \n[GCC 9.4.0]"

I really appreciate your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant