Commit ab91daa64611d394a83c19b951de986bdd89137d
1 parent
eddbf700e1
Exists in
master
and in
2 other branches
= Fusing 스크립트 버그 수정
= SD Fusing 시 MBR영역 삭제 기능 추가 - 보드 부팅 시 eMMC 영역의 Application 이 실행되어있으면 UnMount 가 되지 않아 Fusing 불가능 ( ex: Prime 이미지가 이미 Fusing 되어 있는 상태에서 다시 Fusing 하는 경우 Application 영역으로 사용하는 eMMC Partition 영역에 있는 Applicaton 이 실행되어 실행에 해당 파티션들이 Unmount 되지 않아 필요한 기능이 동작하지 않음)
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
bootloader/u-boot_2015_04/include/configs/mx6s_prime_oven.h
... | ... | @@ -240,7 +240,7 @@ |
240 | 240 | "echo ; " \ |
241 | 241 | "fi; " \ |
242 | 242 | "bootm 0x12000000 - 0x11F00000; \0" \ |
243 | - "bootload_fw=mmc dev 1; mmc read 0x11F00000 2C00 100; mmc read 0x12000000 3000 3800; mmc read 0x1E000000 7000 20000; bootm 0x12000000 0x1E000000 0x11F00000; 1; mmc read 0x11F00000 2C00 100; mmc read 0x12000000 3000 3800; mmc read 0x1E000000 7000 20000; bootm 0x12000000 0x1E000000 0x11F00000; \0" \" \ | |
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; 1; mmc read 0x11F00000 2C00 100; mmc read 0x12000000 3000 3800; mmc read 0x1E000000 7000 20000; bootm 0x12000000 0x1E000000 0x11F00000; \0" \" \ | |
244 | 244 | "fw=env default -a; saveenv; setenv mmcdev 1; setenv bootargs_ram ${bootargs_ram} fusing=1; run bootcmd_fw; \0" \ |
245 | 245 | "bootcmd_fw=run bootargs_ram bootload_fw \0" \ |
246 | 246 | "bootcmd=run bootargs_mmc bootload\0" | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/mk-emmc-fusing.sh
... | ... | @@ -143,8 +143,8 @@ function run_copy_rootfs() |
143 | 143 | |
144 | 144 | cp /etc/ssh/ssh_host_ed25519_key ${EMMC_MOUNT_PATH_P2}/etc/ssh/ |
145 | 145 | |
146 | - tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} ${EMMC_MOUNT_PATH_P3}/ | |
147 | - tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} ${EMMC_MOUNT_PATH_P4}/ | |
146 | + tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} -C ${EMMC_MOUNT_PATH_P3} | |
147 | + tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} -C ${EMMC_MOUNT_PATH_P4} | |
148 | 148 | } |
149 | 149 | |
150 | 150 | function run_raw_write() | ... | ... |
scripts/mk-emmc-fusing.sh
... | ... | @@ -143,8 +143,8 @@ function run_copy_rootfs() |
143 | 143 | |
144 | 144 | cp /etc/ssh/ssh_host_ed25519_key ${EMMC_MOUNT_PATH_P2}/etc/ssh/ |
145 | 145 | |
146 | - tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} ${EMMC_MOUNT_PATH_P3}/ | |
147 | - tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} ${EMMC_MOUNT_PATH_P4}/ | |
146 | + tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} -C ${EMMC_MOUNT_PATH_P3} | |
147 | + tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} -C ${EMMC_MOUNT_PATH_P4} | |
148 | 148 | } |
149 | 149 | |
150 | 150 | function run_raw_write() | ... | ... |