Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
targets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feed
targets
Commits
cbcfbee2
Commit
cbcfbee2
authored
4 years ago
by
Jani Juvan
Browse files
Options
Downloads
Patches
Plain Diff
wifi: adding bringup script for disc
parent
111af987
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iopsys-brcm63xx-arm/disc/base-files/etc/init.d/wifi_bringup
+38
-0
38 additions, 0 deletions
iopsys-brcm63xx-arm/disc/base-files/etc/init.d/wifi_bringup
with
38 additions
and
0 deletions
iopsys-brcm63xx-arm/disc/base-files/etc/init.d/wifi_bringup
0 → 100755
+
38
−
0
View file @
cbcfbee2
#!/bin/sh /etc/rc.common
#
# Load broadcom wifi drivers
START
=
18
# wl.ko taskset thread pid workaround (wl.ko thread gets pid 0 ???)
taskset_hack
()
{
[
-h
/usr/bin/taskset
]
&&
{
# since disc uses ro fs, we do an overlay workaround for the workaround for now...
mkdir
-p
/tmp/overlay/bin /tmp/overlay/sbin /tmp/overlay/work
mount
-t
overlay overlay
-o
lowerdir
=
/usr/bin,upperdir
=
/tmp/overlay/bin,workdir
=
/tmp/overlay/work /usr/bin
mount
-t
overlay overlay
-o
lowerdir
=
/usr/sbin,upperdir
=
/tmp/overlay/sbin,workdir
=
/tmp/overlay/work /usr/sbin
mv
/usr/bin/taskset /usr/sbin/taskset
cat
<<
'
EOT
' >> /tmp/overlay/bin/taskset
#!/bin/sh
[ "
$3
" -eq "0" ] && set -- "
$1
" "
$2
" "
$(
pgrep
-n
kthrd
)
"
/usr/sbin/taskset
$@
|| echo "failed to set affinity. rc:
$?
pid:
$(
pgrep
-n
kthrd
)
"
return 0
EOT
chmod
+x /tmp/overlay/bin/taskset
}
}
boot
()
{
taskset_hack
# always use the data partition as data
mountpoint
-q
/data
||
mount
-t
ubifs ubi:data /data
/etc/init.d/hndnvram.sh start
&&
\
[
-s
/data/.kernel_nvram.setting
]
&&
\
/etc/init.d/bcm-wlan-drivers.sh start
||
\
echo
"Failed to bring up wifi - fix and load wifi drivers manually"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment