Hi Tinker fellas !!
I've finally managed to find some time to build another image from scratch and to propose a tutorial to build a Tinker board development image. Keep in mind that the method is not 100% reliable and highly depends on the current development stage of the different Rockchip development repository.
Moreover, IT DOES NOT SUPPORT WIFI AND BLUETOOTH, SO NO WIFI/BLUETOOTH ANYMORE.
You will need a Ubuntu 16.04 LTS 64 bits on a computer to be able to build the image. Then open a terminal and put the following commands.
First we need to install the required dependencies :
Retrieve the required sources from GitHub and start to build u-boot :
The next command triggers a lot of errors but it looks like it is normal...
The next command tries to correct the missing dependencies from previous command :
Execute next command to prepare linaro archive :
Next command generates a lot of errors... looks like it is normal as it is still generating a file :
At this point, you should have a linaro-rootfs.img file of more than 1.7 GB in the current directory.
Now let's build the kernel :
There is again a problem with a file configuration. Now it is file located in build/extlinux/rk3288.conf, I have to fix the block device id from 2 to 0 :
Then execute commands :
If you have survived until here, you should have a "system.img" file in the current directory. It is the SD card image file ready to be copied ! You can test your custom image and don't hesitate to post if you have tweaks or report bugs on the corresponding rockchip-linux GitHub project ! If anyone is interested, I will post next time how to build a custom kernel.
Enjoy !!
EDIT:
Link to a built image WITHOUT wifi/bluetooth : 2017.04.09
Install it like any other Tinkerboard image. It contains a custom kernel built as a preemptive kernel and ondemand performance governor with autofs4, brtfs, reiserfs, raid, fat32, ntfs, cifs support. Do not dist-upgrade or upgrade packages, it is breaking the X server.
I've finally managed to find some time to build another image from scratch and to propose a tutorial to build a Tinker board development image. Keep in mind that the method is not 100% reliable and highly depends on the current development stage of the different Rockchip development repository.
Moreover, IT DOES NOT SUPPORT WIFI AND BLUETOOTH, SO NO WIFI/BLUETOOTH ANYMORE.
You will need a Ubuntu 16.04 LTS 64 bits on a computer to be able to build the image. Then open a terminal and put the following commands.
First we need to install the required dependencies :
Code:
sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler gcc-aarch64-linux-gnu mtools parted build-essential binfmt-support qemu-user-static python-dbus python-debian python-parted python-yaml python-apt python-support libssl-devRetrieve the required sources from GitHub and start to build u-boot :
Code:
mkdir tinkeroscustom
cd tinkeroscustom/
git clone https://github.com/rockchip-linux/kernel.git
git clone https://github.com/rockchip-linux/u-boot.git
git clone https://github.com/rockchip-linux/rk-rootfs-build.git
git clone https://github.com/rockchip-linux/build.git
build/mk-uboot.sh miniarm
cd rk-rootfs-build/The next command triggers a lot of errors but it looks like it is normal...
Code:
sudo dpkg -i ubuntu-build-service/packages/*The next command tries to correct the missing dependencies from previous command :
Code:
sudo apt-get install -fExecute next command to prepare linaro archive :
Code:
TARGET=desktop ARCH=armhf ./mk-base-debian.shNext command generates a lot of errors... looks like it is normal as it is still generating a file :
Code:
ARCH=armhf ./mk-rootfs.sh
./mk-image.shAt this point, you should have a linaro-rootfs.img file of more than 1.7 GB in the current directory.
Now let's build the kernel :
Code:
cd ..
build/mk-kernel.sh miniarmThere is again a problem with a file configuration. Now it is file located in build/extlinux/rk3288.conf, I have to fix the block device id from 2 to 0 :
Code:
label kernel-4.4
kernel /zImage
fdt /rk3288-miniarm.dtb
append earlyprintk console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/initThen execute commands :
Code:
build/mk-image.sh -c miniarm -t boot
build/mk-image.sh -c miniarm -t system -s 4000 -r rk-rootfs-build/linaro-rootfs.img
cd out/If you have survived until here, you should have a "system.img" file in the current directory. It is the SD card image file ready to be copied ! You can test your custom image and don't hesitate to post if you have tweaks or report bugs on the corresponding rockchip-linux GitHub project ! If anyone is interested, I will post next time how to build a custom kernel.
Enjoy !!
EDIT:
Link to a built image WITHOUT wifi/bluetooth : 2017.04.09
Install it like any other Tinkerboard image. It contains a custom kernel built as a preemptive kernel and ondemand performance governor with autofs4, brtfs, reiserfs, raid, fat32, ntfs, cifs support. Do not dist-upgrade or upgrade packages, it is breaking the X server.



![[-]](https://tinkerboarding.co.uk/forum/images/collapse.png)
) I'm not getting around some config issue in U-Boot, I think it has something to do with it trying to access the eMMC that doesn't exist, but I can't be certain yet.