Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
RNA
Software
Commits
db0a14b0
Commit
db0a14b0
authored
Oct 26, 2018
by
Andreas Schmidt
Browse files
add img folder, 18.04. odroid
parent
1f621d00
Changes
6
Pipelines
14
Hide whitespace changes
Inline
Side-by-side
.gitattributes
View file @
db0a14b0
...
...
@@ -5,8 +5,9 @@
*.h text eol=lf
*.py text eol=lf
*.mp4 binary
ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz filter=lfs diff=lfs merge=lfs -text
img/
ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz filter=lfs diff=lfs merge=lfs -text
img/emmc_recovery.img.xz filter=lfs diff=lfs merge=lfs -text
2017-11-29-raspbian-stretch.img.xz filter=lfs diff=lfs merge=lfs -text
ubuntu-18.04-4.14-minimal-odroid-xu4-20180531.img.xz filter=lfs diff=lfs merge=lfs -text
img/ubuntu-18.04-4.14-minimal-odroid-xu4-20180531.img.xz filter=lfs diff=lfs merge=lfs -text
img/2017-11-29-raspbian-stretch.zip filter=lfs diff=lfs merge=lfs -text
rna.img.xz filter=lfs diff=lfs merge=lfs -text
build.sh
View file @
db0a14b0
...
...
@@ -5,14 +5,14 @@ FILE="ubuntu-18.04-4.14-minimal-odroid-xu4-20180531"
apt-get update
apt-get
install
qemu-user-static pixz
-y
pixz
-d
$FILE
.img.xz
$FILE
.img
md5sum
-c
$FILE
.img.md5
LIMIT
=
$(
sfdisk
-l
--bytes
$FILE
.img |
tail
-n
1 |
awk
'{print $2}'
)
pixz
-d
img/
$FILE
.img.xz
img/
$FILE
.img
md5sum
-c
img/
$FILE
.img.md5
LIMIT
=
$(
sfdisk
-l
--bytes
img/
$FILE
.img |
tail
-n
1 |
awk
'{print $2}'
)
DIR
=
/mnt/rna
mkdir
$DIR
mount
-o
loop,offset
=
$((
512
*
$LIMIT
))
$FILE
.img
$DIR
mount
-o
loop,offset
=
$((
512
*
$LIMIT
))
img/
$FILE
.img
$DIR
mount
--bind
/proc
$DIR
/proc/
mount
--bind
/sys
$DIR
/sys/
mount
--bind
/dev
$DIR
/dev/
...
...
@@ -39,6 +39,6 @@ umount -l $DIR/sys
umount
-l
$DIR
mv
$FILE
.img rna.img
mv
img/
$FILE
.img rna.img
pixz rna.img rna.img.xz
rm
rna.img
img/2017-11-29-raspbian-stretch.zip
0 → 100644
LFS
View file @
db0a14b0
File added
ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.md5
→
img/
ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.md5
View file @
db0a14b0
File moved
ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz
→
img/
ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz
LFS
View file @
db0a14b0
File moved
img/ubuntu-18.04-4.14-minimal-odroid-xu4-20180531.img.xz
0 → 100644
LFS
View file @
db0a14b0
File added
Write
Preview
Supports
Markdown
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