Thread Rating:
  • 3 Vote(s) - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yocto for Tinkerboard
#1
Hi

Thought I should share as I have been able to build and run Yocto OS on my Tinkerboard.


This is my customized source tree which enables VPU (hardware accelerated decoding and encoding), GPU, WiFi, video processing libraries (FFMPEG, OpenCV etc.,). For WiFi, you will need to use linux kernel 'release-20160818-miniarm' Look here https://github.com/rockchip-linux/meta-rockchip/issues/4 for details. But this has been taken care of in my sources (meaning the official build from Rockchip will not enable wifi... )


Pull & build (instructions are available in the link)

https://github.com/sat8/yocto-tinkerboard.git


Njoy
Reply
#2
Sounds very interesting. Is there an ISO available to download?
Reply
#3
Yes, there is... I can leave it to upload tonight (~970 MB). Will share the link early tomorrow.
Reply
#4
(04-02-2017, 04:32 PM)sat8iiitb Wrote: Yes, there is... I can leave it to upload tonight (~970 MB). Will share the link early tomorrow.

Cool, I'll try it early tomorrow Smile
Reply
#5
Excellent! Will try it out!
Reply
#6
(04-03-2017, 12:29 AM)tonymac32 Wrote: Excellent!  Will try it out!
Here is the link for .img file 

https://drive.google.com/open?id=0B2aU6UdMlrQbOHBGWk5LdUY5OTA

I have always been using ubuntu to write to sd card. Let me know if there are any issues pls.
Reply
#7
Thank you for your post !!
I will try to add more filesystems support than in the default rockchip config.
I see you put X11 in the local.conf . Did you try with wayland ? Do you have better 2D acceleration with X11 for video playback ?
Reply
#8
(04-03-2017, 07:55 PM)gooze74 Wrote: Thank you for your post !!
I will try to add more filesystems support than in the default rockchip config.
I see you put X11 in the local.conf . Did you try with wayland ? Do you have better 2D acceleration with X11 for video playback ?

Gr8 n gud luck.

My customisation was leaning towards analyzing video so I haven't tried displaying video on my board. Rather I was encoding and streaming across to a client. (Wanted to run my board as a host remotely, so there was OpenSSh server in there as well.)

I will add a resize script soon so as to be able to use all avilable space on sd card. I was directed to this 
https://github.com/rockchip-linux/meta-rockchip-extra/blob/morty/recipes-rk/autostart/resize2fs_0.1.bb by Rockchip dev. Should come in handy..
Reply
#9
i've got the rockchip yocto bsp up and running with the stock tinkeros 1.4 kernel source.
wireless is working well but i don't get the bluetooth registered.


here is some related dmesg output:

Code:
-----


`rfkill list` just shows the wireless interface, no bluetooth. as well as /sys/bus/sdio/devices/ shows only one device.

anyone got it work?

for those who needs bluetooth as well: i got it working with
rtk_hciattach from https://github.com/lwfinger/rtl8723bs_bt
and the stock tinkerOS 1.4 bt firmware from /lib/firmware/rtlbt/

hints can be found in tinkerOS 1.4 /lib/systemd/system/hciuart.service


thanks,
tx0h
Reply
#10
(04-15-2017, 08:57 PM)tx0h Wrote: i've got the rockchip yocto bsp up and running with the stock tinkeros 1.4 kernel source.
wireless is working well but i don't get the bluetooth registered.
`rfkill list` just shows the wireless interface, no bluetooth. as well as /sys/bus/sdio/devices/ shows only one device.

I see only ONE device in "# find /sys/bus/sdio/devices/mmc1:0001:1/" (wlan0, TinkerOS 1.4).
I suppose that bluetooth is connected over serial line (uart0). There is bluetooth part of DeviceTree:
Code:
wireless-bluetooth {
                compatible = "bluetooth-platdata";
                uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
                pinctrl-names = "default","rts_gpio";
                pinctrl-0 = <&uart0_rts>;
                pinctrl-1 = <&uart0_gpios>;
                BT,reset_gpio    = <&gpio4 29 GPIO_ACTIVE_HIGH>;
                BT,wake_gpio     = <&gpio4 26 GPIO_ACTIVE_HIGH>;
                BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
                status = "okay";
        };
&pinctrl {
        wireless-bluetooth {
                uart0_gpios: uart0-gpios {
                        rockchip,pins = <4 19 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
}

Bluetooth device is presented in kernel with user-space bridge. If running than should be visible.
Code:
# pgrep -af ttyS0
446 /usr/local/bin/rtk_hciattach -n -s 115200 ttyS0 rtk_h5
# rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)