mpc85xx: remove bogus config overrides
[openwrt.git] / target / linux / rb532 / image / gen_image.sh
1 #!/usr/bin/env bash
2 OUTPUT="$1"
3 KERNELSIZE="$2"
4 KERNELIMAGE="$3"
5 ROOTFSSIZE="$4"
6 ROOTFSIMAGE="$5"
7
8 rm -f "$OUTPUT"
9
10 # create partition table
11 set `ptgen -o "$OUTPUT" -h 16 -s 32 -t 0x27 -p ${KERNELSIZE}m -t 0x83 -p ${ROOTFSSIZE}m`
12
13 KERNELOFFSET="$(($1 / 512))"
14 ROOTFSOFFSET="$(($3 / 512))"
15
16 dd if="$KERNELIMAGE" of="$OUTPUT" bs=512 conv=notrunc seek="$KERNELOFFSET"
17 dd if="$ROOTFSIMAGE" of="$OUTPUT" bs=512 conv=notrunc seek="$ROOTFSOFFSET"
This page took 0.053292 seconds and 5 git commands to generate.