2019-11-25 22:44:56 +00:00
|
|
|
#!/bin/sh
|
2018-07-18 06:14:40 +00:00
|
|
|
#
|
|
|
|
# Copyright 2018 NXP
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
set -x
|
|
|
|
[ $# -eq 3 ] || {
|
|
|
|
echo "SYNTAX: $0 <file> <rootfs part offset> <rootfs size>"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
OUTPUT="$1"
|
|
|
|
ROOTFSOFFSET="$(($2 * 1024))"
|
|
|
|
ROOTFSSIZE="$3"
|
|
|
|
|
|
|
|
head=4
|
|
|
|
sect=16
|
|
|
|
|
2019-07-24 22:51:27 +00:00
|
|
|
set $(ptgen -o $OUTPUT -h $head -s $sect -l $ROOTFSOFFSET -t 83 -p ${ROOTFSSIZE}M)
|