mac80211 ozonet updates
[openwrt/.git] / target / linux / layerscape / image / gen_sdcard_head_img.sh
1 #!/bin/sh
2 #
3 # Copyright 2018 NXP
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 set -x
10 [ $# -eq 3 ] || {
11     echo "SYNTAX: $0 <file> <rootfs part offset> <rootfs size>"
12     exit 1
13 }
14
15 OUTPUT="$1"
16 ROOTFSOFFSET="$(($2 * 1024))"
17 ROOTFSSIZE="$3"
18
19 head=4
20 sect=16
21
22 set $(ptgen -o $OUTPUT -h $head -s $sect -l $ROOTFSOFFSET -t 83 -p ${ROOTFSSIZE}M)