RTEMS shell’s chmod command doesn’t interprets the mode as octal unless we prefix it with 0.
Therefore chmod 777 and chmod 0777 are different mode
This post might seems silly but in unix and linux systems chmod interprets the mode as octal by default.
Below is the output when running RTEMS shell
And below is output of my linux machine

