## ºÎÆà ¸ðµå -SD ºÎÆà SW1: 2 ¹ø ON , ³ª¸ÓÁö OFF, SW2 : 3,4,5 ¹ø ON ³ª¸ÓÁö OFF -eMMC ºÎÆà : SW1: 2,3 ¹ø ON , ³ª¸ÓÁö OFF, SW2 : 4,6 ¹ø ON ³ª¸ÓÁö OFF ##Linux Environment install http://source.android.com/source/initializing.html ## jdk install $ sudo apt-get install openjdk-7-jdk $ sudo update-alternatives --config java $ sudo update-alternatives --config javac ## source download http://crztech.iptime.org:8080/Release/mango-imx6q/Android6.0/ $ wget http://crztech.iptime.org:8080/Release/mango-imx6q/Android6.0/Prebuilts/Mango-imx6qds-android6.0-prebuilts.tgz $ wget http://crztech.iptime.org:8080/Release/mango-imx6q/Android6.0/<Ãֽų¯Â¥ ¼Ò½º>.tgz $ tar xf Mango-imx6qds-android6.0-prebuilts.tgz $ tar xf Mango-imx6qds-android6.0-.tgz ## u-boot only $ cd ~//bootable/bootloader/uboot-imx myandroid : µð·ºÅ丮 ¾ÐÃà Ǭ µð·ºÅ丮¸í. $ export ARCH=arm $ export CROSS_COMPILE=~/myandroid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/ arm-linux-androideabi- $ make distclean $ make mx6qsabresdandroid_config $ make ## Android,kernel,u-boot build $ cd android6.0 $ source build/envsetup.sh $ lunch sabresd_6dq-eng ##emmc ºÎÆà $ vi device/fsl/sabresd_6dq/BoardConfig.mk BUILD_TARGET_DEVICE := emmc ##sd ºÎÆà $ vi device/fsl/sabresd_6dq/BoardConfig.mk BUILD_TARGET_DEVICE := sd $ make 2>&1 | tee build-log.txt ## boot image (kernel,ramdisk,dtb) $ source build/envsetup.sh $ lunch sabresd_6dq-eng ##emmc ºÎÆà $ vi device/fsl/sabresd_6dq/BoardConfig.mk BUILD_TARGET_DEVICE := emmc ##sd ºÎÆà $ vi device/fsl/sabresd_6dq/BoardConfig.mk BUILD_TARGET_DEVICE := sd $ make bootimage ## copy image $ cp out/target/product/sabresd_6dq/*.img ../images/ $ cp out/target/product/sabresd_6dq/u-boot*.imx../images/ ## SD Fusing - images Æú´õ¿¡¼­ ÀÛ¾÷. - SD Ä«µå »ðÀÔÈÄ, ÀåÄ¡ È®ÀÎ dmesg | tail [ 4223.048053] sd 7:0:0:0: [sdb] 15628288 512-byte logical blocks: (8.00 GB/7.45 GiB) [ 4223.050036] sd 7:0:0:0: [sdb] No Caching mode page found [ 4223.050040] sd 7:0:0:0: [sdb] Assuming drive cache: write through [ 4223.052662] sd 7:0:0:0: [sdb] No Caching mode page found [ 4223.052666] sd 7:0:0:0: [sdb] Assuming drive cache: write through [ 4223.053306] sdg: sdg1 sdg2 $ wget http://crztech.iptime.org:8080/Release/mango-imx6q/Android6.0/20160929/Mango-imx6qds-android6.0-10.1inch-image-20161004.tgz $ tar xf Mango-imx6qds-android6.0-10.1inch-image-20161004.tgz $ cd images/ $ sudo cp simg2img /bin/ $ sudo ./fsl-sdcard-partition.sh -f /dev/sdX # can be imx6q, imx6dl ## sim2img ÆÄÀÏ À§Ä¡ /out/host/linux-x86/bin/ ## Mango-IMX6Q , Mango-IMX6D2G Write - SD Write sudo umount /dev/sdg* sudo ./fsl-sdcard-partition.sh -f imx6q /dev/sdg ##u-boot ȯ°æº¯¼ö ¼³Á¤ ## SD card boot setenv fastboot_dev mmc2 setenv bootcmd boota mmc2 saveenv reset ## eMMC boot setenv fastboot_dev mmc1 setenv bootcmd boota mmc1 saveenv reset - Android 6.0.1 7 inch °¨¾Ð½Ä LCD+ HDMI ºÎÆà bootargs setenv panel HDMI setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:dev=lcd,MANGO-PRESS7,if=BGR24,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,if=BGR24,bpp=32 video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.serialno=0 androidboot.selinux=disabled save reset 7inch Á¤Àü½Ä LCD ºÎÆà (Android) setenv panel HDMI setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:dev=lcd,MANGO-CAP7,if=BGR24,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,if=BGR24,bpp=24 video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.serialno=0 androidboot.selinux=disabled save reset 10.4 inch °¨¾Ð½Ä LCD ºÎÆà bootargs setenv panel HDMI setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:dev=lcd,MANGO-PRESS10.4,if=BGR24,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,if=BGR24,bpp=24 video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.serialno=0 androidboot.selinux=disabled save reset 10.1 inch Á¤Àü½Ä LCD ºÎÆà bootargs setenv panel HDMI setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:dev=lcd,MANGO-CAP10.1,if=BGR24,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,if=BGR24,bpp=24 video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.serialno=0 androidboot.selinux=disabled save reset HDMI ONLY setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:off video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24,bpp=24 video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.serialno=0 androidboot.selinux=disabled save reset ####### Reference ## system remount $ adb shell $ su # mount -o rw,remount /system - adb root Go to Settings. Click on "about tablet" Scroll down to the last row (Build Number) and tap that row 7 times. Return to the previous screen and click on "developer options" Confirm that "usb debugging" is checked. - disable power save mode : LCD ²¨ÁöÁö ¾Êµµ·Ï Go to Settings. Click on "about tablet" Scroll down to the last row (Build Number) and tap that row 7 times. Return to the previous screen and click on "developer options" Settings > Developer options > Stay awake Linux ,window pc¿¡¼­ adb Å×½ºÆ® ½Ã ÃֽŠsdk ¼³Ä¡ https://developer.android.com/studio/index.html Window pc adb Å×½ºÆ® c:\Android_SDK\adt-bundle-windows-x86_64-20130219\sdk\platform-tools>adb device List of devices attached 0 device c:\Android_SDK\adt-bundle-windows-x86_64-20130219\sdk\platform-tools>adb root adbd is already running as root c:\Android_SDK\adt-bundle-windows-x86_64-20130219\sdk\platform-tools>adb shell root@sabresd_6dq:/ # su Download the U-Boot image: # sudo dd if=u-boot-imx6q.imx of=/dev/sdg bs=1K seek=1; sync Download the boot image: # sudo dd if=boot-imx6q.img of=/dev/sdg1; sync Download the Android system root image: # sudo simg2img system.img system_raw.img # sudo dd if=system_raw.img of=/dev/sdg5; sync Download the Android recovery image: # sudo dd if=recovery-imx6q.img of=/dev/sdg2; sync