This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raspbian Pixel running on Tinkerboard
#1
So here's Raspberry Pi's Raspbian Pixel running on the tinkerboard:

I copied a raspbian filesystem over the second tinkerboard partition, and it booted up, 
then complained about some kernel modules and dropped to a shell. 

Typing startx and I had the raspbian pixel X11 desktop 

[Image: 9XyCpJkm.jpg] [Image: fAVfmSNm.jpg] [Image: zyLWkyxm.jpg]

 error message is because it was a root shell..oops 
Surprised it worked without much effort.

Now how practical is this ? not much at the moment as it has no tinkerboard modules installed (no sound, wifi, hw accel etc) - but they could be added back in.

Chromium launched fine, and have connectivity via ethernet.

Card image on google drive: https://drive.google.com/open?id=0B5s6Sx...mx1NGRSQ3M
Reply
#2
It would sure be nice to have Raspbian for the Tinkerboard.
As solid as it is on the RPi............
Reply
#3
Hi.

I could run Raspbian-Pixel by injecting TinkerBoard's kernel, modules and u-boot into Raspbian-image.
And this microSD can boot on both RaspberryPi and TinkerBoard. :-D

# I haven't checked the REAL functionality on Tinkerboard, I don't know what is working or not.. (But I know MinecraftPi does not work. )

1. Prepare two microSD with the image,
   a) 20170703-tinker-board-linaro-stretch-alip-v1.9
   b) 2017-07-05-raspbian-jessie

2. Insert microSD
    a) to TinkerBoard microSD slot
    b) to USB card reader, and connect to TinkerBoard USB port.

3. Turn on

4. Make sure that dev/sda is mounted. (% mount | grep dev/sda )
Code:
codelinaro@linaro-alip:~$ mount | grep dev/sda
/dev/sda2 on /media/linaro/62ca0b6d-6291-4c40-b1fd-11bc291e4a38 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda1 on /media/linaro/boot type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
linaro@linaro-alip:~$ 


5. Copy files (Kernel and modules)

Code:
sudo cp -rv /boot/* /media/linaro/boot/
sudo cp -rv /lib/modules/4.4.16-00010-g0fce7eb-dirty  /media/linaro/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/lib/modules/


6. Write uboot
Code:
# Download uboot img which I built
wget https://github.com/mt08xx/files/raw/master/rk3288-uboot-image/idbloader.img
# DD - 64th sector = Offset 0x8000
sudo dd if=./idbloader.img of=/dev/sda seek=64 conv=notrunc

7. Shutdown.
Code:
sync && sleep 5 && sudo shutdown -h now


8. Insert microSD(b) to TinkerBoard's slot, and boot


# You may need : 
  - Extend partition : sudo raspi-config
  - Create ssh-key :  sudo dpkg-reconfigure openssh-server


- http://qiita.com/mt08/items/5aee9d3f0dc10a1c1c5a  (Written in Japanese, sorry)
Reply
#4
Like @hitsware said - It would be fantastic to get Raspbian kernel working on tinkerboard. getting rid of all the bugs that make tinkerboard fall behind.

Or @mikerr, @mt08 - could we get debian/stretch onto it. I have that running on my Pi3s and it is great.
What would it take?
Reply
#5
you can get a version with the kernel and the modules included in the img file
raspbian is much lighter and more responsive ..
thank you
Reply
#6
Hi mt08

I try to use this methed worked but no sound ,

and I try to use lastest tinker 2.0.5 and raspbian March 2018  img but does not work 
Cloud you show how to rebuild  idbloader.img and make it works

Thank You

(08-09-2017, 05:29 PM)mt08 Wrote: Hi.

I could run Raspbian-Pixel by injecting TinkerBoard's kernel, modules and u-boot into Raspbian-image.
And this microSD can boot on both RaspberryPi and TinkerBoard. :-D

# I haven't checked the REAL functionality on Tinkerboard, I don't know what is working or not.. (But I know MinecraftPi does not work. )

1. Prepare two microSD with the image,
   a) 20170703-tinker-board-linaro-stretch-alip-v1.9
   b) 2017-07-05-raspbian-jessie

2. Insert microSD
    a) to TinkerBoard microSD slot
    b) to USB card reader, and connect to TinkerBoard USB port.

3. Turn on

4. Make sure that dev/sda is mounted. (% mount | grep dev/sda )
Code:
codelinaro@linaro-alip:~$ mount | grep dev/sda
/dev/sda2 on /media/linaro/62ca0b6d-6291-4c40-b1fd-11bc291e4a38 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda1 on /media/linaro/boot type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
linaro@linaro-alip:~$ 


5. Copy files (Kernel and modules)

Code:
sudo cp -rv /boot/* /media/linaro/boot/
sudo cp -rv /lib/modules/4.4.16-00010-g0fce7eb-dirty  /media/linaro/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/lib/modules/


6. Write uboot
Code:
# Download uboot img which I built
wget https://github.com/mt08xx/files/raw/master/rk3288-uboot-image/idbloader.img
# DD - 64th sector = Offset 0x8000
sudo dd if=./idbloader.img of=/dev/sda seek=64 conv=notrunc

7. Shutdown.
Code:
sync && sleep 5 && sudo shutdown -h now


8. Insert microSD(b) to TinkerBoard's slot, and boot


# You may need : 
  - Extend partition : sudo raspi-config
  - Create ssh-key :  sudo dpkg-reconfigure openssh-server


- http://qiita.com/mt08/items/5aee9d3f0dc10a1c1c5a  (Written in Japanese, sorry)
Reply
#7
Hi bj9421,

I've updated github and https://qiita.com/mt08/items/5aee9d3f0dc10a1c1c5a for TinkerOS v2.0.5.

I guess there are 2 types of working environments which are "TinkerBoard + USB Card reader" or "Raspberry Pi".
(The differences are only where Raspbian is mounted.)

Choose one of them,
Code:
# TinkerBoard + USB Card reader 
RASPBIAN_DISK=/dev/sda
RASPBIAN_DIR=/media/linaro

OR

# Raspberry Pi
RASPBIAN_DISK=/dev/mmcblk0
RASPBIAN_DIR=

and then do this.

Code:
mkdir ~/work
cd ~/work
wget https://github.com/mt08xx/files/raw/master/TinkerOS-20180321_v2.0.5_kernel_lib_idbloader.tbz
tar xf TinkerOS-20180321_v2.0.5_kernel_lib_idbloader.tbz

sudo dd if=./tmp/TinkerOS-20180321_v2.0.5_idbloader.img of=${RASPBIAN_DISK} seek=64 conv=notrunc
sudo cp -av ./boot/* ${RASPBIAN_DIR}/boot/
sudo cp -av ./lib/* ${RASPBIAN_DIR}/lib/

#sudo touch /media/linaro/boot/ssh
sudo poweroff


And this commit-comment shows how to create it.
https://github.com/mt08xx/files/commit/d...252aa17d7f

Please try.


> #Regarding sound, I'll check it later

# Update
On Raspbian, I could hear the sound from Earphone plug of TinkerBoard with `aplay -D plughw:CARD=OnBoard,DEV=2 /usr/share/sounds/alsa/Front_Center.wav`.
And pulseaudio is installed TinkerOS, however, not in Raspbian.

Can you(or anyone) try to find the configuration for audio ?


-mt08

(03-25-2018, 06:17 AM)bj9421 Wrote: Hi mt08

I try to use this methed worked but no sound ,

and I try to use lastest tinker 2.0.5 and raspbian March 2018  img but does not work 
Cloud you show how to rebuild  idbloader.img and make it works

Thank You
...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)