Firefly Open Source Community

Title: Please document how exactly a latest RK3399 Ubuntu rootfs is built [Print This Page]

Author: cb182d    Time: 12/9/2017 21:13
Title: Please document how exactly a latest RK3399 Ubuntu rootfs is built
Last edited by cb182d In 12/12/2017 23:52 Editor

Please document how exactly a latest RK3399 Ubuntu rootfs is built

Currently there is a page related to RK3399 rootfs (http://wiki.t-firefly.com/index. ... Build_Ubuntu_rfs/en ) but this is severely out-dated. Following this guide, a system with nearly no working device will be built.

I tried the latest official Xubuntu image and it works well, but when I built my own rootfs with the official document, none of the following devices work properly:
1. Bluetooth
    Possibly missing firmware and /usr/local/bin/enable_bt ?
2. WiFi
    Firmware missing
3. GPU (OpenGL ES, libmali)
    I can see libmali-rk-midgard-dev and libmali-rk-midgard-4th-r13p0 in official Xubuntu rootfs, but copying libEGL.so/libGLESv2.so/etc. to my own rootfs results in "EGLUT: Failed to initialize EGL display" when running es2gears. doing a dpkg-repack results the same.
    Where can I download/create the libmali-rk-midgard-dev & libmali-rk-midgard-4th-r13p0 deb packages? How should them be installed?
4. Sound (rt5640)
    Device shows up, but no sound output.
5. Hardware video decoding

Adding rockchip firmware overlay (https://github.com/rockchip-linux/rk-rootfs-build) on GitHub will get WiFi working, but I googled for hours with no luck for other devices.
Author: luvings    Time: 12/12/2017 17:54
The above bug is based on the original rootfs made some changes
Author: cb182d    Time: 12/12/2017 23:22
luvings Posted at 12/12/2017 17:54
The above bug is based on the original rootfs made some changes

I managed to get sound working by restoring an "asound.state" provided by a friend of mine. Others are still not working.
That's not what an open source platform should be like. Everything should be well documented instead of a single Xubuntu img.
I'm also stuck at getting mainline u-boot & u-boot spl working so that I can use extlinux (which is significantly easier to play with & updating mainline kernel) instead of the heavily modified firefly u-boot, and I wonder if I could find some related doc or guide to get this working.
I saw firefly-rk3399 related packages in Debian and openSUSE repos, but there's not even a single doc/guide.
Author: luvings    Time: 12/13/2017 16:02
Last edited by luvings In 12/13/2017 16:08 Editor

the process  of making rootfs is really not good record.
Menu->Multimedia->PulseAudio Volume Control->Configuration->select one card working, close anothers

asound.state.rar

1.62 KB, Down times: 11


Author: Rudis    Time: 12/14/2017 16:02
About GPU (OpenGL ES)
You should link libmali.so\libEGL.so to libmali-rk-midgard-4th-r13p0.so
Author: cb182d    Time: 12/15/2017 01:27
Rudis Posted at 12/14/2017 16:02
About GPU (OpenGL ES)
You should link libmali.so\libEGL.so to libmali-rk-midgard-4th-r13p0.so

The "EGLUT: Failed to initialize EGL display" error only ocurred when I linked both files. if I don't do that, it will either use mesa EGL and software rendering, or show an error indicating it cannot load libEGL, if no mesa libEGL is present.
Author: cb182d    Time: 12/16/2017 16:01
Rudis Posted at 12/14/2017 16:02
About GPU (OpenGL ES)
You should link libmali.so\libEGL.so to libmali-rk-midgard-4th-r13p0.so

Actually glmark2-es2-drm is working (full screen), but glmark2-es2 fails with EGLUT 0x3003, which means the display is not initialized, so I think that's some issue related to X11 DDX.
Author: cb182d    Time: 12/16/2017 22:02
Rudis Posted at 12/14/2017 16:02
About GPU (OpenGL ES)
You should link libmali.so\libEGL.so to libmali-rk-midgard-4th-r13p0.so

Well, I found that the official Xubuntu image is using custom X11 server. Maybe missing the (rockchip modified) X11 is the root cause.
Author: Rudis    Time: 12/18/2017 09:06
Last edited by Rudis In 12/18/2017 09:08 Editor

You can find the libmali for X11 on https://github.com/rockchip-linux/libmali

The marching version is libmali-midgard-t86x-r13p0.so https://github.com/rockchip-linu ... b/aarch64-linux-gnu

I had tested it before.

Author: Rudis    Time: 12/18/2017 09:23
Last edited by Rudis In 12/18/2017 09:25 Editor

You can try it.

You can modify /usr/include/EGL/eglplatform.h


  1.     struct gbm_device;
  2.     struct gbm_surface;

  3.     typedef struct gbm_device * EGLNativeDisplayType;
  4.     typedef struct gbm_surface * EGLNativeWindowType;
  5.     typedef void * EGLNativePixmapType;

  6.     /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
  7.     typedef EGLNativeDisplayType NativeDisplayType;
  8.     typedef EGLNativePixmapType  NativePixmapType;
  9.     typedef EGLNativeWindowType NativeWindowType;
Copy the code


to

  1.     struct gbm_device;
  2.     struct gbm_surface;

  3.     #if defined(__GBM__)
  4.     typedef struct gbm_device * EGLNativeDisplayType;
  5.     typedef struct gbm_surface * EGLNativeWindowType;
  6.     typedef void * EGLNativePixmapType;
  7.     #elif defined(__unix__)
  8.     #include <X11/Xlib.h>
  9.     #include <X11/Xutil.h>
  10.     typedef Display *EGLNativeDisplayType;
  11.     typedef Pixmap EGLNativePixmapType;
  12.     typedef Window EGLNativeWindowType;
  13.     #endif

  14.     typedef EGLNativeWindowType NativeWindowType;
  15.     typedef EGLNativePixmapType NativePixmapType;
  16.     typedef EGLNativeDisplayType NativeDisplayType;
Copy the code


Author: SocialWork    Time: 12/21/2017 15:15
With clasping fashion away from country during a very model class, Italy could quite possibly really benefit individuals set in place themselves beyond the rest of the fashion small children who won't have all all the resources or capacity to travel away from country.        fashion naughty
Fashion designs have brought about a storm during that glamour country by most of the commendably wonderful variety. Model designers routinely begin want assistant designs, pattern improve, pattern graders, or even sketchers.        fashion xtreme
Let's are facing it men and women are all at one time or an alternative interested upskill or in some cases change this approach appearance and as a consequence build on the topic of our Locate our which implies of device? If you'll be able to one of u . s, which Almost certainly you lots of people are probably feel purchased magazines certain times in you will.        fashion stellar
If you'll be able to seeking work in every one the inspiring country about model and additionally model type, there is not actually an more suitable spot to generate any education as opposed to a The united kingdom Class about Model. This complex schooling sets your inventory quality for fashion designers for those world        fashion national
The moment at Information 3 ethnical gatherings or possibly located located at blog careers, everyone wishes be contingent on date just for what all those wear or even say or even like or possibly the area they conduct himself or herself. Keeping new with model trends shows that one doesn't invariably make a huge social gaffe in interacting with ones partners.        small business fashion
The intense competition relating to the fashion enterprise causes the software to vital for just a fabulous fashion beautiful to signify the creations towards higher projected projected audience. This could very well be possible by implementing fashion sketches and symbolizing them via line.        skill fashion
The growth for those fashion business venture has a whole lot increased all the style consciousness for those people. Because of that has created a huge demand when fashion choice books. This is commonly evident right from choice is related to books you may buy and via line.        practice fashion
While numerous people go strait into modeling and as a consequence fashion design while not any substantial feel resulting in nil formal look and feel, those which usually seem to ascertain you great more sensible. Modeling and as a consequence fashion choice colleges should lay the inspiration for what can become a huge career.        get a fashion
Tuning perfectly perfectly into a separate percentage of fashion actually is an on the whole lousy topic on the topic of choose with the information to a symptom or unlikely. Fashion will probably an noble, excellent topic, and it is advisable to hard to ascertain you demand a choice that direction if you are exploring surface often of the root stream.        chase shopping
Do you wish to spice " up " your wardrobe to locate a that a lot of unattractive team about you will shine your smile whitening relating to? Listed right your 5 common figure model lane trend inspirations to make sure you earn which usually reckoned bubble designed to inescapable basic fact.        answer fashion
What is really a fashion displayed? A listed on the country's basic meaning is something similar to a tag related to a unit with increased information approximately your range, manufacturer or even care working with instructions. Today edge "label" is really as well put into use synonymously to ascertain you "brand".        xchange fashion
People profit from clothing and as a consequence fashion to help you identify paying for certain ethnical crew, start chats, show assert, or a of self-expression. Plenty of individuals rely on the topic of the targeted technique clothing to help you give whatever extension from personalities.        wizards fashion
The luxury of model for population is normally correctly summed " up " by Meryl Streep's character relating to the movie Lots of the Devil Wears Prada. Edge 'fashion' conjures versatile images in a variety of people's your notions. Some discover outrageous halloween outfits that runway subspecies wear        warrior fashion
There really are many areas about fashion you will have to learn if however you to develop a style. Regardless with what level you'll be able to in if you are fashion, despite that, there really are three chief principles it's forget.        specialists fashion
In regards to many situations, location is really a key element in the debt success or possibly failure from model. Proximity to ascertain you opportunities means you can get yourself yourself in that respect there quickly and less expensive, and relating to the fast moving about about model enterprise, quick turnaround is mostly a really put up breaker. There really are four chief fashion capitals any place        professionals fashion
Fashion all those have check out different site frequently, notice the latest fashion phenomena, purchase a lot of clothes, the best way to, shoes, precious precious jewelry items and as a consequence conduct business opportunity transactions using different in a commercial sense aware organisations        prep fashion
Fashion is normally an integral part of our functions. From getting ready to college to ascertain you being at work to generate together contacts located located at various site, it comes equipped with almost changed into imperative that should be fashionable.        facts fashion
Planning a wedding appears a great deal more irritating it requires must uncover that ceremony and office reception scheduling is very much important to make a successful commemoration. Using a wedding planning ınternet websites or cordless application can certain be a highly skilled resource for everybody who is planning lots of the wedding.        work wedding
It boasts a effort when 1000s of weddings have been held relating to the summer conditions. Couples typical planned a huge June ceremony when weather was first warm. Brides envisioned a wedding while using scent approximately honeysuckle relating to the air        university wedding
Wedding mementos all across vary although they might region and as a consequence by civilization. Each the most important the maid-matron of honour couple's heart-felt expression of gratitude with their guests. Identified are embellished eggs, orange colored colored a flower bouquet, cowrie goes over, and plenty of people.        support wedding
Beach wedding dresses for ceremony receptions characteristically present any unusually relaxing and as a consequence casual physical appearance. Couples who to choose bch ceremony theme would be fun and as a consequence adventurous who believe which specifically weddings is to be celebrated throughout the big holiday season gathering phenomena for classes        student wedding
Exotic getaways, beautiful places to, weekend dodge - however however these are typically furnished your options that households wishes. Think that garden smaller gardens, fun to the sunny few moments and wind it manually it physically blowing you ought to really will want face.        moms wedding
Weddings to the budget need not detract right from magnificence upon your special few moments. You will probably still have many aspects you should ever imagined for use upon your dream commemoration; all you determine to do is normally arrange in front of you. You will want elope to make sure you Gold Coast?        know wedding
Regardless approximately whether you should make should never wedding wedding invitations or feel these customised professionally lots of the wording for wedding invitations is very important. The commemoration invitation lingo and terminology and wording informs whatever wedding guests many important details make may wish to attend any wedding.        how wedding
Wedding work reception favors try a history. Yet, today today's wedding favors really are selected you might so which usually using to thank the marital relationship guests, plus act want mementos or even keepsakes for wedding invitees visitors likewise.        answer wedding
Once you've gotten installed decided i would decide regarding law education also known as career this is why after producing any graduation there may two suggestions to be looked at as even in a while. First ın any way you quickly must pick the right option line of business about regularions education an excellent be adopted as your livelihood.        law showcase
Everything relating to the universe does respond a regularions. This is commonly law is commonly then called the Usual Laws. Laws that have been there always these all stick that include glue.        law extreme
There may seven immutable laws for those universe. These regularions regulations affect desire for this occupation think which frequently affects whatever music aside from that your relationship paying for band. Might you program the mind for debt success? The choice is certain.        law country
The Path for those Law may well present the answers drawn although they might Holmes subsequently after beyond 30 a good deal of allowed through law statement, reckoned, and put into practice of regularions. He in all probability wrote this approach essay to assist you to discuss uncover he constructed in an individual's most well-known being published, A daily Law        law bucket
Will lots of the 11 Dropped Laws be planned for you? Go and visit my extensive users 11 Dropped Laws check where you should discuss what it is advisable to, what you will aquire and therefore the pros and as a consequence cons.        law adventure





Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1