Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
SPEC7
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
SPEC7
Commits
724cffc8
Commit
724cffc8
authored
Oct 01, 2021
by
Pascal Bos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed old petalinux project
parent
5345ee37
Pipeline
#2225
failed with stage
in 2 minutes and 19 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
113 deletions
+0
-113
.gitignore
sw/scripts/petalinux/.gitignore
+0
-1
formatsd.sh
sw/scripts/petalinux/formatsd.sh
+0
-19
instdist.sh
sw/scripts/petalinux/instdist.sh
+0
-30
mkdist.sh
sw/scripts/petalinux/mkdist.sh
+0
-34
mksd.cmds
sw/scripts/petalinux/mksd.cmds
+0
-29
No files found.
sw/scripts/petalinux/.gitignore
deleted
100644 → 0
View file @
5345ee37
*.zip
sw/scripts/petalinux/formatsd.sh
deleted
100755 → 0
View file @
5345ee37
#!/bin/bash
if
[
"
$EUID
"
-ne
0
]
then
echo
"Please run as root"
exit
fi
if
[
$#
-eq
0
]
then
echo
"Usage: formatsd <device>"
echo
"e.g.:"
echo
" formatsd /dev/sdd"
echo
"Make sure the SD card is not mounted, any existing partitions will be removed"
exit
fi
echo
"Creating bootable SD card"
dd
if
=
/dev/zero
of
=
$1
bs
=
1024
count
=
1
fdisk
$1
<mksd.cmds
mkfs.vfat
-F
32
-s
2
-n
BOOT
${
1
}
1
mkfs.ext4
-L
rootfs
${
1
}
2
sw/scripts/petalinux/instdist.sh
deleted
100755 → 0
View file @
5345ee37
#!/bin/bash
if
[
-z
"
$1
"
]
||
[
-z
"
$2
"
]
;
then
echo
"instdist.sh <zip-file> <path-to-mount-root>"
echo
"Installs a distribution zip (made with mkdist) on an SD card"
echo
"<path-to-mount-root> is where the rootfs and BOOT folders are"
echo
" /var/run/media/<username> for CentOS"
exit
0
fi
TMPDIR
=
$(
mktemp
-d
)
# Bail out if the temp directory wasn't created successfully.
if
[
!
-e
$TMPDIR
]
;
then
echo
"Failed to create temp directory"
exit
1
fi
# Make sure it gets removed even if the script exits abnormally.
trap
"exit 1"
HUP INT PIPE QUIT TERM
trap
'rm -rf "$TMPDIR"'
EXIT
# unzip TMP dir
unzip
$1
-d
$TMPDIR
cp
$TMPDIR
/BOOT/
*
$2
/BOOT/.
sudo tar
-xvzf
$TMPDIR
/rootfs.tar.gz
-C
$2
/rootfs/
echo
"Unmounting, please wait..."
sudo
umount
$2
/BOOT
$2
/rootfs
sw/scripts/petalinux/mkdist.sh
deleted
100755 → 0
View file @
5345ee37
#!/bin/bash
# This script creates a distribution ZIP file
if
[
-z
"
$1
"
]
;
then
echo
"mkdist.sh <zip-file>"
echo
"Creates a distribution with <zip-file> name"
exit
0
fi
PETALINUX_DIR
=
../../embedded/testos/images/linux
FULLPATH
=
$PWD
/
$1
TMPDIR
=
$(
mktemp
-d
)
# Bail out if the temp directory wasn't created successfully.
if
[
!
-e
$TMPDIR
]
;
then
echo
"Failed to create temp directory"
exit
1
fi
# Make sure it gets removed even if the script exits abnormally.
trap
"exit 1"
HUP INT PIPE QUIT TERM
trap
'rm -rf "$TMPDIR"'
EXIT
mkdir
$TMPDIR
/BOOT
cp
$PETALINUX_DIR
/BOOT.BIN
$PETALINUX_DIR
/image.ub
$TMPDIR
/BOOT/.
cp
$PETALINUX_DIR
/rootfs.tar.gz
$TMPDIR
/.
cd
$TMPDIR
zip
-r
$FULLPATH
*
sw/scripts/petalinux/mksd.cmds
deleted
100644 → 0
View file @
5345ee37
o
x
h
255
s
63
c
r
n
p
1
+256M
n
p
2
a
1
t
1
c
t
2
83
w
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