View: 7068|Reply: 3

FAQ

[Copy link]

18

threads

200

posts

888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
888
Published in 2015-8-3 21:15:59 | Show all floors |Read mode
Edited by magicse at 2015-10-28 09:51

Q: Where to download u-boot source?
A: This is the official link:  https://github.com/allwinner-zh/bootloader.git

Q: What sd card layout ?
A: bootloader is at 8x1024
  u-boot is at 16400*1024
  first partition starts at 20480x1024

Q: How install toolchains?
A: using a Ubuntu 12.04 virtual machine as the Allwinner code requires the older gcc 4.6 to build.
   apt-get install libncurses5-dev
    apt-get install gcc-4.6-arm-linux-gnueabihf g++-4.6-arm-linux-gnueabihf
    ln -s /usr/bin/arm-linux-gnueabihf-gcc-4.6 /usr/bin/arm-linux-gnueabihf-gcc
    ln -s /usr/bin/arm-linux-gnueabihf-gcov-4.6 /usr/bin/arm-linux-gnueabihf-gcov
    ln -s /usr/bin/arm-linux-gnueabihf-g++-4.6 /usr/bin/arm-linux-gnueabihf-g++
    ln -s /usr/bin/arm-linux-gnueabihf-cpp-4.6 /usr/bin/arm-linux-gnueabihf-cpp

Q: How compile u-boot from Allwiner source code?
A: cd ~/opi
    mkdir -p tools/pack/chips/sun8iw7p1/bin/
    git clone https://github.com/allwinner-zh/bootloader
    cd bootloader/u-boot-2011.09
    chmod +x mkconfig
    chmod +x tools/scripts/*
    chmod +x tools/setlocalversion
    Edit arch/arm/cpu/armv7/config.mk and replace references to -msoft-float by -mfloat-abi=hard -mfpu=vfpv3
    make CROSS_COMPILE=arm-linux-gnueabihf- sun8iw7p1_config
    make CROSS_COMPILE=arm-linux-gnueabihf-

Q: How share folders from Windows to Orange Pi
A: apt-get install cifs-utils
    mount.cifs  //192.168.2.2/Orange_Pi2 /mnt -o user=proft,password=1234578,workgroup=WORKGROUP,ip=192.168.2.2

Q: How enable Tv out (CVBS) on Lubutnu?
A: In file /etc/modules add record for module tv.
    In script.fex change disp_mode   to 1 (Datashit for H3 - TCON1 for TV )
    screen1_output_type      = 2
    screen1_output_mode      = 11
    tv_used                = 1
    tv_dac_used            = 1
    tv_dac_src0            = 0
Q: How enable sount on 3.5 jack iat Lubuntu 1404 0.9.0
A: Start alsamixer in console and enable Item: Audio lineout !!


Orange PI 2
www.orangepi.pp.ua

0

threads

20

posts

102

credits

Registered member

Rank: 2

credits
102
Published in 2015-9-23 01:07:13 | Show all floors
Q: How enable Tv out (CVBS) on Lubutnu?
A: In file /etc/modules add record for module tv.


How can i add this module?
OPI-2

18

threads

200

posts

888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
888
 Author| Published in 2015-9-23 01:24:55 | Show all floors
Like a text. Open file modules in editor and type there "tv" without quotes and after that save it.
Orange PI 2
www.orangepi.pp.ua

18

threads

200

posts

888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
888
 Author| Published in 2015-10-28 15:50:58 | Show all floors
Edited by magicse at 2015-10-28 09:53

Q:How install kernel part of mali drivers
A: (Game start)
    LEVEL 1
    Copy modules ump.ko mali.ko drm.ko и mali_drm.ko to /lib/modules/3.4.39/
    Copy Libs (libGLES* libGLES* LibUmp LibMali) to /usr/lib
    Copy include to /usr/include
    Create rules for dev
    sudo cat <<eof>/etc/udev/rules.d/50-mali.rules
    KERNEL=="mali", MODE="0666", GROUP="video"
    KERNEL=="ump", MODE="0666", GROUP="video"
    KERNEL=="cedar_dev", MODE="0660", GROUP="video"
    EOF
    To allow hardware acceleration without root privileges, you have to give write permissions to following device files:
    sudo chmod 666 /dev/mali /dev/ump /dev/cedar_dev
    sudo chown root:video /dev/mali
    sudo chown root:video /dev/ump
    sudo chown root:video /dev/cedar_dev

    You have to assign the group to the user:
    sudo usermod -aG video [$USER] for me user ->orangepi

    Modify /etc/modules to add the following lines:
    ump
    mali
    drm
    mali_drm

    Then type in a terminal "depmod -a" so it will parse the new modules
    reboot
    Level 1 done
LEVEL 2
Need to build xf86-video-fbturbo or xf86-video-mali
and configure X.11 xorg
May be someone make it.
Orange PI 2
www.orangepi.pp.ua
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list