mtik_initrd_hacks/init/oldinit_analiz.sh
Sergey Sergeev 26f20be410 Trying to add support 7.0b1. So far, unsuccessful!
Unpacking the 7.0b1 npk file into its parts and pack it back work fine.
But the fake /init does not start. Perhaps some additional compilation flags are required.
2019-09-11 21:52:24 +03:00

18 lines
667 B
Bash
Executable file

#!/bin/bash
#
#(C) Sergey Sergeev aka adron, 2019
#
OPENWRT_DIR=/home/prog/openwrt/lede-all/2019-openwrt-all/openwrt-ipq806x
export STAGING_DIR=$OPENWRT_DIR/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.4.0_musl_eabi
#OPENWRT_DIR=/home/prog/openwrt/lede-all/2019-openwrt-all/openwrt-ipq4xxx
#export STAGING_DIR=${OPENWRT_DIR}/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.4.0_musl_eabi
GCC=$STAGING_DIR/bin/arm-openwrt-linux-gcc
OD=$STAGING_DIR/bin/arm-openwrt-linux-objdump
OC=$STAGING_DIR/bin/arm-openwrt-linux-objcopy
LD=$STAGING_DIR/bin/arm-openwrt-linux-ld
$OD ../cpio-fs/oldinit -x > ./oldinit.objdump
$OD ../cpio-fs/init -x > ./init.objdump