Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
1fcd9baa
Commit
1fcd9baa
authored
Jul 19, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tar2fs: Add offset 16 MiB for singleboard PC support
This space can be used by single board for u-boot.
parent
2c90b073
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
tar2fs
bin/tar2fs
+16
-11
No files found.
bin/tar2fs
View file @
1fcd9baa
...
...
@@ -57,19 +57,24 @@ ppc*)
BOOTLOADERPARTSIZEM
=
"8"
ROOTPART
=
"2"
;;
arm
*
|
aarch64
)
ROOTPART
=
"1"
BLOCKDEV
=
"/dev/sda"
CUR_BOUNDARY
=
15
# offset 16 MiB for singleboard's
;;
*
)
if
[
"
$BOOTLOADER
"
==
grub-efi
-o
"
$BOOTTYPE
"
==
EFI
]
;
then
EFIPART
=
"1"
EFIPARTSIZEM
=
"256"
EFIPARTFSTYPE
=
"fat"
ROOTPART
=
"2"
else
ROOTPART
=
"1"
fi
ROOTPART
=
"1"
BLOCKDEV
=
"/dev/sda"
;;
esac
if
[
"
$BOOTLOADER
"
==
grub-efi
-o
"
$BOOTTYPE
"
==
EFI
]
;
then
EFIPART
=
"1"
EFIPARTSIZEM
=
"256"
EFIPARTFSTYPE
=
"fat"
ROOTPART
=
"2"
fi
PARTTABLE
=
"
$7
"
if
[
-z
"
$PARTTABLE
"
]
;
then
if
[
"
$BOOTLOADER
"
==
grub-efi
]
;
then
...
...
@@ -201,7 +206,7 @@ parting mklabel "$PARTTABLE"
if
[
-n
"
$BOOTLOADERPART
"
]
&&
[
-n
"
$BOOTLOADERPARTSIZEM
"
]
;
then
case
"
$ARCH
"
in
ppc
*
)
parting mkpart primary ext2
2048s
$((
BOOTLOADERPARTSIZEM
+
1
))
MiB
parting mkpart primary ext2
$((
CUR_BOUNDARY+1
))
MiB
$((
BOOTLOADERPARTSIZEM
+
1
))
MiB
CUR_BOUNDARY
=
"
$BOOTLOADERPARTSIZEM
"
parting
set
1 prep on
parting
set
1 boot on
...
...
@@ -212,9 +217,9 @@ fi
if
[
-n
"
$EFIPART
"
]
;
then
EFIDEV
=
"
$EFIDEV$EFIPART
"
if
[
"
$PARTTABLE
"
==
gpt
]
;
then
parting mkpart fat32
2048s
$((
$EFIPARTSIZEM
+
1
))
MiB
parting mkpart fat32
$((
CUR_BOUNDARY+1
))
MiB
$((
$EFIPARTSIZEM
+
1
))
MiB
else
parting mkpart primary fat32
2048s
$((
$EFIPARTSIZEM
+
1
))
MiB
parting mkpart primary fat32
$((
CUR_BOUNDARY+1
))
MiB
$((
$EFIPARTSIZEM
+
1
))
MiB
fi
CUR_BOUNDARY
=
"
$EFIPARTSIZEM
"
parting
set
1 boot on
...
...
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