Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duo-buildroot-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
duo-buildroot-sdk
Commits
c3909d75
Commit
c3909d75
authored
Jun 16, 2023
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable rndis in script S99user
parent
dfdf4d1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
build/Makefile
build/Makefile
+5
-0
buildroot-2021.05/board/milkv/duo/overlay/etc/init.d/S99user
buildroot-2021.05/board/milkv/duo/overlay/etc/init.d/S99user
+4
-0
milkv/overlay/mnt/system/rndis.sh
milkv/overlay/mnt/system/rndis.sh
+14
-0
No files found.
build/Makefile
View file @
c3909d75
...
...
@@ -561,6 +561,11 @@ endif
# copy ko and mmf libs
${Q}mkdir
-p
$(BR_ROOTFS_DIR)/mnt/system
${Q}cp
-arf
${SYSTEM_OUT_DIR}/*
$(BR_ROOTFS_DIR)/mnt/system/
# copy milkv overlay files
ifeq
($(MV_VENDOR), milkv)
${Q}cp
-arf
$(TOP_DIR)/$(MV_VENDOR)/overlay/*
$(BR_ROOTFS_DIR)/
endif
# strip
${Q}find
$(BR_ROOTFS_DIR)
-name
"*.ko"
-type
f
-printf
'striping %p\n'
-exec
$(CROSS_COMPILE_KERNEL)strip
--strip-unneeded
{}
\;
${Q}find
$(BR_ROOTFS_DIR)
-name
"*.so*"
-type
f
-printf
'striping %p\n'
-exec
$(CROSS_COMPILE_KERNEL)strip
--strip-all
{}
\;
...
...
buildroot-2021.05/board/milkv/duo/overlay/etc/init.d/S99user
View file @
c3909d75
...
...
@@ -14,6 +14,10 @@ case "$1" in
fi
echo
"Starting app..."
if
[
-f
$SYSTEMPATH
/rndis.sh
]
;
then
.
$SYSTEMPATH
/rndis.sh &
fi
if
[
-f
$USERDATAPATH
/auto.sh
]
;
then
usleep 30000
.
$USERDATAPATH
/auto.sh &
...
...
milkv/overlay/mnt/system/rndis.sh
0 → 100755
View file @
c3909d75
#!/bin/sh
/etc/uhubon.sh device
>>
/tmp/rndis.log 2>&1
/etc/run_usb.sh probe rndis
>>
/tmp/rndis.log 2>&1
/etc/run_usb.sh start rndis
>>
/tmp/rndis.log 2>&1
sleep
0.5
ifconfig usb0 192.168.42.1
count
=
`
ps |
grep
dnsmasq |
grep
-v
grep
|
wc
-l
`
if
[
${
count
}
-lt
1
]
;
then
echo
"/etc/init.d/S80dnsmasq start"
>>
/tmp/rndis.log 2>&1
/etc/init.d/S80dnsmasq start
>>
/tmp/rndis.log 2>&1
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment