embeded/odroid2016. 10. 13. 22:33

생각해보니... U3에서 부트 우선순위가

eMMC -> SDHC 라고 하더라도

device 명으로 해버리면 sd가 꽂히면서 mmcblk0과 mmcblk1이 순서가 바뀌면서

부팅이 되지 않는 문제가 발생한다.


$ cat boot.txt.bak

setenv initrd_high "0xffffffff"

setenv fdt_high "0xffffffff"

setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; bootm 0x40008000 0x42000000"

setenv bootargs "console=tty1 console=ttySAC0,115200n8 root=/dev/mmcblk0p2 rootwait ro mem=2047M"

boot


그런 이유로 eMMC의 UUID를 확인하고

$ sudo blkid

/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="BOOT" UUID="6E35-5356" TYPE="vfat"

/dev/mmcblk0p2: LABEL="trusty" UUID="e139ce78-9841-40fe-8823-96a304a09859" TYPE="ext4"

boot.scr에 포함하게 하면 문제없이 부팅!

/media/boot$ cat boot-auto_edid.scr

'VOڟ7R}->▒9boot.scr for X with HDMI auto-pr4setenv initrd_high "0xffffffff"

setenv fdt_high "0xffffffff"

setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; bootm 0x40008000 0x42000000"

setenv bootargs "console=tty1 console=ttySAC1,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro  mem=2047M"

boot


/media/boot$ cat boot-1080p-edid.scr

'V▒B▒R▒▒▒▒sx▒boot.scr 1080pzsetenv initrd_high "0xffffffff"

setenv fdt_high "0xffffffff"

setenv drm_video_mode "HDMI-A-1:1920x1080@60"

setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; bootm 0x40008000 0x42000000"

setenv bootargs "console=tty1 console=ttySAC1,115200n8 video=${drm_video_mode} root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro  mem=2047M"

boot


[링크 : http://forum.odroid.com/viewtopic.php?f=80&t=3885]


boot.scr을 제외하면 예제인듯?

[링크 : http://forum.odroid.com/viewtopic.php?f=52&t=2947]

Posted by 구차니