Commit e064d04c8d715e95fa82488b4bd0cb766c77c929

Authored by larche
1 parent ab91daa646
Exists in master and in 2 other branches fhd, fhd-demo

= Fusing, Jig 방식 변경

	- autoexec 에 해당 스크립트 실행하도록 변경
		* Fusing = run fw
		* Jig = run jig
bootloader/u-boot_2015_04/include/configs/mx6s_prime_oven.h
... ... @@ -241,7 +241,8 @@
241 241 "fi; " \
242 242 "bootm 0x12000000 - 0x11F00000; \0" \
243 243 "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" \
244   - "fw=env default -a; saveenv; setenv mmcdev 1; setenv bootargs_ram ${bootargs_ram} fusing=1; run bootcmd_fw; \0" \
  244 + "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" \
  245 + "jig=env default -a; saveenv; setenv bootargs_mmc ${bootargs_mmc}; setenv autoexec /root/.falinux/prime_jig/prime_jig.sh; run bootcmd; \0" \
245 246 "bootcmd_fw=run bootargs_ram bootload_fw \0" \
246 247 "bootcmd=run bootargs_mmc bootload\0"
247 248  
... ...
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/init.d/S83fusing
... ... @@ -1,46 +0,0 @@
1   -#!/bin/sh
2   -
3   -CMDLINE=$(cat /proc/cmdline)
4   -TOOL_PATH="/root/.falinux"
5   -JIG_PATH="/root/.falinux/prime_jig/prime_jig.sh"
6   -
7   -start() {
8   - echo "## Start Boot Img eMMC Fusing ##"
9   -
10   - # Start Boot Img eMMC Fusing Mode
11   - FUSING=$(cmd_parsing fusing $CMDLINE)
12   - if [ "$FUSING" != "" ]; then
13   - # Run Fusing
14   - ${TOOL_PATH}/mk-emmc-fusing.sh
15   - else
16   - # Check First Boot
17   - if [ ! -f "${TOOL_PATH}/.complete" ]; then
18   - echo "Run JIG Script"
19   - ${JIG_PATH}
20   - touch ${TOOL_PATH}/.complete
21   - sync
22   - fi
23   - fi
24   -}
25   -
26   -stop() {
27   - echo "OK"
28   -}
29   -
30   -case "$1" in
31   - start)
32   - start
33   - ;;
34   - stop)
35   - stop
36   - ;;
37   - restart|reload)
38   - restart
39   - ;;
40   - *)
41   - echo "Usage: $0 {start|stop|restart}"
42   - exit 1
43   -esac
44   -
45   -exit $?
46   -