Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
15c5d659
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
15c5d659
编写于
9月 02, 2017
作者:
L
Lei Wang
提交者:
Jiangtao Hu
9月 02, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Setup nvidia devices.
上级
2b5ff96a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
38 addition
and
58 deletion
+38
-58
docker/scripts/dev_start.sh
docker/scripts/dev_start.sh
+1
-19
docker/scripts/dev_start_gpu.sh
docker/scripts/dev_start_gpu.sh
+1
-19
docker/scripts/release_start.sh
docker/scripts/release_start.sh
+1
-20
scripts/apollo_base.sh
scripts/apollo_base.sh
+35
-0
未找到文件。
docker/scripts/dev_start.sh
浏览文件 @
15c5d659
...
...
@@ -56,21 +56,6 @@ echo "/apollo/data/core/core_%e.%p" | sudo tee /proc/sys/kernel/core_pattern
source
${
LOCAL_DIR
}
/scripts/apollo_base.sh
function
find_device
()
{
# ${1} = device pattern
local
device_list
=
$(
find /dev
-name
"
${
1
}
"
)
if
[
-z
"
${
device_list
}
"
]
;
then
warning
"Failed to find device with pattern
\"
${
1
}
\"
..."
else
local
devices
=
""
for
device
in
$(
find /dev
-name
"
${
1
}
"
)
;
do
ok
"Found device:
${
device
}
."
devices
=
"
${
devices
}
--device
${
device
}
:
${
device
}
"
done
echo
"
${
devices
}
"
fi
}
function
main
(){
#FIX ME: remove login when open source.
docker login
-u
autoapollo
-p
baidu123
...
...
@@ -88,10 +73,7 @@ function main(){
display
=
"
${
DISPLAY
}
"
fi
# setup CAN device
if
[
!
-e
/dev/can0
]
;
then
sudo mknod
--mode
=
a+rw /dev/can0 c 52 0
fi
setup_device
local
devices
=
""
devices
=
"
${
devices
}
$(
find_device ttyUSB
*
)
"
...
...
docker/scripts/dev_start_gpu.sh
浏览文件 @
15c5d659
...
...
@@ -54,21 +54,6 @@ fi
source
${
LOCAL_DIR
}
/scripts/apollo_base.sh
function
find_device
()
{
# ${1} = device pattern
local
device_list
=
$(
find /dev
-name
"
${
1
}
"
)
if
[
-z
"
${
device_list
}
"
]
;
then
warning
"Failed to find device with pattern
\"
${
1
}
\"
..."
else
local
devices
=
""
for
device
in
$(
find /dev
-name
"
${
1
}
"
)
;
do
ok
"Found device:
${
device
}
."
devices
=
"
${
devices
}
--device
${
device
}
:
${
device
}
"
done
echo
"
${
devices
}
"
fi
}
function
main
(){
#FIX ME: remove login when open source.
docker login
-u
autoapollo
-p
baidu123
...
...
@@ -86,10 +71,7 @@ function main(){
display
=
"
${
DISPLAY
}
"
fi
# setup CAN device
if
[
!
-e
/dev/can0
]
;
then
sudo mknod
--mode
=
a+rw /dev/can0 c 52 0
fi
setup_device
local
devices
=
""
devices
=
"
${
devices
}
$(
find_device ttyUSB
*
)
"
...
...
docker/scripts/release_start.sh
浏览文件 @
15c5d659
...
...
@@ -56,22 +56,6 @@ if [ -z "${DOCKER_REPO}" ]; then
fi
IMG
=
${
DOCKER_REPO
}
:
$VERSION
function
find_device
()
{
# ${1} = device pattern
local
device_list
=
$(
find /dev
-name
"
${
1
}
"
)
if
[
-z
"
${
device_list
}
"
]
;
then
warning
"Failed to find device with pattern
\"
${
1
}
\"
..."
else
local
devices
=
""
for
device
in
$(
find /dev
-name
"
${
1
}
"
)
;
do
ok
"Found device:
${
device
}
."
devices
=
"
${
devices
}
--device
${
device
}
:
${
device
}
"
done
echo
"
${
devices
}
"
fi
}
function
main
()
{
#FIX ME: remove login when open source.
docker login
-u
autoapollo
-p
baidu123
...
...
@@ -83,10 +67,7 @@ function main() {
docker
rm
-f
apollo_release 1>/dev/null
fi
# setup CAN device
if
[
!
-e
/dev/can0
]
;
then
sudo mknod
--mode
=
a+rw /dev/can0 c 52 0
fi
setup_device
local
devices
=
""
devices
=
"
${
devices
}
$(
find_device ttyUSB
*
)
"
...
...
scripts/apollo_base.sh
浏览文件 @
15c5d659
...
...
@@ -142,6 +142,41 @@ function determine_bin_prefix() {
export
APOLLO_BIN_PREFIX
}
function
find_device
()
{
# ${1} = device pattern
local
device_list
=
$(
find /dev
-name
"
${
1
}
"
)
if
[
-z
"
${
device_list
}
"
]
;
then
warning
"Failed to find device with pattern
\"
${
1
}
\"
..."
else
local
devices
=
""
for
device
in
$(
find /dev
-name
"
${
1
}
"
)
;
do
ok
"Found device:
${
device
}
."
devices
=
"
${
devices
}
--device
${
device
}
:
${
device
}
"
done
echo
"
${
devices
}
"
fi
}
function
setup_device
()
{
# setup CAN device
if
[
!
-e
/dev/can0
]
;
then
sudo mknod
--mode
=
a+rw /dev/can0 c 52 0
fi
# setup nvidia device
if
[
!
-e
/dev/nvidia0
]
;
then
sudo mknod
-m
666 /dev/nvidia0 c 195 0
fi
if
[
!
-e
/dev/nvidiactl
]
;
then
sudo mknod
-m
666 /dev/nvidiactl c 195 255
fi
if
[
!
-e
/dev/nvidia-uvm
]
;
then
sudo mknod
-m
666 /dev/nvidia-uvm c 243 0
fi
if
[
!
-e
/dev/nvidia-uvm-tools
]
;
then
sudo mknod
-m
666 /dev/nvidia-uvm-tools c 243 1
fi
}
function
is_stopped
()
{
MODULE
=
${
1
}
NUM_PROCESSES
=
"
$(
pgrep
-c
-f
"modules/
${
MODULE
}
/
${
MODULE
}
"
)
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录