grisp / grisp-software

Toolchain and Examples for GRISP
28 stars 5 forks source link

Bootloader shell is confused about directories #9

Closed peerst closed 7 years ago

peerst commented 7 years ago

Using a micro SD with typo in grisp.ini triggered entering the shell with the card mounted:

media listener: event = MOUNT, state = SUCCESS, src = /dev/mmcsd-0-0, dest = /media/mmcsd-0-0
boot: open file "/media/mmcsd-0-0/grisp.bin"... failed
shell:cannot set terminal attributes(/dev/console)

RTEMS Shell on /dev/console. Use 'help' to list commands.
[/] # 

Then on the shell of the bootloader:

[/] # ls
console   mmcsd-0-0 ttyUART0  ttyUART2  ttyUART4  ttyUSART1 zero
mmcsd-0   null      ttyUART1  ttyUART3  ttyUSART0 ttyUSART2

./etc:
group     issue     issue.net passwd

./media:
mmcsd-0-0
[/] # cd media
[/media] # ls
.Spotlight-V100 ._.Trashes      grisp.ini
.Trashes        beam.bin        otp
[/media] # cat grisp.ini
cat: grisp.ini: No such file or directory

It seems ls allways shows whats one lever further down that we actually are.