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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Anton Palgunov
mkimage-profiles
Commits
1fcd9baa
You need to sign in or sign up before continuing.
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*)
...
@@ -57,19 +57,24 @@ ppc*)
BOOTLOADERPARTSIZEM
=
"8"
BOOTLOADERPARTSIZEM
=
"8"
ROOTPART
=
"2"
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
ROOTPART
=
"1"
EFIPART
=
"1"
EFIPARTSIZEM
=
"256"
EFIPARTFSTYPE
=
"fat"
ROOTPART
=
"2"
else
ROOTPART
=
"1"
fi
BLOCKDEV
=
"/dev/sda"
BLOCKDEV
=
"/dev/sda"
;;
;;
esac
esac
if
[
"
$BOOTLOADER
"
==
grub-efi
-o
"
$BOOTTYPE
"
==
EFI
]
;
then
EFIPART
=
"1"
EFIPARTSIZEM
=
"256"
EFIPARTFSTYPE
=
"fat"
ROOTPART
=
"2"
fi
PARTTABLE
=
"
$7
"
PARTTABLE
=
"
$7
"
if
[
-z
"
$PARTTABLE
"
]
;
then
if
[
-z
"
$PARTTABLE
"
]
;
then
if
[
"
$BOOTLOADER
"
==
grub-efi
]
;
then
if
[
"
$BOOTLOADER
"
==
grub-efi
]
;
then
...
@@ -201,7 +206,7 @@ parting mklabel "$PARTTABLE"
...
@@ -201,7 +206,7 @@ parting mklabel "$PARTTABLE"
if
[
-n
"
$BOOTLOADERPART
"
]
&&
[
-n
"
$BOOTLOADERPARTSIZEM
"
]
;
then
if
[
-n
"
$BOOTLOADERPART
"
]
&&
[
-n
"
$BOOTLOADERPARTSIZEM
"
]
;
then
case
"
$ARCH
"
in
case
"
$ARCH
"
in
ppc
*
)
ppc
*
)
parting mkpart primary ext2
2048s
$((
BOOTLOADERPARTSIZEM
+
1
))
MiB
parting mkpart primary ext2
$((
CUR_BOUNDARY+1
))
MiB
$((
BOOTLOADERPARTSIZEM
+
1
))
MiB
CUR_BOUNDARY
=
"
$BOOTLOADERPARTSIZEM
"
CUR_BOUNDARY
=
"
$BOOTLOADERPARTSIZEM
"
parting
set
1 prep on
parting
set
1 prep on
parting
set
1 boot on
parting
set
1 boot on
...
@@ -212,9 +217,9 @@ fi
...
@@ -212,9 +217,9 @@ fi
if
[
-n
"
$EFIPART
"
]
;
then
if
[
-n
"
$EFIPART
"
]
;
then
EFIDEV
=
"
$EFIDEV$EFIPART
"
EFIDEV
=
"
$EFIDEV$EFIPART
"
if
[
"
$PARTTABLE
"
==
gpt
]
;
then
if
[
"
$PARTTABLE
"
==
gpt
]
;
then
parting mkpart fat32
2048s
$((
$EFIPARTSIZEM
+
1
))
MiB
parting mkpart fat32
$((
CUR_BOUNDARY+1
))
MiB
$((
$EFIPARTSIZEM
+
1
))
MiB
else
else
parting mkpart primary fat32
2048s
$((
$EFIPARTSIZEM
+
1
))
MiB
parting mkpart primary fat32
$((
CUR_BOUNDARY+1
))
MiB
$((
$EFIPARTSIZEM
+
1
))
MiB
fi
fi
CUR_BOUNDARY
=
"
$EFIPARTSIZEM
"
CUR_BOUNDARY
=
"
$EFIPARTSIZEM
"
parting
set
1 boot on
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