EkSeL

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. First, I have to thank @jeanrhum for posting the UT3S deal. Thanks! I have managed to boot my UT3S via SD card with the MyyQi kernel and the rootfs from the Miqi Armbian image without making any changes to the internal eMMC. My UT3S came with U-Boot 2014.10-RK3288-02 (Nov 10 2014 - 03:41:49) and I have not done any firmware updates. Here are the steps that I took: Follow this guide to creating a bootable Arch Linux ARM SD card. Make sure your UT3S will boot with it. The toolchain used in the above guide is too old to compile a mainline kernel. I used the gcc-linaro-5.4.1-2017.05-x86_64_arm-linux-gnueabihf toolchain which can be downloaded from here: https://releases.linaro.org/components/toolchain/binaries/latest-5/arm-linux-gnueabihf/ Download the MyyQi build script. At the top of GetPatchAndCompileKernel.sh I replaced the CROSS_COMPILE line with the following: export TOOLCHAIN_PATH=/path/to/toolchain export CROSS_COMPILE=${TOOLCHAIN_PATH}/gcc-linaro-5.4.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- export LD_LIBRARY_PATH=${TOOLCHAIN_PATH}/gcc-linaro-5.4.1-2017.05-x86_64_arm-linux-gnueabihf/lib:${TOOLCHAIN_PATH}/gcc-linaro-5.4.1-2017.05-x86_64_arm-linux-gnueabihf/libexec/gcc/arm-linux-gnueabihf/5.4.1 export PATH=${TOOLCHAIN_PATH}/gcc-linaro-5.4.1-2017.05-x86_64_arm-linux-gnueabihf/bin:$PATH Run GetPatchAndCompileKernel.sh The output should go to /tmp/MyyQi Do the following to write a bootable SD card: cd archlinux-firefly ./firefly-rk3288-kernel/mkkrnlimg /tmp/MyyQi/boot/zImage kernel.img ./firefly-rk3288-kernel/resource_tool /tmp/MyyQi/boot/rk3288-miqi.dtb ./bin/rockchip-mkbootimg/mkbootimg --kernel kernel.img --ramdisk initrd.img -o linux-boot.img # Remove links to firefly kernel rm create-linux-sdcard-usb/boot-linux.img rm create-linux-sdcard-usb/kernel-linux.img cp linux-boot.img create-linux-sdcard-usb/boot-linux.img cp kernel.img create-linux-sdcard-usb/kernel-linux.img cp resource.img create-linux-sdcard-usb/resource-linux.img cd create-linux-sdcard-usb sudo ./create-linux-sdcard-usb You should now have a bootable SD card with MyyQi kernel but no rootfs. Download the Miqi Armbian image and follow this guide for how to extract the rootfs from an Armbian image. Important: Make sure your rootfs image has the label "linuxroot". Copy firmware and modules from MyyQi kernal to rootfs image: cp /tmp/MyyQi/lib/* /path/to/rootfs/image/lib Write the rootfs image you have created to USB. If you would prefer to have the rootfs on the SD card you are using for booting: Copy the "create-linux-sdcard" script from the Linuxium RK3288 tools to archlinux-firefly/create-linux-sdcard-usb. Write SD card with rootfs: cd archlinux-firefly/create-linux-sdcard-usb ln -s /path/to/rootfs.img linux-rfs.img sudo ./create-linux-sdcard Put SD card (and optionally USB drive) in UT3S and power on.