Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
84
Issues
84
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
9a3d176a
Commit
9a3d176a
authored
Jun 24, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrs-boot-procedure: trivial details
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
03e1f4de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
wrs-boot-procedure
userspace/rootfs_override/etc/init.d/wrs-boot-procedure
+8
-8
No files found.
userspace/rootfs_override/etc/init.d/wrs-boot-procedure
View file @
9a3d176a
...
...
@@ -85,22 +85,22 @@ if $install; then
cd
/
;
umount /update
echo
" done"
| busybox
tee
/dev/ttyGS0
else
# Not installing, access existing UBI volumes
ubiattach
-p
/dev/mtd1
mkdev_sh
"/sys/devices/virtual/ubi/ubi0"
mkdev_sh
"/sys/devices/virtual/ubi/ubi0/ubi0_0"
mkdev_sh
"/sys/devices/virtual/ubi/ubi0/ubi0_1"
mkdev_sh
"/sys/devices/virtual/ubi/ubi0/ubi0_2"
fi
# We have volumes, so create their devices
ubiattach
-p
/dev/mtd1
mkdev_sh
"/sys/devices/virtual/ubi/ubi0"
mkdev_sh
"/sys/devices/virtual/ubi/ubi0/ubi0_0"
mkdev_sh
"/sys/devices/virtual/ubi/ubi0/ubi0_1"
mkdev_sh
"/sys/devices/virtual/ubi/ubi0/ubi0_2"
# Now, whether installing or not, mount /update and check what is there
mkdir
-p
/update
mount
-t
ubifs ubi0:update /update
if
[
-f
/update/
$WRS_FW
]
;
then
# FIXME: save configuration somewhere, and recover it later
echo
"Extracting filesystem
"
| busybox
tee
/dev/ttyGS0
echo
-n
"Extracting filesystem...
"
| busybox
tee
/dev/ttyGS0
# since we are upgrading, we'd better remove and recreate the volume
ubirmvol /dev/ubi0
--name
=
usr
ubimkvol /dev/ubi0
-s
150MiB
-N
usr
...
...
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