Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
lx2160a_build
Commits
6a1498d0
Commit
6a1498d0
authored
Dec 08, 2020
by
Rabeeh Khoury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add repo prefix to images file names
Signed-off-by:
Rabeeh Khoury
<
rabeeh@solid-run.com
>
parent
5b2d189b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
runme.sh
runme.sh
+7
-4
No files found.
runme.sh
View file @
6a1498d0
...
...
@@ -22,12 +22,15 @@ mkdir -p build images
ROOTDIR
=
`
pwd
`
PARALLEL
=
$(
getconf _NPROCESSORS_ONLN
)
# Amount of parallel jobs for the builds
SPEED
=
2000_700_
${
DDR_SPEED
}
TOOLS
=
"
wget tar git make 7z unsquashfs dd vim
mkfs.ext4 parted mkdosfs mcopy dtc iasl mkimage e2cp truncate qemu-system-aarch64 cpio rsync bc bison flex python unzip"
TOOLS
=
"
tar git make 7z dd
mkfs.ext4 parted mkdosfs mcopy dtc iasl mkimage e2cp truncate qemu-system-aarch64 cpio rsync bc bison flex python unzip"
export
PATH
=
$ROOTDIR
/build/toolchain/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin:
$PATH
export
CROSS_COMPILE
=
aarch64-linux-gnu-
export
ARCH
=
arm64
REPO_PREFIX
=
`
git log
-1
--pretty
=
format:%h
`
echo
"Repository prefix for images is
$REPO_PREFIX
"
case
"
${
SERDES
}
"
in
2_
*
)
DPC
=
dpc-8_x_usxgmii.dtb
...
...
@@ -382,7 +385,7 @@ dd if=$ROOTDIR/images/tmp/ubuntu-core.ext4 of=$ROOTDIR/images/tmp/ubuntu-core.im
echo
"Assembling Boot Image"
cd
$ROOTDIR
/
IMG
=
lx2160acex7_
${
SPEED
}
_
${
SERDES
}
.img
IMG
=
lx2160acex7_
${
SPEED
}
_
${
SERDES
}
-
${
REPO_PREFIX
}
.img
rm
-rf
$ROOTDIR
/images/
${
IMG
}
truncate
-s
528M
$ROOTDIR
/images/
${
IMG
}
#dd if=/dev/zero of=$ROOTDIR/images/${IMG} bs=1M count=1
...
...
@@ -428,8 +431,8 @@ dd if=$ROOTDIR/build/linux/kernel-lx2160acex7.itb of=images/${IMG} bs=512 seek=3
# Ramdisk at 0x10000
# RCW+PBI+BL2 at block 8
dd
if
=
$ROOTDIR
/images/
${
IMG
}
of
=
$ROOTDIR
/images/lx2160acex7_xspi_
${
SPEED
}
_
${
SERDES
}
.img
bs
=
1M
count
=
64
dd
if
=
$ROOTDIR
/build/atf/build/lx2160acex7/release/bl2_auto.pbl
of
=
images/lx2160acex7_xspi_
${
SPEED
}
_
${
SERDES
}
.img
bs
=
512
conv
=
notrunc
dd
if
=
$ROOTDIR
/images/
${
IMG
}
of
=
$ROOTDIR
/images/lx2160acex7_xspi_
${
SPEED
}
_
${
SERDES
}
-
${
REPO_PREFIX
}
.img
bs
=
1M
count
=
64
dd
if
=
$ROOTDIR
/build/atf/build/lx2160acex7/release/bl2_auto.pbl
of
=
images/lx2160acex7_xspi_
${
SPEED
}
_
${
SERDES
}
-
${
REPO_PREFIX
}
.img
bs
=
512
conv
=
notrunc
dd
if
=
$ROOTDIR
/build/atf/build/lx2160acex7/release/bl2_auto.pbl
of
=
images/
${
IMG
}
bs
=
512
seek
=
8
conv
=
notrunc
# Copy first 64MByte from image excluding MBR to ubuntu-core.img for eMMC boot
...
...
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