Arm-none-eabi-gcc: Permission denied

I am executing following code :
if VERSION == ‘HARDWARE’:
%run “Lab 3_3 - DPA on Firmware Implementation of AES (HARDWARE).ipynb”
elif VERSION == ‘SIMULATED’:
%run “Lab 3_3 - DPA on Firmware Implementation of AES (SIMULATED).ipynb”

and getting following error:
(ChipWhisperer NAEUSB WARNING|File naeusb.py:802) Your firmware (1.0) is outdated - latest is 1.62 See Updating Firmware — ChipWhisperer 5.7.0 documentation for more information

INFO: Found ChipWhisperer😍
scope.gain.mode changed from low to high
scope.gain.gain changed from 0 to 30
scope.gain.db changed from 5.5 to 24.8359375
scope.adc.basic_mode changed from low to rising_edge
scope.adc.samples changed from 98134 to 5000
scope.adc.trig_count changed from 1732853345 to 1756093088
scope.clock.adc_src changed from clkgen_x1 to clkgen_x4
scope.clock.adc_freq changed from 88782291 to 181845611
scope.clock.adc_rate changed from 88782291.0 to 181845611.0
scope.clock.clkgen_div changed from 1 to 26
scope.clock.clkgen_freq changed from 192000000.0 to 7384615.384615385
scope.io.tio1 changed from serial_tx to serial_rx
scope.io.tio2 changed from serial_rx to serial_tx
scope.io.hs2 changed from None to clkgen
scope.io.tio_states changed from (1, 0, 0, 0) to (0, 1, 0, 0)
Building for platform CWLITEARM with CRYPTO_TARGET=TINYAES128C
SS_VER set to SS_VER_1_1
SS_VER set to SS_VER_1_1
Blank crypto options, building for AES128
Building for platform CWLITEARM with CRYPTO_TARGET=TINYAES128C
SS_VER set to SS_VER_1_1
SS_VER set to SS_VER_1_1
Blank crypto options, building for AES128
make[1]: ‘.dep’ is up to date.
Building for platform CWLITEARM with CRYPTO_TARGET=TINYAES128C
SS_VER set to SS_VER_1_1
SS_VER set to SS_VER_1_1
Blank crypto options, building for AES128
…/./Makefile.inc:407: recipe for target ‘gccversion’ failed
.
Welcome to another exciting ChipWhisperer target build!!
.
Compiling:
-en simpleserial-aes.c …
…/./Makefile.inc:501: recipe for target ‘objdir-CWLITEARM/simpleserial-aes.o’ failed
.
Compiling:
-en …/./simpleserial/simpleserial.c …
…/./Makefile.inc:501: recipe for target ‘objdir-CWLITEARM/simpleserial.o’ failed
…/./Makefile.inc:346: recipe for target ‘all’ failed

sh: 1: arm-none-eabi-gcc: Permission denied
make[1]: *** [gccversion] Error 127
make[1]: *** Waiting for unfinished jobs…
sh: 1: arm-none-eabi-gcc: Permission denied
make[1]: *** [objdir-CWLITEARM/simpleserial-aes.o] Error 127
sh: 1: arm-none-eabi-gcc: Permission denied
make[1]: *** [objdir-CWLITEARM/simpleserial.o] Error 127
make: *** [all] Error 2


CalledProcessError Traceback (most recent call last)
C:\chipwhisperer\jupyter\courses\sca101\Lab 3_3 - DPA on Firmware Implementation of AES (HARDWARE).ipynb in
----> 1 get_ipython().run_cell_magic(‘bash’, ‘-s “$PLATFORM” “$CRYPTO_TARGET” “$SS_VER”’, ‘cd …/…/…/hardware/victims/firmware/simpleserial-aes\nmake PLATFORM=$1 CRYPTO_TARGET=$2 SS_VER=$3 -j\n’)

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
2471 with self.builtin_trap:
2472 args = (magic_arg_s, cell)
→ 2473 result = fn(*args, **kwargs)
2474 return result
2475

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\magics\script.py in named_script_magic(line, cell)
140 else:
141 line = script
→ 142 return self.shebang(line, cell)
143
144 # write a basic docstring:

~\AppData\Local\Programs\Python\Python37\lib\site-packages\decorator.py in fun(*args, **kw)
230 if not kwsyntax:
231 args, kw = fix(args, kw, sig)
→ 232 return caller(func, *(extras + args), **kw)
233 fun.name = func.name
234 fun.doc = func.doc

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\magic.py in (f, *a, **k)
185 # but it’s overkill for just that one bit of state.
186 def magic_deco(arg):
→ 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\magics\script.py in shebang(self, line, cell)
243 sys.stderr.flush()
244 if args.raise_error and p.returncode!=0:
→ 245 raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
246
247 def _run_script(self, p, cell, to_close):

CalledProcessError: Command ‘b’cd …/…/…/hardware/victims/firmware/simpleserial-aes\nmake PLATFORM=$1 CRYPTO_TARGET=$2 SS_VER=$3 -j\n’’ returned non-zero exit status 2.


CalledProcessError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_10120\1325772540.py in
1 if VERSION == ‘HARDWARE’:
----> 2 get_ipython().run_line_magic(‘run’, ‘“Lab 3_3 - DPA on Firmware Implementation of AES (HARDWARE).ipynb”’)
3 elif VERSION == ‘SIMULATED’:
4 get_ipython().run_line_magic(‘run’, ‘“Lab 3_3 - DPA on Firmware Implementation of AES (SIMULATED).ipynb”’)

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
2416 kwargs[‘local_ns’] = self.get_local_scope(stack_depth)
2417 with self.builtin_trap:
→ 2418 result = fn(*args, **kwargs)
2419 return result
2420

~\AppData\Local\Programs\Python\Python37\lib\site-packages\decorator.py in fun(*args, **kw)
230 if not kwsyntax:
231 args, kw = fix(args, kw, sig)
→ 232 return caller(func, *(extras + args), **kw)
233 fun.name = func.name
234 fun.doc = func.doc

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\magic.py in (f, *a, **k)
185 # but it’s overkill for just that one bit of state.
186 def magic_deco(arg):
→ 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\magics\execution.py in run(self, parameter_s, runner, file_finder)
733 with preserve_keys(self.shell.user_ns, ‘file’):
734 self.shell.user_ns[‘file’] = filename
→ 735 self.shell.safe_execfile_ipy(filename, raise_exceptions=True)
736 return
737

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\interactiveshell.py in safe_execfile_ipy(self, fname, shell_futures, raise_exceptions)
2903 result = self.run_cell(cell, silent=True, shell_futures=shell_futures)
2904 if raise_exceptions:
→ 2905 result.raise_error()
2906 elif not result.success:
2907 break

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\interactiveshell.py in raise_error(self)
347 raise self.error_before_exec
348 if self.error_in_exec is not None:
→ 349 raise self.error_in_exec
350
351 def repr(self):

[... skipping hidden 1 frame]

~\AppData\Local\Temp\ipykernel_10120\712507165.py in
----> 1 get_ipython().run_cell_magic(‘bash’, ‘-s “$PLATFORM” “$CRYPTO_TARGET” “$SS_VER”’, ‘cd …/…/…/hardware/victims/firmware/simpleserial-aes\nmake PLATFORM=$1 CRYPTO_TARGET=$2 SS_VER=$3 -j\n’)

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
2471 with self.builtin_trap:
2472 args = (magic_arg_s, cell)
→ 2473 result = fn(*args, **kwargs)
2474 return result
2475

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\magics\script.py in named_script_magic(line, cell)
140 else:
141 line = script
→ 142 return self.shebang(line, cell)
143
144 # write a basic docstring:

~\AppData\Local\Programs\Python\Python37\lib\site-packages\decorator.py in fun(*args, **kw)
230 if not kwsyntax:
231 args, kw = fix(args, kw, sig)
→ 232 return caller(func, *(extras + args), **kw)
233 fun.name = func.name
234 fun.doc = func.doc

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\magic.py in (f, *a, **k)
185 # but it’s overkill for just that one bit of state.
186 def magic_deco(arg):
→ 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):

~\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\magics\script.py in shebang(self, line, cell)
243 sys.stderr.flush()
244 if args.raise_error and p.returncode!=0:
→ 245 raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
246
247 def _run_script(self, p, cell, to_close):

CalledProcessError: Command ‘b’cd …/…/…/hardware/victims/firmware/simpleserial-aes\nmake PLATFORM=$1 CRYPTO_TARGET=$2 SS_VER=$3 -j\n’’ returned non-zero exit status 2.

Hi,

Do you have WSL enabled? If so, you’ll need to change %%bash to %sh in code blocks.

Alex

I have installed WSL, can you kindly guide me to enable it?.
Ok, I would try %sh instead of %bash