mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-09 20:14:04 +00:00
add fps to rtsp, revise run_mmc.sh for v2
This commit is contained in:
@@ -18,6 +18,7 @@ if [ "$ACTION" = "unpack" ]; then
|
||||
|
||||
dd if=${DEMO_IN} of=$OUT_DIR/rootfs.bin skip=$ROOTFS_OFFSET count=$(($DRIVER_OFFSET-$ROOTFS_OFFSET)) bs=1
|
||||
md5sum $OUT_DIR/rootfs.bin
|
||||
|
||||
dd if=${DEMO_IN} of=$OUT_DIR/driver.bin skip=$DRIVER_OFFSET count=$(($APPFS_OFFSET-$DRIVER_OFFSET)) bs=1
|
||||
md5sum $OUT_DIR/driver.bin
|
||||
|
||||
@@ -28,8 +29,10 @@ if [ "$ACTION" = "unpack" ]; then
|
||||
elif [ "$ACTION" = "pack" ]; then
|
||||
TMP_DIR=$2
|
||||
DEMO_OUT=$3
|
||||
# need to pad kernel is its smaller than the stock kernel size, 2097152 bytes
|
||||
|
||||
#need to pad kernel is its smaller than the stock kernel size, 2097152 bytes
|
||||
dd if=/dev/zero of=$TMP_DIR/kernel.bin bs=1 count=1 seek=2097151
|
||||
|
||||
cat $TMP_DIR/kernel.bin $TMP_DIR/rootfs.bin $TMP_DIR/driver.bin $TMP_DIR/appfs.bin > $TMP_DIR/flash.bin
|
||||
mkimage -A MIPS -O linux -T firmware -C none -a 0 -e 0 -n jz_fw -d $TMP_DIR/flash.bin $DEMO_OUT
|
||||
|
||||
|
Reference in New Issue
Block a user