mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-22 21:26:59 +08:00

[mac80211] 5b29614 mac80211: another fix for the sta connection monitor 1ed6eb1 mac80211: backport sched_set_fifo_low cba4120 mac80211: add support for specifying a per-device scan list e0d482f rt2x00: mt7620: differentiate based on SoC's CHIP_VER [package] amd64-microcode/intel-microcode/linux-firmware: update version
25 lines
525 B
Bash
Executable File
25 lines
525 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright 2018 NXP
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
set -x
|
|
[ $# -eq 5 ] || {
|
|
echo "SYNTAX: $0 <file> <kernel part offset> <kernel size> <rootfs part offset> <rootfs size>"
|
|
exit 1
|
|
}
|
|
|
|
OUTPUT="$1"
|
|
KERNELOFFSET="$(($2 * 1024))"
|
|
KERNELSIZE="$3"
|
|
ROOTFSOFFSET="$(($4 * 1024))"
|
|
ROOTFSSIZE="$5"
|
|
|
|
head=4
|
|
sect=63
|
|
|
|
set $(ptgen -o $OUTPUT -h $head -s $sect -t 83 -p ${KERNELSIZE}M@${KERNELOFFSET} -p ${ROOTFSSIZE}M@${ROOTFSOFFSET})
|