From e064d04c8d715e95fa82488b4bd0cb766c77c929 Mon Sep 17 00:00:00 2001 From: larche Date: Fri, 7 Jul 2017 18:13:22 +0900 Subject: [PATCH] =?UTF-8?q?=3D=20Fusing,=20Jig=20=EB=B0=A9=EC=8B=9D=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - autoexec 에 해당 스크립트 실행하도록 변경 * Fusing = run fw * Jig = run jig --- .../include/configs/mx6s_prime_oven.h | 3 +- .../prime_oven/rootfs_overlay/etc/init.d/S83fusing | 46 ---------------------- 2 files changed, 2 insertions(+), 47 deletions(-) delete mode 100755 buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/init.d/S83fusing diff --git a/bootloader/u-boot_2015_04/include/configs/mx6s_prime_oven.h b/bootloader/u-boot_2015_04/include/configs/mx6s_prime_oven.h index 9f30978..c962833 100755 --- a/bootloader/u-boot_2015_04/include/configs/mx6s_prime_oven.h +++ b/bootloader/u-boot_2015_04/include/configs/mx6s_prime_oven.h @@ -241,7 +241,8 @@ "fi; " \ "bootm 0x12000000 - 0x11F00000; \0" \ "bootload_fw=mmc dev 0; mmc erase 0 2; mmc dev 1; mmc read 0x11F00000 2C00 100; mmc read 0x12000000 3000 3800; mmc read 0x1E000000 7000 20000; bootm 0x12000000 0x1E000000 0x11F00000; \0" \ - "fw=env default -a; saveenv; setenv mmcdev 1; setenv bootargs_ram ${bootargs_ram} fusing=1; run bootcmd_fw; \0" \ + "fw=env default -a; saveenv; setenv mmcdev 1; setenv bootargs_ram ${bootargs_ram}; setenv autoexec /root/.falinux/mk-emmc-fusing.sh; run bootcmd_fw; \0" \ + "jig=env default -a; saveenv; setenv bootargs_mmc ${bootargs_mmc}; setenv autoexec /root/.falinux/prime_jig/prime_jig.sh; run bootcmd; \0" \ "bootcmd_fw=run bootargs_ram bootload_fw \0" \ "bootcmd=run bootargs_mmc bootload\0" diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/init.d/S83fusing b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/init.d/S83fusing deleted file mode 100755 index 666e3aa..0000000 --- a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/init.d/S83fusing +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -CMDLINE=$(cat /proc/cmdline) -TOOL_PATH="/root/.falinux" -JIG_PATH="/root/.falinux/prime_jig/prime_jig.sh" - -start() { - echo "## Start Boot Img eMMC Fusing ##" - - # Start Boot Img eMMC Fusing Mode - FUSING=$(cmd_parsing fusing $CMDLINE) - if [ "$FUSING" != "" ]; then - # Run Fusing - ${TOOL_PATH}/mk-emmc-fusing.sh - else - # Check First Boot - if [ ! -f "${TOOL_PATH}/.complete" ]; then - echo "Run JIG Script" - ${JIG_PATH} - touch ${TOOL_PATH}/.complete - sync - fi - fi -} - -stop() { - echo "OK" -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart|reload) - restart - ;; - *) - echo "Usage: $0 {start|stop|restart}" - exit 1 -esac - -exit $? - -- 2.1.4