mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
PreflightCheck was failing because it was trying to read actual devices instad of virtual devices. ADCSIM had a LINUXTEST ifdef that was removed. posix_run.sh was using the wrong path Signed-off-by: Mark Charlebois <charlebm@gmail.com>
27 lines
586 B
Bash
Executable File
27 lines
586 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ! -c /tmp/ttyS0 ] || [ ! -c /tmp/ttyS1 ]
|
|
then
|
|
echo "Need to create /tmp/ttyS[01]"
|
|
echo "socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -d /fs/msdcard ] && [ ! -w /fs/msdcard ]
|
|
then
|
|
echo "Need to create/mount writable /fs/microsd"
|
|
echo "sudo mkdir -p /fs/msdcard"
|
|
echo "sudo chmod 777 /fs/msdcard"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -d /eeprom ] && [ ! -w /eeprom ]
|
|
then
|
|
echo "Need to create/mount writable /eeprom"
|
|
echo "sudo mkdir -p /eeprom"
|
|
echo "sudo chmod 777 /eeprom"
|
|
exit 1
|
|
fi
|
|
|
|
Build/posix_default.build/mainapp posix-configs/posixtest/init/rc.S
|