names
stringlengths
1
98
readmes
stringlengths
8
608k
topics
stringlengths
0
442
labels
stringclasses
6 values
machine_learning
machine learning machine learning library for node js you can also use this library in browser demo in browser http joonku com project machine learning api documentation http joonku com project machine learning apidoc installation node js npm install machine learning to use this library in browser include machine learning min js http joonku com js machine learning min js file html script src js machine learning min js script demo in browser http joonku com project machine learning here is the api documentation http joonku com project machine learning apidoc still in progress features logistic regression mlp multi layer perceptron svm support vector machine knn k nearest neighbors k means clustering 3 optimization algorithms hill climbing simulated annealing genetic algorithm decision tree nmf non negative matrix factorization implementation details svm is using sequential minimal optimization smo for its training algorithm for decision tree classification and regression tree cart was used for its building algorithm usage logistic regression javascript var ml require machine learning var x 1 1 1 0 0 0 1 0 1 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 1 1 0 0 0 0 1 1 1 0 var y 1 0 1 0 1 0 0 1 0 1 0 1 var classifier new ml logisticregression input x label y n in 6 n out 2 classifier set log level 1 var training epochs 800 lr 0 01 classifier train lr lr epochs training epochs x 1 1 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 0 console log result classifier predict x mlp multi layer perceptron javascript var ml require machine learning var x 0 4 0 5 0 5 0 0 0 0 5 0 3 0 5 0 0 0 0 4 0 5 0 5 0 0 0 0 0 0 5 0 3 0 5 0 0 0 0 5 0 4 0 5 0 0 0 0 5 0 5 0 5 0 var y 1 0 1 0 1 0 0 1 0 1 0 1 var mlp new ml mlp input x label y n ins 6 n outs 2 hidden layer sizes 4 4 5 mlp set log level 1 0 nothing 1 info 2 warning mlp train lr 0 6 epochs 20000 a 0 5 0 5 0 0 0 0 0 0 0 0 5 0 5 0 0 5 0 5 0 5 0 5 0 5 0 console log mlp predict a svm support vector machine javascript var ml require machine learning var x 0 4 0 5 0 5 0 0 0 0 5 0 3 0 5 0 0 0 01 0 4 0 8 0 5 0 0 1 0 2 1 4 0 5 0 5 0 0 0 1 5 0 3 0 5 0 0 0 0 0 9 1 5 0 0 0 0 0 7 1 5 0 0 0 0 5 0 1 0 9 0 1 8 0 0 8 0 8 0 5 0 0 0 0 0 9 0 5 0 3 0 5 0 2 0 0 0 5 0 4 0 5 0 0 0 0 5 0 5 0 5 0 0 3 0 6 0 7 1 7 1 3 0 7 0 0 0 5 0 3 0 5 0 2 0 0 0 5 0 4 0 5 0 1 0 0 0 5 0 5 0 5 0 01 0 2 0 01 0 5 0 0 0 9 0 0 0 5 0 3 0 5 2 3 0 0 0 5 0 4 0 5 4 0 0 0 5 0 5 0 5 2 var y 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 var svm new ml svm x x y y svm train c 1 1 default 1 0 c in svm tol 1e 5 default 1e 4 higher tolerance higher precision max passes 20 default 20 higher max passes higher precision alpha tol 1e 5 default 1e 5 higher alpha tolerance higher precision kernel type polynomial c 1 d 5 default type gaussian sigma 1 0 type gaussian sigma 0 5 type linear x y type polynomial c 1 d 8 x y c d or you can use your own kernel kernel function vecx vecy return dot vecx vecy console log predict svm predict 1 3 1 7 0 5 0 5 1 5 0 4 knn k nearest neighbors javascript var ml require machine learning var data 1 0 1 0 1 1 1 0 0 0 0 0 1 0 1 1 1 1 1 1 1 0 0 0 0 0 1 0 1 1 1 0 1 1 1 0 1 0 0 0 1 0 1 0 1 1 1 1 1 1 0 0 0 0 1 0 1 1 1 1 1 1 1 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 1 0 1 1 1 0 0 0 0 0 0 0 1 1 1 0 1 1 1 0 0 0 0 0 0 1 1 1 0 1 0 1 1 0 0 0 1 0 1 0 1 1 1 1 0 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 0 0 1 0 var result 23 12 23 23 45 70 123 73 146 158 64 var knn new ml knn data data result result var y knn predict x 0 0 0 0 0 0 0 1 1 1 1 1 1 1 k 3 weightf type gaussian sigma 10 0 default type gaussian sigma 10 0 type none weight 1 or you can use your own weight f weightf function distance return 1 distance distance type euclidean default type euclidean type pearson or you can use your own distance function distance function vecx vecy return math abs dot vecx vecy console log y k means clustering javascript var ml require machine learning var data 1 0 1 0 1 1 1 0 0 0 0 0 1 0 1 1 1 1 1 1 1 0 0 0 0 0 1 0 1 1 1 0 1 1 1 0 1 0 0 0 1 0 1 0 1 1 1 1 1 1 0 0 0 0 1 0 1 1 1 1 1 1 1 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 1 0 1 1 1 0 0 0 0 0 0 0 1 1 1 0 1 1 1 0 0 0 0 0 0 1 1 1 0 1 0 1 1 0 0 0 1 0 1 0 1 1 1 1 0 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 0 0 1 0 var result ml kmeans cluster data data k 4 epochs 100 distance type pearson default type euclidean type pearson or you can use your own distance function distance function vecx vecy return math abs dot vecx vecy console log clusters result clusters console log means result means hill climbing javascript var ml require machine learning var costf function vec var cost 0 for var i 0 i 14 i 15 dimensional vector cost 0 5 i vec i math exp vec i vec i 1 vec i 1 cost 3 vec 14 vec 0 return cost var domain for var i 0 i 15 i domain push 1 70 domain idx 0 minimum of vec idx domain idx 1 maximum of vec idx var vec ml optimize hillclimb domain domain costf costf console log vec vec console log cost costf vec simulated annealing javascript var ml require machine learning var costf function vec var cost 0 for var i 0 i 14 i 15 dimensional vector cost 0 5 i vec i math exp vec i vec i 1 vec i 1 cost 3 vec 14 vec 0 return cost var domain for var i 0 i 15 i domain push 1 70 domain idx 0 minimum of vec idx domain idx 1 maximum of vec idx var vec ml optimize anneal domain domain costf costf temperature 100000 0 cool 0 999 step 4 console log vec vec console log cost costf vec genetic algorithm javascript var ml require machine learning var costf function vec var cost 0 for var i 0 i 14 i 15 dimensional vector cost 0 5 i vec i math exp vec i vec i 1 vec i 1 cost 3 vec 14 vec 0 return cost var domain for var i 0 i 15 i domain push 1 70 domain idx 0 minimum of vec idx domain idx 1 maximum of vec idx var vec ml optimize genetic domain domain costf costf population 50 elite 2 elitism number of elite chromosomes epochs 300 q 0 3 rank based fitness assignment fitness q 1 q rank 1 higher q higher selection pressure console log vec vec console log cost costf vec decision tree javascript reference programming collective intellignece by toby segaran var ml require machine learning var data slashdot usa yes 18 google france yes 23 digg usa yes 24 kiwitobes france yes 23 google uk no 21 direct new zealand no 12 direct uk no 21 google usa no 24 slashdot france yes 19 digg usa no 18 google uk no 18 kiwitobes uk no 19 digg new zealand yes 12 slashdot uk no 21 google uk yes 18 kiwitobes france yes 19 var result none premium basic basic premium none basic premium none none none none basic none basic basic var dt new ml decisiontree data data result result dt build dt print console log classify dt classify direct usa yes 5 dt prune 1 0 1 0 mingain dt print nmf non negative matrix factorization javascript var ml require machine learning var matrix 22 28 49 64 var result ml nmf factorize matrix matrix features 3 epochs 100 console log first matrix result 0 console log second matrix result 1 license the mit license copyright c 2014 joon ku kang lt junku901 gmail com gt permission is hereby granted free of charge to any person obtaining a copy of this software and associated documentation files the software to deal in the software without restriction including without limitation the rights to use copy modify merge publish distribute sublicense and or sell copies of the software and to permit persons to whom the software is furnished to do so subject to the following conditions the above copyright notice and this permission notice shall be included in all copies or substantial portions of the software the software is provided as is without warranty of any kind express or implied including but not limited to the warranties of merchantability fitness for a particular purpose and noninfringement in no event shall the authors or copyright holders be liable for any claim damages or other liability whether in an action of contract tort or otherwise arising from out of or in connection with the software or the use or other dealings in the software
ai
captcha-break
captcha break captcha break based on opencv2 tesseract ocr and some machine learning algorithm types basic cpp basic cpp python basic python basic basic jpg the simplest captcha breaking csdn cpp csdn cpp python csdn python csdn csdn png captcha from http download csdn net submail cpp submail cpp submail submail png captcha from http submail cn sms weibo cn cpp weibo cn cpp python weibo cn python weibo cn weibo cn png captcha from http login weibo cn login note this website has changed now and the captcha is not available jikexueyuan python jikexueyuan python jikexueyuan jikexueyuan png captcha of http passport jikexueyuan com sso verify weibo com python3 weibo com weibo com weibo com png captcha of http login sina com cn cgi pin php r 8787878 s 0 http login sina com cn cgi pin php r 8787878 s 0 license mit
machine-learning captcha opencv captcha-break captcha-solving
ai
NoteApp
noteapp simple application for writing and managing notes technology stack spring boot spring data jpa mapstruct jwt postgres sql docker junit 5 mockito gradle
java17 jwt oauth2 postgresql spring-boot docker angular
server
imx-iotcore
iot core nxp bsp repository support notice this repository is no longer supported and is now read only the bsp and documentation for the imx6 imx7 and imx8 processors for windows 10 iot is now published by nxp here https www nxp com design software embedded software windows 10 iot core for i mx applications processors imxwin10iot support for the bsp is available in nxp s community forums https community nxp com community imx content filterid contentstatus 5bpublished 5d 7ecategory 5bwindows 5d the following repositories have been archived and made read only on github if you have a fork of any of these repositories they will remain active but no new updates will be supplied by microsoft development has stopped in these repositories and all future work will be released by nxp in their bsp the repositories to be archived are https github com ms iot imx iotcore https github com ms iot u boot https github com ms iot edk2 https github com ms iot imx edk2 platforms https github com ms iot mu platform nxp https github com ms iot mu silicon nxp the nxp bsp only has board support for nxp evk and sabre devices for other previously supported devices contact the manufacturer for further support all compiled firmware binaries in this repository have been removed the sources in this repository can still be built but to generate a bootable image the boot loaders and firmware must be manually built first according to the instructions in the building firmware from source section later in this document windows 10 iot core for nxp i mx processors important please read this section first this code is provided as a public preview it is still under development which means not all platform features are enabled or fully optimized notwithstanding the license attached to this code should not be used in any commercial application at this time for any questions and feedback on how the bsp can better support your targeted solution please contact your microsoft or nxp representative or post to the nxp community https community nxp com community imx this code is available under the mit license license except where stated otherwise such as the imxnetmini driver and opteeclientlib board list soc type board vendor board name board package name i mx 6quad solidrun hummingboard edge hummingboardedge imx6q 2gb i mx 6quad nxp i mx 6quad sabre sabre imx6q 1gb i mx 6quad boundry devices i mx 6quad sabrelite sabrelite imx6q 1gb i mx 6quad via vab 820 vab820 imx6q 1gb i mx 6quadplus nxp i mx 6quadplus sabre sabre imx6qp 1gb i mx 6duallite solidrun hummingboard edge hummingboardedge imx6dl 1gb i mx 6solo solidrun hummingboard edge hummingboardedge imx6s 512mb i mx 6solox udoo neo full udooneo imx6sx 1gb i mx 6solox nxp i mx sx sabre sabre imx6sx 1gb i mx 6ull nxp i mx 6ull evk evk imx6ull 512mb i mx 7dual compulab iot gateway cl som imx7 sbc imx7 clsomimx7 imx7d 1gb i mx 7dual nxp i mx 7dual sabre sabre imx7d 1gb i mx 8m nxp i mx 8m evk nxpevk imx8m 4gb i mx 8m mini nxp i mx 8m mini evk nxpevk imx8m mini 2gb a table of the currently enabled features for each board can be found here documentation board feature list md for hardware issues please contact the hardware vendor building the bsp cloning the repository this repository uses submodules and should be cloned with git clone recurse submodules required tools the following tools are required to build the driver packages and iot core ffu visual studio 2017 windows kits adk sdk wdk and the iot core os packages visual studio 2017 make sure that you install visual studio 2017 before the wdk so that the wdk can install a required plugin download visual studio 2017 https docs microsoft com en us windows hardware drivers other wdk downloads step 1 install visual studio during install select desktop development with c during install select the following in the individual components tab if these options are not available try updating vs2017 to the latest release vc 2017 version 15 9 v14 16 libs for spectre arm vc 2017 version 15 9 v14 16 libs for spectre arm64 vc 2017 version 15 9 v14 16 libs for spectre x86 and x64 visual c compilers and libraries for arm visual c compilers and libraries for arm64 windows kits from windows 10 version 1809 important make sure that any previous versions of the adk and wdk have been uninstalled install adk version 1809 https docs microsoft com en us windows hardware get started adk install other adk downloads install wdk version 1809 https docs microsoft com en us windows hardware drivers other wdk downloads step 2 install the wdk make sure that you allow the visual studio extension to install after the wdk install completes if the wdk installer says it could not find the correct sdk version install sdk version 1809 https developer microsoft com en us windows downloads sdk archive iot core os packages visit the windows iot core downloads https www microsoft com en us software download windows10iotcore page and download windows 10 iot core packages windows 10 iot core version 1809 ltsc open the iso and install windows 10 iot core arm packages msi install windows 10 iot core arm64 packages msi for arm64 builds one time environment setup test certificates must be installed to generate driver packages on a development machine 1 open an administrator command prompt 2 navigate to your newly cloned repo and into the folder imx iotcore build tools 3 launch startbuildenv bat 4 run setupcertificate bat to install the test certificates 5 make sure that submodules have been cloned if you cloned with recurse submodules then this step won t output anything git submodule init git submodule update ffu generation 1 launch visual studio 2017 as administrator 2 open the solution imxplatform sln imx iotcore build solution imxplatform 3 change the build type from debug to release change the build flavor from arm to arm64 if building for imx8 4 to build press ctrl shift b or choose build build solution from menu this will compile all driver packages then generate the ffu 5 depending on the speed of the build machine ffu generation may take around 10 20 minutes 6 after a successful build the new ffu will be located in imx iotcore build solution imxplatform build ffu hummingboardedge imx6q 2gb for arm builds and imx iotcore build solution imxplatform build ffu nxpevk imx8m 4gb for arm64 builds 7 the ffu contains firmware components for the hummingboard edge with the quad core som or nxp imx8m evk with i mx8m quad core som depending on build flavor this firmware is automatically applied to the sd card during the ffu imaging process building the ffu for other boards in order to build an ffu for another board you ll need to modify generateffu bat in the build scripts folder of the solution explorer comment out the default hummingboardedge imx6q 2gb or nxpevk imx8m 4gb builds with rem and uncomment any other boards you want to build bat rem cd d batch home rem echo building hummingboardedge imx6q 2gb ffu rem call buildimage hummingboardedge imx6q 2gb hummingboardedge imx6q 2gb testoeminput xml cd d batch home echo building sabre imx6q 1gb ffu call buildimage sabre imx6q 1gb sabre imx6q 1gb testoeminput xml deploy the ffu follow the instructions in the iot core manufacturing guide https docs microsoft com en us windows hardware manufacture iot create a basic image span idflashanimagespanflash the image to a memory card to flash the ffu to an sd card using the windows iot core dashboard installing to an emmc follow the instructions in the booting winpe and flashing emmc documentation winpe mmc md document adding a new board follow the instructions in the adding a new board documentation newboard md document adding a new driver follow the instructions in the adding a new driver documentation adding drivers md document building the ffu with the iot adk addonkit 1 build the generatebsp project to create a bsp folder in the root of the repository 2 clone the iot adk addonkit https github com ms iot iot adk addonkit 3 follow the create a basic image instructions https docs microsoft com en us windows hardware manufacture iot create a basic image from the iot core manufacturing guide with the following changes when importing a bsp use one of the board names from the newly generated bsp folder in the imx iotcore repo import iotbsp hummingboardedge imx6q 2gb path to imx iotcore bsp when creating a product use the same board name from the bsp import add iotproduct producta hummingboardedge imx6q 2gb building firmware from source building custom firmware into an ffu requires additional steps building and updating firmware for arm documentation build firmware md building and updating firmware for arm64 documentation build arm64 firmware md firmware boot documentation documentation boot md firmware signing documentation for arm documentation signing firmware md testing your bsp documentation tests md creating windows pe images and booting from emmc documentation winpe mmc md the firmware code can be found in the following repos repository dependency graph documentation repository graph png u boot https github com ms iot u boot git op tee https github com ms iot optee os git uefi for arm https github com tianocore edk2 git https github com ms iot imx edk2 platforms git uefi for arm64 https github com ms iot mu platform nxp git https github com ms iot mu silicon nxp git https github com microsoft mu basecore git https github com microsoft mu plus git https github com microsoft mu silicon arm tiano git https github com microsoft mu tiano plus git https github com openssl openssl arm trusted firmware for arm64 https source codeaurora org external imx imx atf imx mkimage for arm64 https source codeaurora org external imx imx mkimage firmware tpm2 0 https github com microsoft ms tpm 20 ref directories bsp generated at build time contains board support packages for the iot adk addonkit https github com ms iot iot adk addonkit build contains board packages build scripts and the vs2017 solution file driver contains driver sources documentation contains usage documentation hal contains hal extension sources info for more information about windows 10 iot core see our online documentation here http windowsondevices com we are working hard to improve windows 10 iot core and deeply value any feedback we get this project has adopted the microsoft open source code of conduct https opensource microsoft com codeofconduct for more information see the code of conduct faq https opensource microsoft com codeofconduct faq or contact opencode microsoft com mailto opencode microsoft com with any additional questions or comments
server
gotlcp
go tlcp github ci https github com trisia gotlcp actions workflows go yml badge svg https github com trisia gotlcp actions workflows go yml documentation https godoc org gitee com trisia gotlcp status svg https pkg go dev gitee com trisia gotlcp github go mod go version https img shields io github go mod go version trisia gotlcp github tag latest semver https img shields io github v tag trisia gotlcp information security technology t ransport l ayer c ryptography p rotocol tlcp gotlcp go tlcp gmssl gb t 38636 2020 gotlcp tlcp tlcp 1 ecc sm4 gcm sm3 2 ecc sm4 cbc sm3 3 ecdhe sm4 gcm sm3 4 ecdhe sm4 cbc sm3 gotlcp go tlcp md clone https gitee com trisia gotlcp https gitee com trisia gotlcp sm emmansun gmsm https github com emmansun gmsm cpu tlcp go 1 19 golang src crypto tls https github com golang go tree go1 19 src crypto tls gotlcp go https go dev go gotlcp go 1 16 gotlcp bash go get u gitee com trisia gotlcp gotlcp api gotlcp go package main import fmt gitee com trisia gotlcp tlcp func main conn err tlcp dial tcp 127 0 0 1 8443 tlcp config insecureskipverify true if err nil panic err defer conn close buff make byte 516 n err conn read buff if err nil panic err fmt printf s n buff n tlcp insecureskipverify quickstart client main go example quickstart client main go go package main import gitee com trisia gotlcp tlcp net func main config tlcp config certificates tlcp certificate sigcert enccert listen err tlcp listen tcp 8443 config if err nil panic err var conn net conn for conn err listen accept if err nil panic err conn write byte hello go tlcp conn close quickstart server main go example quickstart server main go tlcp tls gotlcp pa readme md tlcp doc abouttlcp md gotlcp doc certandkey md gotlcp doc clientconfig md gotlcp doc serverconfig md gotlcp https doc httpsconfig md gotlcp pa readme md releasenote md
server
Machine-Learning-101
machine learning 101 this repo is my own personal guide to machine learning and contains knowledge from a variety of courses blog posts and research papers that i have encountered that have been useful to me on my journey to becoming a machine learning engineer a detailed list of these links can be found at the bottom of this page usage license there isn t one please feel free to use these notes and code templates for your own products everything here is free to utilise as you see fit the majority of these notes and findings will be placed within the wiki please pick the appropriate link from the table of contents below to navigate to the area of your choice coding language libraries used all coding templates are written in python 3 6 and the ide used to create them was using anaconda s spyder you can download anaconda here https www anaconda com download the machine learning models are coded using the following libraries scikit learn numpy matplotlib and pandas the deep learning models are coded using the following libraries tensorflow keras pytorch the supervised models used keras unsupervised use pytorch the computer vision models are coded using the following libraries opencv for face recognition and smile detection pytorch for object detection gans the artificial intelligence models are coded using the following libraries pytorch for all models the natural language processing models are coded using the following libraries tensorflow table of contents the sections consist of machine learning deep learning computer vision artificial intelligence natural language processing these are split into multiple subsections that link to wiki pages for further information machine learning data preprocessing https github com achronus machine learning 101 wiki data preprocessing regression models https github com achronus machine learning 101 wiki regression models classification models https github com achronus machine learning 101 wiki classification models clustering models https github com achronus machine learning 101 wiki clustering models association rule learning https github com achronus machine learning 101 wiki association rule learning reinforcement learning https github com achronus machine learning 101 wiki reinforcement learning dimensionality reduction https github com achronus machine learning 101 wiki dimensionality reduction model selection https github com achronus machine learning 101 wiki model selection xgboost https github com achronus machine learning 101 wiki xgboost deep learning supervised deep learning models https github com achronus machine learning 101 wiki types of deep learning artificial neural networks ann https github com achronus machine learning 101 wiki artificial neural networks ann convolutional neural networks cnn https github com achronus machine learning 101 wiki convolutional neural networks cnn recurrent neural networks rnn https github com achronus machine learning 101 wiki recurrent neural networks rnn unsupervised deep learning models https github com achronus machine learning 101 wiki types of deep learning self organizing maps som https github com achronus machine learning 101 wiki self organizing maps som boltzmann machines bm https github com achronus machine learning 101 wiki boltzmann machines bm autoencoders ae https github com achronus machine learning 101 wiki autoencoders ae computer vision face recognition https github com achronus machine learning 101 wiki face recognition object detection https github com achronus machine learning 101 wiki object detection generative adversarial networks gans https github com achronus machine learning 101 wiki generative adversarial networks gans artificial intelligence q learning https github com achronus machine learning 101 wiki q learning deep q learning https github com achronus machine learning 101 wiki deep q learning deep convolutional q learning https github com achronus machine learning 101 wiki deep convolutional q learning asynchronous advantage actor critic a3c https github com achronus machine learning 101 wiki asynchronous advantage actor critic a3c natural language processing deep natural language processing https github com achronus machine learning 101 wiki deep natural language processing references here is the list of references for the information within this repo courses i highly recommend these courses and i just want to say a huge thank you to the superdatascience team kirill eremenko hadelin de ponteves for making these incredible courses all courses come with an intuitive understanding and coding examples for each model machine learning a z https www udemy com machinelearning deep learning a z https www udemy com deeplearning deep learning computer vision a z https www udemy com computer vision a z artificial intelligence a z https www udemy com artificial intelligence az deep learning natural language processing a z https www udemy com chatbot blog posts thank you to all writers of the blog posts that are linked within this section these have been a massive help to understanding core concepts of the machine learning world machine learning feature scaling https sebastianraschka com articles 2014 about feature scaling html gradient descent https iamtrask github io 2015 07 27 python network part2 overfitting https elitedatascience com overfitting in machine learning bias variance tradeoff https elitedatascience com bias variance tradeoff deep learning cross entropy loss https rdipietro github io friendly intro to cross entropy loss understanding convolutional neural networks cnns https adeshpande3 github io adeshpande3 github io the 9 deep learning papers you need to know about html understanding long short term memory lstm networks http colah github io posts 2015 08 understanding lstms attention and augmented recurrent neural networks https distill pub 2016 augmented rnns autoencoders https probablydance com 2016 04 30 neural networks are impressively good at compression autoencoders in keras https blog keras io building autoencoders in keras html brief overview of sparse autoencoders http www ericlwilkinson com blog 2014 11 19 deep learning sparse autoencoders deep learning tutorial sparse autoencoder http mccormickml com 2014 05 30 deep learning tutorial sparse autoencoder computer vision generative adversarial networks gans https hackernoon com how do gans intuitively work 2dda07f247a1 artificial intelligence simple reinforcement learning with tensorflow q learning https medium com emergent future simple reinforcement learning with tensorflow part 0 q learning with tables and neural networks d195264329d0 a3c implementation https jaromiru com 2017 03 26 lets make an a3c implementation a3c theory https jaromiru com 2017 02 16 lets make an a3c theory simple reinforcement learning with tensorflow a3c https medium com emergent future simple reinforcement learning with tensorflow part 8 asynchronous actor critic agents a3c c88f72a5e9f2 research papers deep learning introduction to convolutional neural networks https acius co uk wp content themes acius machine learning research papers cnn pdf max pooling https acius co uk wp content themes acius machine learning research papers maxpooling pdf contrastive divergence https www cs toronto edu hinton absps fastnc pdf adam a method for stochastic optimization https arxiv org pdf 1412 6980 pdf reducing dimensionality of data with neural networks https www cs toronto edu hinton science pdf deconvolutional networks http www matthewzeiler com wp content uploads 2017 07 iccv2011 pdf denoising autoencoders https www iro umontreal ca vincentp publications denoising autoencoders tr1316 pdf contractive auto encoders explicit invariance during feature extraction http www icml 2011 org papers 455 icmlpaper pdf stacked denoising autoencoders http www jmlr org papers volume11 vincent10a vincent10a pdf deep boltzmann machines http www utstat toronto edu rsalakhu papers dbm pdf energy based learning http yann lecun com exdb publis pdf lecun 06 pdf an introduction to restricted boltzmann machines https acius co uk wp content themes acius machine learning research papers restricted boltzmann machines pdf greedy layer wise training of deep networks http www iro umontreal ca lisa pointeurs bengionips2006all pdf the wake sleep algorithm for unsupervised neural networks http www cs toronto edu fritz absps ws pdf dropout a simple way to prevent neural networks from overfitting http jmlr org papers volume15 srivastava14a old srivastava14a pdf computer vision single shot multibox detector ssd https www cs unc edu wliu papers ssd pdf a general framework for object detection https acius co uk wp content themes acius machine learning research papers face detection pdf boosting image retrieval http citeseerx ist psu edu viewdoc download doi 10 1 1 136 2419 rep rep1 type pdf artificial intelligence markov decision processes concepts and algorithms https pdfs semanticscholar org 968b ab782e52faf0f7957ca0f38b9e9078454afe pdf learning to predict by the methods of temporal differences https link springer com content pdf 10 1023 2fa 3a1022633531479 pdf prioritized experience replay https arxiv org pdf 1511 05952 pdf adaptive greedy exploration in reinforcement learning based on value differences http www tokic com www tokicm publikationen papers adaptiveepsilongreedyexploration pdf asynchronous methods for deep reinforcement learning https arxiv org pdf 1602 01783 pdf high dimensional continuous control using generalized advantage estimation https arxiv org pdf 1506 02438 pdf nlp effective approaches to attention based neural machine translation http aclweb org anthology d15 1166 additional resources here are a few websites that have free datasets that can be used in your own machine learning models uci machine learning repository http archive ics uci edu ml index php a website home to over 400 datasets for use within the machine learning community kaggle datasets https www kaggle com datasets kaggle is an incredible website that brings the data scientists community together grouplens movie quotes https grouplens org datasets movielens this dataset is used within the deep learning boltzmann machine autoencoder models pascal visual object classes http host robots ox ac uk pascal voc this dataset is used within the computer vision object detection section
ai
mlbot_tutorial
mlbot git clone bash git clone https github com richmanbtc mlbot tutorial git jupyter bash cd mlbot tutorial docker compose up d jupyter http localhost 8888 jupyter work tutorial ipynb python https qiita com richmanbtc items 05916384bf9d2b1e2f35
ai
pinephone-nuttx
apache nuttx rtos on pinephone https lupyuen github io images lvgl2 title jpg apache nuttx rtos for pinephone daily build of nuttx for pinephone https github com lupyuen pinephone nuttx actions workflows pinephone yml badge svg https github com lupyuen pinephone nuttx actions workflows pinephone yml apache nuttx is a lightweight real time operating system rtos that runs on pine64 pinephone read the articles nuttx rtos for pinephone what is it https lupyuen github io articles what watch the demo on youtube https youtu be kgi 0yk1vws nuttx rtos for pinephone the first year https lupyuen github io articles pinephone2 watch the presentation on google drive https drive google com file d 1wl 6hvjhtqkthrmzidbpcos6934fqleq view usp drive link pinephone display nuttx rtos for pinephone mipi display serial interface https lupyuen github io articles dsi3 nuttx rtos for pinephone display engine https lupyuen github io articles de3 lcd touch panel nuttx rtos for pinephone lcd panel https lupyuen github io articles lcd nuttx rtos for pinephone framebuffer https lupyuen github io articles fb nuttx rtos for pinephone touch panel https lupyuen github io articles touch2 lvgl graphics nuttx rtos for pinephone boot to lvgl https lupyuen github io articles lvgl2 nuttx rtos for pinephone lvgl terminal for nsh shell https lupyuen github io articles terminal possibly lvgl in webassembly with zig compiler https lupyuen github io articles lvgl3 nuttx rtos for pinephone feature phone ui in lvgl zig and webassembly https lupyuen github io articles lvgl4 accelerometer and gyroscope inside a smartphone accelerometer pinephone with nuttx rtos https www hackster io lupyuen inside a smartphone accelerometer pinephone with nuttx rtos b92b58 4g lte modem nuttx rtos for pinephone 4g lte modem https lupyuen github io articles lte nuttx rtos for pinephone phone calls and text messages https lupyuen github io articles lte2 gpio nuttx rtos for pinephone blinking the leds https lupyuen github io articles pio uart nuttx rtos for pinephone uart driver https lupyuen github io articles serial usb nuttx rtos for pinephone simpler usb with ehci enhanced host controller interface https lupyuen github io articles usb3 nuttx rtos for pinephone exploring usb https lupyuen github io articles usb2 power management integrated circuit power management integrated circuit pmic https lupyuen github io articles lcd power on lcd panel interrupts nuttx rtos for pinephone fixing the interrupts https lupyuen github io articles interrupt boot sequence pinephone boots nuttx https lupyuen github io articles unicorn2 pinephone boots nuttx pinephone continues booting nuttx https lupyuen github io articles unicorn2 pinephone continues booting nuttx arm64 emulation possibly emulate pinephone with unicorn emulator https lupyuen github io articles unicorn clickable call graph for apache nuttx real time operating system https lupyuen github io articles unicorn2 build and boot nuttx build apache nuttx rtos for pinephone https lupyuen github io articles lvgl2 appendix build apache nuttx rtos for pinephone boot apache nuttx rtos on pinephone https lupyuen github io articles lvgl2 appendix boot apache nuttx rtos on pinephone download nuttx binaries apache nuttx rtos for pinephone boot to lvgl terminal https github com lupyuen2 wip pinephone nuttx releases tag nuttx 12 0 1 apache nuttx rtos for pinephone boot to lvgl demo https github com lupyuen2 wip pinephone nuttx releases tag nuttx 12 0 0 how it started apache nuttx rtos on arm cortex a53 how it might run on pinephone https lupyuen github io articles arm pinephone boots apache nuttx rtos https lupyuen github io articles uboot preparing a pull request for apache nuttx rtos https lupyuen github io articles pr older articles understanding pinephone s display mipi dsi https lupyuen github io articles dsi nuttx rtos for pinephone display driver in zig https lupyuen github io articles dsi2 rendering pinephone s display de and tcon0 https lupyuen github io articles de nuttx rtos for pinephone render graphics in zig https lupyuen github io articles de2 can ai help apache nuttx rtos trips chatgpt https lupyuen github io articles chatgpt what s nuttx why run it on pinephone if we re new to nuttx here s a gentle intro nuttx rtos for pinephone what is it https lupyuen github io articles what the following is a journal that documents the porting of nuttx to pinephone it looks super messy and unstructured please read the articles at the top of this page instead start doctoc generated toc please keep comment here to allow auto update don t edit this section instead re run doctoc to update table of contents nuttx automated daily build for pinephone nuttx automated daily build for pinephone nuttx on qemu nuttx on qemu download nuttx download nuttx download toolchain download toolchain download qemu download qemu build nuttx single core build nuttx single core test nuttx with qemu single core test nuttx with qemu single core build nuttx multi core build nuttx multi core test nuttx with qemu multi core test nuttx with qemu multi core inside nuttx for cortex a53 inside nuttx for cortex a53 nuttx image nuttx image pinephone image pinephone image will nuttx boot on pinephone will nuttx boot on pinephone uart driver for nuttx uart driver for nuttx garbled console output garbled console output configure uart port configure uart port test uart3 port test uart3 port boot nuttx on pinephone boot nuttx on pinephone pinephone u boot log pinephone u boot log nuttx boots on pinephone nuttx boots on pinephone nuttx boot log nuttx boot log interrupt controller interrupt controller multi core smp multi core smp system timer system timer timer interrupt isn t handled timer interrupt isnt handled arm64 vector table is wrong arm64 vector table is wrong test pinephone gic with qemu test pinephone gic with qemu handling interrupts handling interrupts dump interrupt vector table dump interrupt vector table interrupt debugging interrupt debugging memory map memory map boot sequence boot sequence boot debugging boot debugging uart interrupts uart interrupts backlight and leds backlight and leds basic blinks the leds basic blinks the leds nuttx drivers for allwinner a64 pio and pinephone leds nuttx drivers for allwinner a64 pio and pinephone leds pinephone device tree pinephone device tree lcd controller tcon0 lcd controller tcon0 mipi dsi interface mipi dsi interface display phy display phy backlight pwm backlight pwm led led framebuffer framebuffer display engine display engine touch panel touch panel video codec video codec gpu gpu deinterlace deinterlace zig on pinephone zig on pinephone pinephone display driver pinephone display driver zig driver for pinephone mipi dsi zig driver for pinephone mipi dsi compose mipi dsi long packet in zig compose mipi dsi long packet in zig compose mipi dsi short packet in zig compose mipi dsi short packet in zig compute error correction code in zig compute error correction code in zig compute cyclic redundancy check in zig compute cyclic redundancy check in zig test pinephone mipi dsi driver with qemu test pinephone mipi dsi driver with qemu test case for pinephone mipi dsi driver test case for pinephone mipi dsi driver initialise st7703 lcd controller in zig initialise st7703 lcd controller in zig test zig display driver for pinephone test zig display driver for pinephone display engine in allwinner a64 display engine in allwinner a64 display engine mixers display engine mixers render colours render colours render mandelbrot set render mandelbrot set animate madelbrot set animate madelbrot set render square overlay render square overlay render circle overlay render circle overlay test pinephone display engine test pinephone display engine display engine usage display engine usage other display engine features other display engine features timing controller in allwinner a64 timing controller in allwinner a64 zig driver for pinephone display engine zig driver for pinephone display engine test zig driver for pinephone display engine test zig driver for pinephone display engine complete pinephone display driver in zig complete pinephone display driver in zig add mipi dsi to nuttx kernel add mipi dsi to nuttx kernel test mipi dsi for nuttx kernel test mipi dsi for nuttx kernel test timing controller tcon0 driver for nuttx kernel test timing controller tcon0 driver for nuttx kernel test display engine driver for nuttx kernel test display engine driver for nuttx kernel missing pixels in pinephone image missing pixels in pinephone image fix missing pixels in pinephone image fix missing pixels in pinephone image merge pinephone into nuttx mainline merge pinephone into nuttx mainline lvgl on nuttx on pinephone lvgl on nuttx on pinephone lvgl settings for pinephone lvgl settings for pinephone lvgl demos on pinephone lvgl demos on pinephone boot to lvgl on pinephone boot to lvgl on pinephone pinephone touch panel pinephone touch panel handle interrupts from touch panel handle interrupts from touch panel nuttx touch panel driver for pinephone nuttx touch panel driver for pinephone lvgl terminal for nuttx lvgl terminal for nuttx pipe a command to nuttx nsh shell pipe a command to nuttx nsh shell poll for nsh output poll for nsh output timer for lvgl terminal timer for lvgl terminal poll for nsh output in lvgl timer poll for nsh output in lvgl timer render terminal with lvgl widgets render terminal with lvgl widgets set lvgl terminal font to monospace set lvgl terminal font to monospace handle input from lvgl keyboard handle input from lvgl keyboard handle output from nsh shell handle output from nsh shell pinephone on nuttx becomes a feature phone pinephone on nuttx becomes a feature phone usb driver and lte modem driver for pinephone usb driver and lte modem driver for pinephone 4g lte modem 4g lte modem outgoing phone call outgoing phone call send sms in text mode send sms in text mode send sms in pdu mode send sms in pdu mode sms pdu format sms pdu format sms text mode vs pdu mode sms text mode vs pdu mode pinephone accelerometer and gyroscope pinephone accelerometer and gyroscope compile nuttx on android with termux compile nuttx on android with termux emulate pinephone with unicorn emulator emulate pinephone with unicorn emulator simulate pinephone ui with zig lvgl and webassembly simulate pinephone ui with zig lvgl and webassembly apache nuttx rtos for pinephone pro apache nuttx rtos for pinephone pro test logs test logs usb devices on pinephone usb devices on pinephone testing zig backlight driver on pinephone testing zig backlight driver on pinephone testing zig display engine driver on pinephone testing zig display engine driver on pinephone testing zig display engine driver on qemu testing zig display engine driver on qemu testing p boot display engine on pinephone testing p boot display engine on pinephone testing nuttx zig driver for mipi dsi on pinephone testing nuttx zig driver for mipi dsi on pinephone testing nuttx zig driver for mipi dsi on qemu testing nuttx zig driver for mipi dsi on qemu testing p boot driver for mipi dsi with logging testing p boot driver for mipi dsi with logging testing p boot driver for mipi dsi without logging testing p boot driver for mipi dsi without logging testing zig on pinephone testing zig on pinephone testing gic version 2 on pinephone testing gic version 2 on pinephone testing gic version 2 on qemu testing gic version 2 on qemu boot files for manjaro phosh on pinephone boot files for manjaro phosh on pinephone gic register dump gic register dump end doctoc generated toc please keep comment here to allow auto update nuttx automated daily build for pinephone nuttx for pinephone is now built automatically every day via github actions the daily releases are available here pinephone nuttx releases https github com lupyuen pinephone nuttx releases nuttx hash https github com lupyuen pinephone nuttx releases download pinephone nuttx 2023 08 12 nuttx hash contains the commit hash of the nuttx kernel and nuttx apps repos text nuttx source https github com apache nuttx tree 4bb30ab0c136dc36182cf43995337fc1d44f0a37 nuttx apps https github com apache nuttx apps tree 5a4e9e4389264522d02dae78bcb3f9813743300f the github actions workflow is here pinephone yml https github com lupyuen pinephone nuttx blob main github workflows pinephone yml nuttx on qemu note this section is outdated please check this article for updates apache nuttx rtos on arm cortex a53 how it might run on pinephone https lupyuen github io articles arm apache nuttx rtos https nuttx apache org docs latest now runs on arm cortex a53 with multi core smp nuttx boards arm64 qemu qemu a53 https github com apache incubator nuttx tree master boards arm64 qemu qemu a53 pinephone is based on allwinner a64 soc https linux sunxi org a64 with 4 cores of arm cortex a53 pinephone wiki https wiki pine64 org index php pinephone we start with nuttx mainline run it on qemu then mod it for pinephone download nuttx download the source code for nuttx mainline which supports arm cortex a53 bash create nuttx directory mkdir nuttx cd nuttx download nuttx os git clone recursive branch arm64 https github com lupyuen incubator nuttx nuttx download nuttx apps git clone recursive branch arm64 https github com lupyuen incubator nuttx apps apps we ll build nuttx inside nuttx nuttx cd nuttx install the build prerequisites skip the risc v toolchain install prerequisites https lupyuen github io articles nuttx install prerequisites download toolchain download the arm toolchain for aarch64 elf bare metal target aarch64 none elf arm gnu toolchain downloads https developer arm com downloads arm gnu toolchain downloads for linux x64 and wsl gcc arm 11 2 2022 02 x86 64 aarch64 none elf tar xz https developer arm com media files downloads gnu 11 2 2022 02 binrel gcc arm 11 2 2022 02 x86 64 aarch64 none elf tar xz for macos arm gnu toolchain 11 3 rel1 darwin x86 64 aarch64 none elf pkg https developer arm com media files downloads gnu 11 3 rel1 binrel arm gnu toolchain 11 3 rel1 darwin x86 64 aarch64 none elf pkg i don t recommend building nuttx on plain old windows cmd please use wsl instead add it to the path bash for linux x64 and wsl export path path home gcc arm 11 2 2022 02 x86 64 aarch64 none elf bin for macos export path path applications armgnutoolchain 11 3 rel1 aarch64 none elf bin check the toolchain bash aarch64 none elf gcc v based on the instructions here https github com apache incubator nuttx tree master boards arm64 qemu qemu a53 download qemu download and install qemu download qemu https www qemu org download for macos we may use brew bash brew install qemu build nuttx single core first we build nuttx for a single core of arm cortex a53 bash configure nuttx for single core tools configure sh l qemu a53 nsh build nuttx make dump the disassembly to nuttx s aarch64 none elf objdump t s demangle line numbers wide nuttx nuttx s 2 1 the nuttx output files may be found here nuttx for arm cortex a53 single core https github com lupyuen pinephone nuttx releases tag v1 0 1 test nuttx with qemu single core this is how we test nuttx on qemu with a single core of arm cortex a53 bash start qemu single core with nuttx qemu system aarch64 cpu cortex a53 nographic machine virt virtualization on gic version 3 net none chardev stdio id con mux on serial chardev con mon chardev con mode readline kernel nuttx here s nuttx with a single core running on qemu text ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x402c4000 heap size 0x7d3c000 gic validate dist version gicv3 version detect gic validate dist version gicd typer 0x37a0007 gic validate dist version 224 spis implemented gic validate dist version 0 extended spis implemented gic validate dist version distributor has no range selector support gic validate redist version gicd typer 0x1000011 gic validate redist version 16 ppis implemented gic validate redist version no vlpi support no direct lpi support up timer initialize up timer initialize cp15 timer s running at 62 50mhz cycle 62500 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x402a7000 einit 0x402a7000 stext 0x40280000 etext 0x402a8000 nsh sysinit fopen failed 2 nsh mkfatfs command not found nuttshell nsh nuttx 10 3 0 rc2 nsh nx start cpu0 beginning idle loop nsh help help usage help v cmd cd dmesg help mount rmdir true xd cp echo hexdump mv set truncate cmp exec kill printf sleep uname basename dirname exit ls ps source umount break dd false mkdir pwd test unset cat df free mkrd rm time usleep builtin apps getprime hello nsh ostest sh nsh uname a nuttx 10 3 0 rc2 1e8f2a8 aug 23 2022 07 04 54 arm64 qemu a53 nsh hello task spawn name hello entry 0x4029b594 file actions 0x402c9580 attr 0x402c9588 argv 0x402c96d0 spawn execattrs setting policy 2 priority 100 for pid 3 hello world nsh ls dev etc proc nsh ls dev dev console null ram0 ram2 ttys0 zero nsh ls proc proc 0 1 2 meminfo memdump fs self uptime version nsh ls etc etc init d nsh ls etc init d etc init d rcs nsh cat etc init d rcs create a ramdisk and mount it at tmp mkrd m 2 s 512 1024 mkfatfs dev ram2 mount t vfat dev ram2 tmp nuttx is posix compliant https nuttx apache org docs latest introduction inviolables html so the developer experience feels very much like linux but much smaller and nuttx runs everything in ram no file system needed for now build nuttx multi core from single core to multi core now we build nuttx for 4 cores of arm cortex a53 bash erase the nuttx configuration make distclean configure nuttx for 4 cores tools configure sh l qemu a53 nsh smp build nuttx make dump the disassembly to nuttx s aarch64 none elf objdump t s demangle line numbers wide nuttx nuttx s 2 1 the nuttx output files may be found here nuttx for arm cortex a53 multi core https github com lupyuen pinephone nuttx releases tag v1 0 0 test nuttx with qemu multi core and this is how we test nuttx on qemu with 4 cores of arm cortex a53 bash start qemu 4 cores with nuttx qemu system aarch64 smp 4 cpu cortex a53 nographic machine virt virtualization on gic version 3 net none chardev stdio id con mux on serial chardev con mon chardev con mode readline kernel nuttx note that smp is set to 4 symmetric multi processing https developer arm com documentation den0024 a multi core processors multi processing systems symmetric multi processing lang en here s nuttx with 4 cores running on qemu text ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize cpu0 psci detect detected psci v1 1 cpu0 nx start entry cpu0 up allocate heap heap start 0x0x402db000 heap size 0x7d25000 cpu0 gic validate dist version gicv3 version detect cpu0 gic validate dist version gicd typer 0x37a0007 cpu0 gic validate dist version 224 spis implemented cpu0 gic validate dist version 0 extended spis implemented cpu0 gic validate dist version distributor has no range selector support cpu0 gic validate redist version gicd typer 0x1000001 cpu0 gic validate redist version 16 ppis implemented cpu0 gic validate redist version no vlpi support no direct lpi support cpu0 up timer initialize up timer initialize cp15 timer s running at 62 50mhz cycle 62500 cpu0 uart register registering dev console cpu0 uart register registering dev ttys0 ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize cpu1 gic validate redist version gicd typer 0x101000101 cpu1 gic validate redist version 16 ppis implemented cpu1 gic validate redist version no vlpi support no direct lpi support cpu1 nx idle trampoline cpu1 beginning idle loop cpu0 arm64 start cpu secondary cpu core 1 mpid 0x1 is up ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize cpu2 gic validate redist version gicd typer 0x201000201 cpu2 gic validate redist version 16 ppis implemented cpu2 gic validate redist version no vlpi support no direct lpi support cpu2 nx idle trampoline cpu2 beginning idle loop cpu0 arm64 start cpu secondary cpu core 2 mpid 0x2 is up ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize cpu3 gic validate redist version gicd typer 0x301000311 cpu3 gic validate redist version 16 ppis implemented cpu3 gic validate redist version no vlpi support no direct lpi support cpu0 arm64 start cpu secondary cpu core 3 mpid 0x3 is up cpu0 work start highpri starting high priority kernel worker thread s cpu0 nx start application starting init thread cpu3 nx idle trampoline cpu3 beginning idle loop cpu0 nx start cpu0 beginning idle loop nsh sysinit fopen failed 2 nsh mkfatfs command not found nuttshell nsh nuttx 10 3 0 rc2 nsh help help usage help v cmd cd dmesg help mount rmdir true xd cp echo hexdump mv set truncate cmp exec kill printf sleep uname basename dirname exit ls ps source umount break dd false mkdir pwd test unset cat df free mkrd rm time usleep builtin apps getprime hello nsh ostest sh smp taskset nsh uname a nuttx 10 3 0 rc2 1e8f2a8 aug 21 2022 15 57 35 arm64 qemu a53 nsh hello cpu0 task spawn name hello entry 0x4029cee4 file actions 0x402e52b0 attr 0x402e52b8 argv 0x402e5400 cpu0 spawn execattrs setting policy 2 priority 100 for pid 6 hello world we see each of the 4 cores starting nuttx cpu0 to cpu3 that s so cool can we use qemu to partially emulate pinephone that would be extremely helpful inside nuttx for cortex a53 now we browse the source files for the implementation of cortex a53 on nuttx nuttx treats qemu as a target board as though it was a dev board here are the source files and build configuration for the qemu board nuttx boards arm64 qemu qemu a53 https github com apache incubator nuttx tree master boards arm64 qemu qemu a53 we ll clone this to create a target board for pinephone the board specific drivers for qemu are started in qemu a53 src qemu bringup c https github com apache incubator nuttx blob master boards arm64 qemu qemu a53 src qemu bringup c we ll start the pinephone drivers here the qemu board calls the qemu architecture specific drivers at nuttx arch arm64 src qemu https github com apache incubator nuttx tree master arch arm64 src qemu the uart driver is located at qemu qemu serial c https github com apache incubator nuttx blob master arch arm64 src qemu qemu serial c and qemu qemu lowputc s https github com apache incubator nuttx blob master arch arm64 src qemu qemu lowputc s for pinephone we ll create a uart driver for allwinner a64 soc i2c spi and other low level a64 drivers will be located here too the qemu functions board and architecture call the arm64 architecture functions at nuttx arch arm64 src common https github com apache incubator nuttx tree master arch arm64 src common which implements all kinds of arm64 features fpu https github com apache incubator nuttx blob master arch arm64 src common arm64 fpu c interrupts https github com apache incubator nuttx blob master arch arm64 src common arm64 gicv3 c mmu https github com apache incubator nuttx blob master arch arm64 src common arm64 mmu c tasks https github com apache incubator nuttx blob master arch arm64 src common arm64 task sched c timers https github com apache incubator nuttx blob master arch arm64 src common arm64 arch timer c we ll reuse them for pinephone nuttx image next we analyse the nuttx image with ghidra https ghidra sre org to understand the nuttx image header and startup code here s the nuttx elf image nuttx https github com lupyuen pinephone nuttx releases download v1 0 0 nuttx analysed by ghidra ghidra with apache nuttx rtos for arm cortex a53 https lupyuen github io images arm ghidra1 png note that the nuttx image jumps to real start to skip the image header text 40280000 4d 5a 00 91 add x13 x18 0x16 40280004 0f 00 00 14 b real start real start is defined at 0x4028 0040 with the startup code bottom part of nuttx image header https lupyuen github io images arm title png we see something interesting the magic number arm x64 appears at address 0x4028 0038 searching the net for this magic number reveals that it s actually an arm64 linux kernel header when we refer to the nuttx arm64 disassembly nuttx s https github com lupyuen pinephone nuttx releases download v1 0 0 nuttx s we find happiness arch arm64 src common arm64 head s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l79 l117 text kernel startup entry point the requirements are mmu off d cache off i cache on or off x0 physical address to the fdt blob it will be used when nuttx support device tree in the future this must be the very first address in the loaded image it should be loaded at any 4k aligned address globl start start do not modify image header expected by linux boot loaders this add instruction has no meaningful effect except that its opcode forms the magic mz signature of a pe coff file that is required for uefi applications some bootloader such imx8 uboot checking the magic mz to see if the image is a valid linux image but modifying the bootloader is unnecessary unless we need to do a customize secure boot so just put the mz in the header to make bootloader happiness add x13 x18 0x16 the magic mz signature b real start branch to kernel start quad 0x480000 image load offset from start of ram quad e initstack start effective size of kernel image little endian quad head flags informative flags little endian quad 0 reserved quad 0 reserved quad 0 reserved ascii arm x64 magic number arm x64 long 0 reserved real start disable all exceptions and interrupts nuttx image actually follows the arm64 linux kernel image format as defined here booting aarch64 linux https www kernel org doc html latest arm64 booting html arm64 linux kernel image contains a 64 byte header text u32 code0 executable code u32 code1 executable code u64 text offset image load offset little endian u64 image size effective image size little endian u64 flags kernel flags little endian u64 res2 0 reserved u64 res3 0 reserved u64 res4 0 reserved u32 magic 0x644d5241 magic number little endian arm x64 u32 res5 reserved used for pe coff offset start of ram is 0x4000 0000 the image load offset in our nuttx image header is 0x48 0000 according to arch arm64 src common arm64 head s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l107 text quad 0x480000 image load offset from start of ram this means that our nuttx image will be loaded at 0x4048 0000 i wonder if this image load offset should have been 0x28 0000 instead of 0x48 0000 remember that ghidra and the arm disassembly says that our nuttx image is actually loaded at 0x4028 0000 instead of 0x4048 0000 ram size and ram start are defined in the nuttx configuration boards arm64 qemu qemu a53 configs nsh smp defconfig https github com lupyuen incubator nuttx blob pinephone boards arm64 qemu qemu a53 configs nsh smp defconfig l47 l48 text config ram size 134217728 config ram start 0x40000000 that s 128 mb ram which should fit inside pinephone s 2 gb ram the nuttx image was built with this linker command based on make trace bash aarch64 none elf ld entry start nostdlib cref map nuttx nuttx nuttx map tnuttx nuttx boards arm64 qemu qemu a53 scripts dramboot ld l nuttx nuttx staging l nuttx nuttx arch arm64 src board o nuttx nuttx nuttx arm64 head o start group lsched ldrivers lboards lc lmm larch lapps lfs lbinfmt lboard applications armgnutoolchain 11 3 rel1 aarch64 none elf bin lib gcc aarch64 none elf 11 3 1 libgcc a applications armgnutoolchain 11 3 rel1 aarch64 none elf bin lib gcc aarch64 none elf 11 3 1 aarch64 none elf lib libm a end group nuttx image begins at start which is defined as 0x4028 0000 in the nuttx linker script boards arm64 qemu qemu a53 scripts dramboot ld https github com lupyuen incubator nuttx blob pinephone boards arm64 qemu qemu a53 scripts dramboot ld l30 l33 text sections 0x40280000 uboot load address start we ll change this to 0x4008 0000 for pinephone since kernel start address is 0x4008 0000 and image load offset is 0 see below we ve seen the nuttx image which looks like a linux kernel image let s compare with a pinephone linux kernel image and see how nuttx needs to be tweaked pinephone image will nuttx run on pinephone let s analyse a pinephone linux kernel image with ghidra to look at the linux kernel header and startup code we ll use the pinephone jumpdrive image since it s small https github com dreemurrs embedded jumpdrive download https github com dreemurrs embedded jumpdrive releases download 0 8 pine64 pinephone img xz expand pine64 pinephone img xz expand the files inside bash gunzip image gz gunzip initramfs gz tar xvf initramfs import the uncompressed image linux kernel into ghidra for language select aarch64 le v8a default processor aarch64 variant v8a size 64 endian little compiler default for language select aarch64 le v8a default https lupyuen github io images arm ghidra7 png here s the jumpdrive image linux kernel in ghidra ghidra with pinephone linux image https lupyuen github io images arm ghidra2 png according to the linux kernel header booting aarch64 linux https www kernel org doc html latest arm64 booting html we see linux kernel magic number arm x64 at offset 0x38 image load offset is 0 according to the header kernel start address on pinephone is 0x4008 0000 so we shift image in ghidra to start at 0x4008 0000 click window memory map click ram click the 4 arrows icon move a block to another address change new start address to 40080000 ghidra with pinephone linux image https lupyuen github io images arm ghidra3 png will nuttx boot on pinephone so will nuttx boot on pinephone it s highly plausible we discovered with happiness that nuttx already generates an arm64 linux kernel header so nuttx could be a drop in replacement for the pinephone linux kernel we just need to write pinephone jumpdrive to a microsd card with etcher in fat format overwrite image gz by the gzipped nuttx binary image nuttx bin gz insert the microsd card into pinephone power on pinephone and nuttx should theoretically boot on pinephone as mentioned earlier we should rebuild nuttx so that start is changed to 0x4008 0000 from 0x4028 0000 as defined in the nuttx linker script boards arm64 qemu qemu a53 scripts dramboot ld https github com lupyuen incubator nuttx blob pinephone boards arm64 qemu qemu a53 scripts dramboot ld l30 l33 text sections sections 0x40080000 pinephone uboot load address kernel addr r previously 0x40280000 uboot load address start also the image load offset in our nuttx image header should be changed to 0x0 from 0x48 0000 arch arm64 src common arm64 head s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l107 text quad 0x0000 pinephone image load offset from start of ram previously quad 0x480000 image load offset from start of ram later we ll increase the ram size to 2 gb from 128 mb boards arm64 qemu qemu a53 configs nsh smp defconfig https github com lupyuen incubator nuttx blob pinephone boards arm64 qemu qemu a53 configs nsh smp defconfig l47 l48 text todo increase to 2 gb for pinephone config ram size 134217728 config ram start 0x40000000 but not right now because it might clash with the device tree and ram file system but will we see anything when nuttx boots on pinephone not yet we ll need to implement the uart driver for nuttx uart driver for nuttx read the article nuttx rtos for pinephone uart driver https lupyuen github io articles serial we won t see any output from nuttx until we implement the uart driver for nuttx these are the source files for the qemu uart driver pl011 arch arm64 src qemu qemu serial c https github com apache incubator nuttx blob master arch arm64 src qemu qemu serial c arch arm64 src qemu qemu lowputc s https github com apache incubator nuttx blob master arch arm64 src qemu qemu lowputc s more about pl011 uart https krinkinmu github io 2020 11 29 pl011 html we ll replace the code above with the uart driver for allwinner a64 soc uart0 memory map https linux sunxi org a64 memory map allwinner a64 uart https linux sunxi org uart allwinner a64 user manual https linux sunxi org file allwinner a64 user manual v1 1 pdf allwinner a64 info https linux sunxi org a64 to access the uart port on pinephone we ll use this usb serial debug cable pinephone serial debug cable https wiki pine64 org index php pinephone serial console which connects to the headphone port genius remember to flip the headphone switch to off https wiki pine64 org index php pinephone privacy switch configuration pinephone uart port in disguise https lupyuen github io images arm uart jpg pinephone uart port in disguise https wiki pine64 org index php pinephone serial console garbled console output the log appears garbled when printf is called by our nuttx test apps due to concurrent printing by multiple tasks text nx start application starting init thread lib cxx initialize sinit 0x400e9000 einit 0x400e9000 nsh sysinit fopen failed 2 nshn x msktfaarttf s c pcuo0m m abnedg innonti nfgo uinddlelonouptt shell nsh nuttx 11 0 0 rc2 source https gist github com lupyuen e49a22a9e39b7c024b984bea40377712 it s supposed to show text nsh sysinit fopen failed 2 nsh mkfatfs command not found nuttshell nsh nuttx 11 0 0 rc2 nsh nx start cpu0 beginning idle loop source https gist github com lupyuen 7537da777d728a22ab379b1ef234a2d1 why is the output garbled the output is garbled because there 2 ways of writing to the console output up putc called by the nuttx kernel to log messages like info a64 uart send allwinner a64 uart driver is called by nuttx apps to print messages like printf to fix the output garbled at startup disable scheduler informational output in build setup debug options enable debug features scheduler debug features this prevents sinfo from garbling the printf output sinfo writes directly to uart port character by character text nx start cpu0 beginning idle loop whereas printf is buffered and writes the buffer to the uart driver text nsh mkfatfs command not found nuttshell nsh nuttx 11 0 0 rc2 also we have a temporary workaround until this gets fixed a64 serial c https github com lupyuen2 wip pinephone nuttx blob 91516c7cef28a79516d6196f070320a16649cf90 arch arm64 src a64 a64 serial c l424 l452 c static void a64 uart send struct uart dev s dev int ch const struct a64 uart port s port struct a64 uart port s dev priv const struct a64 uart config config port config define buffer uart ifdef buffer uart todo fix the garbled output buffer the chars until we see cr or lf static char buf 256 static int pos 0 if ch ch r ch n pos sizeof buf buf pos ch pos 1 return for int i 0 i pos i up putc buf i pos 0 up putc ch unused config else write char to transmit holding register uart thr putreg8 ch uart thr config uart endif buffer uart this forces a64 uart send to call up putc to print an entire line of text instead of character by character this also means that the nsh prompt will no longer echo text character by character we need to press enter to see the nsh output fyi printf console output stream is locked and unlocked with a mutex let s log the locking and unlocking of the mutex nuttx libs libc stdio lib libfilelock c https github com apache nuttx blob master libs libc stdio lib libfilelock c l39 l64 c void flockfile far struct file struct stream up putc log the mutex locking nxrmutex lock stream fs lock void funlockfile far struct file struct stream up putc log the mutex unlocking nxrmutex unlock stream fs lock output log shows that and mutex locking and unlocking are nested text nx start application starting init thread lib cxx initialize sinit 0x400e9000 einit 0x400e9000 n s h s y s i n i t f o p e n f a i l e d 2 n s h m k f a t f s c o m m a n d n o t f o u n d how can be it locked twice without unlocking nxrmutex lock https github com apache nuttx blob master include nuttx mutex h l335 l377 calls nxmutex lock https github com apache nuttx blob master include nuttx mutex h l135 l179 which calls nxsem wait https github com apache nuttx blob master sched semaphore sem wait c l42 l210 which calls up switch context https github com apache nuttx blob master arch arm64 src common arm64 switchcontext c l41 l103 let s print the thread id and mutex count text void flockfile far struct file struct stream nxrmutex lock stream fs lock info p thread d mutex count d n stream gettid stream fs lock count log the thread id and mutex count void funlockfile far struct file struct stream info p thread d mutex count d n stream gettid stream fs lock count log the thread id and mutex count nxrmutex unlock stream fs lock thread id is always the same mutex count goes from 1 to 3 and drops to 2 text lib cxx initialize sinit 0x400e9000 einit 0x400e9000 flockfile 0x40a5cc78 thread 2 mutex count 1 flockfile 0x40a5cc78 thread 2 mutex count 2 flockfile 0x40a5cc78 thread 2 mutex count 3 funlockfile 0x40a5cc78 thread 2 mutex count 3 funlockfile 0x40a5cc78 thread 2 mutex count 2 why that s because nxrmutex lock https github com apache nuttx blob master include nuttx mutex h l335 l377 allows the mutex to be locked multiple times within the same thread fyi here s how we verify whether our code is called by multiple cpu cores c include arch arm64 src common arm64 arch h info up cpu index d n mpidr to core get mpidr shows up cpu index 0 info mpidr el1 p n read sysreg mpidr el1 shows mpidr el1 0x80000000 fyi how printf works printf https github com apache nuttx blob master libs libc stdio lib printf c l32 l51 calls vfprintf https github com apache nuttx blob master libs libc stdio lib vfprintf c l34 l56 which calls libvsprintf https github com apache nuttx blob master libs libc stdio lib libvsprintf c l1336 l1381 which calls vsprintf internal https github com apache nuttx blob master libs libc stdio lib libvsprintf c l171 l1332 which calls stream putc https github com apache nuttx blob master libs libc stdio lib libvsprintf c l70 which calls which calls fputc https github com apache nuttx blob master libs libc stdio lib fputc c l31 l61 which calls libfwrite https github com apache nuttx blob master libs libc stdio lib libfwrite c l41 l180 fputc https github com apache nuttx blob master libs libc stdio lib fputc c l31 l61 also calls lib libfflush https github com apache nuttx blob master libs libc stdio lib libfflush c l40 l171 configure uart port to support multiple uart ports we copied the following functions from the allwinner a1x uart driver https github com apache nuttx blob master arch arm src a1x a1x serial c l695 l987 arm64 earlyserialinit https github com lupyuen2 wip pinephone nuttx blob uart3 arch arm64 src a64 a64 serial c l1323 l1398 init the uart ports a64 uart init https github com lupyuen2 wip pinephone nuttx blob uart3 arch arm64 src a64 a64 serial c l944 l996 init the uart pins called by arm64 earlyserialinit https github com lupyuen2 wip pinephone nuttx blob uart3 arch arm64 src a64 a64 serial c l1323 l1398 a64 uart setup https github com lupyuen2 wip pinephone nuttx blob uart3 arch arm64 src a64 a64 serial c l453 l582 configure the uart port called when the uart port is opened a64 uart irq handler https github com lupyuen2 wip pinephone nuttx blob uart3 arch arm64 src a64 a64 serial c l301 l415 uart interrupt handler a64 uart receive https github com lupyuen2 wip pinephone nuttx blob uart3 arch arm64 src a64 a64 serial c l727 l753 receive uart data here s the log https github com lupyuen2 wip pinephone nuttx apps blob e5aa2baba64c8d904d6c16b7c5dbc68cd5c8f1e1 examples hello hello main c l72 l270 inside the uart driver be careful when logging to the uart port if the uart port is busy doing logging it won t allow us to the baud rate this register may only be accessed when the dlab bit uart lcr 7 is set and the uart is not busy uart usr 0 is zero allwinner a64 user manual page 564 https lupyuen github io images allwinner a64 user manual v1 1 pdf that s why we always wait for uart not busy before setting the baud rate like this https github com lupyuen2 wip pinephone nuttx blob uart3 arch arm64 src a64 a64 serial c l417 l451 what happens if uart is busy when we set the baud rate text up setup enter dlab 1 up serialout addr 0x1c2800c before 0x3 after 0x83 up setup set the baud divisor up serialout addr 0x1c28004 before 0x0 after 0x0 up serialout addr 0x1c28000 before 0x0 after 0xd up setup clear dlab up serialout addr 0x1c2800c before 0x3 after 0x3 source https github com lupyuen2 wip pinephone nuttx blob 83566af2e58f92ae42fd434ce97f919404245986 arch arm64 src a64 a64 serial c l1306 l1313 from above we see that the baud rate is not read correctly text up serialout addr 0x1c28000 before 0x0 after 0xd for uart0 before should be 0xd and dlab doesn t get cleared correctly text up setup enter dlab 1 up serialout addr 0x1c2800c before 0x3 after 0x83 up setup clear dlab up serialout addr 0x1c2800c before 0x3 after 0x3 before should be 0x83 not 0x3 we fix this by disabling the logging and waiting for uart not busy before setting the baud rate like this https github com lupyuen2 wip pinephone nuttx blob uart3 arch arm64 src a64 a64 serial c l530 l549 the changes have been upstreamed to nuttx mainline pull request support multiple uart ports https github com apache nuttx pull 9243 how do we enable a uart port like uart3 head over to the nuttx build configuration bash make menuconfig then select system type allwinner a64 peripheral selection uart3 to configure the baud rate parity and stop bits device drivers serial driver support uart3 configuration the default baud rate bits parity stop bits work ok with the pinephone lte modem on uart3 115 2 kbps 8 bits no parity 1 stop bit let s test the pinephone lte modem on uart3 test uart3 port in the previous section we have configured uart3 for pinephone s 4g lte modem https lupyuen github io articles lte this is how we read and write the uart3 port via dev ttys1 hello main c https github com lupyuen2 wip pinephone nuttx apps blob e5aa2baba64c8d904d6c16b7c5dbc68cd5c8f1e1 examples hello hello main c l38 l70 c open dev ttys1 uart3 int fd open dev ttys1 o rdwr printf open dev ttys1 fd d n fd assert fd 0 repeat 5 times write command and read response for int i 0 i 5 i write command const char cmd at r ssize t nbytes write fd cmd sizeof cmd printf write command nbytes ld n nbytes assert nbytes sizeof cmd read response static char buf 1024 nbytes read fd buf sizeof buf 1 if nbytes 0 buf nbytes 0 printf response nbytes ld n s n nbytes buf wait a while sleep 2 close the device close fd lte modem works ok with uart3 on nuttx yay see the test log here test uart with nuttx https lupyuen github io articles lte test uart with nuttx note modem uart flow control is broken not resolved in v1 2 assumption is that usb will be used for high bandwidth modem i o bb tx and bb rx are connected to uart3 pd0 pd1 bb rts and bb cts are connected to uart4 pd4 pd5 to use hardware flow control tx rx would need to be connected to uart4 swapping pd0 pd1 with the motor control and rear camera reset gpios at pd2 pd3 this would need a device tree change hardware flow control can be disabled with the at ifc command and usb can also be used for commands instead of the uart so the impact of this problem is unclear source https wiki pine64 org wiki pinephone v1 1 braveheart modem uart flow control is broken boot nuttx on pinephone read the article pinephone boots apache nuttx rtos https lupyuen github io articles uboot pinephone u boot log before starting the linux kernel pinephone boots by running the u boot bootloader a64 boot rom https linux sunxi org brom a64 a64 u boot https linux sunxi org u boot a64 u boot spl https linux sunxi org brom u boot spl limitations sd card layout https linux sunxi org bootable sd card sd card layout here s the pinephone u boot log captured with the usb serial debug cable press enter repeatedly when pinephone powers on to enter the u boot prompt text screen dev ttyusb0 115200 dram 2048 mib trying to boot from mmc1 notice bl31 v2 2 release v2 2 904 gf9ea3a629 notice bl31 built 15 32 12 apr 9 2020 notice bl31 detected allwinner a64 h64 r18 soc 1689 notice bl31 found u boot dtb at 0x4064410 model pinephone notice psci system suspend is unavailable u boot 2020 07 nov 08 2020 00 15 12 0100 dram 2 gib mmc device mmc 1c11000 seq 1 is in use by mmc 1c10000 mmc 1c0f000 0 mmc 1c10000 2 mmc 1c11000 1 loading environment from fat warning bad crc using default environment starting usb no working controllers found hit any key to stop autoboot help alias for help base print or set address offset bdinfo print board info structure blkcache block cache diagnostics and control boot boot default i e run bootcmd bootd boot default i e run bootcmd bootelf boot from an elf image in memory booti boot linux kernel image format from memory bootm boot application image from memory bootvx boot vxworks from an elf image cmp memory compare coninfo print console devices and information cp memory copy crc32 checksum calculation dm driver model low level access echo echo args to console editenv edit environment variable env environment handling commands exit exit script ext2load load binary file from a ext2 filesystem ext2ls list files in a directory default ext4load load binary file from a ext4 filesystem ext4ls list files in a directory default ext4size determine a file s size false do nothing unsuccessfully fatinfo print information about filesystem fatload load binary file from a dos filesystem fatls list files in a directory default fatmkdir create a directory fatrm delete a file fatsize determine a file s size fatwrite write file into a dos filesystem fdt flattened device tree utility commands fstype look up a filesystem type go start application at address addr gpio query and control gpio pins gpt guid partition table gzwrite unzip and write memory to block device help print command description usage iminfo print header information for application image imxtract extract a part of a multi image itest return true false on integer compare ln create a symbolic link load load binary file from a filesystem loadb load binary file over serial line kermit mode loads load s record file over serial line loadx load binary file over serial line xmodem mode loady load binary file over serial line ymodem mode loop infinite loop on address range ls list files in a directory default lzmadec lzma uncompress a memory region md memory display mm memory modify auto incrementing address mmc mmc sub system mmcinfo display mmc info mw memory write fill nm memory modify constant address part disk partition related commands poweroff perform poweroff of the device printenv print environment variables random fill memory with random pattern reset perform reset of the cpu run run commands in an environment variable save save file to a filesystem saveenv save environment variables to persistent storage setenv set environment variables setexpr set environment variable as the result of eval expression sf spi flash sub system showvar print local hushshell variables size determine a file s size sleep delay execution for some time source run script from memory sysboot command to get and boot from syslinux files test minimal test like bin sh true do nothing successfully unlz4 lz4 uncompress a memory region unzip unzip a memory region usb usb sub system usbboot boot from usb device version print monitor compiler and linker version printenv arch arm baudrate 115200 board sunxi board name sunxi boot a script load devtype devnum distro bootpart scriptaddr prefix script source scriptaddr boot extlinux sysboot devtype devnum distro bootpart any scriptaddr prefix boot syslinux conf boot net usb start usb start boot prefixes boot boot script dhcp boot scr uimg boot scripts boot scr uimg boot scr boot syslinux conf extlinux extlinux conf boot targets fel mmc auto usb0 bootcmd run distro bootcmd bootcmd fel if test n fel booted test n fel scriptaddr then echo fel boot source fel scriptaddr fi bootcmd mmc0 devnum 0 run mmc boot bootcmd mmc1 devnum 1 run mmc boot bootcmd mmc auto if test mmc bootdev eq 1 then run bootcmd mmc1 run bootcmd mmc0 elif test mmc bootdev eq 0 then run bootcmd mmc0 run bootcmd mmc1 fi bootcmd usb0 devnum 0 run usb boot bootdelay 0 bootm size 0xa000000 console ttys0 115200 cpu armv8 dfu alt info ram kernel ram 0x40080000 0x1000000 fdt ram 0x4fa00000 0x100000 ramdisk ram 0x4fe00000 0x4000000 distro bootcmd for target in boot targets do run bootcmd target done ethaddr 02 ba 8c 73 bf ca fdt addr r 0x4fa00000 fdtcontroladdr bbf4dd40 fdtfile allwinner sun50i a64 pinephone dtb kernel addr r 0x40080000 mmc boot if mmc dev devnum then devtype mmc run scan dev for boot part fi mmc bootdev 0 partitions name loader1 start 8k size 32k uuid uuid gpt loader1 name loader2 size 984k uuid uuid gpt loader2 name esp size 128m bootable uuid uuid gpt esp name system size uuid uuid gpt system preboot usb start pxefile addr r 0x4fd00000 ramdisk addr r 0x4fe00000 scan dev for boot echo scanning devtype devnum distro bootpart for prefix in boot prefixes do run scan dev for extlinux run scan dev for scripts done scan dev for boot part part list devtype devnum bootable devplist env exists devplist setenv devplist 1 for distro bootpart in devplist do if fstype devtype devnum distro bootpart bootfstype then run scan dev for boot fi done setenv devplist scan dev for extlinux if test e devtype devnum distro bootpart prefix boot syslinux conf then echo found prefix boot syslinux conf run boot extlinux echo script failed continuing fi scan dev for scripts for script in boot scripts do if test e devtype devnum distro bootpart prefix script then echo found u boot script prefix script run boot a script echo script failed continuing fi done scriptaddr 0x4fc00000 serial 92c07dba8c73bfca soc sunxi stderr serial 1c28000 stdin serial 1c28000 stdout serial 1c28000 usb boot usb start if usb dev devnum then devtype usb run scan dev for boot part fi uuid gpt esp c12a7328 f81f 11d2 ba4b 00a0c93ec93b uuid gpt system b921b045 1df0 41c3 af44 4c6f280d3fae environment size 2861 131068 bytes boot switch to partitions 0 ok mmc0 is current device scanning mmc 0 1 found u boot script boot scr 653 bytes read in 3 ms 211 9 kib s executing script at 4fc00000 gpio pin 114 gpio 114 value is 1 4275261 bytes read in 192 ms 21 2 mib s uncompressed size 10170376 0x9b3008 36162 bytes read in 4 ms 8 6 mib s 1078500 bytes read in 51 ms 20 2 mib s flattened device tree blob at 4fa00000 booting using the fdt blob at 0x4fa00000 loading ramdisk to 49ef8000 end 49fff4e4 ok loading device tree to 0000000049eec000 end 0000000049ef7d41 ok starting kernel according to the u boot log the start of ram kernel addr r is 0x4008 0000 we need to set this in the nuttx linker script and the nuttx header nuttx boots on pinephone in the previous section u boot says that the start of ram kernel addr r is 0x4008 0000 let s set this in the nuttx linker script and the nuttx header change image load offset in nuttx header to 0x0 from 0x48000 see the changes https github com lupyuen incubator nuttx commit 9916b52f9dba17944a35aafd4c21fb9eabb17c0e diff a830678a9f1b0773c404196c86ad45d1ef7d7e51a52b935cd08df35f5949aaf8 change nuttx linker script to set the start address start to 0x4008 0000 from 0x4028 0000 see the changes https github com lupyuen incubator nuttx commit 9916b52f9dba17944a35aafd4c21fb9eabb17c0e diff d8d987cb5ba644b5f79987e42663217799e03e384552b2e8dbb041f145fa8ad1 for pinephone allwinner a64 uart we reused the previous code for transmitting output to uart text pl011 uart transmit character xb register which contains the uart base address wt register which contains the character to transmit macro early uart transmit xb wt strb wt xb uartdr data register endm source https github com lupyuen incubator nuttx blob pinephone arch arm64 src qemu qemu lowputc s l87 l94 but we updated the uart register address for allwinner a64 uart text 32 bit register definition for qemu pl011 uart pinephone allwinner a64 uart0 base address define uart1 base address 0x01c28000 previously define uart1 base address 0x9000000 define early uart pl011 baud rate 115200 source https github com lupyuen incubator nuttx blob pinephone arch arm64 src qemu qemu lowputc s l40 l45 right now we don t check if uart is ready to transmit so our uart output will have missing characters this needs to be fixed text pl011 uart wait uart to be ready to transmit xb register which contains the uart base address c scratch register number macro early uart ready xb wt 1 todo wait for pinephone allwinner a64 uart ldrh wt xb 0x18 uartfr flag register tst wt 0x8 check busy bit b ne 1b wait for the uart to be ready endm source https github com lupyuen incubator nuttx blob pinephone arch arm64 src qemu qemu lowputc s l74 l85 we don t init the uart port because u boot has kindly done it for us this needs to be fixed text pl011 uart initialization xb register which contains the uart base address c scratch register number gtext up earlyserialinit section func text up earlyserialinit todo set pinephone allwinner a64 baud rate divisor uart lcr dlab uart dll uart dlh ldr x15 uart1 base address mov x0 7372800 early uart pl011 baud rate 16 strh w0 x15 0x28 uartfbrd baud divisor fraction mov x0 7372800 early uart pl011 baud rate 16 strh w0 x15 0x24 uartibrd baud divisor integer mov x0 0x60 8n1 str w0 x15 0x2c uartlcr h line control ldr x0 0x00000301 rxe txe uarten str w0 x15 0x30 uartcr control register ret source https github com lupyuen incubator nuttx blob pinephone arch arm64 src qemu qemu lowputc s l55 l72 with the above changes nuttx boots on pinephone yay nuttx boots on pinephone https lupyuen github io images screenshot 2022 08 26 08 04 34 080626 png watch the demo on youtube https youtube com shorts wmrzfciwv6o feature share nuttx boot log this is how we build nuttx for pinephone bash todo install build prerequisites https lupyuen github io articles uboot install prerequisites create nuttx directory mkdir nuttx cd nuttx download nuttx os for pinephone git clone recursive branch pinephone https github com lupyuen incubator nuttx nuttx download nuttx apps for pinephone git clone recursive branch pinephone https github com lupyuen incubator nuttx apps apps we ll build nuttx inside nuttx nuttx cd nuttx configure nuttx for single core tools configure sh l qemu a53 nsh build nuttx make dump the disassembly to nuttx s aarch64 none elf objdump t s demangle line numbers wide nuttx nuttx s 2 1 compress the nuttx binary image cp nuttx bin image rm f image gz gzip image copy compressed nuttx binary image to jumpdrive microsd how to create jumpdrive microsd https lupyuen github io articles uboot pinephone jumpdrive todo change the microsd path cp image gz volumes no name insert the jumpdrive microsd into pinephone and power up here s the uart log of nuttx booting on pinephone text dram 2048 mib trying to boot from mmc1 notice bl31 v2 2 release v2 2 904 gf9ea3a629 notice bl31 built 15 32 12 apr 9 2020 notice bl31 detected allwinner a64 h64 r18 soc 1689 notice bl31 found u boot dtb at 0x4064410 model pinephone notice psci system suspend is unavailable u boot 2020 07 nov 08 2020 00 15 12 0100 dram 2 gib mmc device mmc 1c11000 seq 1 is in use by mmc 1c10000 mmc 1c0f000 0 mmc 1c10000 2 mmc 1c11000 1 loading environment from fat warning bad crc using default environment starting usb no working controllers found hit any key to stop autoboot 0 switch to partitions 0 ok mmc0 is current device scanning mmc 0 1 found u boot script boot scr 653 bytes read in 3 ms 211 9 kib s executing script at 4fc00000 gpio pin 114 gpio 114 value is 1 99784 bytes read in 8 ms 11 9 mib s uncompressed size 278528 0x44000 36162 bytes read in 4 ms 8 6 mib s 1078500 bytes read in 51 ms 20 2 mib s flattened device tree blob at 4fa00000 booting using the fdt blob at 0x4fa00000 loading ramdisk to 49ef8000 end 49fff4e4 ok loading device tree to 0000000049eec000 end 0000000049ef7d41 ok starting kernel hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x400c4000 heap size 0x7f3c000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x400a7000 up timer initialize before writing vbar el1 0x40227000 up timer initialize after writing vbar el1 0x400a7000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x400a7000 einit 0x400a7000 stext 0x40080000 etext 0x400a8000 nsh sysinit fopen failed 2 nshn x msktfaarttf s c pcuo0m m abnedg innonti nfgo uinddle l onouptt shell nsh nuttx 10 3 0 rc2 nsh uname a nuttx 10 3 0 rc2 fc909c6 dirty sep 1 2022 17 05 44 arm64 qemu a53 nsh help help usage help v cmd cd dmesg help mount rmdir true xd cp echo hexdump mv set truncate cmp exec kill printf sleep uname basename dirname exit ls ps source umount break dd false mkdir pwd test unset cat df free mkrd rm time usleep builtin apps getprime hello nsh ostest sh nsh hello task spawn name hello entry 0x4009b1a0 file actions 0x400c9580 attr 0x400c9588 argv 0x400c96d0 spawn execattrs setting policy 2 priority 100 for pid 3 hello world nsh ls dev dev console null ram0 ram2 ttys0 zero watch the demo on youtube https youtube com shorts wmrzfciwv6o feature share the output is slightly garbled the uart driver needs fixing interrupt controller read the article nuttx rtos for pinephone fixing the interrupts https lupyuen github io articles interrupt let s talk about the arm generic interrupt controller gic for pinephone text arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 this is the current implementation of arm gic version 3 https developer arm com documentation ihi0069 latest in nuttx arm64 arch arm64 src common arm64 gicv3 c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gicv3 c arch arm64 src common arm64 gic h https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gic h this implementation won t work on pinephone so we have commented out the existing code and inserted our own implementation why won t arm gic version 3 work on pinephone according to the allwinner a64 soc user manual page 210 gic pinephone s interrupt controller runs on arm gic pl400 https developer arm com documentation ddi0471 b introduction about the gic 400 which is based on arm gic version 2 https developer arm com documentation ihi0048 latest we ll have to downgrade arm64 gicv3 c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gicv3 c to support arm gic version 2 for pinephone does nuttx implement arm gic version 2 nuttx has an implementation of arm gic version 2 but it s based on arm32 we ll port it from arm32 to arm64 arch arm src armv7 a arm gicv2 c https github com lupyuen incubator nuttx blob pinephone arch arm src armv7 a arm gicv2 c arch arm src armv7 a arm gicv2 dump c https github com lupyuen incubator nuttx blob pinephone arch arm src armv7 a arm gicv2 dump c arch arm src armv7 a gic h https github com lupyuen incubator nuttx blob pinephone arch arm src armv7 a gic h arch arm src armv7 a mpcore h https github com lupyuen incubator nuttx blob pinephone arch arm src armv7 a mpcore h arch arm src imx6 chip h https github com lupyuen incubator nuttx blob pinephone arch arm src imx6 chip h arch arm src imx6 hardware imx memorymap h https github com lupyuen incubator nuttx blob pinephone arch arm src imx6 hardware imx memorymap h by reusing the code above we have implemented arm gic version 2 for pinephone arch arm64 src common arm64 gicv3 c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gicv3 c l765 l823 we made minor tweaks to nuttx s implementation of gic version 2 changes for arch arm src armv7 a arm gicv2 c https github com lupyuen incubator nuttx commit 6fa0e7e5d2beddad07890c83d2ee428a3f2b8a62 diff 6e1132aef124dabaf94c200ab06d65c7bc2b9967bf76a46aba71a7f43b5fb219 changes for arch arm src armv7 a arm gicv2 dump c https github com lupyuen incubator nuttx commit 4fc2669fef62d12ba1dd428f2daf03d3bc362501 diff eb05c977988d59202a9472f6fa7f9dc290724662ad6d15a4ba99b8f1fc1dc8f8 changes for arch arm src armv7 a gic h https github com lupyuen incubator nuttx commit 6fa0e7e5d2beddad07890c83d2ee428a3f2b8a62 diff b4fcb67b71de954c942ead9bb0868e720a5802c90743f0a1883f84b7565e1a0f where in memory is the gic located according to the allwinner a64 soc user manual page 74 memory mapping the gic is located at this address module address it is for cluster cpu remarks scu space 0x01c80000 what s this gic dist 0x01c80000 0x1000 gic distributor gicd cpus can t access gic cpuif 0x01c80000 0x2000 gic cpu interface gicc why cpus can t access the interrupt sources are defined in the allwinner a64 soc user manual page 210 gic 16 x software generated interrupts sgi this is an interrupt generated by software writing to a gicd sgir register in the gic the system uses sgis for interprocessor communication 16 x private peripheral interrupts ppi this is a peripheral interrupt that is specific to a single processor 125 x shared peripheral interrupts spi this is a peripheral interrupt that the distributor can route to any of a specified combination of processors to verify the gic version read the peripheral id2 register icpidr2 at offset 0xfe8 of gic distributor bits 4 to 7 of icpidr2 are 0x1 for gic version 1 0x2 for gic version 2 this is how we implement the gic version verification arch arm64 src common arm64 gicv3 c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gicv3 c l710 l734 c init gic v2 for pinephone see https github com lupyuen pinephone nuttx interrupt controller int arm64 gic initialize void sinfo todo init gic for pinephone n to verify the gic version read the peripheral id2 register icpidr2 at offset 0xfe8 of gic distributor bits 4 to 7 of icpidr2 are 0x1 for gic version 1 0x2 for gic version 2 gic distributor is at 0x01c80000 0x1000 see https github com lupyuen pinephone nuttx interrupt controller const uint8 t icpidr2 const uint8 t config gicd base 0xfe8 uint8 t version icpidr2 4 0b1111 sinfo gic version is d n version debugassert version 2 arm gic0 initialize must be called on cpu0 arm gic0 initialize arm gic initialize must be called for all cpus todo move to arm64 gic secondary init arm gic initialize return 0 see below for the gic register dump https github com lupyuen pinephone nuttx gic register dump multi core smp right now nuttx is configured to run on a single core for pinephone to support all 4 cores on pinephone with smp symmetric multi processing we need to fix these in the generic interrupt controller version 2 https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gicv3 c l717 l743 c init gic v2 for pinephone see https github com lupyuen pinephone nuttx interrupt controller int arm64 gic initialize void arm gic0 initialize must be called on cpu0 arm gic0 initialize arm gic initialize must be called for all cpus todo move to arm64 gic secondary init arm gic initialize https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gicv3 c l746 l761 c ifdef config smp todo init gic for pinephone void arm64 gic secondary init void sinfo todo init gic secondary for pinephone n todo arm gic initialize must be called for all cpus arm gic initialize endif notused and we rebuild nuttx for multi core bash erase the nuttx configuration make distclean configure nuttx for 4 cores tools configure sh l qemu a53 nsh smp build nuttx make dump the disassembly to nuttx s aarch64 none elf objdump t s demangle line numbers wide nuttx nuttx s 2 1 system timer nuttx starts the system timer when it boots here s how the system timer is started arch arm64 src common arm64 arch timer c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 arch timer c l212 l233 c void up timer initialize void uint64 t curr cycle arch timer rate arm64 arch timer get cntfrq cycle per tick uint64 t arch timer rate uint64 t tick per sec sinfo s cp15 timer s running at lu 02lumhz cycle ld n func unsigned long arch timer rate 1000000 unsigned long arch timer rate 10000 100 cycle per tick irq attach arm arch timer irq arm64 arch timer compare isr 0 arm64 gic irq set priority arm arch timer irq arm arch timer prio arm arch timer flags curr cycle arm64 arch timer count arm64 arch timer set compare curr cycle cycle per tick arm64 arch timer enable true up enable irq arm arch timer irq arm64 arch timer set irq mask false at every tick the system timer triggers an interrupt that calls arm64 arch timer compare isr https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 arch timer c l109 l169 config sched tickless is undefined timer irq arm arch timer irq is defined in arch arm64 src common arm64 arch timer h https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 arch timer h l38 l45 c define config arm timer secure irq gic ppi int base 13 define config arm timer non secure irq gic ppi int base 14 define config arm timer virtual irq gic ppi int base 11 define config arm timer hyp irq gic ppi int base 10 define arm arch timer irq config arm timer virtual irq define arm arch timer prio irq default priority define arm arch timer flags irq type level gic ppi int base is defined in arch arm64 src common arm64 gic h https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gic h l120 l128 c define gic sgi int base 0 define gic ppi int base 16 define gic is sgi intid intid gic sgi int base intid gic ppi int base define gic spi int base 32 define gic num intr per reg 32 define gic num cfg per reg 16 define gic num pri per reg 4 timer interrupt isn t handled previously nuttx hangs midsentence while booting on pinephone let s find out how we fixed it text arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 uart regi based on our experiments it seems the system timer https github com lupyuen pinephone nuttx system timer triggered a timer interrupt and nuttx hangs while attempting to handle the timer interrupt the timer interrupt handler arm64 arch timer compare isr https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 arch timer c l109 l169 is never called we checked using up putc https github com lupyuen pinephone nuttx boot debugging is it caused by pinephone s gic this problem doesn t seem to be caused by pinephone s generic interrupt controller gic https github com lupyuen pinephone nuttx interrupt controller that we have implemented we successfully tested pinephone s gic https github com lupyuen pinephone nuttx test pinephone gic with qemu with qemu let s troubleshoot the timer interrupt we called up putc https github com lupyuen pinephone nuttx boot debugging to understand how interrupts are handled on nuttx https github com lupyuen pinephone nuttx handling interrupts we also added debug code to the arm64 interrupt handler https github com lupyuen pinephone nuttx interrupt debugging maybe we should have used gdb with qemu https github com apache incubator nuttx tree master boards arm64 qemu qemu a53 we dumped the interrupt vector table https github com lupyuen pinephone nuttx dump interrupt vector table we verified that the timer interrupt handler address in the table is correct we confirmed that interrupt dispatcher irq dispatch https github com lupyuen pinephone nuttx handling interrupts isn t called and unexpected interrupt handler irq unexpected isr https github com lupyuen pinephone nuttx handling interrupts isn t called either let s backtrack maybe there s a problem in the arm64 interrupt handler but arm64 enter exception https github com lupyuen pinephone nuttx handling interrupts and arm64 irq handler https github com lupyuen pinephone nuttx handling interrupts aren t called either maybe the arm64 vector table vector table isn t correctly configured arch arm64 src common arm64 vector table s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vector table s l93 l232 and we re right the arm64 vector table is indeed incorrectly configured here why arm64 vector table is wrong earlier we saw that the interrupt handler wasn t called for system timer interrupt and it might be due to problems in the arm64 vector table vector table arch arm64 src common arm64 vector table s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vector table s l93 l232 let s check whether the arm64 vector table vector table is correctly configured in the arm cpu arch arm64 src common arm64 arch timer c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 arch timer c l212 l235 c void up timer initialize void attach system timer interrupt handler irq attach arm arch timer irq arm64 arch timer compare isr 0 for pinephone read vector base address register el1 extern void vector table sinfo vector table p n vector table sinfo before writing vbar el1 p n read sysreg vbar el1 after attaching the interrupt handler for system timer we read the arm64 vector base address register el1 https github com lupyuen pinephone nuttx handling interrupts here s the output text up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x400a7000 up timer initialize before writing vbar el1 0x40227000 aha vector table is at 0x400a7000 but vector base address register el1 says 0x40227000 our arm64 cpu is pointing to the wrong arm64 vector table hence our interrupt handler is never called let s fix the vector base address register el1 arch arm64 src common arm64 arch timer c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 arch timer c l212 l235 c for pinephone write vector base address register el1 write sysreg uint64 t vector table vbar el1 arm64 isb for pinephone read vector base address register el1 sinfo after writing vbar el1 p n read sysreg vbar el1 this writes the correct value of vector table back into vector base address register el1 here s the output text up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x400a7000 up timer initialize before writing vbar el1 0x40227000 up timer initialize after writing vbar el1 0x400a7000 yep vector base address register el1 is now correct and our interrupt handlers are now working fine yay test pinephone gic with qemu this is how we build nuttx for qemu with generic interrupt controller gic version 2 https github com lupyuen pinephone nuttx interrupt controller bash todo install build prerequisites https lupyuen github io articles uboot install prerequisites create nuttx directory mkdir nuttx cd nuttx download nuttx os for qemu with gic version 2 git clone recursive branch gicv2 https github com lupyuen incubator nuttx nuttx download nuttx apps for qemu git clone recursive branch arm64 https github com lupyuen incubator nuttx apps apps we ll build nuttx inside nuttx nuttx cd nuttx configure nuttx for single core tools configure sh l qemu a53 nsh build nuttx make dump the disassembly to nuttx s aarch64 none elf objdump t s demangle line numbers wide nuttx nuttx s 2 1 and this is how we tested pinephone s gic version 2 with qemu bash run gic v2 with qemu qemu system aarch64 smp 4 cpu cortex a53 nographic machine virt virtualization on gic version 2 net none chardev stdio id con mux on serial chardev con mon chardev con mode readline kernel nuttx note that gic version 2 instead of the usual gic version 3 for nuttx arm64 also we simulated 4 cores of arm cortex a53 similar to pinephone smp 4 qemu boots ok with pinephone s gic version 2 text ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x402c4000 heap size 0x7d3c000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x8000000 arm64 gic initialize config gicr base 0x8010000 arm64 gic initialize gic version is 2 efghup timer initialize up timer initialize cp15 timer s running at 62 50mhz cycle 62500 aklmnopbijuart register registering dev console uart register registering dev ttys0 aklmnopbijwork start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x402a7000 einit 0x402a7000 stext 0x40280000 etext 0x402a8000 nsh sysinit fopen failed 2 nsh mkfatfs command not found nuttshell nsh nuttx 10 3 0 rc2 nsh nx start cpu0 beginning idle loop so our implementation of gic version 2 for pinephone is probably ok is the timer interrupt triggered correctly with pinephone gic yes we verified that the timer interrupt handler arm64 arch timer compare isr https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 arch timer c l109 l169 is called periodically we checked using up putc https github com lupyuen pinephone nuttx boot debugging how did we get the gic base addresses text arm64 gic initialize config gicd base 0x8000000 arm64 gic initialize config gicr base 0x8010000 we got the gic v2 base addresses for gic distributor config gicd base and gic cpu interface config gicr base by dumping the device tree from qemu bash gic v2 dump device tree qemu system aarch64 smp 4 cpu cortex a53 nographic machine virt virtualization on gic version 2 dumpdtb gicv2 dtb net none chardev stdio id con mux on serial chardev con mon chardev con mode readline kernel nuttx convert device tree to text format dtc o gicv2 dts o dts i dtb gicv2 dtb the base addresses are revealed in the gic v2 device tree gicv2 dts https github com lupyuen incubator nuttx blob gicv2 gicv2 dts l324 text intc 8000000 reg 0x00 0x8000000 0x00 0x10000 gic distributor 0x8000000 0x00 0x8010000 0x00 0x10000 gic cpu interface 0x8010000 0x00 0x8030000 0x00 0x10000 vgic virtual interface control 0x8030000 0x00 0x8040000 0x00 0x10000 vgic virtual cpu interface 0x8040000 compatible arm cortex a15 gic more about this https www kernel org doc documentation devicetree bindings interrupt controller arm 2cgic txt we defined the base addresses in arch arm64 include qemu chip h https github com lupyuen incubator nuttx blob gicv2 arch arm64 include qemu chip h l38 l40 compare the above base addresses with the gic v3 device tree gicv3 dts https github com lupyuen incubator nuttx blob gicv2 gicv3 dts l324 text intc 8000000 reg 0x00 0x8000000 0x00 0x10000 gic distributor 0x8000000 0x00 0x80a0000 0x00 0xf60000 gic cpu interface 0x80a0000 redistributor regions 0x01 compatible arm gic v3 this is how we copied the pinephone gic v2 source files into nuttx qemu arm64 for testing bash cp pinephone nuttx nuttx arch arm64 src common arm64 gicv3 c gicv2 nuttx nuttx arch arm64 src common arm64 gicv3 c cp pinephone nuttx nuttx arch arm src armv7 a arm gicv2 c gicv2 nuttx nuttx arch arm src armv7 a arm gicv2 c cp pinephone nuttx nuttx arch arm src armv7 a gic h gicv2 nuttx nuttx arch arm src armv7 a gic h cp pinephone nuttx nuttx arch arm src armv7 a arm gicv2 dump c gicv2 nuttx nuttx arch arm src armv7 a arm gicv2 dump c cp pinephone nuttx nuttx arch arm64 src common arm64 arch timer c gicv2 nuttx nuttx arch arm64 src common arm64 arch timer c handling interrupts let s talk about nuttx and how it handles interrupts the interrupt vector table is defined in sched irq irq initialize c https github com lupyuen incubator nuttx blob pinephone sched irq irq initialize c l47 l53 c this is the interrupt vector table struct irq info s g irqvector nr irqs next section talks about dumping the interrupt vector table at startup the interrupt vector table is initialised to the unexpected interrupt handler irq unexpected isr sched irq irq initialize c https github com lupyuen incubator nuttx blob pinephone sched irq irq initialize c l59 l85 c name irq initialize description configure the irq subsystem void irq initialize void point all interrupt vectors to the unexpected interrupt for i 0 i nr irqs i g irqvector i handler irq unexpected isr up irqinitialize unexpected interrupt handler irq unexpected isr is called when an interrupt is triggered and there s no interrupt handler attached to the interrupt sched irq irq unexpectedisr c https github com lupyuen incubator nuttx blob pinephone sched irq irq unexpectedisr c l38 l59 c name irq unexpected isr description an interrupt has been received for an irq that was never registered with the system int irq unexpected isr int irq far void context far void arg up irq save err error irq d n irq panic to attach an interrupt handler we set the handler and the argument in the interrupt vector table sched irq irq attach c https github com lupyuen incubator nuttx blob pinephone sched irq irq attach c l37 l136 c name irq attach description configure the irq subsystem so that irq number irq is dispatched to isr int irq attach int irq xcpt t isr far void arg save the new isr and its argument in the table g irqvector irq handler isr g irqvector irq arg arg when an interrupt is triggered 1 arm cpu looks up the arm64 vector table vector table arch arm64 src common arm64 vector table s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vector table s l93 l232 text four types of exceptions synchronous aborts from mmu sp cp alignment checking unallocated instructions svcs smcs hvcs irq group 1 normal interrupts fiq group 0 or secure interrupts serror fatal system errors four different contexts from same exception level when using the sp el0 stack pointer from same exception level when using the sp elx stack pointer from lower exception level when this is aarch64 from lower exception level when this is aarch32 address exception type description vbar eln 0x000 synchronous current el with sp0 0x080 irq virq 0x100 fiq vfiq 0x180 serror vserror 0x200 synchronous current el with spx 0x280 irq virq 0x300 fiq vfiq 0x380 serror vserror 0x400 synchronous lower el using aarch64 0x480 irq virq 0x500 fiq vfiq 0x580 serror vserror 0x600 synchronous lower el using aarch64 0x680 irq virq 0x700 fiq vfiq 0x780 serror vserror gtext vector table section subsec func exc vector table vector table section vector table current el with sp0 irq align 7 arm64 enter exception x0 x1 b arm64 irq handler current el with spx irq align 7 arm64 enter exception x0 x1 b arm64 irq handler arm64 enter exception is defined here https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vector table s l41 l87 1 based on the arm64 vector table vector table arm cpu jumps to arm64 irq handler arch arm64 src common arm64 vectors s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vectors s l326 l413 text name arm64 irq handler description interrupt exception handler gtext arm64 irq handler section func text arm64 irq handler call arm64 decodeirq on the interrupt stack with interrupts disabled bl arm64 decodeirq 1 arm64 irq handler calls arm64 decodeirq to decode the interrupt arch arm64 src common arm64 gicv3 c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gicv3 c l800 l829 c name arm64 decodeirq description this function is called from the irq vector handler in arm64 vectors s at this point the interrupt has been taken and the registers have been saved on the stack this function simply needs to determine the the irq number of the interrupt and then to call arm doirq to dispatch the interrupt input parameters regs a pointer to the register save area on the stack decode irq for pinephone based on arm decodeirq in arm gicv2 c uint64 t arm64 decodeirq uint64 t regs if irq nr irqs dispatch the interrupt regs arm64 doirq irq regs 1 arm64 decodeirq calls arm64 doirq to dispatch the interrupt arch arm64 src common arm64 doirq c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 doirq c l64 l119 c name arm64 doirq description receives the decoded gic interrupt information and dispatches control to the attached interrupt handler uint64 t arm64 doirq int irq uint64 t regs deliver the irq irq dispatch irq regs 1 irq dispatch calls the interrupt handler fetched from the interrupt vector table sched irq irq dispatch c https github com lupyuen incubator nuttx blob pinephone sched irq irq dispatch c l115 l173 c name irq dispatch description this function must be called from the architecture specific logic in order to dispatch an interrupt to the appropriate registered handling logic void irq dispatch int irq far void context if unsigned irq nr irqs if g irqvector ndx handler vector g irqvector ndx handler arg g irqvector ndx arg then dispatch to the interrupt handler call vector ndx vector irq context arg how is the arm64 vector table vector table https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vector table s l93 l232 configured in the arm cpu the arm64 vector table vector table https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vector table s l93 l232 is configured in the arm cpu during el1 init by arm64 boot el1 init arch arm64 src common arm64 boot c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 boot c l132 l162 c void arm64 boot el1 init void setup vector table write sysreg uint64 t vector table vbar el1 arm64 isb vbar el1 refers to vector base address register el1 see arm cortex a53 technical reference manual page 4 121 vector base address register el1 https documentation service arm com static 5e9075f9c8052b1608761519 token arm64 vector table is also configured during el3 init by arm64 boot el3 init https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 boot c l39 l75 el1 init arm64 boot el1 init is called by our startup code arch arm64 src common arm64 head s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l216 l230 text print switch el1 boot from el1 r n el1 init bl arm64 boot el1 init set sp elx and enable serror interrupts msr spsel 1 msr daifclr daifclr abt bit isb jump to c entry print jump to c entry boot to c runtime for os initialize r n ret x25 what are el1 and el3 according to arm cortex a53 technical reference manual https documentation service arm com static 5e9075f9c8052b1608761519 token page 3 5 exception level the armv8 exception model defines exception levels el0 el3 where el0 has the lowest software execution privilege and execution at el0 is called unprivileged execution increased exception levels from 1 to 3 indicate increased software execution privilege el2 provides support for processor virtualization el3 provides support for a secure state see security state on page 3 6 pinephone only uses el1 and el2 but not el3 text hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize from this we see that nuttx runs mostly in el1 el1 is less privileged than el2 which supports processor virtualization dump interrupt vector table this is how we dump the interrupt vector table to troubleshoot interrupts based on arch arm64 src common arm64 arch timer c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 arch timer c l210 l240 c include irq irq h for dumping interrupt vector table void up timer initialize void attach system timer interrupt handler irq attach arm arch timer irq arm64 arch timer compare isr 0 begin dumping interrupt vector table sinfo arm arch timer irq d n arm arch timer irq sinfo arm64 arch timer compare isr p n arm64 arch timer compare isr sinfo irq unexpected isr p n irq unexpected isr for int i 0 i nr irqs i sinfo g irqvector d handler p n i g irqvector i handler end dumping interrupt vector table this code runs at startup to attach the very first interrupt handler for the system timer interrupt https github com lupyuen pinephone nuttx system timer we see that the system timer interrupt number irq is 27 text up timer initialize arm arch timer irq 27 up timer initialize arm64 arch timer compare isr 0x4009ae18 up timer initialize irq unexpected isr 0x400820e0 up timer initialize g irqvector 0 handler 0x400820e0 up timer initialize g irqvector 26 handler 0x400820e0 up timer initialize g irqvector 27 handler 0x4009ae18 up timer initialize g irqvector 28 handler 0x400820e0 up timer initialize g irqvector 219 handler 0x400820e0 all entries in the interrupt vector table point to the unexpected interrupt handler irq unexpected isr https github com lupyuen pinephone nuttx handling interrupts except for g irqvector 27 which points to the system timer interrupt handler arm64 arch timer compare isr https github com lupyuen pinephone nuttx system timer interrupt debugging can we debug the arm64 interrupt handler yep we can write to the uart port like this based on arch arm64 src common arm64 vectors s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vectors s l326 l413 text pinephone allwinner a64 uart0 base address define uart1 base address 0x01c28000 qemu uart base address previously define uart1 base address 0x9000000 name arm64 irq handler description interrupt exception handler gtext arm64 irq handler section func text arm64 irq handler mov x0 84 for debug t ldr x1 uart1 base address for debug strb w0 x1 for debug switch to irq stack and save current sp on it this will print t on the console whenever the arm64 cpu triggers an interrupt assuming that the uart buffer hasn t overflowed we can insert this debug code for every handler in arch arm64 src common arm64 vectors s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vectors s arm64 sync exc https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vectors s l172 l324 handle synchronous exception arm64 irq handler https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vectors s l326 l413 interrupt exception handler arm64 serror handler https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vectors s l401 l413 serror handler fatal system errors arm64 mode32 error https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vectors s l415 l425 mode32 error arm64 irq spurious https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vectors s l427 l438 spurious interrupt this is how we insert the debug code for every handler in arm64 vectors s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vectors s https gist github com lupyuen 4bea83c61704080f1af18abfda63c77e we can do the same for the arm64 vector table arch arm64 src common arm64 vector table s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 vector table s l47 l75 text pinephone allwinner a64 uart0 base address define uart1 base address 0x01c28000 qemu uart base address previously define uart1 base address 0x9000000 save corruptible registers and exception context on the task stack note allocate stackframe with xcptcontext gp regs which is arm64 esf regs arm64 cs regs but only save arm64 esf regs macro arm64 enter exception xreg0 xreg1 sub sp sp 8 xcptcontext gp regs stp x0 x1 sp 8 reg x0 stp x2 x3 sp 8 reg x2 stp x28 x29 sp 8 reg x28 mov x0 88 for debug x ldr x1 uart1 base address for debug strb w0 x1 for debug memory map pinephone depends on arm s memory management unit mmu we defined two mmu memory regions for pinephone ram and device i o arch arm64 include qemu chip h https github com lupyuen incubator nuttx blob pinephone arch arm64 include qemu chip h l38 l62 c pinephone generic interrupt controller gic dist 0x01c80000 0x1000 gic cpuif 0x01c80000 0x2000 define config gicd base 0x01c81000 define config gicr base 0x01c82000 previously define config gicd base 0x8000000 define config gicr base 0x80a0000 pinephone ram 0x4000 0000 to 0x4800 0000 define config rambank1 addr 0x40000000 define config rambank1 size mb 128 pinephone device i o 0x0 to 0x2000 0000 define config deviceio baseaddr 0x00000000 define config deviceio size mb 512 previously define config deviceio baseaddr 0x7000000 define config deviceio size mb 512 pinephone uboot load address kernel addr r define config load base 0x40080000 previously define config load base 0x40280000 we also changed config load base for pinephone s kernel start address kernel addr r how are the mmu memory regions used nuttx initialises the arm mmu with the mmu memory regions at startup arch arm64 src qemu qemu boot c https github com lupyuen incubator nuttx blob pinephone arch arm64 src qemu qemu boot c l52 l67 c static const struct arm mmu region mmu regions mmu region flat entry device region config deviceio baseaddr mb 512 mt device ngnrne mt rw mt secure mmu region flat entry dram0 s0 config rambank1 addr mb 512 mt normal mt rw mt secure const struct arm mmu config mmu config num regions array size mmu regions mmu regions mmu regions the arm mmu initialisation is done by arm64 mmu init defined in arch arm64 src common arm64 mmu c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 mmu c l571 l622 we ll talk more about the arm mmu in the next section boot sequence read the article pinephone boots nuttx https lupyuen github io articles unicorn2 pinephone boots nuttx pinephone continues booting nuttx https lupyuen github io articles unicorn2 pinephone continues booting nuttx start nsh shell https lupyuen github io articles unicorn2 appendix start nsh shell this section describes the boot sequence for nuttx on pinephone 1 startup code https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l117 l176 in arm64 assembly inits the arm64 system registers and uart port 1 startup code https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l178 l182 prints the hello message text hello nuttx on pinephone ready to boot cpu 1 startup code https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l199 l213 calls arm64 boot el2 init https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 boot c l91 l130 to init el2 text boot from el2 1 startup code https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l215 l226 calls arm64 boot el1 init https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 boot c l132 l162 to init el1 and load the vector base address register el1 https github com lupyuen pinephone nuttx handling interrupts text boot from el1 1 startup code https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l228 l230 jumps to arm64 boot secondary c routine arch arm64 src common arm64 head s https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 head s l228 l230 text ldr x25 arm64 boot secondary c routine jump to c entry print jump to c entry boot to c runtime for os initialize r n ret x25 which appears as text boot to c runtime for os initialize 1 todo who calls qemu pl011 setup to init the uart port 1 arm64 boot primary c routine inits the bss calls arm64 chip boot to init the arm64 cpu and nx start to start the nuttx processes arch arm64 src common arm64 boot c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 boot c l179 l189 c void arm64 boot primary c routine void boot early memset start bss 0 end bss start bss arm64 chip boot nx start which appears as text nx start entry 1 arm64 chip boot calls arm64 mmu init to enable the arm memory management unit and qemu board initialize to init the board drivers arch arm64 src qemu qemu boot c https github com lupyuen incubator nuttx blob pinephone arch arm64 src qemu qemu boot c l81 l105 c void arm64 chip boot void map io and dram enable mmu arm64 mmu init true ifdef config smp arm64 psci init smc endif perform board specific device initialization this would include configuration of board specific resources such as gpios leds etc qemu board initialize ifdef use earlyserialinit perform early serial initialization if we are going to use the serial driver qemu earlyserialinit endif arm64 mmu init is defined in arch arm64 src common arm64 mmu c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 mmu c l571 l622 1 todo who calls up allocate heap to allocate the heap text up allocate heap heap start 0x0x400c4000 heap size 0x7f3c000 1 todo who calls arm64 gic initialize https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 gicv3 c l710 l734 to init the gic text arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 1 todo who calls up timer initialize https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 arch timer c l212 l235 to start the system timer 1 todo who calls uart register to register dev console and dev ttys0 1 todo who calls qemu pl011 attach to attach uart interrupt and qemu pl011 rxint to enable uart receive interrupt 1 todo who calls work start highpri to start high priority kernel worker thread s 1 todo who calls nx start application to starting init thread 1 todo who calls nxtask start to start the nuttx shell 1 nxtask start https github com lupyuen incubator nuttx blob pinephone sched task task start c l60 l145 calls nxtask startup https github com lupyuen incubator nuttx blob pinephone libs libc sched task startup c l40 l71 to start the nuttx shell 1 nxtask startup https github com lupyuen incubator nuttx blob pinephone libs libc sched task startup c l40 l71 calls lib cxx initialize https github com lupyuen incubator nuttx blob pinephone libs libc misc lib cxx initialize c l68 l123 to init the c constructors text lib cxx initialize sinit 0x400a7000 einit 0x400a7000 stext 0x40080000 etext 0x400a8000 then nxtask startup https github com lupyuen incubator nuttx blob pinephone libs libc sched task startup c l40 l71 calls the main entry point for the nuttx shell entrypt https github com lupyuen incubator nuttx blob pinephone libs libc sched task startup c l66 l70 1 entrypt https github com lupyuen incubator nuttx blob pinephone libs libc sched task startup c l66 l70 points to nsh main https github com lupyuen incubator nuttx apps blob pinephone system nsh nsh main c l87 l165 the main function for the nuttx shell 1 nsh main https github com lupyuen incubator nuttx apps blob pinephone system nsh nsh main c l87 l165 starts the nuttx shell uart transmit and receive interrupts must work otherwise nothing appears in nuttx shell because nuttx shell calls stream i o with the serial driver 1 todo who calls qemu pl011 txint to enable uart transmit interrupt text hhhhhhhhhhhh qemu pl011 txint 1 todo who calls qemu pl011 rxint to enable uart receive interrupt text gg qemu pl011 rxint 1 nx start starts the idle loop text nx start cpu0 beginning idle loop the next section talks about debugging the boot sequence boot debugging how can we debug nuttx while it boots we may call up putc to print characters to the serial console and troubleshoot the boot sequence arch arm64 src common arm64 boot c https github com lupyuen incubator nuttx blob pinephone arch arm64 src common arm64 boot c l179 l189 c void arm64 boot primary c routine void int up putc int ch for debugging up putc 0 for debugging boot early memset start bss 0 end bss start bss up putc 1 for debugging arm64 chip boot up putc 2 for debugging nx start this prints 012 to the serial console as nuttx boots up putc https github com lupyuen incubator nuttx blob pinephone arch arm64 src qemu qemu serial c l924 l946 calls up lowputc https github com lupyuen incubator nuttx blob pinephone arch arm64 src qemu qemu lowputc s l100 l109 to print directly to the uart port by writing to the uart register so it s safe to be called as nuttx boots uart interrupts previously we noticed that nuttx shell wasn t generating output on the serial console we discovered that sinfo syslog works but printf puts doesn t here s what we tested with nuttx shell system nsh nsh main c https github com lupyuen incubator nuttx apps blob pinephone system nsh nsh main c l88 l102 c name nsh main description this is the main logic for the case of the nsh task it will perform one time nsh initialization and start an interactive session on the current console device int main int argc far char argv sinfo main n printf main2 n sinfo main3 n main2 never appears in the output because uart transmit interrupts qemu pl011 txint haven t been implemented text nsh main main hh qemu pl011 txint nsh main main3 this is the sequence of calls to qemu pl011 attach qemu pl011 rxint and qemu pl011 txint for uart transmit and receive interrupts text uart register registering dev console uart register registering dev ttys0 k qemu pl011 attach g qemu pl011 rxint work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x400a7000 einit 0x400a7000 stext 0x40080000 etext 0x400a8000 nsh main main puts a hh qemu pl011 txint puts b nsh main main3 hhhhhhhhhhhh qemu pl011 txint gg qemu pl011 rxint nx start cpu0 beginning idle loop we need to implement uart transmit and receive interrupts to support nuttx shell here s our implementation nuttx rtos on pinephone uart driver https lupyuen github io articles serial backlight and leds read the article nuttx rtos for pinephone blinking the leds https lupyuen github io articles pio let s light up the pinephone backlight and the red green blue leds based on the pinephone schematic https files pine64 org doc pinephone pinephone 20v1 2b 20released 20schematic pdf backlight enable is connected to gpio ph10 ph10 lcd bl en backlight pwm is connected to pwm pl10 pl10 lcd pwm this is how we turn on gpio ph10 in allwinner a64 port controller pio examples hello hello main c https github com lupyuen incubator nuttx apps blob pinephone examples hello hello main c l83 l122 c pio base address for pinephone allwinner a64 port controller gpio define pio base address 0x01c20800 turn on the pinephone backlight static void test backlight void from pinephone schematic https files pine64 org doc pinephone pinephone 20v1 2b 20released 20schematic pdf backlight enable gpio ph10 ph10 lcd bl en backlight pwm pwm pl10 pl10 lcd pwm we won t handle the pwm yet write to ph configure register 1 ph cfg1 reg offset 0x100 uint32 t ph cfg1 reg uint32 t pio base address 0x100 bits 10 to 8 ph10 select default 0x7 000 input 001 output 010 mic clk 011 reserved 100 reserved 101 reserved 110 ph eint10 111 io disable ph cfg1 reg ph cfg1 reg 0b111 8 clear the bits 0b001 8 set the bits for output printf ph cfg1 reg 0x x n ph cfg1 reg write to ph data register ph data reg offset 0x10c uint32 t ph data reg uint32 t pio base address 0x10c bits 11 to 0 ph dat default 0 if the port is configured as input the corresponding bit is the pin state if the port is configured as output the pin state is the same as the corresponding bit the read bit value is the value setup by software if the port is configured as functional pin the undefined value will be read ph data reg 1 10 set bit 10 for ph10 printf ph data reg 0x x n ph data reg the backlight lights up and the output shows text ph cfg1 reg 0x7177 ph data reg 0x400 now for the leds based on the pinephone schematic https files pine64 org doc pinephone pinephone 20v1 2b 20released 20schematic pdf red led is connected to gpio pd18 pd18 led r green led is connected to gpio pd19 pd19 led g blue led is connected to gpio pd20 pd20 led b this is how we turn on gpios pd18 pd19 pd20 in allwinner a64 port controller pio examples hello hello main c https github com lupyuen incubator nuttx apps blob pinephone examples hello hello main c l124 l179 c pio base address for pinephone allwinner a64 port controller gpio define pio base address 0x01c20800 turn on the pinephone red green and blue leds static void test led void from pinephone schematic https files pine64 org doc pinephone pinephone 20v1 2b 20released 20schematic pdf red led gpio pd18 pd18 led r green led gpio pd19 pd19 led g blue led gpio pd20 pd20 led b write to pd configure register 2 pd cfg2 reg offset 0x74 uint32 t pd cfg2 reg uint32 t pio base address 0x74 bits 10 to 8 pd18 select default 0x7 000 input 001 output 010 lcd clk 011 lvds vpc 100 rgmii txd0 mii txd0 rmii txd0 101 reserved 110 reserved 111 io disable pd cfg2 reg pd cfg2 reg 0b111 8 clear the bits 0b001 8 set the bits for output bits 14 to 12 pd19 select default 0x7 000 input 001 output 010 lcd de 011 lvds vnc 100 rgmii txck mii txck rmii txck 101 reserved 110 reserved 111 io disable pd cfg2 reg pd cfg2 reg 0b111 12 clear the bits 0b001 12 set the bits for output bits 18 to 16 pd20 select default 0x7 000 input 001 output 010 lcd hsync 011 lvds vp3 100 rgmii txctl mii txen rmii txen 101 reserved 110 reserved 111 io disable pd cfg2 reg pd cfg2 reg 0b111 16 clear the bits 0b001 16 set the bits for output printf pd cfg2 reg 0x x n pd cfg2 reg write to pd data register pd data reg offset 0x7c uint32 t pd data reg uint32 t pio base address 0x7c bits 24 to 0 pd dat default 0 if the port is configured as input the corresponding bit is the pin state if the port is configured as output the pin state is the same as the corresponding bit the read bit value is the value setup by software if the port is configured as functional pin the undefined value will be read pd data reg 1 18 set bit 18 for pd18 pd data reg 1 19 set bit 19 for pd19 pd data reg 1 20 set bit 20 for pd20 printf pd data reg 0x x n pd data reg the red green and blue leds turn on appearing as white and the output shows text pd cfg2 reg 0x77711177 pd data reg 0x1c0000 watch the demo on youtube https youtu be mjdxcckav0g here s the complete log for examples hello hello main c https github com lupyuen incubator nuttx apps blob pinephone examples hello hello main c text nsh hello task spawn name hello entry 0x4009b1a4 file actions 0x400c9580 attr 0x400c9588 argv 0x400c96d0 spawn execattrs setting policy 2 priority 100 for pid 3 abhello world ph cfg1 reg 0x7177 ph data reg 0x400 pd cfg2 reg 0x77711177 pd data reg 0x1c0000 tcon gctl reg 0x80000000 tcon0 3d fifo reg 0x80000631 tcon0 ctl reg 0x80000000 tcon0 basic0 reg 0x630063 tcon0 lvds if reg 0x80000000 nsh basic blinks the leds in the previous section we lit up pinephone s red green and blue leds below are the values we wrote to the allwinner a64 port controller text pd cfg2 reg 0x77711177 pd data reg 0x1c0000 let s do the same in basic which is great for interactive experimenting with pinephone hardware this will enable gpio output for pd18 red pd19 green pd20 blue in the register pd cfg2 reg 0x1c20874 text poke h1c20874 h77711177 this will light up red green and blue leds via the register pd data reg 0x1c2087c text poke h1c2087c h1c0000 and this will turn off all 3 leds via pd data reg 0x1c2087c text poke h1c2087c h0000 install the basic interpreter in nuttx enable basic https lupyuen github io articles nuttx enable basic and enter these commands to blink the pinephone leds off and on watch the demo on youtube https youtu be otihmird1s4 text nsh bas task spawn name bas entry 0x4009b340 file actions 0x400f3580 attr 0x400f3588 argv 0x400f36d0 spawn execattrs setting policy 2 priority 100 for pid 7 bas 2 4 copyright 1999 2014 michael haardt this is free software with absolutely no warranty print peek h1c20874 2004316535 poke h1c20874 h77711177 print peek h1c20874 2003898743 print peek h1c2087c 262144 poke h1c2087c h0000 print peek h1c2087c 0 poke h1c2087c h1c0000 print peek h1c2087c 1835008 or run it in a loop like so text 10 enable gpio output for pd18 pd19 and pd20 20 poke h1c20874 h77711177 30 turn off gpios pd18 pd19 and pd20 40 poke h1c2087c h0 50 sleep 5 60 turn on gpios pd18 pd19 and pd20 70 poke h1c2087c h1c0000 80 sleep 5 90 goto 40 run we patched nuttx basic so that it supports peek and poke interpreters bas bas fs c https github com lupyuen incubator nuttx apps blob pinephone interpreters bas bas fs c l1862 l1889 c int fs meminput int address return the 32 bit word at the specified address todo quit if address is invalid return int uint64 t address previously fs errmsg direct memory access not available return 1 int fs memoutput int address int value set the 32 bit word at the specified address todo quit if address is invalid int uint64 t address value return 0 previously fs errmsg direct memory access not available return 1 note that addresses are passed as 32 bit int so some 64 bit addresses will not be accessible via peek and poke nuttx drivers for allwinner a64 pio and pinephone leds we built the nuttx driver for allwinner a64 pio programmable i o arch arm64 src a64 a64 pio c https github com lupyuen2 wip pinephone nuttx blob pio arch arm64 src a64 a64 pio c which is based on the existing nuttx driver for allwinner a10 pio arch arm src a1x a1x pio c https github com lupyuen2 wip pinephone nuttx blob pio arch arm src a1x a1x pio c by calling the pio driver we created the nuttx driver for pinephone red green blue leds boards arm64 a64 pinephone src pinephone autoleds c https github com lupyuen2 wip pinephone nuttx blob pio boards arm64 a64 pinephone src pinephone autoleds c boards arm64 a64 pinephone src pinephone userleds c https github com lupyuen2 wip pinephone nuttx blob pio boards arm64 a64 pinephone src pinephone userleds c we tested the led driver with the leds test app here s the test log nuttx pinephone led log https gist github com lupyuen b9de190aba4598752d827f1105571a6a from the test log we see the red green blue leds set to the colour combinations text led daemon led set 0x00 black led daemon led set 0x01 green led daemon led set 0x02 red led daemon led set 0x03 yellow led daemon led set 0x04 blue led daemon led set 0x05 cyan led daemon led set 0x06 magenta led daemon led set 0x07 white pinephone pio and leds are now supported in nuttx mainline https github com apache nuttx pull 7796 pinephone device tree let s figure out how allwinner a64 s display timing controller tcon0 talks to pinephone s mipi dsi display so we can build nuttx drivers more info on pinephone display genode operating system framework 22 05 https genode org documentation genode platforms 22 05 pdf pages 171 to 197 we tried tweaking the tcon0 controller but the display is still blank maybe backlight is off examples hello hello main c https github com lupyuen incubator nuttx apps blob pinephone examples hello hello main c l75 l234 below is the device tree for pinephone s linux kernel pinephone device tree sun50i a64 pinephone 1 2 dts sun50i a64 pinephone 1 2 dts we converted the device tree with this command convert device tree to text format dtc o sun50i a64 pinephone 1 2 dts o dts i dtb sun50i a64 pinephone 1 2 dtb sun50i a64 pinephone 1 2 dtb came from the jumpdrive microsd https lupyuen github io articles uboot pinephone jumpdrive high level doc of linux drivers devicetree bindings display sunxi sun4i drm txt https www kernel org doc documentation devicetree bindings display sunxi sun4i drm txt pinephone schematic shows the connections for display touch panel and backlight pinephone v1 2b released schematic https files pine64 org doc pinephone pinephone 20v1 2b 20released 20schematic pdf here are the interesting bits from the pinephone linux device tree sun50i a64 pinephone 1 2 dts sun50i a64 pinephone 1 2 dts lcd controller tcon0 text lcd controller 1c0c000 compatible allwinner sun50i a64 tcon lcd 0allwinner sun8i a83t tcon lcd reg 0x1c0c000 0x1000 interrupts 0x00 0x56 0x04 clocks 0x02 0x2f 0x02 0x64 clock names ahb 0tcon ch0 clock output names tcon pixel clock clock cells 0x00 resets 0x02 0x18 0x02 0x23 reset names lcd 0lvds ports address cells 0x01 size cells 0x00 tcon0 mipi dsi display port 0 address cells 0x01 size cells 0x00 reg 0x00 endpoint 0 reg 0x00 remote endpoint 0x22 phandle 0x1e endpoint 1 reg 0x01 remote endpoint 0x23 phandle 0x20 tcon1 hdmi port 1 source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l446 l492 mipi dsi interface text dsi 1ca0000 compatible allwinner sun50i a64 mipi dsi reg 0x1ca0000 0x1000 interrupts 0x00 0x59 0x04 clocks 0x02 0x1c resets 0x02 0x05 phys 0x53 phy names dphy status okay address cells 0x01 size cells 0x00 vcc dsi supply 0x45 port endpoint remote endpoint 0x54 phandle 0x24 panel 0 compatible xingbangda xbd599 reg 0x00 reset gpios 0x2b 0x03 0x17 0x01 iovcc supply 0x55 vcc supply 0x48 backlight 0x56 source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l1327 l1356 display phy text d phy 1ca1000 compatible allwinner sun50i a64 mipi dphy 0allwinner sun6i a31 mipi dphy reg 0x1ca1000 0x1000 clocks 0x02 0x1c 0x02 0x71 clock names bus 0mod resets 0x02 0x05 status okay phy cells 0x00 phandle 0x53 source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l1358 l1367 backlight pwm text backlight compatible pwm backlight pwms 0x62 0x00 0xc350 0x01 enable gpios 0x2b 0x07 0x0a 0x00 power supply 0x48 brightness levels 0x1388 0x1480 0x1582 0x16e2 0x18c9 0x1b4b 0x1e7d 0x2277 0x274e 0x2d17 0x33e7 0x3bd5 0x44f6 0x4f5f 0x5b28 0x6864 0x7729 0x878e 0x99a7 0xad8b 0xc350 num interpolated steps 0x32 default brightness level 0x1f4 phandle 0x56 source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l1832 l1841 from pinephone schematic https files pine64 org doc pinephone pinephone 20v1 2b 20released 20schematic pdf backlight enable gpio ph10 ph10 lcd bl en backlight pwm pwm pl10 pl10 lcd pwm led text leds compatible gpio leds blue function indicator color 0x03 gpios 0x2b 0x03 0x14 0x00 retain state suspended green function indicator color 0x02 gpios 0x2b 0x03 0x12 0x00 retain state suspended red function indicator color 0x01 gpios 0x2b 0x03 0x13 0x00 retain state suspended source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l1940 l1963 from pinephone schematic https files pine64 org doc pinephone pinephone 20v1 2b 20released 20schematic pdf red led gpio pd18 pd18 led r green led gpio pd19 pd19 led g blue led gpio pd20 pd20 led b framebuffer text framebuffer lcd compatible allwinner simple framebuffer 0simple framebuffer allwinner pipeline mixer0 lcd0 clocks 0x02 0x64 0x03 0x06 status disabled source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l16 l21 display engine text display engine compatible allwinner sun50i a64 display engine allwinner pipelines 0x07 0x08 status okay source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l98 l102 touch panel text touchscreen 5d compatible goodix gt917s reg 0x5d interrupt parent 0x2b interrupts 0x07 0x04 0x04 irq gpios 0x2b 0x07 0x04 0x00 reset gpios 0x2b 0x07 0x0b 0x00 avdd28 supply 0x48 vddio supply 0x48 touchscreen size x 0x2d0 touchscreen size y 0x5a0 source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l1125 l1136 video codec text video codec 1c0e000 compatible allwinner sun50i a64 video engine reg 0x1c0e000 0x1000 clocks 0x02 0x2e 0x02 0x6a 0x02 0x5f clock names ahb 0mod 0ram resets 0x02 0x17 interrupts 0x00 0x3a 0x04 allwinner sram 0x28 0x01 source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l539 l547 gpu text gpu 1c40000 compatible allwinner sun50i a64 mali 0arm mali 400 reg 0x1c40000 0x10000 interrupts 0x00 0x61 0x04 0x00 0x62 0x04 0x00 0x63 0x04 0x00 0x64 0x04 0x00 0x66 0x04 0x00 0x67 0x04 0x00 0x65 0x04 interrupt names gp 0gpmmu 0pp0 0ppmmu0 0pp1 0ppmmu1 0pmu clocks 0x02 0x35 0x02 0x72 clock names bus 0core resets 0x02 0x1f assigned clocks 0x02 0x72 assigned clock rates 0x1dcd6500 source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l1246 l1256 deinterlace text deinterlace 1e00000 compatible allwinner sun50i a64 deinterlace 0allwinner sun8i h3 deinterlace reg 0x1e00000 0x20000 clocks 0x02 0x31 0x02 0x66 0x02 0x61 clock names bus 0mod 0ram resets 0x02 0x1a interrupts 0x00 0x5d 0x04 interconnects 0x57 0x09 interconnect names dma mem source https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l1369 l1378 zig on pinephone let s run this zig app on nuttx for pinephone display zig display zig in nuttx enable the null example app make menuconfig select application configuration examples null example compile the zig app based on the gcc compiler options see below bash change home nuttx for your nuttx project directory cd home nuttx download the zig app git clone recursive https github com lupyuen pinephone nuttx cd pinephone nuttx compile the zig app for pinephone armv8 a with cortex a53 todo change home nuttx to your nuttx project directory zig build obj verbose cimport target aarch64 freestanding none mcpu cortex a53 isystem home nuttx nuttx include i home nuttx apps include display zig copy the compiled app to nuttx and overwrite null o todo change home nuttx to your nuttx project directory cp display o home nuttx apps examples null null o build nuttx to link the zig object from null o todo change home nuttx to your nuttx project directory cd home nuttx nuttx make run the zig app text nsh null hello zig on pinephone how did we get the zig compiler options target mcpu isystem and i make trace shows these gcc compiler options when building nuttx for pinephone bash aarch64 none elf gcc c fno common wall wstrict prototypes wshadow wundef werror os fno strict aliasing fomit frame pointer g march armv8 a mtune cortex a53 isystem users luppy pinephone nuttx nuttx include d nuttx pipe i users luppy pinephone nuttx apps include dmain hello main hello main c o hello main c users luppy pinephone nuttx apps examples hello o we copied and modified these gcc compiler options for zig what about d nuttx the zig compiler won t let us specify c macros at the command line so we defined the macro nuttx in our zig app https github com lupyuen pinephone nuttx blob 2d938b9f09a165c0ff82b5dbbb12f1c4c6db61f2 display zig l27 l42 pinephone display driver read the articles nuttx rtos for pinephone mipi display serial interface https lupyuen github io articles dsi3 nuttx rtos for pinephone display engine https lupyuen github io articles de3 let s talk about the nuttx driver for pinephone mipi dsi display engine and timing controller zig driver for pinephone mipi dsi with zig we create a quick prototype of the nuttx driver for mipi dsi display zig display zig https github com lupyuen pinephone nuttx blob 4840d2f1bd42d6bc596040f5417fd8cf8a6dcfeb display zig l62 l167 this mipi dsi interface is compatible with zephyr mipi dsi zephyr drivers mipi dsi h https github com zephyrproject rtos zephyr blob main include zephyr drivers mipi dsi h why zig for the mipi dsi driver we re doing quick prototyping so it s great to have zig catch any runtime problems caused by our bad coding underflow overflow array out of bounds and yet zig is so similar to c that we can test the zig driver with the rest of the c code also comptime compile time expressions in zig will be helpful when we initialise the st7703 lcd controller see this https lupyuen github io articles dsi initialise lcd controller compose mipi dsi long packet in zig to initialise pinephone s st7703 lcd controller our pinephone display driver for nuttx shall send mipi dsi long packets to st7703 long packet for mipi dsi https lupyuen github io articles dsi long packet for mipi dsi this is how our zig driver composes a mipi dsi long packet https github com lupyuen pinephone nuttx blob 1262f46622dc07442cf2aa59a4bbc57871308ed1 display zig l140 l204 compose mipi dsi short packet in zig for 1 or 2 bytes of data our pinephone display driver shall send mipi dsi short packets instead of long packets short packet for mipi dsi https lupyuen github io articles dsi appendix short packet for mipi dsi this is how our zig driver composes a mipi dsi short packet https github com lupyuen pinephone nuttx blob 1262f46622dc07442cf2aa59a4bbc57871308ed1 display zig l206 l261 compute error correction code in zig in our pinephone display driver for nuttx this is how we compute the error correction code for a mipi dsi packet https github com lupyuen pinephone nuttx blob 1262f46622dc07442cf2aa59a4bbc57871308ed1 display zig l263 l304 the error correction code is the last byte of the 4 byte packet header for long packets and short packets compute cyclic redundancy check in zig this is how our pinephone display driver computes the 16 bit cyclic redundancy check ccitt in zig https github com lupyuen pinephone nuttx blob 1262f46622dc07442cf2aa59a4bbc57871308ed1 display zig l306 l366 the cyclic redundancy check is the 2 byte packet footer for long packets test pinephone mipi dsi driver with qemu the above zig code for composing long packets and short packets was tested in qemu for arm64 with gic version 2 bash todo install build prerequisites https lupyuen github io articles uboot install prerequisites create nuttx directory mkdir nuttx cd nuttx download nuttx os for qemu with gic version 2 git clone recursive branch gicv2 https github com lupyuen incubator nuttx nuttx download nuttx apps for qemu git clone recursive branch arm64 https github com lupyuen incubator nuttx apps apps we ll build nuttx inside nuttx nuttx cd nuttx configure nuttx for single core tools configure sh l qemu a53 nsh build nuttx make dump the disassembly to nuttx s aarch64 none elf objdump t s demangle line numbers wide nuttx nuttx s 2 1 follow these steps to compile our zig app and link into nuttx zig on pinephone https github com lupyuen pinephone nuttx zig on pinephone start nuttx on qemu arm64 bash run gic v2 with qemu qemu system aarch64 smp 4 cpu cortex a53 nographic machine virt virtualization on gic version 2 net none chardev stdio id con mux on serial chardev con mon chardev con mode readline kernel nuttx here s the nuttx test log for our zig app on qemu arm64 text nuttshell nsh nuttx 11 0 0 rc2 nsh uname a nuttx 11 0 0 rc2 c938291 oct 7 2022 16 54 31 arm64 qemu a53 nsh null hello zig on pinephone testing compose short packet without parameter composeshortpacket channel 0 cmd 0x5 len 1 result 05 11 00 36 testing compose short packet with parameter composeshortpacket channel 0 cmd 0x15 len 2 result 15 bc 4e 35 testing compose long packet composelongpacket channel 0 cmd 0x39 len 64 result 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 test case for pinephone mipi dsi driver this is how we write a test case for the pinephone mipi dsi driver on nuttx https github com lupyuen pinephone nuttx blob aaf0ed0fb3e8ada663fe9c64f16ea9cb1e3235ed display zig l593 l639 the above test case shows this output on qemu arm64 text testing compose long packet composelongpacket channel 0 cmd 0x39 len 64 result 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 initialise st7703 lcd controller in zig pinephone s st7703 lcd controller needs to be initialised with these 20 commands initialise lcd controller https lupyuen github io articles dsi initialise lcd controller this is how we send the 20 commands with our nuttx driver in zig as dcs short writes and dcs long writes https github com lupyuen pinephone nuttx blob 40098cd9ea37ab5e0192b2dc006a98630fa6a7e8 display zig l62 l429 to send a command writedcs executes a dcs short write or dcs long write depending on the length of the command https github com lupyuen pinephone nuttx blob 40098cd9ea37ab5e0192b2dc006a98630fa6a7e8 display zig l431 l453 test zig display driver for pinephone to test our zig display driver with nuttx on pinephone we ll run this p boot display code p boot display code https gist github com lupyuen ee3adf76e76881609845d0ab0f768a95 here are the steps to download and run the nuttx binary image on pinephone 1 prepare a microsd card with pinephone jumpdrive pinephone jumpdrive microsd https lupyuen github io articles uboot pinephone jumpdrive 1 download the compressed nuttx binary image image gz https github com lupyuen pinephone nuttx releases download v1 1 0 image gz 1 copy the compressed nuttx binary image to jumpdrive microsd bash copy compressed nuttx binary image to jumpdrive microsd how to create jumpdrive microsd https lupyuen github io articles uboot pinephone jumpdrive todo change the microsd path cp image gz volumes no name 1 to access the uart port on pinephone we ll connect this usb serial debug cable at 115 2 kbps pinephone serial debug cable https wiki pine64 org index php pinephone serial console 1 insert the jumpdrive microsd into pinephone and power up 1 at the nuttx shell enter hello we should see text hello nuttx on pinephone shell nsh nuttx 11 0 0 rc2 nsh hello writedcs len 4 b9 f1 12 83 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c b9 f1 12 83 84 5d modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0x8312f1b9 modifyreg32 addr 0x308 val 0x00005d84 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 source https github com lupyuen pinephone nuttx testing nuttx zig driver for mipi dsi on pinephone our nuttx zig display driver powers on the pinephone display and works exactly like the c driver if we prefer to build the nuttx binary image ourselves here are the steps to download the following source files and build them text nuttx apps nuttx apps for pinephone including display engine application mk disclaimer directory mk nuttx nuttx os for pinephone authors contributing md disclaimer p boot modified p boot display code hacking license news pinephone nuttx zig display driver for pinephone license readme md display o display zig test display c test zig display driver 1 create the nuttx directory bash mkdir nuttx cd nuttx 1 download test display c into the nuttx folder test display c https gist github com lupyuen ee3adf76e76881609845d0ab0f768a95 1 download the modified p boot display code p boot 4 zip from pinephone nuttx releases tag pboot4 https github com lupyuen pinephone nuttx releases tag pboot4 extract into the nuttx folder and rename as p boot 1 download and build nuttx for pinephone inside the nuttx folder bash todo install build prerequisites https lupyuen github io articles uboot install prerequisites download nuttx os for pinephone git clone recursive branch pinephone https github com lupyuen incubator nuttx nuttx download nuttx apps for pinephone including display engine git clone recursive branch de https github com lupyuen incubator nuttx apps apps we ll build nuttx inside nuttx nuttx cd nuttx configure nuttx for single core tools configure sh l qemu a53 nsh build nuttx ignore the linker errors make 1 follow these steps to compile our zig app and link into nuttx zig on pinephone https github com lupyuen pinephone nuttx zig on pinephone 1 compress the nuttx binary image bash cp nuttx bin image rm f image gz gzip image 1 copy the compressed nuttx binary image image gz to jumpdrive microsd according to the steps above insert the jumpdrive microsd into pinephone and power up at the nuttx shell enter hello the steps look messy today hopefully we ll remove p boot after we have created our nuttx display driver can our driver render graphics on pinephone display our pinephone display driver isn t complete it handles mipi dsi for initialising st7703 but doesn t support allwinner a64 s display engine de and timing controller tcon which are needed for rendering graphics we ll implement de and tcon next mandelbrot set on pinephone https lupyuen github io images de title jpg display engine in allwinner a64 let s look inside pinephone s allwinner a64 display engine and render some graphics with apache nuttx rtos here s the doc for the display engine allwinner display engine 2 0 specifications https linux sunxi org images 7 7b allwinner de2 0 spec v1 0 pdf which display engine for a64 sun50iw1 h8 h3 h5 or a83 pinephone s a64 display engine is hidden in the allwinner h3 docs because allwinner a64 is actually a h3 upgraded with 64 bit cores the a64 is basically an allwinner h3 with the cortex a7 cores replaced with cortex a53 cores arm64 architecture they share most of the memory map clocks interrupts and also uses the same ip blocks source https linux sunxi org a64 according to the doc de base address is 0x0100 0000 page 24 let s look at the de mixers a64 display engine https lupyuen github io images de block1a jpg display engine mixers what s a display engine mixer de rt mixer page 87 the rt mixer core consist of dma overlay scaler and blender block it supports 4 layers overlay in one pipe and its result can scaler up or down to blender in the next processing the display engine has 2 mixers rt mixer0 and rt mixer1 de rt mixer0 has 4 channels de offset 0x10 0000 page 87 channel 0 for video dma0 video overlay video scaler channels 1 2 3 for ui dma1 2 3 ui overlays ui scalers ui blenders 4 overlay layers per channel layer priority is layer 3 layer2 layer 1 layer 0 page 89 channel 0 is unused we don t use video right now channel 1 has format xrgb 8888 channels 2 and 3 have format argb 8888 mixer0 registers glb at mixer0 offset 0x00000 de glb regs bld blender at mixer0 offset 0x01000 de bld regs ovl v ch0 video overlay channel 0 at mixer0 offset 0x2000 unused ovl ui ch1 ui overlay channel 1 at mixer0 offset 0x3000 ovl ui ch2 ui overlay channel 2 at mixer0 offset 0x4000 ovl ui ch3 ui overlay channel 3 at mixer0 offset 0x5000 post proc2 at mixer0 offset 0xb0000 de csc regs a64 display engine mixer0 https lupyuen github io images de mixer1a jpg de rt mixer1 has 2 channels de offset 0x20 0000 page 23 channel 0 for video dma0 video overlay video scaler channel 1 for ui dma1 ui overlay ui scaler ui blender we don t use mixer1 right now rt mixer0 and rt mixer1 are multiplexed to timing controller tcon0 tcon0 is connected to st7703 over mipi dsi so mixer0 mixes 1 video channel with 3 ui channels over dma and pumps the pixels continuously to st7703 lcd controller via the timing controller let s use the 3 ui channels to render 1 mandelbrot set 2 blue square 3 green circle mandelbrot set with ui overlays on pinephone https lupyuen github io images de overlay jpg why 2 mixers in a64 display engine maybe because a64 or h3 was designed for ott set top boxes https linux sunxi org h3 with picture in picture overlay videos the 3 ui overlay channels would be useful for overlaying a text ui on top of a video channel is that why allwinner calls them channels wait wasn t pine64 created thanks to ott boxes https en wikipedia org wiki pine64 text pine64 20initially 20operated 20as 20pine 20microsystems 20inc 20 fremont 2c 20california 2c 20founded 20by 20tl 20lim 2c 20the 20inventor 20of 20the 20popbox 20and 20popcorn 20hour 20series 20of 20media 20players 20sold 20under 20the 20syabas 20and 20cloud 20media 20brands 5b2 5d render colours let s render simple colour blocks on the pinephone display we allocate the framebuffer test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c c init framebuffer 0 fullscreen 720 x 1440 4 bytes per rgba pixel static uint32 t fb0 720 1440 int fb0 len sizeof fb0 sizeof fb0 0 we fill the framebuffer with blue green and red test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c c fill with blue green and red for int i 0 i fb0 len i colours are in argb format if i fb0 len 4 blue for top quarter fb0 i 0x80000080 else if i fb0 len 2 green for next quarter fb0 i 0x80008000 else red for lower half fb0 i 0x80800000 we allocate 3 ui channels test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c c allocate 3 ui channels static struct display disp memset disp 0 sizeof disp struct display d disp we init the 3 channels and render them test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c c init ui channel 1 base channel fullscreen 720 x 1440 d planes 0 fb start uintptr t fb0 framebuffer address d planes 0 fb pitch 720 4 framebuffer pitch d planes 0 src w 720 source width d planes 0 src h 1440 source height d planes 0 dst w 720 dest width d planes 0 dst h 1440 dest height init ui channel 2 first overlay square 600 x 600 d planes 1 fb start 0 to disable channel init ui channel 3 second overlay fullscreen 720 x 1440 with alpha blending d planes 2 fb start 0 to disable channel render the ui channels display commit d display commit is defined in the p boot display code display c https megous com git p boot tree src display c n2017 we should see these blue green and red blocks blue green red blocks on pinephone https lupyuen github io images de rgb jpg why the black lines channels 2 and 3 are disabled for now we ll use them to render ui overlays later render mandelbrot set let s render something more interesting mandelbrot set test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c c fill with mandelbrot set for int y 0 y 1440 y for int x 0 x 720 x convert pixel coordinates to a complex number float cx x start y 1440 0 x end x start float cy y start x 720 0 y end y start compute manelbrot set int m mandelbrot cx cy color depends on the number of iterations uint8 t hue 255 0 m max iter uint8 t saturation 255 uint8 t value m max iter 255 0 convert hue saturation value to rgb uint32 t rgb hsvtorgb hue saturation value set the pixel colour argb format int p y 720 x assert p fb0 len fb0 p 0x80000000 rgb mandelbrot and hsvtorgb are defined here test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c l330 l426 we should see this mandelbrot set mandelbrot set on pinephone https lupyuen github io images de title jpg animate madelbrot set now we animate the mandelbrot set test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c c omitted init ui channels 1 2 and 3 render the ui channels display commit d animate the mandelbrot set forever for fill with mandelbrot set for int y 0 y 1440 y for int x 0 x 720 x convert pixel coordinates to a complex number float cx x start y 1440 0 x end x start float cy y start x 720 0 y end y start compute manelbrot set int m mandelbrot cx cy color depends on the number of iterations uint8 t hue 255 0 m max iter uint8 t saturation 255 uint8 t value m max iter 255 0 convert hue saturation value to rgb uint32 t rgb hsvtorgb hue saturation value set the pixel colour argb format int p y 720 x assert p fb0 len fb0 p 0x80000000 rgb zoom in to 1 4 0 float x dest 1 4 float y dest 0 x start x dest x start 0 05 x end x end x dest 0 05 y start y dest y start 0 05 y end y end y dest 0 05 we should see the animated mandelbrot set demo video on youtube https youtu be toc9iiprwri don t we need to call display commit after every frame nope remember that the display engine reads our framebuffer directly via dma so any updates to the framebuffer will be pushed to the display instantly render square overlay this is how we render a blue square as an overlay on ui channel 2 test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c c init framebuffer 1 square 600 x 600 4 bytes per rgba pixel static uint32 t fb1 600 600 int fb1 len sizeof fb1 sizeof fb1 0 fill with blue for int i 0 i fb1 len i colours are in argb format fb1 i 0x80000080 init ui channel 2 first overlay square 600 x 600 d planes 1 fb start uintptr t fb1 framebuffer address d planes 1 fb pitch 600 4 framebuffer pitch d planes 1 src w 600 source width d planes 1 src h 600 source height d planes 1 dst w 600 dest width d planes 1 dst h 600 dest height d planes 1 dst x 52 dest x d planes 1 dst y 52 dest y render circle overlay this is how we render a green circle as an overlay on ui channel 3 test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c c init framebuffer 2 fullscreen 720 x 1440 4 bytes per rgba pixel static uint32 t fb2 720 1440 int fb2 len sizeof fb2 sizeof fb2 0 fill with green circle for int y 0 y 1440 y for int x 0 x 720 x get pixel index int p y 720 x assert p fb2 len shift coordinates so that centre of screen is 0 0 int x shift x 360 int y shift y 720 if x 2 y 2 radius 2 set the pixel to green if x shift x shift y shift y shift 360 360 fb2 p 0x80008000 green in argb format else otherwise set to black fb2 p 0x00000000 black in argb format init ui channel 3 second overlay fullscreen 720 x 1440 with alpha blending d planes 2 fb start uintptr t fb2 framebuffer address d planes 2 fb pitch 720 4 framebuffer pitch d planes 2 src w 720 source width d planes 2 src h 1440 source height d planes 2 dst w 720 dest width d planes 2 dst h 1440 dest height d planes 2 dst x 0 dest x d planes 2 dst y 0 dest y d planes 2 alpha 128 dest alpha note that we set the destination alpha so the green will appear nearly invisible we should see the animated mandelbrot set with blue square and green circle as overlays mandelbrot set with blue square and green circle on pinephone https lupyuen github io images de overlay jpg why the missing horizontal lines in the blue square and green circle test pinephone display engine to test the a64 display engine with nuttx on pinephone we ll run this p boot display code display c https megous com git p boot tree src display c n2017 with our test app test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c here are the steps to download and run the nuttx binary image on pinephone 1 prepare a microsd card with pinephone jumpdrive pinephone jumpdrive microsd https lupyuen github io articles uboot pinephone jumpdrive 1 download the compressed nuttx binary image image gz https github com lupyuen pinephone nuttx releases download v1 1 0 image gz 1 copy the compressed nuttx binary image to jumpdrive microsd bash copy compressed nuttx binary image to jumpdrive microsd how to create jumpdrive microsd https lupyuen github io articles uboot pinephone jumpdrive todo change the microsd path cp image gz volumes no name 1 to access the uart port on pinephone we ll connect this usb serial debug cable at 115 2 kbps pinephone serial debug cable https wiki pine64 org index php pinephone serial console 1 insert the jumpdrive microsd into pinephone and power up 1 at the nuttx shell enter hello we should see the animated mandelbrot set with blue square and green circle as overlays mandelbrot set with blue square and green circle on pinephone https lupyuen github io images de overlay jpg why the missing horizontal lines in the blue square and green circle if we prefer to build the nuttx binary image ourselves here are the steps to download the following source files and build them text nuttx apps nuttx apps for pinephone including display engine version 2 application mk disclaimer directory mk nuttx nuttx os for pinephone authors contributing md disclaimer p boot modified p boot display code hacking license news pinephone nuttx zig mipi dsi driver for pinephone license readme md display o display zig 1 create the nuttx directory bash mkdir nuttx cd nuttx 1 download the modified instrumented p boot display code p boot 6 zip from pinephone nuttx releases tag pboot6 https github com lupyuen pinephone nuttx releases tag pboot6 extract into the nuttx folder and rename as p boot 1 download and build nuttx for pinephone inside the nuttx folder bash todo install build prerequisites https lupyuen github io articles uboot install prerequisites download nuttx os for pinephone git clone recursive branch pinephone https github com lupyuen incubator nuttx nuttx download nuttx apps for pinephone including display engine version 2 git clone recursive branch de2 https github com lupyuen incubator nuttx apps apps we ll build nuttx inside nuttx nuttx cd nuttx configure nuttx for single core tools configure sh l qemu a53 nsh build nuttx ignore the linker errors make 1 follow these steps to compile our zig mipi dsi driver and link into nuttx zig on pinephone https github com lupyuen pinephone nuttx zig on pinephone 1 compress the nuttx binary image bash cp nuttx bin image rm f image gz gzip image 1 copy the compressed nuttx binary image image gz to jumpdrive microsd according to the steps above insert the jumpdrive microsd into pinephone and power up at the nuttx shell enter hello the steps look messy today hopefully we ll remove p boot after we have created our nuttx display driver display engine usage based on the log captured from our instrumented test display c https github com lupyuen incubator nuttx apps blob de2 examples hello test display c we have identified the steps to render 3 ui channels 1 to 3 with the display engine display commit https megous com git p boot tree src display c n2017 this is how we ll create a nuttx driver for pinephone s a64 display engine that implements display rendering 1 configure blender bld bkcolor bld bk color offset 0x88 bld background color register bld premultiply bld premul ctl offset 0x84 bld pre multiply control register text configure blender bld bkcolor 0x110 1088 0xff000000 bld premultiply 0x110 1084 0x0 1 for channels 1 to 3 1 if channel is unused disable overlay pipe and scaler skip to next channel ui config attr ovl ui attctl ovl ui offset 0x00 ovl ui attribute control register mixer 0x113 0000 0x10000 channel text channel 2 disable overlay and pipe ui config attr 0x110 4000 0x0 channel 3 disable overlay and pipe ui config attr 0x110 5000 0x0 channel 2 disable scaler mixer 0x115 0000 0x0 channel 3 disable scaler mixer 0x116 0000 0x0 1 channel 1 has format xrgb 8888 channel 2 and 3 have format argb 8888 1 set overlay assume layer 0 ui config attr ovl ui attctl ovl ui offset 0x00 ovl ui attribute control register ui config top laddr ovl ui top ladd ovl ui offset 0x10 ovl ui top field memory block low address register ui config pitch ovl ui pitch ovl ui offset 0x0c ovl ui memory pitch register ui config size ovl ui mbsize ovl ui offset 0x04 ovl ui memory block size register ui overlay size ovl ui size ovl ui offset 0x88 ovl ui overlay window size register io config coord ovl ui coor ovl ui offset 0x08 ovl ui memory block coordinate register text channel 1 set overlay fb0 is 720 x 1440 ui config attr 0x110 3000 0xff00 0405 ui config top laddr 0x110 3010 0x4064 a6ac address of fb0 ui config pitch 0x110 300c 0xb40 720 4 ui config size 0x110 3004 0x59f 02cf 1439 16 719 ui overlay size 0x110 3088 0x59f 02cf 1439 16 719 io config coord 0x110 3008 0x0 channel 2 set overlay fb1 is 600 x 600 ui config attr 0x110 4000 0xff00 0005 ui config top laddr 0x110 4010 0x404e adac address of fb1 ui config pitch 0x110 400c 0x960 600 4 ui config size 0x110 4004 0x257 0257 599 16 599 ui overlay size 0x110 4088 0x257 0257 599 16 599 io config coord 0x110 4008 0x0 channel 3 set overlay fb2 is 720 x 1440 ui config attr 0x110 5000 0x7f00 0005 ui config top laddr 0x110 5010 0x400f 65ac address of fb2 ui config pitch 0x110 500c 0xb40 720 4 ui config size 0x110 5004 0x59f 02cf 1439 16 719 ui overlay size 0x110 5088 0x59f 02cf 1439 16 719 io config coord 0x110 5008 0x0 note that ui config size and ui overlay size are height 1 16 width 1 1 for channel 1 set blender output bld output size bld size bld offset 0x08c bld output size setting register glb size glb size glb offset 0x00c global size register text channel 1 set blender output bld output size 0x110 108c 0x59f 02cf 1439 16 719 glb size 0x110 000c 0x59f 02cf 1439 16 719 1 set blender input pipe n pipe number from 0 to 2 for channels 1 to 3 bld pipe insize bld ch isize bld offset 0x008 n 0x14 bld input memory size register n 0 1 2 3 4 bld pipe fcolor bld fill color bld offset 0x004 n 0x14 bld fill color register n 0 1 2 3 4 bld pipe offset bld ch offset bld offset 0x00c n 0x14 bld input memory offset register n 0 1 2 3 4 bld pipe mode bld ctl bld offset 0x090 0x09c bld control register should n 0x14 be n 0x10 instead text channel 1 set blender input pipe 0 fb0 is 720 x 1440 bld pipe insize 0x110 1008 0x59f 02cf 1439 16 719 bld pipe fcolor 0x110 1004 0xff00 0000 bld pipe offset 0x110 100c 0x0 bld pipe mode 0x110 1090 0x301 0301 channel 2 set blender input pipe 1 fb1 is 600 x 600 bld pipe insize 0x110 1018 0x257 0257 599 16 599 bld pipe fcolor 0x110 1014 0xff00 0000 bld pipe offset 0x110 101c 0x34 0034 bld pipe mode 0x110 1094 0x301 0301 channel 3 set blender input pipe 2 fb2 is 720 x 1440 bld pipe insize 0x110 1028 0x59f 02cf 1439 16 719 bld pipe fcolor 0x110 1024 0xff00 0000 bld pipe offset 0x110 102c 0x0 bld pipe mode 0x110 1098 0x301 0301 note that bld pipe insize is height 1 16 width 1 1 disable scaler assuming we re not using scaler text channel 1 disable scaler mixer 0x114 0000 0x0 channel 2 disable scaler mixer 0x115 0000 0x0 channel 3 disable scaler mixer 0x116 0000 0x0 1 set bld route and bld fcolor control bld route bld ch rtctl bld offset 0x080 bld routing control register bld fcolor control bld fillcolor ctl bld offset 0x000 bld fill color control register text set bld route and bld fcolor control bld route 0x110 1080 0x321 bld fcolor control 0x110 1000 0x701 1 apply settings glb dbuff glb dbuff glb dbuffer glb offset 0x008 global double buffer control register text apply settings glb dbuff 0x110 0008 0x1 see the complete log https github com lupyuen pinephone nuttx testing p boot display engine on pinephone see memory mapping list and register list at page 90 other display engine features we won t use these display engine features today de rt wb page 116 the real time write back controller rt wb provides data capture function for display engine it captures data from rt mixer module performs the image resizing function and then write back to sdram for screen capture de vsu page 128 the video scaler vs provides yuv format image resizing function for display engine it receives data from overlay module performs the image resizing function and outputs to video post processing modules de rotation page 137 there are several types of rotation clockwise 0 90 180 270 degree rotation and h flip v flip operation of copy is the same as a 0 degree rotation timing controller in allwinner a64 see this timing controller tcon0 https lupyuen github io articles de appendix timing controller tcon0 blue green red blocks on pinephone https lupyuen github io images de2 test1 jpg zig driver for pinephone display engine we have created a zig driver for pinephone s allwinner a64 display engine that will render graphics nuttx rtos for pinephone render graphics in zig https lupyuen github io articles de2 rendering pinephone s display de and tcon0 https lupyuen github io articles de to test the rendering of graphics let s run this zig app on nuttx for pinephone render zig render zig display zig display zig follow the instructions in the next section to download and build the nuttx source code for pinephone in nuttx enable the null example app make menuconfig select application configuration examples null example compile the zig app based on the gcc compiler options see below bash change home nuttx for your nuttx project directory cd home nuttx download the zig app git clone recursive https github com lupyuen pinephone nuttx cd pinephone nuttx compile the zig app for pinephone armv8 a with cortex a53 todo change home nuttx to your nuttx project directory zig build obj verbose cimport target aarch64 freestanding none mcpu cortex a53 isystem home nuttx nuttx include i home nuttx apps include render zig copy the compiled app to nuttx and overwrite null o todo change home nuttx to your nuttx project directory cp render o home nuttx apps examples null null o build nuttx to link the zig object from null o todo change home nuttx to your nuttx project directory cd home nuttx nuttx make to run the zig app text render colour bars pic above hello 1 render colour bars with overlays pic below hello 3 how did we get the zig compiler options target mcpu isystem and i make trace shows these gcc compiler options when building nuttx for pinephone bash aarch64 none elf gcc c fno common wall wstrict prototypes wshadow wundef werror os fno strict aliasing fomit frame pointer g march armv8 a mtune cortex a53 isystem users luppy pinephone nuttx nuttx include d nuttx pipe i users luppy pinephone nuttx apps include dmain hello main hello main c o hello main c users luppy pinephone nuttx apps examples hello o we copied and modified these gcc compiler options for zig what about d nuttx the zig compiler won t let us specify c macros at the command line so we defined the macro nuttx in our zig app https github com lupyuen pinephone nuttx blob 6ba90edb155a0132400ce66752eea7612c0d022e render zig l32 l53 blue green red blocks with overlays https lupyuen github io images de2 test3 jpg test zig driver for pinephone display engine to test the a64 display engine with nuttx on pinephone we ll run our nuttx test app test display c https github com lupyuen incubator nuttx apps blob de3 examples hello test display c which calls our zig display driver for pinephone render zig render zig display zig display zig here are the steps to download and run the nuttx binary image on pinephone 1 prepare a microsd card with pinephone jumpdrive pinephone jumpdrive microsd https lupyuen github io articles uboot pinephone jumpdrive 1 download the compressed nuttx binary image image gz https github com lupyuen pinephone nuttx releases download v1 1 1 image gz 1 copy the compressed nuttx binary image to jumpdrive microsd bash copy compressed nuttx binary image to jumpdrive microsd how to create jumpdrive microsd https lupyuen github io articles uboot pinephone jumpdrive todo change the microsd path cp image gz volumes no name 1 to access the uart port on pinephone we ll connect this usb serial debug cable at 115 2 kbps pinephone serial debug cable https wiki pine64 org index php pinephone serial console 1 insert the jumpdrive microsd into pinephone and power up 1 at the nuttx shell enter hello 1 to render the blue green and red colour bars see the complete log https gist github com lupyuen 9824d0cece10bfdaa13da3660c6d9cf5 1 or enter hello 3 to render the same colour bars with blue square and green circle as overlays see the complete log https gist github com lupyuen d8d6710ab2ed16765816157cb97e54e7 if we prefer to build the nuttx binary image ourselves here are the steps to download the following source files and build them text nuttx apps nuttx apps for pinephone including display engine version 2 application mk disclaimer directory mk nuttx nuttx os for pinephone authors contributing md disclaimer p boot modified p boot display code hacking license news pinephone nuttx zig mipi dsi display engine driver for pinephone license readme md display zig render zig 1 create the nuttx directory bash mkdir nuttx cd nuttx 1 download the modified p boot display code p boot 11 zip from pinephone nuttx releases tag pboot11 https github com lupyuen pinephone nuttx releases tag pboot11 extract into the nuttx folder and rename as p boot 1 download and build nuttx for pinephone inside the nuttx folder bash todo install build prerequisites https lupyuen github io articles uboot install prerequisites download nuttx os for pinephone git clone recursive branch pinephone https github com lupyuen incubator nuttx nuttx download nuttx apps for pinephone including display engine version 3 git clone recursive branch de3 https github com lupyuen incubator nuttx apps apps we ll build nuttx inside nuttx nuttx cd nuttx configure nuttx for single core tools configure sh l qemu a53 nsh build nuttx ignore the linker errors make 1 follow these steps to compile our zig mipi dsi driver and link into nuttx zig driver for pinephone display engine https github com lupyuen pinephone nuttx zig driver for pinephone display engine 1 compress the nuttx binary image bash cp nuttx bin image rm f image gz gzip image 1 copy the compressed nuttx binary image image gz to jumpdrive microsd according to the steps above insert the jumpdrive microsd into pinephone and power up at the nuttx shell enter hello 1 or hello 3 the steps look messy today hopefully we ll remove p boot after we have created our nuttx display driver complete pinephone display driver in zig we have completed the entire pinephone display driver in zig https github com lupyuen pinephone nuttx blob 432c15a55d97fd044f291aba292b1c4efb431f41 render zig l176 l226 here are the zig modules render zig render zig allwinner a64 display engine de display zig display zig allwinner a64 mipi display serial interface dsi dphy zig dphy zig allwinner a64 mipi display physical layer dphy tcon zig tcon zig allwinner a64 timing controller tcon0 backlight zig backlight zig pinephone display backlight pmic zig pmic zig pinephone power management integrated circuit panel zig panel zig pinephone lcd panel this is the detailed output of the zig driver with register addresses and values testing zig driver on pinephone https github com lupyuen pinephone nuttx testing zig backlight driver on pinephone we ll merge these modules to nuttx mainline as a nuttx framebuffer driver we created these modules by reverse engineering the log generated by the p boot display code https gist github com lupyuen c12f64cf03d3a81e9c69f9fef49d9b70 add mipi dsi to nuttx kernel we re adding the mipi dsi driver to the nuttx kernel mipi dsi c https github com apache nuttx blob master arch arm64 src a64 mipi dsi c compose mipi dsi packets long short short with parameter a64 mipi dsi c https github com apache nuttx blob master arch arm64 src a64 a64 mipi dsi c mipi display serial interface dsi for allwinner a64 a64 mipi dphy c https github com apache nuttx blob master arch arm64 src a64 a64 mipi dphy c mipi display physical layer d phy for allwinner a64 we created the above nuttx source files in c by converting our zig mipi dsi driver to c display zig display zig zig driver for mipi dsi dphy zig dphy zig zig driver for mipi d phy that we reverse engineered from the logs that we captured from pinephone p boot understanding pinephone s display mipi dsi https lupyuen github io articles dsi nuttx rtos for pinephone display driver in zig https lupyuen github io articles dsi2 rendering pinephone s display de and tcon0 https lupyuen github io articles de nuttx rtos for pinephone render graphics in zig https lupyuen github io articles de2 was it difficult to convert zig to c not at all here s the zig code for our mipi dsi driver https github com lupyuen pinephone nuttx blob 3d33e5a49a5a3857c39fe8aa79af60902a70088e display zig l115 l170 and here s the converted c code for nuttx mipi dsi c https github com apache nuttx blob master arch arm64 src a64 mipi dsi c l392 l484 c ssize t mipi dsi short packet far uint8 t pktbuf size t pktlen uint8 t channel enum mipi dsi e cmd far const uint8 t txbuf size t txlen data identifier di 1 byte virtual channel identifier bits 6 to 7 data type bits 0 to 5 const uint8 t vc channel const uint8 t dt cmd const uint8 t di vc 6 dt data 2 bytes fill with 0 if second byte is missing const uint8 t data 2 txbuf 0 first byte txlen 2 txbuf 1 0 second byte data identifier data 3 bytes for computing error correction code ecc const uint8 t di data 3 di data 0 data 1 compute ecc for data identifier word count const uint8 t ecc compute ecc di data sizeof di data packet header 4 bytes data identifier data error correction code const uint8 t header 4 di data 0 di data 1 di data 2 ecc packet length is packet header size 4 bytes const size t len sizeof header ginfo channel d cmd 0x x txlen ld n channel cmd txlen debugassert pktbuf null txbuf null debugassert channel 4 debugassert cmd 1 6 if txlen 1 txlen 2 debugpanic return error if len pktlen debugpanic return error copy packet header to packet buffer memcpy pktbuf header sizeof header 4 bytes return the packet length return len the code looks highly similar rendering graphics on pinephone with apache nuttx rtos https lupyuen github io images dsi3 title jpg test mipi dsi for nuttx kernel how do we test the mipi dsi driver in the nuttx kernel right now we have implemented the following in the nuttx kernel driver for mipi display serial interface dsi driver for mipi display physical layer d phy but to render graphics on pinephone we need the following drivers which are still in zig pending conversion to c driver for display backlight driver for timing controller tcon0 driver for power mgmt ic driver for lcd panel driver for display engine running an integration test across the c and zig drivers will be a little interesting here s how we run the integration test we created this program in zig that calls the c and zig drivers in the right sequence https github com lupyuen pinephone nuttx blob bc560cea04f601542eb1d3d71fb00dbc647d982d render zig l1143 l1176 then we compile the zig test program targeting pinephone bash configure nuttx cd nuttx tools configure sh pinephone nsh make menuconfig select system type allwinner a64 peripheral selection de select system type allwinner a64 peripheral selection rsb select build setup debug options graphics debug features error warnings info select build setup debug options battery related debug features error warnings info select device drivers framebuffer overlay support save and exit menuconfig build nuttx make download the zig test program pushd home git clone https github com lupyuen pinephone nuttx cd pinephone nuttx compile the zig app for pinephone armv8 a with cortex a53 todo change home nuttx to your nuttx project directory zig build obj verbose cimport target aarch64 freestanding none mcpu cortex a53 isystem home nuttx nuttx include i home nuttx apps include render zig copy the compiled app to nuttx and overwrite hello o todo change home nuttx to your nuttx project directory cp render o home nuttx apps examples hello hello o return to the nuttx folder popd link the compiled zig app with nuttx make or download the binaries here https github com lupyuen pinephone nuttx releases tag v1 2 1 we boot nuttx on pinephone and run the zig test program text nuttshell nsh nuttx 11 0 0 pinephone nsh uname a nuttx 11 0 0 pinephone 2a1577a dirty dec 9 2022 13 57 47 arm64 pinephone nsh hello 0 source https gist github com lupyuen f1a02068aeb0785278c482116a4eedc7 yep our zig test program renders graphics successfully on pinephone pic above which means the nuttx kernel drivers for mipi dsi are working ok here s the test log for our zig test program running on nuttx and pinephone test log for nuttx mipi dsi on pinephone https gist github com lupyuen f1a02068aeb0785278c482116a4eedc7 what about unit testing can we test the mipi dsi d phy driver without other drivers yep our mipi dsi driver simply writes values to a bunch of a64 hardware registers like so a64 mipi dsi c https github com apache nuttx blob master arch arm64 src a64 a64 mipi dsi c l633 l646 c dsi configuration register 1 a31 page 846 set video start delay bits 4 to 16 to 1468 line delay set video precision mode align bit 2 to 1 fill mode set video frame start bit 1 to 1 precision mode set dsi mode bit 0 to 1 video mode note video start delay is actually 13 bits not 8 bits as stated in a31 user manual define dsi basic ctl1 reg a64 dsi addr 0x14 define dsi mode 1 0 define video frame start 1 1 define video precision mode align 1 2 define video start delay n n 4 dsi basic ctl1 video start delay 1468 video precision mode align video frame start dsi mode putreg32 dsi basic ctl1 dsi basic ctl1 reg include test code include pinephone nuttx test test a64 mipi dsi2 c so we only need to ensure that the hardware addresses and the written values are correct to do that we use assertion checks to verify the addresses and values test a64 mipi dsi2 c https github com lupyuen pinephone nuttx blob main test test a64 mipi dsi2 c l34 l35 c test code debugassert dsi basic ctl1 reg 0x1ca0014 debugassert dsi basic ctl1 0x5bc7 if the addresses or values are incorrect our mipi dsi driver halts with an assertion failure we remove the assertion checks in the final version of our driver what about a smaller self contained unit test for mipi dsi here s the unit test that verifies mipi dsi packets long short short with parameter are composed correctly https github com lupyuen pinephone nuttx blob 46f055eceae268fa7ba20d69c12d4823491a89b9 test test mipi dsi c l1 l109 can we test the mipi dsi driver on our local computer without running on pinephone most certainly in fact we test the mipi dsi driver on our local computer first before testing on pinephone here s how remember that our mipi dsi driver simply writes values to a bunch of a64 hardware registers so we only need to ensure that the hardware addresses and the written values are correct we created a test scaffold that simulates the nuttx build environment https github com lupyuen pinephone nuttx blob 44167d81edbd054d3285ca3a6087926e6fc9ce79 test test c l7 l51 then we compile the test scaffold and run it on our local computer https github com lupyuen pinephone nuttx blob cdb6bbc8e57ef02104bdbde721f8ff6787d74efc test run sh l9 l36 note that we capture the actual test log test test log and we diff it with the expected test log test expected log that s how we detect discrepancies in the hardware addresses and the written values https github com lupyuen pinephone nuttx blob c04f1447933665df207a42f626c726ef7a7def65 test test log l4 l20 test timing controller tcon0 driver for nuttx kernel we re adding the timing controller tcon0 driver to nuttx kernel arch arm64 src a64 a64 tcon0 c https github com lupyuen2 wip pinephone nuttx blob tcon arch arm64 src a64 a64 tcon0 c right now we have implemented the following in the nuttx kernel driver for mipi display serial interface dsi driver for mipi display physical layer d phy driver for timing controller tcon0 but to render graphics on pinephone we need the following drivers which are still in zig pending conversion to c driver for display backlight driver for power mgmt ic driver for lcd panel driver for display engine so we created this test program in zig that calls the c and zig drivers in the right sequence https github com lupyuen pinephone nuttx blob 15111a227a62204b2bd6b13c489ff4a972e6d8ad render zig l1146 l1199 download the binaries here https github com lupyuen pinephone nuttx releases tag v1 2 0 we boot nuttx on pinephone and run the zig test program text nuttshell nsh nuttx 11 0 0 pinephone nsh uname a nuttx 11 0 0 pinephone 893b147 dec 14 2022 23 01 27 arm64 pinephone nsh hello 0 source https gist github com lupyuen 33d7cc006e841a9e5fdff264b4c759c4 our zig test program renders the test pattern successfully on pinephone like this https lupyuen github io images dsi3 title jpg here s the test log with graphics logging enabled nuttx kernel tcon0 test log https gist github com lupyuen 33d7cc006e841a9e5fdff264b4c759c4 we also tested with graphics logging disabled to preempt any timing issues nuttx kernel tcon0 test log graphics logging disabled https gist github com lupyuen 61a1374c9ea6a1b7826488da688e8c6c test display engine driver for nuttx kernel we re adding the display engine driver to nuttx kernel arch arm64 src a64 a64 de c https github com lupyuen2 wip pinephone nuttx blob de arch arm64 src a64 a64 de c right now we have implemented the following in the nuttx kernel driver for mipi display serial interface dsi driver for mipi display physical layer d phy driver for timing controller tcon0 driver for display engine but to render graphics on pinephone we need the following drivers which are still in zig pending conversion to c driver for display backlight driver for power mgmt ic driver for lcd panel driver for pulse width modulation driver for reduced serial bus so we created this test program in zig that calls the c and zig drivers in the right sequence https github com lupyuen pinephone nuttx blob 720b8042aa2f86b336947b8ce4744872a77d13f5 render zig l1146 l1194 download the binaries here https github com lupyuen pinephone nuttx releases tag v1 2 0 we boot nuttx on pinephone and run the zig test program text nuttshell nsh nuttx 11 0 0 pinephone nsh uname a nuttx 11 0 0 pinephone 7d85079 dirty dec 17 2022 11 43 03 arm64 pinephone nsh hello 0 source https gist github com lupyuen f76ec0bcafce670220ab304a70c28fab our zig test program renders the test pattern successfully on pinephone like this https lupyuen github io images de3 title jpg here s the test log with graphics logging enabled nuttx kernel display engine test log https gist github com lupyuen f76ec0bcafce670220ab304a70c28fab we also tested with graphics logging disabled to preempt any timing issues nuttx kernel tcon0 test log graphics logging disabled https gist github com lupyuen ff133730c07730cb3b588a5027e7f524 missing pixels in pinephone image we ve just implemented the nuttx kernel drivers for mipi display serial interface timing controller tcon0 display engine reduced serial bus power management integrated circuit and lcd panel nuttx rtos for pinephone mipi display serial interface https lupyuen github io articles dsi3 nuttx rtos for pinephone display engine https lupyuen github io articles de3 nuttx rtos for pinephone lcd panel https lupyuen github io articles lcd and we re adding the framebuffer driver to nuttx kernel https github com apache nuttx pull 7988 when we run the fb nuttx example app we see missing pixels in the rendered image inside the yellow box is supposed to be an orange box inside the orange box is supposed to be a red box missing pixels in pinephone image https lupyuen github io images fb test2 jpg the missing pixels magically appear later in a curious pattern watch the demo on youtube https www youtube com shorts wd5ajj7rz5u there seems to be a problem with framebuffer dma display engine timing controller tcon0 according to the video the pixels are actually written correctly to the ram framebuffer but the pixels at the lower half don t get pushed to the display until the next screen refresh there seems to be a lag between the writing of pixels to framebuffer and the pushing of pixels to the display over dma display engine timing controller tcon0 here s the fix for this lag fix missing pixels in pinephone image in the previous section we saw that there was a lag pushing pixels from the ram framebuffer to the pinephone display over dma display engine timing controller tcon0 can we overcome this lag by copying the ram framebuffer to itself forcing the display to refresh this sounds very strange but yes it works from pinephone display c https github com lupyuen2 wip pinephone nuttx blob pixel boards arm64 a64 pinephone src pinephone display c l472 l513 c update the display when there is a change to the framebuffer ioctl entrypoint fbio update static int pinephone updatearea struct fb vtable s vtable framebuffer driver object const struct fb area s area updated area of framebuffer uint8 t fb uint8 t g pinephone fb0 const size t fbsize sizeof g pinephone fb0 copy the entire framebuffer to itself to fix the missing pixels not sure why this works for int i 0 i fbsize i declare as volatile to prevent compiler optimization volatile uint8 t v fb i fb i v return ok with the code above the red orange and yellow boxes are now rendered correctly in our nuttx framebuffer driver for pinephone pic below who calls pinephone updatearea after writing the pixels to the ram framebuffer nuttx apps will call ioctl fbio update to update the display this triggers pinephone updatearea in our nuttx framebuffer driver fb main c https github com lupyuen2 wip pinephone nuttx apps blob pixel examples fb fb main c l265 l274 c omitted nuttx app writes pixels to ram framebuffer update the framebuffer ifdef config fb update ret ioctl i o command state fd framebuffer file descriptor fbio update update the framebuffer unsigned long uintptr t area updated area endif fixed missing pixels in pinephone image https lupyuen github io images fb test3 jpg how do other pinephone operating systems handle this we might need to handle tcon0 vertical blanking tcon0 vb int en tcon0 vb int flag and tcon0 cpu trigger mode finish tcon0 tri finish int en tcon0 tri finish int flag like this sun4i tcon enable vblank https github com torvalds linux blob master drivers gpu drm sun4i sun4i tcon c l225 l242 sun4i tcon handler https github com torvalds linux blob master drivers gpu drm sun4i sun4i tcon c l746 l777 more about sun4i tcon handler https gist github com lupyuen 214788deabdb37659e806a463f8acc50 p boot bootloader seems to handle every tcon0 cpu trigger mode finish tcon0 tri finish int en tcon0 tri finish int flag by updating the display engine registers which sounds odd 1 render loop waits forever for ev vblank dtest c https megous com git p boot tree src dtest c n327 1 ev vblank is triggered by display frame done gui c https megous com git p boot tree src gui c n64 1 display frame done is triggered by tcon0 cpu trigger mode finish display c https megous com git p boot tree src display c n2005 1 render loop handles ev vblank by redrawing and calling display commit dtest c https megous com git p boot tree src dtest c n338 1 display commit updates the display engine registers including the framebuffer addresses display c https megous com git p boot tree src display c n2017 can we handle tcon0 cpu trigger mode finish without refreshing the display engine registers merge pinephone into nuttx mainline read the article preparing a pull request for apache nuttx rtos https lupyuen github io articles pr we re merging pinephone into nuttx mainline nuttx mainline now supports generic interrupt controller version 2 arch arm64 add support for generic interrupt controller version 2 https github com apache incubator nuttx pull 7630 we created a nuttx board configuration for pinephone that will boot to nuttx shell nsh arch arm64 add support for pine64 pinephone https github com apache incubator nuttx pull 7692 and now pinephone is officially supported by apache nuttx rtos pinephone is now supported by apache nuttx rtos https lupyuen github io articles uboot appendix pinephone is now supported by apache nuttx rtos here s how we prepared the pull requests for nuttx preparing a pull request for apache nuttx rtos https lupyuen github io articles pr lvgl on nuttx on pinephone read the article nuttx rtos for pinephone boot to lvgl https lupyuen github io articles lvgl2 lvgl on apache nuttx rtos mainline renders correctly on pinephone pic below just select the lvgl demo app that s bundled with apache nuttx rtos here are the settings in make menuconfig enable application configuration graphics support light and versatile graphics library lvgl enable lvgl enable framebuffer port browse into lvgl lvgl configuration in color settings set color depth to 32 argb8888 in memory settings set size of memory to 64 in hal settings set default dots per inch to 250 in demos enable show some widgets enable application configuration examples lvgl demo touch input is not supported yet we re working on it for details on the nuttx framebuffer for pinephone and how it works with lvgl check out this article nuttx rtos for pinephone framebuffer https lupyuen github io articles fb lvgl on nuttx on pinephone https lupyuen github io images fb lvgl jpg lvgl settings for pinephone when we run the lvgl demo app on pinephone with apache nuttx rtos it renders a dense screen that s not so touch friendly before changing lvgl settings for pinephone https lupyuen github io images fb lvgl3 jpg let s tweak the lvgl settings to make our lvgl app more accessible modify this lvgl source file apps graphics lvgl lvgl demos widgets lv demo widgets c https github com lvgl lvgl blob v8 3 3 demos widgets lv demo widgets c l96 l145 c insert this include stdio h modify this function void lv demo widgets void note pinephone has width 720 pixels lvgl will set display size to large which looks really tiny shouldn t this code depend on dpi 267 dpi for pinephone if lv hor res 320 disp size disp small else if lv hor res 720 disp size disp medium else disp size disp large insert this print warning if font is missing undef lv log warn define lv log warn s puts s insert this change display size from large to medium to make widgets easier to tap printf before disp size d n disp size disp size disp medium printf after disp size d n disp size existing code font large lv font default font normal lv font default lv coord t tab h if disp size disp large for medium display size else if disp size disp medium change this increase tab height from 45 to 70 to make tabs easier to tap tab h 70 previously tab h 45 if lv font montserrat 20 font large lv font montserrat 20 else lv log warn lv font montserrat 20 is not enabled for the widgets demo using lv font default instead endif if lv font montserrat 14 font normal lv font montserrat 14 else lv log warn lv font montserrat 14 is not enabled for the widgets demo using lv font default instead endif maybe we should modify the code above to include dpi pinephone s display has 267 dpi configure lvgl with these settings lvgl calls our driver https lupyuen github io articles touch2 lvgl calls our driver and add the fonts browse into lvgl lvgl configuration in font usage enable built in fonts enable montserrat 20 the lvgl demo app is now less dense and easier to use watch the demo on youtube https www youtube com shorts de5zehlika8 shot at iso 800 f 5 6 manual focus on sony nex 7 post processed for brightness constrast and white point what if we increase the default font size from montserrat 14 to montserrat 20 let s increase the default font size from 14 to 20 browse into lvgl lvgl configuration in font usage select theme default title font select montserrat 20 we run the lvgl demo app as is leaving display size disp size as default disp large now the text is legible but some controls are squished watch the demo on youtube https www youtube com watch v n yc2jj3ttq shot at iso 400 f 5 0 manual focus exposure 0 3 on sony nex 7 no post processing we need to increase the default font size from 14 to 20 and set display size disp size to disp medium and we will get this after changing lvgl settings for pinephone https lupyuen github io images lvgl2 title jpg more details here nuttx rtos for pinephone boot to lvgl https lupyuen github io articles lvgl2 lvgl demos on pinephone we ve seen the lvgl widgets demo on nuttx for pinephone what about other demos yep there are 5 lvgl demos available in make menuconfig browse into lvgl lvgl configuration in demos select one or more of the these demos show some widgets demonstrate the usage of encoder and keyboard benchmark your system stress test for lvgl music player demo for music player demo we need these fonts browse into lvgl lvgl configuration in font usage select montserrat 16 montserrat 20 montserrat 22 montserrat 32 to run the demos on pinephone text nsh lvgldemo usage lvgldemo demo name demo name widgets keypad encoder benchmark stress music source https gist github com lupyuen b96ed96db295334db1cfabf461efad83 we ve seen the lvgl widgets demo lvgl widgets demo on youtube https www youtube com watch v n yc2jj3ttq here s the lvgl music player demo lvgl music player demo on youtube https www youtube com watch v cxcnknibta and the lvgl benchmark demo lvgl benchmark demo on youtube https www youtube com watch v debzb vbhck from the video we see the lvgl benchmark numbers weighted frames per second 20 opa speed 100 slow but common cases frames per sec image rgb 19 image rgb opa 17 image argb 18 image argb opa 17 image argb recolor 17 image argb recolor opa 16 substr image 19 all cases frames per sec rectangle 24 rectangle opa 23 rectangle rounded 23 rectangle rounded opa 21 circle 23 circle opa 20 border 24 border opa 24 border rounded 24 many many more more details here nuttx rtos for pinephone boot to lvgl https lupyuen github io articles lvgl2 note that the lvgl demos start automatically when nuttx boots on pinephone let s talk about this boot to lvgl on pinephone can we boot nuttx on pinephone directly to lvgl without a serial cable sure can in the previous section we talked about selecting the lvgl demos to boot directly to an lvgl demo make sure only 1 lvgl demo is selected because of this https github com apache nuttx apps pull 1494 then in make menuconfig 1 rtos features tasks and scheduling set application entry point to lvgldemo main init entrypoint set application entry name to lvgldemo main init entryname 2 application configuration nsh library disable have architecture specific initialization nsh archinit nuttx on pinephone now boots to the lvgl touchscreen demo without a serial cable pic below lvgl music player demo on youtube https www youtube com watch v cxcnknibta why disable nsh architecture specific initialization normally the nsh nuttx shell initialises the display driver and touch panel on pinephone but since we re not running nsh shell we ll have to initialise the display driver and touch panel in our lvgl demo app this is explained here lvgldemo c https github com apache nuttx apps blob master examples lvgldemo lvgldemo c l42 l59 now that we can boot nuttx to an lvgl touchscreen app what next maybe we can create an lvgl terminal app that will let us interact with the nsh nuttx shell lvgl already provides an onscreen keyboard that works on pinephone nuttx more details here nuttx rtos for pinephone boot to lvgl https lupyuen github io articles lvgl2 nuttx on pinephone now boots to the lvgl touchscreen demo without a serial cable https lupyuen github io images lvgl2 title jpg pinephone touch panel read the article nuttx rtos for pinephone touch panel https lupyuen github io articles touch2 now that we can render lvgl graphical user interfaces let s handle touch input here s everything we know about pinephone s touch panel touch panel https lupyuen github io articles pio touch panel according to our test code https github com lupyuen2 wip pinephone nuttx blob c4991b1503387d57821d94a549425bcd8f268841 boards arm64 a64 pinephone src pinephone bringup c l316 l355 i2c address is 0x5d i2c frequency is 400 khz what s the max i2c register addresses are 16 bit send msb before lsb so we should swap the bytes reading i2c register 0x8140 product id will return the bytes text 39 31 37 53 which is ascii for 917s goodix gt917s touch panel this is how we read the product id from the touch panel pinephone bringup c https github com lupyuen2 wip pinephone nuttx blob c4991b1503387d57821d94a549425bcd8f268841 boards arm64 a64 pinephone src pinephone bringup c l316 l355 c product id lsb 4 bytes define goodix reg id 0x8140 read touch panel over i2c static void touch panel read struct i2c master s i2c uint32 t freq 400000 400 khz uint16 t addr 0x5d default i2c address for goodix gt917s uint16 t reg goodix reg id read product id uint8 t regbuf 2 reg 8 reg 0xff flip the bytes erase the receive buffer uint8 t buf 4 ssize t buflen sizeof buf memset buf 0xff sizeof buf compose the i2c messages struct i2c msg s msgv 2 frequency freq addr addr flags 0 buffer regbuf length sizeof regbuf frequency freq addr addr flags i2c m read buffer buf length buflen execute the i2c transfer int ret i2c transfer i2c msgv 2 if ret 0 err i2c error d n ret return dump the receive buffer infodumpbuffer buf buf buflen shows 39 31 37 53 or 917s to detect touch events we ll need to handle the interrupts triggered by touch panel based on our research pinephone s touch panel interrupt ctp int is connected at ph4 right now we poll ph4 instead of handling interrupts because it s easier pinephone bringup c https github com lupyuen2 wip pinephone nuttx blob e249049370d21a988912f2fb95a21514863dfe8a boards arm64 a64 pinephone src pinephone bringup c l283 l317 c test touch panel interrupt by polling as gpio input touch panel interrupt ctp int is at ph4 configure for gpio input define ctp int pio input pio port pioh pio pin4 static void touch panel read struct i2c master s i2c poll for touch panel interrupt ph4 by reading as gpio input void touch panel initialize struct i2c master s i2c configure the touch panel interrupt for gpio input int ret a64 pio config ctp int debugassert ret 0 poll the touch panel interrupt as gpio input bool prev val false for int i 0 i 6000 i poll for 60 seconds read the gpio input bool val a64 pio read ctp int if value has changed if val prev val print the value if val up putc else up putc prev val val if we have just transitioned from low to high if val read the touch panel over i2c touch panel read i2c wait a while up mdelay 10 to read the touch coordinates we do this pinephone bringup c https github com lupyuen2 wip pinephone nuttx blob e249049370d21a988912f2fb95a21514863dfe8a boards arm64 a64 pinephone src pinephone bringup c l338 l370 c define goodix reg id 0x8140 define goodix read coord addr 0x814e define goodix point1 x addr 0x8150 read touch panel over i2c static void touch panel read struct i2c master s i2c read the product id uint8 t id 4 touch panel i2c read i2c goodix reg id id sizeof id shows 39 31 37 53 or 917s read the touch panel status uint8 t status 1 touch panel i2c read i2c goodix read coord addr status sizeof status shows 81 const uint8 t status code status 0 0x80 set to 0x80 const uint8 t touched points status 0 0x0f set to 0x01 if status code 0 if touch panel status is ok and touched points 1 touched points is 1 or more read the first touch coordinates uint8 t touch 6 touch panel i2c read i2c goodix point1 x addr touch sizeof touch shows 92 02 59 05 1b 00 decode the touch coordinates const uint16 t x touch 0 touch 1 8 const uint16 t y touch 2 touch 3 8 info touch x d y d n x y shows touch x 658 y 1369 set the touch panel status to 0 touch panel set status i2c 0 when we touch pinephone near the lower right corner we see the touch coordinates x 658 y 1369 which is quite close to the 720 x 1440 screen size text twi transfer twi0 count 1 twi wait twi0 waiting twi put addr twi address 7bits r w 0xba twi wait twi0 awakened with result 0 twi transfer twi0 count 2 twi wait twi0 waiting twi put addr twi address 7bits r w 0xba twi put addr twi address 7bits r w 0xbb twi wait twi0 awakened with result 0 buf 0x40a8fd18 0000 39 31 37 53 917s twi transfer twi0 count 2 twi wait twi0 waiting twi put addr twi address 7bits r w 0xba twi put addr twi address 7bits r w 0xbb twi wait twi0 awakened with result 0 buf 0x40a8fd08 0000 81 twi transfer twi0 count 2 twi wait twi0 waiting twi put addr twi address 7bits r w 0xba twi put addr twi address 7bits r w 0xbb twi wait twi0 awakened with result 0 buf 0x40a8fd20 0000 92 02 59 05 1b 00 y touch panel read touch x 658 y 1369 source https gist github com lupyuen b1ed009961c4202133879b760cb22833 yep we can read the touch coordinates correctly with polling but not so efficient let s handle interrupts from the touch panel handle interrupts from touch panel in the previous section we ve read the touch panel by polling which is easier but inefficient eventually we ll use an interrupt handler to monitor touch panel interrupts this is how we monitor ph4 for interrupts pinephone bringup c https github com lupyuen2 wip pinephone nuttx blob c3eccc67d879806a015ae592205e641dcffa7d09 boards arm64 a64 pinephone src pinephone bringup c l255 l328 c touch panel interrupt ctp int is at ph4 define ctp int pio eint pio port pioh pio pin4 register the interrupt handler for touch panel void touch panel initialize void attach the pio interrupt handler for port ph if irq attach a64 irq ph eint touch panel interrupt null 0 err irq attach failed n return error enable the pio interrupt for port ph up enable irq a64 irq ph eint configure the touch panel interrupt int ret a64 pio config ctp int debugassert ret 0 enable the touch panel interrupt ret a64 pio irqenable ctp int debugassert ret 0 interrupt handler for touch panel static int touch panel interrupt int irq void context void arg print something when interrupt is triggered up putc return ok when we run this code it generates a non stop stream of characters which means that the touch input interrupt is generated continuously without touching the screen is our interrupt handler code correct yep our interrupt handler code is correct but through our experiments we discovered one thing to stop the repeated touch input interrupts we need to set the touch panel status to 0 like so pinephone bringup c https github com lupyuen2 wip pinephone nuttx blob c3eccc67d879806a015ae592205e641dcffa7d09 boards arm64 a64 pinephone src pinephone bringup c l470 l500 c when the touch input interrupt is triggered set the touch panel status to 0 touch panel set status i2c 0 define goodix read coord addr 0x814e touch panel status read write define ctp freq 400000 i2c frequency 400 khz define ctp i2c addr 0x5d default i2c address for goodix gt917s set the touch panel status static int touch panel set status struct i2c master s i2c i2c bus uint8 t status status value to be set uint16 t reg goodix read coord addr i2c register uint32 t freq ctp freq 400 khz uint16 t addr ctp i2c addr default i2c address for goodix gt917s uint8 t buf 3 reg 8 swap the bytes reg 0xff swap the bytes status compose the i2c message struct i2c msg s msgv 1 frequency freq addr addr flags 0 buffer buf length sizeof buf execute the i2c transfer const int msgv len sizeof msgv sizeof msgv 0 int ret i2c transfer i2c msgv msgv len if ret 0 err i2c error d n ret return ret return ok so we set the touch panel status inside our interrupt handler but interrupt handlers aren t allowed to make i2c calls we need to forward the interrupt to a background thread to handle like so pinephone bringup c https github com lupyuen2 wip pinephone nuttx blob c3eccc67d879806a015ae592205e641dcffa7d09 boards arm64 a64 pinephone src pinephone bringup c l237 l253 c interrupt handler for touch panel static int gt9xx isr handler int irq far void context far void arg far struct gt9xx dev s priv far struct gt9xx dev s arg set the interrupt pending flag irqstate t flags enter critical section priv int pending true leave critical section flags notify the poll waiters poll notify priv fds gt9xx npollwaiters pollin return 0 this notifies the file descriptors fds that are waiting for touch input interrupts to be triggered when the file descriptor is notified the background thread will become unblocked and can call i2c to read the touch input right now we don t have a background thread so we poll and wait for the touch input interrupt to be triggered pinephone bringup c https github com lupyuen2 wip pinephone nuttx blob c3eccc67d879806a015ae592205e641dcffa7d09 boards arm64 a64 pinephone src pinephone bringup c l293 l309 c poll for touch panel interrupt todo move this for int i 0 i 6000 i poll for 60 seconds if touch panel interrupt has been triggered if priv int pending read the touch panel over i2c touch panel read i2c dev reset the interrupt pending flag priv int pending false wait a while up mdelay 10 10 milliseconds and it works text ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize a64 pio config cfgaddr 0x1c208fc intaddr 0x1c20a40 value 0x0 shift 16 touch panel initialize v 0x10 m 0x10 a 0x1c20a50 buf 0x40a8fd20 0000 39 31 37 53 917s buf 0x40a8fd10 0000 81 buf 0x40a8fd28 0000 19 01 e6 02 2a 00 touch panel read touch x 281 y 742 buf 0x40a8fd20 0000 39 31 37 53 917s buf 0x40a8fd10 0000 81 buf 0x40a8fd28 0000 81 02 33 00 25 00 3 touch panel read touch x 641 y 51 buf 0x40a8fd20 0000 39 31 37 53 917s buf 0x40a8fd10 0000 81 buf 0x40a8fd28 0000 0f 00 72 05 14 00 r touch panel read touch x 15 y 1394 source https gist github com lupyuen 91a37a4b54f75f7386374a30821dc1b2 let s move this code into the nuttx touch panel driver for pinephone nuttx touch panel driver for pinephone we moved the code above into the nuttx touch panel driver for pinephone drivers input gt9xx c https github com lupyuen2 wip pinephone nuttx blob touch2 drivers input gt9xx c this is how we start the driver when nuttx boots pinephone bringup c https github com lupyuen2 wip pinephone nuttx blob touch2 boards arm64 a64 pinephone src pinephone bringup c l197 l204 c define ctp i2c addr 0x5d default i2c address for goodix gt917s ret gt9xx register dev input0 i2c ctp i2c addr g pinephone gt9xx and it works with the lvgl demo app watch the demo on youtube https www youtube com shorts apge9btt ho read the article nuttx rtos for pinephone touch panel https lupyuen github io articles touch2 lvgl terminal for nuttx read the article nuttx rtos for pinephone lvgl terminal for nsh shell https lupyuen github io articles terminal let s create a terminal app in lvgl that will let us interact with the nuttx nsh shell watch the demo on youtube https www youtube com watch v wdixamk8cnw source code lvglterm c https github com lupyuen lvglterm blob main lvglterm c how to compile lvgl terminal https github com lupyuen lvglterm download the nuttx image for pinephone https github com lupyuen2 wip pinephone nuttx releases tag nuttx 12 0 1 lvgl terminal for nuttx https lupyuen github io images lvgl2 terminal2 jpg we begin by starting the nsh task and piping a command to nsh shell flow of lvgl terminal for pinephone on apache nuttx rtos https lupyuen github io images terminal flow jpg pipe a command to nuttx nsh shell our lvgl terminal app needs to 1 start the nuttx task for nsh shell 1 redirect the nsh console input output to lvgl here s a simple test that starts the nsh task and sends a command to nsh console via a posix pipe lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob a9d67c135c458088946ed35c1b24be1b4aee3553 examples lvgldemo lvgldemo c l246 l390 c void test terminal void create the pipes int nsh stdin 2 int nsh stdout 2 int nsh stderr 2 int ret ret pipe nsh stdin if ret 0 err stdin pipe failed d n errno return ret pipe nsh stdout if ret 0 err stdout pipe failed d n errno return ret pipe nsh stderr if ret 0 err stderr pipe failed d n errno return close default stdin stdout and stderr close 0 close 1 close 2 use the pipes as stdin stdout and stderr define read pipe 0 read pipes stdin stdout stderr define write pipe 1 write pipes stdin stdout stderr dup2 nsh stdin read pipe 0 dup2 nsh stdout write pipe 1 dup2 nsh stderr write pipe 2 create a new nsh task using the pipes char argv null pid t pid task create nsh console 100 priority config default task stacksize nsh consolemain argv if pid 0 err task create failed d n errno return info pid d n pid wait a while sleep 1 send a few commands to nsh for int i 0 i 5 i send a command to nsh stdin const char cmd ls r ret write nsh stdin write pipe cmd sizeof cmd info write nsh stdin d n ret wait a while sleep 1 read the output from nsh stdout todo this will block if there s nothing to read static char buf 64 ret read nsh stdout read pipe buf sizeof buf 1 if ret 0 buf ret 0 info s n buf wait a while sleep 1 ifdef notused read the output from nsh stderr todo this will block if there s nothing to read ret read nsh stderr read pipe buf sizeof buf 1 if ret 0 buf ret 0 info s n buf endif and it works here s the nsh task auto running the ls command received via our pipe text nuttshell nsh nuttx 12 0 0 nsh ls dev var nsh est terminal write nsh stdin 9 test terminal read nsh stdout 63 test terminal k nsh ls dev var test terminal write nsh stdin 9 test terminal read nsh stdout 63 test terminal see the complete log https github com lupyuen2 wip pinephone nuttx apps blob a9d67c135c458088946ed35c1b24be1b4aee3553 examples lvgldemo lvgldemo c l340 l390 there s a problem with the code above calling read on nsh stdout will block if there s no nsh output to be read let s call poll on nsh stdout to check if there s nsh output to be read poll for nsh output in the previous sections we started an nsh shell that will execute nsh commands that we pipe to it but there s a problem calling read on nsh stdout will block if there s no nsh output to be read and we can t block our lvgl app since it needs to handle ui events periodically solution we call has input to check if there s nsh output ready to be read before reading the output lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob c30e1968d5106794f435882af69dfb7b1858d694 examples lvgldemo lvgldemo c l330 l353 c read the output from nsh stdout static char buf 64 if has input nsh stdout read pipe ret read nsh stdout read pipe buf sizeof buf 1 if ret 0 buf ret 0 info s n buf read the output from nsh stderr if has input nsh stderr read pipe ret read nsh stderr read pipe buf sizeof buf 1 if ret 0 buf ret 0 info s n buf has input calls poll on nsh stdout to check if there s nsh output ready to be read lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob c30e1968d5106794f435882af69dfb7b1858d694 examples lvgldemo lvgldemo c l358 l397 c return true if the file descriptor has data to be read static bool has input int fd poll the file descriptor for input struct pollfd fdp fdp fd fd fdp events pollin int ret poll struct pollfd fdp file descriptors 1 number of file descriptors 0 poll timeout milliseconds if ret 0 if poll is ok and there is input if fdp revents pollin 0 report that there s input info has input fd d n fd return true else report no input info no input fd d n fd return false else if ret 0 ignore timeout info timeout fd d n fd return false else if ret 0 handle error err poll failed d fd d n ret fd return false never comes here debugassert false return false has input returns true if there s nsh output waiting to be read text has input has input fd 8 and has input returns false due to timeout if there s nothing waiting to be read text has input timeout fd 8 see the complete log https github com lupyuen2 wip pinephone nuttx apps blob c30e1968d5106794f435882af69dfb7b1858d694 examples lvgldemo lvgldemo c l403 l556 this polling needs to be done in an lvgl timer here s why timer for lvgl terminal in the previous sections we started an nsh shell that will execute nsh commands that we pipe to it our lvgl terminal for nsh shell shall periodically check for output from the nsh shell and write the output to the lvgl display every couple of milliseconds we call poll to check if nsh shell has output data we read the output from nsh shell we display the nsh output in an lvgl label widget we ll do this with an lvgl timer https docs lvgl io master overview timer html like so lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob 2f591f4e2589298caf6613ba409d667be61a9881 examples lvgldemo lvgldemo c l257 l269 c create an lvgl terminal that will let us interact with nuttx nsh shell void test terminal void create an lvgl timer to poll for output from nsh shell static uint32 t user data 10 lv timer t timer lv timer create my timer callback 5000 timer period milliseconds user data callback data my timer is our timer callback function lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob 2f591f4e2589298caf6613ba409d667be61a9881 examples lvgldemo lvgldemo c l350 l363 c callback for lvgl timer void my timer lv timer t timer get the callback data uint32 t user data timer user data info my timer called with callback data d n user data user data 1 todo call poll to check if nsh stdout has output to be read todo read the nsh stdout todo write the nsh output to lvgl label widget when we run this lvgl calls our timer callback function every 5 seconds text my timer my timer called with callback data 10 my timer my timer called with callback data 11 my timer my timer called with callback data 12 see the complete log https github com lupyuen2 wip pinephone nuttx apps blob 2f591f4e2589298caf6613ba409d667be61a9881 examples lvgldemo lvgldemo c l369 l436 why poll for nsh output why not run a background thread that will block on nsh output if we ran a background thread that will block until nsh output is available we still need to write the nsh output to an lvgl widget for display but lvgl is not thread safe thus we need a mutex to lock the lvgl widgets which gets messy for now it s simpler to run an lvgl timer to poll for nsh output let s add the polling to the lvgl timer callback poll for nsh output in lvgl timer in the previous section we ve created an lvgl timer that s triggered periodically inside the lvgl timer callback let s poll the nsh output and check if there s any output to be read lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob c30e1968d5106794f435882af69dfb7b1858d694 examples lvgldemo lvgldemo c l309 l356 c callback for lvgl timer static void my timer lv timer t timer read the output from nsh stdout static char buf 64 debugassert nsh stdout read pipe 0 if has input nsh stdout read pipe ret read nsh stdout read pipe buf sizeof buf 1 info read nsh stdout d n ret if ret 0 buf ret 0 info s n buf read the output from nsh stderr debugassert nsh stderr read pipe 0 if has input nsh stderr read pipe ret read nsh stderr read pipe buf sizeof buf 1 info read nsh stderr d n ret if ret 0 buf ret 0 info s n buf todo write the nsh output to lvgl label widget nsh won t emit any output until we run some nsh commands so let s trigger some nsh commands inside the lvgl timer callback lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob c30e1968d5106794f435882af69dfb7b1858d694 examples lvgldemo lvgldemo c l309 l356 c callback for lvgl timer static void my timer lv timer t timer get the callback data uint32 t user data timer user data info my timer called with callback data d n user data user data 1 send a command to nsh stdin if user data 5 0 const char cmd ls r debugassert nsh stdin write pipe 0 ret write nsh stdin write pipe cmd sizeof cmd info write nsh stdin d n ret read the output from nsh stdout when we run this we see the lvgl timer callback sending nsh commands and printing the nsh output text my timer my timer called with callback data 10 has input has input fd 8 my timer read nsh stdout 63 my timer createwidgetswrapped start createwidgetswrapped end nuttshel has input timeout fd 10 my timer my timer called with callback data 11 has input has input fd 8 my timer read nsh stdout 29 my timer l nsh nuttx 12 0 0 nsh has input timeout fd 10 my timer my timer called with callback data 12 has input timeout fd 8 has input timeout fd 10 my timer my timer called with callback data 13 has input timeout fd 8 has input timeout fd 10 my timer my timer called with callback data 14 my timer write nsh stdin 4 has input timeout fd 8 has input timeout fd 10 my timer my timer called with callback data 15 has input has input fd 8 my timer read nsh stdout 33 my timer ls dev proc var nsh see the complete log https github com lupyuen2 wip pinephone nuttx apps blob c30e1968d5106794f435882af69dfb7b1858d694 examples lvgldemo lvgldemo c l403 l556 now that our background processing is ready let s render the lvgl widgets for our terminal render terminal with lvgl widgets our lvgl terminal will have 3 lvgl widgets lvgl text area widget https docs lvgl io master widgets textarea html that shows the nsh output at the top lvgl text area widget https docs lvgl io master widgets textarea html for nsh input to enter commands at the middle lvgl keyboard widget https docs lvgl io master widgets keyboard html for typing commands into nsh input at the bottom set default font to monospace https lupyuen github io images lvgl2 terminal2 jpg this is how we render the 3 lvgl widgets lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob a37872d85c865557bee740cecd6adc35ae3197d2 examples lvgldemo lvgldemo c l374 l415 c pinephone lcd panel width and height pixels define pinephone lcd panel width 720 define pinephone lcd panel height 1440 margin of 10 pixels all around define terminal margin 10 terminal width is lcd width minus left and right margins define terminal width pinephone lcd panel width 2 terminal margin keyboard is lower half of lcd terminal height is upper half of lcd minus top and bottom margins define terminal height pinephone lcd panel height 2 2 terminal margin height of input text area define input height 100 height of output text area is terminal height minus input height minus middle margin define output height terminal height input height terminal margin create the lvgl widgets for the lvgl terminal based on https docs lvgl io master widgets keyboard html keyboard with text area static void create widgets void create an lvgl keyboard widget lv obj t kb lv keyboard create lv scr act create an lvgl text area widget for nsh output output lv textarea create lv scr act lv obj align output lv align top left terminal margin terminal margin lv textarea set placeholder text output hello lv obj set size output terminal width output height create an lvgl text area widget for nsh input input lv textarea create lv scr act lv obj align input lv align top left terminal margin output height 2 terminal margin lv obj add event cb input input callback lv event all kb lv obj set size input terminal width input height set the keyboard to populate the nsh input text area lv keyboard set textarea kb input input callback is the callback function for our lvgl keyboard which we ll cover in a while note that we re using the lvgl default font for all 3 lvgl widgets which has a problem set lvgl terminal font to monospace our lvgl terminal looks nicer with a monospace font but watch what happens if we change the lvgl default font from montserrat 20 proportional to unscii 16 monospace set default font to monospace https lupyuen github io images lvgl2 terminal2 jpg the lvgl keyboard has missing symbols enter backspace thus we set the lvgl default font back to montserrat 20 and instead we set the font style for nsh input and output to unscii 16 lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob 58537ff2c0111e89c4bbe23a5683dc561fad6881 examples lvgldemo lvgldemo c l405 l422 c set the font style for nsh input and output to a monospaced font static lv style t terminal style lv style init terminal style lv style set text font terminal style lv font unscii 16 create an lvgl text area widget for nsh output output lv textarea create lv scr act lv obj add style output terminal style 0 create an lvgl text area widget for nsh input input lv textarea create lv scr act lv obj add style input terminal style 0 now we see the lvgl keyboard without missing symbols pic below watch the demo on youtube https www youtube com watch v wdixamk8cnw let s look at our callback function for the lvgl keyboard set terminal font to monospace https lupyuen github io images lvgl2 terminal3 jpg handle input from lvgl keyboard here s the callback function that handles input from the lvgl keyboard it waits for the enter key to be pressed then it sends the typed command to nsh shell via a posix pipe lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob a37872d85c865557bee740cecd6adc35ae3197d2 examples lvgldemo lvgldemo c l417 l466 c callback function for nsh input text area based on https docs lvgl io master widgets keyboard html keyboard with text area static void input callback lv event t e int ret decode the lvgl event const lv event code t code lv event get code e if enter has been pressed send the command to nsh input if code lv event value changed get the keyboard widget from the lvgl event const lv obj t kb lv event get user data e debugassert kb null get the button index of the keyboard button pressed const uint16 t id lv keyboard get selected btn kb get the text of the keyboard button const char key lv keyboard get btn text kb id if key null return if enter is pressed if key 0 0xef key 1 0xa2 key 2 0xa2 read the nsh input debugassert input null const char cmd lv textarea get text input if cmd null cmd 0 0 return send the command to nsh stdin debugassert nsh stdin write pipe 0 ret write nsh stdin write pipe cmd strlen cmd erase the nsh input lv textarea set text input the command runs in nsh shell and produces nsh output which is handled by the lvgl timer callback function handle output from nsh shell our lvgl timer callback function checks periodically whether there s any nsh output waiting to be processed if there s nsh output the callback function writes the output to the nsh output text area lvgldemo c https github com lupyuen2 wip pinephone nuttx apps blob a37872d85c865557bee740cecd6adc35ae3197d2 examples lvgldemo lvgldemo c l320 l372 c callback function for lvgl timer based on https docs lvgl io master overview timer html create a timer static void timer callback lv timer t timer read the output from nsh stdout static char buf 64 debugassert nsh stdout read pipe 0 if has input nsh stdout read pipe ret read nsh stdout read pipe buf sizeof buf 1 if ret 0 add to nsh output text area buf ret 0 remove escape codes buf ret debugassert output null lv textarea add text output buf remove escape codes searches for escape codes in the nsh output and replaces them by spaces that s why we see 3 spaces between the nsh prompt and the nsh command pic below for more details check out the article nuttx rtos for pinephone lvgl terminal for nsh shell https lupyuen github io articles terminal 3 spaces between the nsh prompt and the nsh command https lupyuen github io images lvgl2 terminal3 jpg pinephone on nuttx becomes a feature phone now that nuttx can run touchscreen apps on pinephone what next maybe we can turn nuttx on pinephone into a feature phone just voice calls and sms using pinephone s lte modem this is useful because so we can pop a microsd card and sim into any pinephone and turn it instantly into an emergency phone what nuttx drivers would we need we need a nuttx driver for the pinephone s quectel lte modem which talks over usb serial thus we also need a nuttx driver for pinephone s allwinner a64 usb controller more about this in the next section and if there s no lte network coverage like in a natural disaster the long range low power lora network might be good for search and rescue communications short text messages only plus gps geolocation non guaranteed message delivery just attach the lora case to pinephone pinedio lora add on case https pine64 com product pinephone pinephone pro pindio lora add on case still in stock we might use jf s driver jf002 pinedio lora driver https codeberg org jf002 pinedio lora driver or the lora driver that we have ported to nuttx lora sx1262 on apache nuttx rtos https lupyuen github io articles sx1262 or maybe meshtastic with portduino since it has a complete lora messaging app meshtastic https meshtastic org portduino https github com geeksville framework portduino will pinephone on nuttx become a fully functional smartphone maybe someday we re still lacking plenty of drivers wifi bluetooth le gps audio probably better to start as a feature phone or lora communication and build up usb driver and lte modem driver for pinephone read the articles nuttx rtos for pinephone exploring usb https lupyuen github io articles usb2 nuttx rtos for pinephone simpler usb with ehci enhanced host controller interface https lupyuen github io articles usb3 nuttx rtos for pinephone 4g lte modem https lupyuen github io articles lte nuttx rtos for pinephone phone calls and text messages https lupyuen github io articles lte2 what nuttx drivers would we need to turn pinephone into a feature phone voice calls and sms only we need a nuttx driver for the pinephone s quectel lte modem quectel lte modem in pinephone https lupyuen github io images usb2 title jpg which talks over usb serial thus we also need a nuttx driver for pinephone s allwinner a64 usb controller here are the docs for allwinner a64 usb controller allwinner a64 user manual https github com lupyuen pinephone nuttx releases download doc allwinner a64 user manual v1 1 pdf section 7 5 usb page 583 allwinner a20 user manual https github com allwinner zh documents raw master a20 a20 user manual v1 4 20150510 pdf section 6 7 usb drd page 682 section 6 8 usb host page 683 allwinner usb otg controller register guide https linux sunxi org usb otg controller register guide mentor graphics musbmhdrc usb 2 0 multi point dual role controller product specification and programming guide https linux sunxi org images 7 73 musbmhdrc pdf any sample code for allwinner a64 usb refer to the allwinner a64 usb drivers in freebsd and netbsd freebsd sys dev usb controller musb otg allwinner c https github com freebsd freebsd src blob main sys dev usb controller musb otg allwinner c l95 freebsd sys dev usb controller musb otg c https github com freebsd freebsd src blob main sys dev usb controller musb otg c freebsd sys arm allwinner aw usbphy c https github com freebsd freebsd src blob main sys arm allwinner aw usbphy c l135 netbsd sys arch arm sunxi sunxi musb c https github com netbsd src blob trunk sys arch arm sunxi sunxi musb c l67 netbsd sys arch arm sunxi sunxi usbphy c https github com netbsd src blob trunk sys arch arm sunxi sunxi usbphy c l95 but allwinner a64 s official docs are horrigibly lacking maybe we refer to the nxp i mx 8 usb docs https www nxp com webapp download colcode imx8mdqlqrm and we compare with the freebsd netbsd usb drivers for i mx 8 since nxp i mx 8 is so much better documented than allwinner a64 how do usb drivers work in nuttx check out this nuttx doc on usb drivers usb host side drivers https nuttx apache org docs latest components drivers special usbhost html and the nuttx usb driver for stm32 stm32 otgfshost c https github com apache nuttx blob master arch arm src stm32 stm32 otgfshost c stm32 otgfsdev c https github com apache nuttx blob master arch arm src stm32 stm32 otgfsdev c stm32 usbfs c https github com apache nuttx blob master arch arm src stm32 stm32 usbfs c stm32 usbhost c https github com apache nuttx blob master arch arm src stm32 stm32 usbhost c usb otg fs able to act as a device host otg peripheral at full speed 12mbps usb otg hs able to act as a device host otg peripheral at full speed 12mbps or high speed 480mbps how did we get the freebsd and netbsd usb drivers for allwinner a64 pinephone s device tree says that the usb drivers are text usb 1c19000 compatible allwinner sun8i a33 musb phy 1c19400 compatible allwinner sun50i a64 usb phy so we searched for allwinner sun8i a33 musb and allwinner sun50i a64 usb phy here s the pinephone usb device tree sun50i a64 pinephone 1 2 dts https github com lupyuen pinephone nuttx blob main sun50i a64 pinephone 1 2 dts l647 l721 text usb 1c19000 compatible allwinner sun8i a33 musb reg 0x1c19000 0x400 clocks 0x02 0x29 resets 0x02 0x12 interrupts 0x00 0x47 0x04 interrupt names mc phys 0x31 0x00 phy names usb extcon 0x31 0x00 dr mode otg status okay phy 1c19400 compatible allwinner sun50i a64 usb phy reg 0x1c19400 0x14 0x1c1a800 0x04 0x1c1b800 0x04 reg names phy ctrl 0pmu0 0pmu1 clocks 0x02 0x56 0x02 0x57 clock names usb0 phy 0usb1 phy resets 0x02 0x00 0x02 0x01 reset names usb0 reset 0usb1 reset status okay phy cells 0x01 usb role switch phandle 0x31 port endpoint remote endpoint 0x32 phandle 0x47 usb 1c1a000 compatible allwinner sun50i a64 ehci 0generic ehci reg 0x1c1a000 0x100 interrupts 0x00 0x48 0x04 clocks 0x02 0x2c 0x02 0x2a 0x02 0x5b resets 0x02 0x15 0x02 0x13 status okay usb 1c1a400 compatible allwinner sun50i a64 ohci 0generic ohci reg 0x1c1a400 0x100 interrupts 0x00 0x49 0x04 clocks 0x02 0x2c 0x02 0x5b resets 0x02 0x15 status okay usb 1c1b000 compatible allwinner sun50i a64 ehci 0generic ehci reg 0x1c1b000 0x100 interrupts 0x00 0x4a 0x04 clocks 0x02 0x2d 0x02 0x2b 0x02 0x5d resets 0x02 0x16 0x02 0x14 phys 0x31 0x01 phy names usb status okay usb 1c1b400 compatible allwinner sun50i a64 ohci 0generic ohci reg 0x1c1b400 0x100 interrupts 0x00 0x4b 0x04 clocks 0x02 0x2d 0x02 0x5d resets 0x02 0x16 phys 0x31 0x01 phy names usb status okay 4g lte modem read the article nuttx rtos for pinephone phone calls and text messages https lupyuen github io articles lte2 we re now upstreaming the driver for 4g lte modem to nuttx mainline arm64 pinephone add driver for pinephone lte modem quectel eg25 g https github com apache nuttx pull 9304 todo disable uart2 and dev ttys2 so that uart3 maps neatly to dev ttys3 see this https github com apache nuttx pull 9304 discussion r1195862416 this is how we make a phone call and send a text message outgoing phone call read the article nuttx rtos for pinephone phone calls and text messages https lupyuen github io articles lte2 this is the nuttx app that makes a phone call on pinephone dial number https github com lupyuen2 wip pinephone nuttx apps blob 8ea4208cbd4758a0f1443c61bffa7ec4a8390695 examples hello hello main c l343 l432 here s the output text nuttshell nsh nuttx 12 0 3 nsh hello check modem status command at response rdy cfun 1 cpin ready qusim 1 qind sms done sim and sms are ready check network status command at creg response creg 0 1 qind pb done network and phonebook are ready get network operator command at cops response cops 0 0 sgp m1 7 get range of pcm parameters for digital audio command at qdai response qdai 1 4 0 1 0 1 0 5 0 2 0 1 1 1 16 get current pcm configuration for digital audio command at qdai response qdai 1 1 0 1 0 0 1 1 make outgoing phone call command atdyourphonenumber response ok receiver has hung up response no carrier hang up phone call command ath response ok see the complete log https github com lupyuen2 wip pinephone nuttx apps blob 8ea4208cbd4758a0f1443c61bffa7ec4a8390695 examples hello hello main c l562 l737 what does this say qdai 1 1 0 1 0 0 1 1 the above pcm digital audio configuration for the lte modem says io 1 digital pcm output mode 1 slave mode fsync 0 primary mode short synchronization clock 1 clock frequency is 256 khz format 0 data format is 16 bit linear sample 0 sampling rate is 8 khz num slots 1 number of slot is 1 slot mapping 1 slot mapping value is 1 send sms in text mode read the article nuttx rtos for pinephone phone calls and text messages https lupyuen github io articles lte2 this is how we send an sms in text mode send sms text https github com lupyuen2 wip pinephone nuttx apps blob 8ea4208cbd4758a0f1443c61bffa7ec4a8390695 examples hello hello main c l162 l253 here s the log text set message format to text mode command at cmgf 1 response ok set character set to gsm command at cscs gsm response ok send an sms to the phone number yourphonenumber looks like 1234567890 works without country code like 234567890 command at cmgs yourphonenumber we wait for modem to respond with response sms message in text format terminate with ctrl z command hello from apache nuttx rtos on pinephone sms text mode ctrl z modem sends the sms message response cmgs 13 ok see the complete log https github com lupyuen2 wip pinephone nuttx apps blob 8ea4208cbd4758a0f1443c61bffa7ec4a8390695 examples hello hello main c l622 l659 why do we get error 350 sometimes rejected by smsc text cms error 350 check with the telco i got this error when the telco blocked my outgoing sms messages send sms in pdu mode read the article nuttx rtos for pinephone phone calls and text messages https lupyuen github io articles lte2 now we send an sms message in pdu mode based on quectel gsm at commands application note https www cika com soporte information gsmmodules quectel appnotes quectel gsm atc application note pdf section 9 3 2 send sms in pdu mode page 26 etsi gsm 07 05 spec https www etsi org deliver etsi gts 07 0705 05 01 00 60 gsmts 0705v050100p pdf at commands etsi gsm 03 40 spec https en wikipedia org wiki gsm 03 40 pdu format this is how we send an sms in pdu mode send sms pdu https github com lupyuen2 wip pinephone nuttx apps blob 8ea4208cbd4758a0f1443c61bffa7ec4a8390695 examples hello hello main c l255 l341 suppose we re sending an sms to this phone number international format text define phone number 1234567890 define phone number pdu 2143658709 note that we flip the nibbles half bytes from the original phone number to produce the pdu phone number if the number of nibbles half bytes is odd insert f into the pdu phone number like this text define phone number 123456789 define phone number pdu 214365870f9 assuming there are 10 decimal digits in our phone number 1234567890 here s the at command text send sms command const char cmd at cmgs 41 todo pdu length in bytes excluding the length of smsc r we ll talk about pdu length in a while and here s the sms message pdu that we ll send in the at command text sms message in pdu format const char cmd 00 length of smsc information none 11 sms submit message 00 tp message reference 00 to let the phone set the message reference number itself 0a todo address length length of phone number number of decimal digits in phone number 91 type of address 91 for international format of phone number phone number pdu todo phone number in pdu format 00 tp pid protocol identifier 08 tp dcs data coding scheme 01 tp validity period 1c tp user data length length of encoded message text in bytes tp user data encoded message text hello quectel 00480065006c006c006f002c005100750065006300740065006c0021 x1a end of message ctrl z we ll talk about encoded message text in a while remember to update address length according to your phone number here s the log text set message format to pdu mode command at cmgf 0 response ok send an sms with 41 bytes excluding smsc command at cmgs 41 we wait for modem to respond with response sms message in pdu format terminate with ctrl z yourphonenumberpdu looks like 2143658709 which represents 1234567890 country code is mandatory remember to insert f for odd number of nibbles command 0011000a91yourphonenumberpdu0008011c00480065006c006c006f002c005100750065006300740065006c0021 ctrl z modem sends the sms message response cmgs 14 ok see the complete log https github com lupyuen2 wip pinephone nuttx apps blob 8ea4208cbd4758a0f1443c61bffa7ec4a8390695 examples hello hello main c l663 l681 let s talk about the sms pdu sms pdu format read the article nuttx rtos for pinephone phone calls and text messages https lupyuen github io articles lte2 what s the pdu length our sms message pdu has 42 total bytes text 00 length of smsc information none 11 sms submit message 00 tp message reference 00 to let the phone set the message reference number itself 0a todo address length length of phone number assume 10 decimal digits in phone number 91 type of address 91 for international format of phone number phone number pdu todo assume 5 bytes in pdu phone number 10 decimal digits 00 tp pid protocol identifier 08 tp dcs data coding scheme 01 tp validity period 1c tp user data length length of encoded message text in bytes tp user data assume 28 bytes in encoded message text 00480065006c006c006f002c005100750065006300740065006c0021 pdu length excludes the smsc information first byte thus our pdu length is 41 bytes text send sms command const char cmd at cmgs 41 todo pdu length in bytes excluding the length of smsc r remember to update the pdu length according to your phone number and message text what do the fields mean text 00 length of smsc information none 11 sms submit message 00 tp message reference 00 to let the phone set the message reference number itself 0a todo address length length of phone number assume 10 decimal digits in phone number 91 type of address 91 for international format of phone number phone number pdu todo assume 5 bytes in pdu phone number 10 decimal digits 00 tp pid protocol identifier 08 tp dcs data coding scheme 01 tp validity period 1c tp user data length length of encoded message text in bytes tp user data assume 28 bytes in encoded message text 00480065006c006c006f002c005100750065006300740065006c0021 length of smsc information 00 we use the default sms centre smsc so the smsc info length is 0 sm tl short message transfer protocol tpdu transfer protocol data unit is sms submit message 11 gsm 03 40 tpdu fields https en wikipedia org wiki gsm 03 40 tpdu fields tp message type indicator tp mti bits 0 and 1 is 0b01 sms submit submit a message to smsc for transmission gsm 03 40 tpdu types https en wikipedia org wiki gsm 03 40 tpdu types tp validity period format tp vpf bits 3 and 4 is 0b10 relative format message validity period is in relative format gsm 03 40 validity period https en wikipedia org wiki gsm 03 40 validity period value of message validity period is in tp validity period below tp message reference tp mr 00 00 will let the phone generate the message reference number itself gsm 03 40 message reference https en wikipedia org wiki gsm 03 40 message reference address length 0a length of phone number number of decimal digits in phone number excluding f gsm 03 40 addresses https en wikipedia org wiki gsm 03 40 addresses type of address 91 91 for international format of phone number numbering plan identification npi bits 0 to 3 0b0001 isdn telephone numbering plan type of number ton bits 4 to 6 0b001 international number ext bit 7 1 no extension gsm 03 40 addresses https en wikipedia org wiki gsm 03 40 addresses phone number pdu phone number in pdu format nibbles swapped remember to insert f for odd number of nibbles text define phone number 123456789 define phone number pdu 214365870f9 gsm 03 40 address examples https en wikipedia org wiki gsm 03 40 address examples tp protocol identifier tp pid 00 default store and forward short message gsm 03 40 protocol identifier https en wikipedia org wiki gsm 03 40 protocol identifier tp data coding scheme tp dcs 08 message text is encoded with ucs2 character set gsm 03 40 data coding scheme https en wikipedia org wiki gsm 03 40 data coding scheme sms data coding scheme https en wikipedia org wiki data coding scheme sms data coding scheme tp validity period tp vp 01 message is valid for 10 minutes relative to current time 01 1 x 5 minutes gsm 03 40 validity period https en wikipedia org wiki gsm 03 40 validity period see tp validity period format above tp user data length tp udl 1c length of encoded message text in bytes gsm 03 40 message content https en wikipedia org wiki gsm 03 40 message content tp user data tp ud encoded message text message text is encoded with ucs2 character set because of tp data coding scheme above gsm 03 40 message content https en wikipedia org wiki gsm 03 40 message content how do we encode the message text from above we see that the message text is encoded with ucs2 character set tp data coding scheme tp dcs 08 message text is encoded in ucs2 character set gsm 03 40 data coding scheme https en wikipedia org wiki gsm 03 40 data coding scheme sms data coding scheme https en wikipedia org wiki data coding scheme sms data coding scheme the ucs2 encoding is actually unicode utf 16 https en wikipedia org wiki utf 16 the sms standard specifies ucs 2 but almost all users actually implement utf 16 so that emojis work source https en wikipedia org wiki utf 16 so this encoded message text text tp user data message text encoded with ucs2 character set 00480065006c006c006f002c005100750065006300740065006c0021 comes from the unicode utf 16 encoding https en wikipedia org wiki utf 16 of the message text hello quectel character utf 16 encoding h 0048 e 0065 l 006c l 006c o 006f 002c q 0051 u 0075 e 0065 c 0063 t 0074 e 0065 l 006c 0021 these are 7 bit ascii characters so the utf 16 encoding looks identical to ascii sms text mode vs pdu mode read the article nuttx rtos for pinephone phone calls and text messages https lupyuen github io articles lte2 why send sms in pdu mode instead of text mode sending sms messages in text mode looks easier but we should use pdu mode instead here s why in text mode this is how we send an sms text text mode how many characters in this sms at cmgs 1234567890 in pdu mode we do it like so text pdu mode 41 bytes in this sms excluding smsc at cmgs 41 see the difference pdu mode is more precise because we state exactly how many bytes there are in the sms with text mode there s a risk of garbled messages when characters are dropped during uart transmission which happens but what if characters are dropped in pdu mode the lte modem will say it s an invalid pdu text cms error 304 our app should catch this error and resend pinephone accelerometer and gyroscope to read pinephone s invensense mpu 6050 accelerometer and gyroscope check out this article inside a smartphone accelerometer pinephone with nuttx rtos https www hackster io lupyuen inside a smartphone accelerometer pinephone with nuttx rtos b92b58 compile nuttx on android with termux can we compile nuttx on an android phone or tablet with termux that would be really cool for checking whether the latest nuttx updates are building ok for our target device all we need is an android phone we managed to install the nuttx build tools on android termux including kconfig compile apache nuttx rtos on android with termux https gist github com lupyuen f59c681dde9ebac86b331f2577aa04ad nuttx make starts ok but it fails later because we couldn t build the gcc arm64 toolchain on android termux emulate pinephone with unicorn emulator to make pinephone testing easier can we emulate arm64 pinephone with unicorn emulator https www unicorn engine org read the articles possibly emulate pinephone with unicorn emulator https lupyuen github io articles unicorn clickable call graph for apache nuttx real time operating system https lupyuen github io articles unicorn2 emulate arm64 machine code https lupyuen github io images unicorn code png simulate pinephone ui with zig lvgl and webassembly read the articles nuttx rtos for pinephone feature phone ui in lvgl zig and webassembly https lupyuen github io articles lvgl4 possibly lvgl in webassembly with zig compiler https lupyuen github io articles lvgl3 we re now building a feature phone ui for nuttx on pinephone can we simulate the feature phone ui with zig lvgl and webassembly in a web browser to make the ui coding a little easier we have previously created a simple lvgl app with zig for pinephone pinephone lvgl zig https github com lupyuen pinephone lvgl zig zig natively supports webassembly webassembly on zig https ziglang org documentation master webassembly so we might run zig javascript in a web browser like so webassembly with zig in a web browser https dev to sleibrock webassembly with zig pt ii ei7 but lvgl doesn t work with javascript yet lvgl runs in a web browser by compiling with emscripten and sdl lvgl with emscripten and sdl https github com lvgl lv web emscripten therefore we shall do this 1 use zig to compile lvgl from c to webassembly with zig cc https github com lupyuen zig bl602 nuttx zig compiler as drop in replacement for gcc 1 use zig to connect the javascript ui canvas rendering input events to lvgl webassembly like this https dev to sleibrock webassembly with zig pt ii ei7 check out the updates here simulate pinephone ui with zig lvgl and webassembly https github com lupyuen pinephone lvgl zig simulate pinephone ui with zig lvgl and webassembly apache nuttx rtos for pinephone pro todo wip port of nuttx to pinephone pro https github com apache nuttx pull 10193 1 would be good to provide the arm64 disassembly so that i can locate the addresses also peek at the code snippets bash dump the disassembly to nuttx s aarch64 none elf objdump t s demangle line numbers wide nuttx nuttx s 2 1 2 what s the boot address kernel addr r for pinephone pro i can t find it in the docs so i assume that this value is correct c u boot loads nuttx at this address kernel addr r define config load base 0x02080000 here s how we get kernel addr r from u boot is it the same for tow boot https lupyuen github io articles uboot boot address 3 change the memory map ram and i o to this based on the address mapping from rk3399 tech ref manual part 1 page 560 https github com apache nuttx blob master arch arm64 include a64 chip h l45 l51 c ram base address i m guessing this based on config load base kernel addr r define config rambank1 addr 0x02000000 ram size let s keep this for now we ll expand later define config rambank1 size mb 512 i o addresses begin at f800 0000 define config deviceio baseaddr 0xf8000000 up to ffff ffff define config deviceio size mb 128 4 arm64 generic interrupt controller gic is version 3 instead of pinephone s version 2 according to rk3399 tech ref manual part 1 page 560 rk3399 uses gic 500 which is based on gic v3 pinephone uses gic v2 to change gic from v2 to v3 bash make menuconfig go to system type gic version change from 2 to 3 save and exit menuconfig verify that gic version is now 3 grep arm gic version config more about gic https lupyuen github io articles interrupt generic interrupt controller more about arm gic version https github com apache nuttx blob master arch arm64 kconfig l200 l209 5 next we need to fill in the gic base address https github com apache nuttx blob master arch arm64 include a64 chip h c allwinner a64 generic interrupt controller v2 distributor and redist define config gicd base 0x1c81000 define config gicr base 0x1c82000 but gic v3 requires an additional field config gicr offset like this code from nuttx qemu https github com apache nuttx blob master arch arm64 include qemu chip h l47 l51 c define config gicd base 0x8000000 define config gicr base 0x80a0000 define config gicr offset 0x20000 according to the linux device tree for rk3399 https github com torvalds linux blob master arch arm64 boot dts rockchip rk3399 dtsi l549 l553 gicd 0xfee00000 gicr 0xfef00000 but i m not sure what s config gicr offset https github com apache nuttx blob master arch arm64 src common arm64 gicv3 c l786 l793 offset to the gic registers for each cpu maybe we stick with the current value and test whether uart interrupts https lupyuen github io articles serial uart with interrupts are ok see the linux doc for gic https www kernel org doc documentation devicetree bindings interrupt controller arm 2cgic v3 txt rk3399 uart0 is at gic shared peripheral interrupt 99 https github com torvalds linux blob master arch arm64 boot dts rockchip rk3399 dtsi l695 l706 rk3399 uart is a designware apb uart dw apb uart https github com torvalds linux blob master arch arm64 boot dts rockchip rk3399 dtsi l696 which maps to the linux designware 8250 driver 8250 dw c https github com torvalds linux blob master drivers tty serial 8250 8250 dw c l804 which is compatible with the nuttx 16550 uart driver https lupyuen github io articles plic appendix fix the spurious uart interrupts so remember to enable 16550 wait lcr and set 16550 regincr 4 because regshift 2 https github com torvalds linux blob master arch arm64 boot dts rockchip rk3399 dtsi l701 the irqs interrupt ids might need to change https github com apache nuttx blob master arch arm64 include a64 irq h this should follow rk3399 tech ref manual part 1 page 15 eventually the i o peripherals will have completely different addresses too https github com apache nuttx blob master arch arm64 src a64 hardware a64 memorymap h todo test logs this section contains pinephone nuttx logs captured from various tests usb devices on pinephone we captured this log of usb devices on pinephone which will be helpful when we build the nuttx usb driver for pinephone s quectel lte modem text manjaro manjaro arm sudo lsusb v bus 004 device 001 id 1d6b 0001 linux foundation 1 1 root hub device descriptor blength 18 bdescriptortype 1 bcdusb 1 10 bdeviceclass 9 hub bdevicesubclass 0 bdeviceprotocol 0 full speed or root hub bmaxpacketsize0 64 idvendor 0x1d6b linux foundation idproduct 0x0001 1 1 root hub bcddevice 5 18 imanufacturer 3 linux 5 18 9 1 manjaro arm ohci hcd iproduct 2 generic platform ohci controller iserial 1 1c1b400 usb bnumconfigurations 1 configuration descriptor blength 9 bdescriptortype 2 wtotallength 0x0019 bnuminterfaces 1 bconfigurationvalue 1 iconfiguration 0 bmattributes 0xe0 self powered remote wakeup maxpower 0ma interface descriptor blength 9 bdescriptortype 4 binterfacenumber 0 balternatesetting 0 bnumendpoints 1 binterfaceclass 9 hub binterfacesubclass 0 binterfaceprotocol 0 full speed or root hub iinterface 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x81 ep 1 in bmattributes 3 transfer type interrupt synch type none usage type data wmaxpacketsize 0x0002 1x 2 bytes binterval 255 hub descriptor blength 9 bdescriptortype 41 nnbrports 1 whubcharacteristic 0x000a no power switching usb 1 0 per port overcurrent protection bpwron2pwrgood 2 2 milli seconds bhubcontrcurrent 0 milli ampere deviceremovable 0x00 portpwrctrlmask 0xff hub port status port 1 0000 0100 power device status 0x0001 self powered bus 002 device 002 id 2c7c 0125 quectel wireless solutions co ltd ec25 lte modem device descriptor blength 18 bdescriptortype 1 bcdusb 2 00 bdeviceclass 239 miscellaneous device bdevicesubclass 2 bdeviceprotocol 1 interface association bmaxpacketsize0 64 idvendor 0x2c7c quectel wireless solutions co ltd idproduct 0x0125 ec25 lte modem bcddevice 3 18 imanufacturer 1 quectel iproduct 2 eg25 g iserial 0 bnumconfigurations 1 configuration descriptor blength 9 bdescriptortype 2 wtotallength 0x00d1 bnuminterfaces 5 bconfigurationvalue 1 iconfiguration 0 bmattributes 0xa0 bus powered remote wakeup maxpower 500ma interface descriptor blength 9 bdescriptortype 4 binterfacenumber 0 balternatesetting 0 bnumendpoints 2 binterfaceclass 255 vendor specific class binterfacesubclass 255 vendor specific subclass binterfaceprotocol 255 vendor specific protocol iinterface 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x81 ep 1 in bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x01 ep 1 out bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 interface descriptor blength 9 bdescriptortype 4 binterfacenumber 1 balternatesetting 0 bnumendpoints 3 binterfaceclass 255 vendor specific class binterfacesubclass 0 binterfaceprotocol 0 iinterface 0 unrecognized 05 24 00 10 01 unrecognized 05 24 01 00 00 unrecognized 04 24 02 02 unrecognized 05 24 06 00 00 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x83 ep 3 in bmattributes 3 transfer type interrupt synch type none usage type data wmaxpacketsize 0x000a 1x 10 bytes binterval 9 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x82 ep 2 in bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x02 ep 2 out bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 interface descriptor blength 9 bdescriptortype 4 binterfacenumber 2 balternatesetting 0 bnumendpoints 3 binterfaceclass 255 vendor specific class binterfacesubclass 0 binterfaceprotocol 0 iinterface 0 unrecognized 05 24 00 10 01 unrecognized 05 24 01 00 00 unrecognized 04 24 02 02 unrecognized 05 24 06 00 00 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x85 ep 5 in bmattributes 3 transfer type interrupt synch type none usage type data wmaxpacketsize 0x000a 1x 10 bytes binterval 9 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x84 ep 4 in bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x03 ep 3 out bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 interface descriptor blength 9 bdescriptortype 4 binterfacenumber 3 balternatesetting 0 bnumendpoints 3 binterfaceclass 255 vendor specific class binterfacesubclass 0 binterfaceprotocol 0 iinterface 0 unrecognized 05 24 00 10 01 unrecognized 05 24 01 00 00 unrecognized 04 24 02 02 unrecognized 05 24 06 00 00 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x87 ep 7 in bmattributes 3 transfer type interrupt synch type none usage type data wmaxpacketsize 0x000a 1x 10 bytes binterval 9 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x86 ep 6 in bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x04 ep 4 out bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 interface descriptor blength 9 bdescriptortype 4 binterfacenumber 4 balternatesetting 0 bnumendpoints 3 binterfaceclass 255 vendor specific class binterfacesubclass 255 vendor specific subclass binterfaceprotocol 255 vendor specific protocol iinterface 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x89 ep 9 in bmattributes 3 transfer type interrupt synch type none usage type data wmaxpacketsize 0x0008 1x 8 bytes binterval 9 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x88 ep 8 in bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x05 ep 5 out bmattributes 2 transfer type bulk synch type none usage type data wmaxpacketsize 0x0200 1x 512 bytes binterval 0 device qualifier for other device speed blength 10 bdescriptortype 6 bcdusb 2 00 bdeviceclass 239 miscellaneous device bdevicesubclass 2 bdeviceprotocol 1 interface association bmaxpacketsize0 64 bnumconfigurations 1 device status 0x0000 bus powered bus 002 device 001 id 1d6b 0002 linux foundation 2 0 root hub device descriptor blength 18 bdescriptortype 1 bcdusb 2 00 bdeviceclass 9 hub bdevicesubclass 0 bdeviceprotocol 0 full speed or root hub bmaxpacketsize0 64 idvendor 0x1d6b linux foundation idproduct 0x0002 2 0 root hub bcddevice 5 18 imanufacturer 3 linux 5 18 9 1 manjaro arm ehci hcd iproduct 2 ehci host controller iserial 1 1c1b000 usb bnumconfigurations 1 configuration descriptor blength 9 bdescriptortype 2 wtotallength 0x0019 bnuminterfaces 1 bconfigurationvalue 1 iconfiguration 0 bmattributes 0xe0 self powered remote wakeup maxpower 0ma interface descriptor blength 9 bdescriptortype 4 binterfacenumber 0 balternatesetting 0 bnumendpoints 1 binterfaceclass 9 hub binterfacesubclass 0 binterfaceprotocol 0 full speed or root hub iinterface 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x81 ep 1 in bmattributes 3 transfer type interrupt synch type none usage type data wmaxpacketsize 0x0004 1x 4 bytes binterval 12 hub descriptor blength 9 bdescriptortype 41 nnbrports 1 whubcharacteristic 0x000a no power switching usb 1 0 per port overcurrent protection bpwron2pwrgood 10 2 milli seconds bhubcontrcurrent 0 milli ampere deviceremovable 0x00 portpwrctrlmask 0xff hub port status port 1 0000 0503 highspeed power enable connect device status 0x0001 self powered bus 003 device 001 id 1d6b 0001 linux foundation 1 1 root hub device descriptor blength 18 bdescriptortype 1 bcdusb 1 10 bdeviceclass 9 hub bdevicesubclass 0 bdeviceprotocol 0 full speed or root hub bmaxpacketsize0 64 idvendor 0x1d6b linux foundation idproduct 0x0001 1 1 root hub bcddevice 5 18 imanufacturer 3 linux 5 18 9 1 manjaro arm ohci hcd iproduct 2 generic platform ohci controller iserial 1 1c1a400 usb bnumconfigurations 1 configuration descriptor blength 9 bdescriptortype 2 wtotallength 0x0019 bnuminterfaces 1 bconfigurationvalue 1 iconfiguration 0 bmattributes 0xe0 self powered remote wakeup maxpower 0ma interface descriptor blength 9 bdescriptortype 4 binterfacenumber 0 balternatesetting 0 bnumendpoints 1 binterfaceclass 9 hub binterfacesubclass 0 binterfaceprotocol 0 full speed or root hub iinterface 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x81 ep 1 in bmattributes 3 transfer type interrupt synch type none usage type data wmaxpacketsize 0x0002 1x 2 bytes binterval 255 hub descriptor blength 9 bdescriptortype 41 nnbrports 1 whubcharacteristic 0x000a no power switching usb 1 0 per port overcurrent protection bpwron2pwrgood 2 2 milli seconds bhubcontrcurrent 0 milli ampere deviceremovable 0x00 portpwrctrlmask 0xff hub port status port 1 0000 0100 power device status 0x0001 self powered bus 001 device 001 id 1d6b 0002 linux foundation 2 0 root hub device descriptor blength 18 bdescriptortype 1 bcdusb 2 00 bdeviceclass 9 hub bdevicesubclass 0 bdeviceprotocol 0 full speed or root hub bmaxpacketsize0 64 idvendor 0x1d6b linux foundation idproduct 0x0002 2 0 root hub bcddevice 5 18 imanufacturer 3 linux 5 18 9 1 manjaro arm ehci hcd iproduct 2 ehci host controller iserial 1 1c1a000 usb bnumconfigurations 1 configuration descriptor blength 9 bdescriptortype 2 wtotallength 0x0019 bnuminterfaces 1 bconfigurationvalue 1 iconfiguration 0 bmattributes 0xe0 self powered remote wakeup maxpower 0ma interface descriptor blength 9 bdescriptortype 4 binterfacenumber 0 balternatesetting 0 bnumendpoints 1 binterfaceclass 9 hub binterfacesubclass 0 binterfaceprotocol 0 full speed or root hub iinterface 0 endpoint descriptor blength 7 bdescriptortype 5 bendpointaddress 0x81 ep 1 in bmattributes 3 transfer type interrupt synch type none usage type data wmaxpacketsize 0x0004 1x 4 bytes binterval 12 hub descriptor blength 9 bdescriptortype 41 nnbrports 1 whubcharacteristic 0x000a no power switching usb 1 0 per port overcurrent protection bpwron2pwrgood 10 2 milli seconds bhubcontrcurrent 0 milli ampere deviceremovable 0x00 portpwrctrlmask 0xff hub port status port 1 0000 0100 power device status 0x0001 self powered testing zig backlight driver on pinephone pinephone test log for the following zig drivers display backlight https lupyuen github io articles de appendix display backlight power management integrated circuit https lupyuen github io articles de appendix power management integrated circuit timing controller tcon0 https lupyuen github io articles de appendix timing controller tcon0 enable mipi dsi block https lupyuen github io articles dsi appendix enable mipi dsi block enable mipi display physical layer dphy https lupyuen github io articles dsi appendix enable mipi display physical layer dphy reset lcd panel https lupyuen github io articles de appendix reset lcd panel start mipi dsi hsc and hsd https lupyuen github io articles dsi appendix start mipi dsi hsc and hsd text dram 2048 mib trying to boot from mmc1 notice bl31 v2 2 release v2 2 904 gf9ea3a629 notice bl31 built 15 32 12 apr 9 2020 notice bl31 detected allwinner a64 h64 r18 soc 1689 notice bl31 found u boot dtb at 0x4064410 model pinephone notice psci system suspend is unavailable u boot 2020 07 nov 08 2020 00 15 12 0100 dram 2 gib mmc device mmc 1c11000 seq 1 is in use by mmc 1c10000 mmc 1c0f000 0 mmc 1c10000 2 mmc 1c11000 1 loading environment from fat warning bad crc using default environment starting usb no working controllers found hit any key to stop autoboot 0 switch to partitions 0 ok mmc0 is current device scanning mmc 0 1 found u boot script boot scr 653 bytes read in 3 ms 211 9 kib s executing script at 4fc00000 gpio pin 114 gpio 114 value is 1 246286 bytes read in 14 ms 16 8 mib s uncompressed size 10465280 0x9fb000 36162 bytes read in 4 ms 8 6 mib s 1078500 bytes read in 51 ms 20 2 mib s flattened device tree blob at 4fa00000 booting using the fdt blob at 0x4fa00000 loading ramdisk to 49ef8000 end 49fff4e4 ok loading device tree to 0000000049eec000 end 0000000049ef7d41 ok starting kernel hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x40a7b000 heap size 0x7585000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x40100000 up timer initialize before writing vbar el1 0x40280000 up timer initialize after writing vbar el1 0x40100000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x40100000 einit 0x40100000 stext 0x40080000 etext 0x40101000 nsh sysinit fopen failed 2 nshn x msktfaarttf s c pcuo0m m abnedg innonti nfgo uinddl e l onoupt t shell nsh nuttx 11 0 0 rc2 nsh nsh nsh uname a nuttx 11 0 0 rc2 a33f82d dec 2 2022 17 57 39 arm64 qemu a53 nsh nsh hello 3 task spawn name hello entry 0x4009b4f8 file actions 0x40a80580 attr 0x40a80588 argv 0x40a806d0 spawn execattrs setting policy 2 priority 100 for pid 3 abhello world pd cfg2 reg 0x77711177 pd data reg 0x1c0000 test render start channels 3 backlight enable start percent 90 configure pl10 for pwm 0x1f02c04 clear 0x700 set 0x200 0x1f02c04 0x77277 disable r pwm 0x1f03800 clear 0x40 set 0x0 0x1f03800 0x0 configure r pwm period 0x1f03804 0x4af0437 enable r pwm 0x1f03800 0x5f configure ph10 for output 0x1c20900 clear 0x700 set 0x100 0x1c20900 0x7177 set ph10 to high 0x1c2090c clear 0x400 set 0x400 0x1c2090c 0x400 backlight enable end tcon0 init start configure pll video0 0x1c20010 0x81006207 enable ldo1 and ldo2 0x1c20040 0xc00000 configure mipi pll 0x1c20040 0x80c0071a set tcon0 clock source to mipi pll 0x1c20118 0x80000000 enable tcon0 clock 0x1c20064 0x8 deassert tcon0 reset 0x1c202c4 0x8 disable tcon0 and interrupts 0x1c0c000 0x0 0x1c0c004 0x0 0x1c0c008 0x0 enable tristate output 0x1c0c08c 0xffffffff 0x1c0c0f4 0xffffffff set dclk to mipi pll 6 0x1c0c044 0x80000006 0x1c0c040 0x81000000 0x1c0c048 0x2cf059f 0x1c0c0f8 0x8 0x1c0c060 0x10010005 set cpu panel trigger 0x1c0c160 0x2f02cf 0x1c0c164 0x59f 0x1c0c168 0x1bc2000a set safe period 0x1c0c1f0 0xbb80003 enable output triggers 0x1c0c08c 0xe0000000 enable tcon0 0x1c0c000 clear 0x80000000 set 0x80000000 0x1c0c000 0x80000000 tcon0 init end display board init start configure pd23 for output 0x1c20874 clear 0x70000000 set 0x10000000 0x1c20874 0x17711177 set pd23 to low 0x1c2087c clear 0x800000 set 0x0 0x1c2087c 0x1c0000 set dldo1 voltage to 3 3v pmic write reg 0x15 val 0x1a rsb write rt addr 0x2d reg addr 0x15 value 0x1a 0x1f0342c 0x4e 0x1f03430 0x2d0000 0x1f03410 0x15 0x1f0341c 0x1a 0x1f03400 0x80 pmic clrsetbits reg 0x12 clr mask 0x0 set mask 0x8 rsb read rt addr 0x2d reg addr 0x12 0x1f0342c 0x8b 0x1f03430 0x2d0000 0x1f03410 0x12 0x1f03400 0x80 rsb write rt addr 0x2d reg addr 0x12 value 0xd9 0x1f0342c 0x4e 0x1f03430 0x2d0000 0x1f03410 0x12 0x1f0341c 0xd9 0x1f03400 0x80 set ldo voltage to 3 3v pmic write reg 0x91 val 0x1a rsb write rt addr 0x2d reg addr 0x91 value 0x1a 0x1f0342c 0x4e 0x1f03430 0x2d0000 0x1f03410 0x91 0x1f0341c 0x1a 0x1f03400 0x80 enable ldo mode on gpio0 pmic write reg 0x90 val 0x3 rsb write rt addr 0x2d reg addr 0x90 value 0x3 0x1f0342c 0x4e 0x1f03430 0x2d0000 0x1f03410 0x90 0x1f0341c 0x3 0x1f03400 0x80 set dldo2 voltage to 1 8v pmic write reg 0x16 val 0xb rsb write rt addr 0x2d reg addr 0x16 value 0xb 0x1f0342c 0x4e 0x1f03430 0x2d0000 0x1f03410 0x16 0x1f0341c 0xb 0x1f03400 0x80 pmic clrsetbits reg 0x12 clr mask 0x0 set mask 0x10 rsb read rt addr 0x2d reg addr 0x12 0x1f0342c 0x8b 0x1f03430 0x2d0000 0x1f03410 0x12 0x1f03400 0x80 rsb write rt addr 0x2d reg addr 0x12 value 0xd9 0x1f0342c 0x4e 0x1f03430 0x2d0000 0x1f03410 0x12 0x1f0341c 0xd9 0x1f03400 0x80 wait for power supply and power on init display board init end enable dsi block start enable mipi dsi bus 0x1c20060 clear 0x2 set 0x2 0x1c20060 0x4742 0x1c202c0 clear 0x2 set 0x2 0x1c202c0 0x4742 enable dsi block 0x1ca0000 0x1 0x1ca0010 0x30000 0x1ca0060 0xa 0x1ca0078 0x0 set instructions 0x1ca0020 0x1f 0x1ca0024 0x10000001 0x1ca0028 0x20000010 0x1ca002c 0x2000000f 0x1ca0030 0x30100001 0x1ca0034 0x40000010 0x1ca0038 0xf 0x1ca003c 0x5000001f configure jump instructions 0x1ca004c 0x560001 0x1ca02f8 0xff set video start delay 0x1ca0014 0x5bc7 set burst 0x1ca007c 0x10000007 set instruction loop 0x1ca0040 0x30000002 0x1ca0044 0x310031 0x1ca0054 0x310031 set pixel format 0x1ca0090 0x1308703e 0x1ca0098 0xffff 0x1ca009c 0xffffffff 0x1ca0080 0x10008 set sync timings 0x1ca000c 0x0 0x1ca00b0 0x12000021 0x1ca00b4 0x1000031 0x1ca00b8 0x7000001 0x1ca00bc 0x14000011 set basic size 0x1ca0018 0x11000a 0x1ca001c 0x5cd05a0 set horizontal blanking 0x1ca00c0 0x9004a19 0x1ca00c4 0x50b40000 0x1ca00c8 0x35005419 0x1ca00cc 0x757a0000 0x1ca00d0 0x9004a19 0x1ca00d4 0x50b40000 0x1ca00e0 0xc091a19 0x1ca00e4 0x72bd0000 set vertical blanking 0x1ca00e8 0x1a000019 0x1ca00ec 0xffff0000 enable dsi block end dphy enable start set dsi clock to 150 mhz 0x1c20168 0x8203 power on dphy tx 0x1ca1004 0x10000000 0x1ca1010 0xa06000e 0x1ca1014 0xa033207 0x1ca1018 0x1e 0x1ca101c 0x0 0x1ca1020 0x303 enable dphy 0x1ca1000 0x31 0x1ca104c 0x9f007f00 0x1ca1050 0x17000000 0x1ca105c 0x1f01555 0x1ca1054 0x2 enable ldor ldoc ldod 0x1ca1058 0x3040000 0x1ca1058 clear 0xf8000000 set 0xf8000000 0x1ca1058 0xfb040000 0x1ca1058 clear 0x4000000 set 0x4000000 0x1ca1058 0xff040000 0x1ca1054 clear 0x10 set 0x10 0x1ca1054 0x12 0x1ca1050 clear 0x80000000 set 0x80000000 0x1ca1050 0x97000000 0x1ca1054 clear 0xf000000 set 0xf000000 0x1ca1054 0xf000012 dphy enable end panel reset start configure pd23 for output 0x1c20874 clear 0x70000000 set 0x10000000 0x1c20874 0x17711177 set pd23 to high 0x1c2087c clear 0x800000 set 0x800000 0x1c2087c 0x9c0000 wait for initialization panel reset end panel init start writedcs len 4 b9 f1 12 83 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c b9 f1 12 83 84 5d 0x1ca0300 clear 0xffffffff set 0x2c000439 0x1ca0304 clear 0xffffffff set 0x8312f1b9 0x1ca0308 clear 0xffffffff set 0x5d84 0x1ca0200 clear 0xff set 0x9 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 28 ba 33 81 05 f9 0e 0e 20 00 00 00 00 00 00 00 44 25 00 91 0a 00 00 02 4f 11 00 00 37 mipi dsi dcs write channel 0 cmd 0x39 len 28 composelongpacket channel 0 cmd 0x39 len 28 packet len 34 39 1c 00 2f ba 33 81 05 f9 0e 0e 20 00 00 00 00 00 00 00 44 25 00 91 0a 00 00 02 4f 11 00 00 37 2c e2 0x1ca0300 clear 0xffffffff set 0x2f001c39 0x1ca0304 clear 0xffffffff set 0x58133ba 0x1ca0308 clear 0xffffffff set 0x200e0ef9 0x1ca030c clear 0xffffffff set 0x0 0x1ca0310 clear 0xffffffff set 0x44000000 0x1ca0314 clear 0xffffffff set 0xa910025 0x1ca0318 clear 0xffffffff set 0x4f020000 0x1ca031c clear 0xffffffff set 0x37000011 0x1ca0320 clear 0xffffffff set 0xe22c 0x1ca0200 clear 0xff set 0x21 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 5 b8 25 22 20 03 mipi dsi dcs write channel 0 cmd 0x39 len 5 composelongpacket channel 0 cmd 0x39 len 5 packet len 11 39 05 00 36 b8 25 22 20 03 03 72 0x1ca0300 clear 0xffffffff set 0x36000539 0x1ca0304 clear 0xffffffff set 0x202225b8 0x1ca0308 clear 0xffffffff set 0x720303 0x1ca0200 clear 0xff set 0xa 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 11 b3 10 10 05 05 03 ff 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 11 composelongpacket channel 0 cmd 0x39 len 11 packet len 17 39 0b 00 2c b3 10 10 05 05 03 ff 00 00 00 00 6f bc 0x1ca0300 clear 0xffffffff set 0x2c000b39 0x1ca0304 clear 0xffffffff set 0x51010b3 0x1ca0308 clear 0xffffffff set 0xff0305 0x1ca030c clear 0xffffffff set 0x6f000000 0x1ca0310 clear 0xffffffff set 0xbc 0x1ca0200 clear 0xff set 0x10 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 10 c0 73 73 50 50 00 c0 08 70 00 mipi dsi dcs write channel 0 cmd 0x39 len 10 composelongpacket channel 0 cmd 0x39 len 10 packet len 16 39 0a 00 36 c0 73 73 50 50 00 c0 08 70 00 1b 6a 0x1ca0300 clear 0xffffffff set 0x36000a39 0x1ca0304 clear 0xffffffff set 0x507373c0 0x1ca0308 clear 0xffffffff set 0x8c00050 0x1ca030c clear 0xffffffff set 0x6a1b0070 0x1ca0200 clear 0xff set 0xf 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 2 bc 4e mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 bc 4e 35 0x1ca0300 clear 0xffffffff set 0x354ebc15 0x1ca0200 clear 0xff set 0x3 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 2 cc 0b mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 cc 0b 22 0x1ca0300 clear 0xffffffff set 0x220bcc15 0x1ca0200 clear 0xff set 0x3 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 2 b4 80 mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 b4 80 22 0x1ca0300 clear 0xffffffff set 0x2280b415 0x1ca0200 clear 0xff set 0x3 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 4 b2 f0 12 f0 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c b2 f0 12 f0 51 86 0x1ca0300 clear 0xffffffff set 0x2c000439 0x1ca0304 clear 0xffffffff set 0xf012f0b2 0x1ca0308 clear 0xffffffff set 0x8651 0x1ca0200 clear 0xff set 0x9 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 15 e3 00 00 0b 0b 10 10 00 00 00 00 ff 00 c0 10 mipi dsi dcs write channel 0 cmd 0x39 len 15 composelongpacket channel 0 cmd 0x39 len 15 packet len 21 39 0f 00 0f e3 00 00 0b 0b 10 10 00 00 00 00 ff 00 c0 10 36 0f 0x1ca0300 clear 0xffffffff set 0xf000f39 0x1ca0304 clear 0xffffffff set 0xb0000e3 0x1ca0308 clear 0xffffffff set 0x10100b 0x1ca030c clear 0xffffffff set 0xff000000 0x1ca0310 clear 0xffffffff set 0x3610c000 0x1ca0314 clear 0xffffffff set 0xf 0x1ca0200 clear 0xff set 0x14 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 6 c6 01 00 ff ff 00 mipi dsi dcs write channel 0 cmd 0x39 len 6 composelongpacket channel 0 cmd 0x39 len 6 packet len 12 39 06 00 30 c6 01 00 ff ff 00 8e 25 0x1ca0300 clear 0xffffffff set 0x30000639 0x1ca0304 clear 0xffffffff set 0xff0001c6 0x1ca0308 clear 0xffffffff set 0x258e00ff 0x1ca0200 clear 0xff set 0xb 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 13 c1 74 00 32 32 77 f1 ff ff cc cc 77 77 mipi dsi dcs write channel 0 cmd 0x39 len 13 composelongpacket channel 0 cmd 0x39 len 13 packet len 19 39 0d 00 13 c1 74 00 32 32 77 f1 ff ff cc cc 77 77 69 e4 0x1ca0300 clear 0xffffffff set 0x13000d39 0x1ca0304 clear 0xffffffff set 0x320074c1 0x1ca0308 clear 0xffffffff set 0xfff17732 0x1ca030c clear 0xffffffff set 0x77ccccff 0x1ca0310 clear 0xffffffff set 0xe46977 0x1ca0200 clear 0xff set 0x12 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 3 b5 07 07 mipi dsi dcs write channel 0 cmd 0x39 len 3 composelongpacket channel 0 cmd 0x39 len 3 packet len 9 39 03 00 09 b5 07 07 7b b3 0x1ca0300 clear 0xffffffff set 0x9000339 0x1ca0304 clear 0xffffffff set 0x7b0707b5 0x1ca0308 clear 0xffffffff set 0xb3 0x1ca0200 clear 0xff set 0x8 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 3 b6 2c 2c mipi dsi dcs write channel 0 cmd 0x39 len 3 composelongpacket channel 0 cmd 0x39 len 3 packet len 9 39 03 00 09 b6 2c 2c 55 04 0x1ca0300 clear 0xffffffff set 0x9000339 0x1ca0304 clear 0xffffffff set 0x552c2cb6 0x1ca0308 clear 0xffffffff set 0x4 0x1ca0200 clear 0xff set 0x8 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 4 bf 02 11 00 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c bf 02 11 00 b5 e9 0x1ca0300 clear 0xffffffff set 0x2c000439 0x1ca0304 clear 0xffffffff set 0x1102bf 0x1ca0308 clear 0xffffffff set 0xe9b5 0x1ca0200 clear 0xff set 0x9 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 64 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 64 composelongpacket channel 0 cmd 0x39 len 64 packet len 70 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 0x1ca0300 clear 0xffffffff set 0x25004039 0x1ca0304 clear 0xffffffff set 0x61082e9 0x1ca0308 clear 0xffffffff set 0xa50aa205 0x1ca030c clear 0xffffffff set 0x37233112 0x1ca0310 clear 0xffffffff set 0x27bc0483 0x1ca0314 clear 0xffffffff set 0x3000c38 0x1ca0318 clear 0xffffffff set 0xc000000 0x1ca031c clear 0xffffffff set 0x300 0x1ca0320 clear 0xffffffff set 0x31757500 0x1ca0324 clear 0xffffffff set 0x88888888 0x1ca0328 clear 0xffffffff set 0x88138888 0x1ca032c clear 0xffffffff set 0x88206464 0x1ca0330 clear 0xffffffff set 0x88888888 0x1ca0334 clear 0xffffffff set 0x880288 0x1ca0338 clear 0xffffffff set 0x0 0x1ca033c clear 0xffffffff set 0x0 0x1ca0340 clear 0xffffffff set 0x0 0x1ca0344 clear 0xffffffff set 0x365 0x1ca0200 clear 0xff set 0x45 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 62 ea 02 21 00 00 00 00 00 00 00 00 00 00 02 46 02 88 88 88 88 88 88 64 88 13 57 13 88 88 88 88 88 88 75 88 23 14 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 0a a5 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 62 composelongpacket channel 0 cmd 0x39 len 62 packet len 68 39 3e 00 1a ea 02 21 00 00 00 00 00 00 00 00 00 00 02 46 02 88 88 88 88 88 88 64 88 13 57 13 88 88 88 88 88 88 75 88 23 14 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 0a a5 00 00 00 00 24 1b 0x1ca0300 clear 0xffffffff set 0x1a003e39 0x1ca0304 clear 0xffffffff set 0x2102ea 0x1ca0308 clear 0xffffffff set 0x0 0x1ca030c clear 0xffffffff set 0x0 0x1ca0310 clear 0xffffffff set 0x2460200 0x1ca0314 clear 0xffffffff set 0x88888888 0x1ca0318 clear 0xffffffff set 0x88648888 0x1ca031c clear 0xffffffff set 0x88135713 0x1ca0320 clear 0xffffffff set 0x88888888 0x1ca0324 clear 0xffffffff set 0x23887588 0x1ca0328 clear 0xffffffff set 0x2000014 0x1ca032c clear 0xffffffff set 0x0 0x1ca0330 clear 0xffffffff set 0x0 0x1ca0334 clear 0xffffffff set 0x0 0x1ca0338 clear 0xffffffff set 0x3000000 0x1ca033c clear 0xffffffff set 0xa50a 0x1ca0340 clear 0xffffffff set 0x1b240000 0x1ca0200 clear 0xff set 0x43 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 35 e0 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 mipi dsi dcs write channel 0 cmd 0x39 len 35 composelongpacket channel 0 cmd 0x39 len 35 packet len 41 39 23 00 20 e0 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 93 bf 0x1ca0300 clear 0xffffffff set 0x20002339 0x1ca0304 clear 0xffffffff set 0xd0900e0 0x1ca0308 clear 0xffffffff set 0x413c2723 0x1ca030c clear 0xffffffff set 0xe0d0735 0x1ca0310 clear 0xffffffff set 0x12101312 0x1ca0314 clear 0xffffffff set 0x9001812 0x1ca0318 clear 0xffffffff set 0x3c27230d 0x1ca031c clear 0xffffffff set 0xd073541 0x1ca0320 clear 0xffffffff set 0x1013120e 0x1ca0324 clear 0xffffffff set 0x93181212 0x1ca0328 clear 0xffffffff set 0xbf 0x1ca0200 clear 0xff set 0x28 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 1 11 mipi dsi dcs write channel 0 cmd 0x5 len 1 composeshortpacket channel 0 cmd 0x5 len 1 packet len 4 05 11 00 36 0x1ca0300 clear 0xffffffff set 0x36001105 0x1ca0200 clear 0xff set 0x3 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 writedcs len 1 29 mipi dsi dcs write channel 0 cmd 0x5 len 1 composeshortpacket channel 0 cmd 0x5 len 1 packet len 4 05 29 00 1c 0x1ca0300 clear 0xffffffff set 0x1c002905 0x1ca0200 clear 0xff set 0x3 0x1ca0010 clear 0x1 set 0x0 0x1ca0010 clear 0x1 set 0x1 panel init end start dsi start start hsc 0x1ca0048 0xf02 commit 0x1ca0010 clear 0x1 set 0x1 0x1ca0010 0x30001 instruction function lane 0x1ca0020 clear 0x10 set 0x0 0x1ca0020 0xf start hsd 0x1ca0048 0x63f07006 commit 0x1ca0010 clear 0x1 set 0x1 0x1ca0010 0x30001 start dsi end de2 init start set high speed sram to dma mode 0x1c00004 0x0 set display engine pll to 297 mhz 0x1c20048 0x81001701 wait for display engine pll to be stable set special clock to display engine pll 0x1c20104 clear 0x87000000 set 0x81000000 0x1c20104 0x81000000 enable ahb for display engine de assert display engine 0x1c202c4 clear 0x1000 set 0x1000 0x1c202c4 0x1008 enable ahb for display engine pass display engine 0x1c20064 clear 0x1000 set 0x1000 0x1c20064 0x1008 enable clock for mixer0 sclk clock pass 0x1000000 clear 0x1 set 0x1 0x1000000 0x1 enable clock for mixer0 hclk clock reset off 0x1000008 clear 0x1 set 0x1 0x1000008 0x1 enable clock for mixer0 hclk clock pass 0x1000004 clear 0x1 set 0x1 0x1000004 0x1 route mixer0 to tcon0 0x1000010 clear 0x1 set 0x0 0x1000010 0x0 clear mixer0 registers glb bld ovl v ovl ui 0x1100000 0x0 to 0x1105fff 0x0 disable mixer0 vsu 0x1120000 0x0 disable mixer0 undocumented 0x1130000 0x0 disable mixer0 ui scaler1 0x1140000 0x0 disable mixer0 ui scaler2 0x1150000 0x0 disable mixer0 fce 0x11a0000 0x0 disable mixer0 bws 0x11a2000 0x0 disable mixer0 lti 0x11a4000 0x0 disable mixer0 peaking 0x11a6000 0x0 disable mixer0 ase 0x11a8000 0x0 disable mixer0 fcc 0x11aa000 0x0 disable mixer0 drc 0x11b0000 0x0 enable mixer0 0x1100000 0x1 de2 init end rendergraphics start inituiblender start set blender background 0x1101088 0xff000000 set blender pre multiply 0x1101084 0x0 inituiblender end inituichannel start channel 1 set overlay 720 x 1440 0x1103000 0xff000405 0x1103010 0x4012c000 0x110300c 0xb40 0x1103004 0x59f02cf 0x1103088 0x59f02cf 0x1103008 0x0 channel 1 set blender output 0x110108c 0x59f02cf 0x110000c 0x59f02cf channel 1 set blender input pipe 0 720 x 1440 0x1101008 0x59f02cf 0x1101004 0xff000000 0x110100c 0x0 0x1101090 0x3010301 channel 1 disable scaler 0x1140000 0x0 inituichannel end inituichannel start channel 2 set overlay 600 x 600 0x1104000 0xff000005 0x1104010 0x40521000 0x110400c 0x960 0x1104004 0x2570257 0x1104088 0x2570257 0x1104008 0x0 channel 2 set blender input pipe 1 600 x 600 0x1101018 0x2570257 0x1101014 0xff000000 0x110101c 0x340034 0x1101094 0x3010301 channel 2 disable scaler 0x1150000 0x0 inituichannel end inituichannel start channel 3 set overlay 720 x 1440 0x1105000 0x7f000005 0x1105010 0x40681000 0x110500c 0xb40 0x1105004 0x59f02cf 0x1105088 0x59f02cf 0x1105008 0x0 channel 3 set blender input pipe 2 720 x 1440 0x1101028 0x59f02cf 0x1101024 0xff000000 0x110102c 0x0 0x1101098 0x3010301 channel 3 disable scaler 0x1160000 0x0 inituichannel end applysettings start set blender route 0x1101080 0x321 enable blender pipes 0x1101000 0x701 apply settings 0x1100008 0x1 applysettings end rendergraphics end test render end hello zig on pinephone test zig start testing compose short packet without parameter composeshortpacket channel 0 cmd 0x5 len 1 result 05 11 00 36 testing compose short packet with parameter composeshortpacket channel 0 cmd 0x15 len 2 result 15 bc 4e 35 testing compose long packet composelongpacket channel 0 cmd 0x39 len 64 result 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 test zig end nsh nsh testing zig display engine driver on pinephone see p boot display code https gist github com lupyuen c12f64cf03d3a81e9c69f9fef49d9b70 text dram 2048 mib trying to boot from mmc1 notice bl31 v2 2 release v2 2 904 gf9ea3a629 notice bl31 built 15 32 12 apr 9 2020 notice bl31 detected allwinner a64 h64 r18 soc 1689 notice bl31 found u boot dtb at 0x4064410 model pinephone notice psci system suspend is unavailable u boot 2020 07 nov 08 2020 00 15 12 0100 dram 2 gib mmc device mmc 1c11000 seq 1 is in use by mmc 1c10000 mmc 1c0f000 0 mmc 1c10000 2 mmc 1c11000 1 loading environment from fat warning bad crc using default environment starting usb no working controllers found hit any key to stop autoboot 0 switch to partitions 0 ok mmc0 is current device scanning mmc 0 1 found u boot script boot scr 653 bytes read in 3 ms 211 9 kib s executing script at 4fc00000 gpio pin 114 gpio 114 value is 1 220236 bytes read in 14 ms 15 mib s uncompressed size 10268672 0x9cb000 36162 bytes read in 5 ms 6 9 mib s 1078500 bytes read in 50 ms 20 6 mib s flattened device tree blob at 4fa00000 booting using the fdt blob at 0x4fa00000 loading ramdisk to 49ef8000 end 49fff4e4 ok loading device tree to 0000000049eec000 end 0000000049ef7d41 ok starting kernel hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x40a4b000 heap size 0x75b5000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x400d7000 up timer initialize before writing vbar el1 0x40257000 up timer initialize after writing vbar el1 0x400d7000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x400d7000 einit 0x400d7000 stext 0x40080000 etext 0x400d8000 nsh sysinit fopen failed 2 nshn x msktfaarttf s c pcuo0m m abnedg innonti nfgo uinddl e l onoupt t shell nsh nuttx 11 0 0 rc2 nsh hello task spawn name hello entry 0x4009d490 file actions 0x40a50580 attr 0x40a50588 argv 0x40a506d0 spawn execattrs setting policy 2 priority 100 for pid 3 abhello world ph cfg1 reg 0x7177 ph data reg 0x400 pd cfg2 reg 0x77711177 pd data reg 0x1c0000 tcon0 init start pll video0 0x1c20010 0x81006207 dmb pll mipi 0x1c20040 0xc00000 dmb udelay 100 0x1c20040 0x80c0071a dmb tcon0 source mipi pll 0x1c20118 0x80000000 dmb clock on 0x1c20064 0x8 dmb reset off 0x1c202c4 0x8 dmb init lcdc disable tcon disable all interrupts 0x1c0c000 0x0 dmb 0x1c0c004 0x0 0x1c0c008 0x0 set all io lines to tristate 0x1c0c08c 0xffffffff 0x1c0c0f4 0xffffffff mode set dclk mipi pll 6 0x1c0c044 0x80000006 0x1c0c040 0x81000000 0x1c0c048 0x2cf059f 0x1c0c0f8 0x8 0x1c0c060 0x10010005 the datasheet says that this should be set higher than 20 pixel cycle but it s not clear what a pixel cycle is 0x1c0c160 0x2f02cf 0x1c0c164 0x59f 0x1c0c168 0x1bc2000a the allwinner bsp has a comment that the period should be the display clock 15 but uses an hardcoded 3000 0x1c0c1f0 0xbb80003 enable the output on the pins 0x1c0c08c 0xe0000000 dmb enable tcon as a whole setbits 0x1c0c000 0x80000000 dmb tcon0 init end dsi init start display board init start assert reset gpd 23 0 pd23 lcd rst active low sunxi gpio set cfgpin pin 0x77 val 1 sunxi gpio set cfgbank bank offset 119 val 1 clrsetbits 0x1c20874 0xf0000000 0x10000000 sunxi gpio output pin 0x77 val 0 before 0x1c2087c 0x1c0000 after 0x1c2087c 0x1c0000 dmb dldo1 3 3v pmic write reg 0x15 val 0x1a rsb write rt addr 0x2d reg addr 0x15 value 0x1a pmic clrsetbits reg 0x12 clr mask 0x0 set mask 0x8 rsb read rt addr 0x2d reg addr 0x12 rsb write rt addr 0x2d reg addr 0x12 value 0xd9 ldo io0 3 3v pmic write reg 0x91 val 0x1a rsb write rt addr 0x2d reg addr 0x91 value 0x1a pmic write reg 0x90 val 0x3 rsb write rt addr 0x2d reg addr 0x90 value 0x3 dldo2 1 8v pmic write reg 0x16 val 0xb rsb write rt addr 0x2d reg addr 0x16 value 0xb pmic clrsetbits reg 0x12 clr mask 0x0 set mask 0x10 rsb read rt addr 0x2d reg addr 0x12 rsb write rt addr 0x2d reg addr 0x12 value 0xd9 wait for power supplies and power on init udelay 15000 display board init end mipi dsi bus enable setbits 0x1c20060 0x2 dmb setbits 0x1c202c0 0x2 dmb enable the dsi block struct reg inst dsi init seq 0x0000 0x00000001 dmb 0x0010 0x00030000 dmb 0x0060 0x0000000a dmb 0x0078 0x00000000 dmb inst init 0x0020 0x0000001f dmb 0x0024 0x10000001 dmb 0x0028 0x20000010 dmb 0x002c 0x2000000f dmb 0x0030 0x30100001 dmb 0x0034 0x40000010 dmb 0x0038 0x0000000f dmb 0x003c 0x5000001f dmb 0x004c 0x00560001 dmb 0x02f8 0x000000ff dmb get video start delay 0x0014 0x00005bc7 dmb setup burst 0x007c 0x10000007 dmb setup inst loop 0x0040 0x30000002 dmb 0x0044 0x00310031 dmb 0x0054 0x00310031 dmb setup format 0x0090 0x1308703e dmb 0x0098 0x0000ffff dmb 0x009c 0xffffffff dmb 0x0080 0x00010008 dmb setup timings display malloc size 2330 0x000c 0x00000000 dmb 0x00b0 0x12000021 dmb 0x00b4 0x01000031 dmb 0x00b8 0x07000001 dmb 0x00bc 0x14000011 dmb 0x0018 0x0011000a dmb 0x001c 0x05cd05a0 dmb 0x00c0 0x09004a19 dmb 0x00c4 0x50b40000 dmb 0x00c8 0x35005419 dmb 0x00cc 0x757a0000 dmb 0x00d0 0x09004a19 dmb 0x00d4 0x50b40000 dmb 0x00e0 0x0c091a19 dmb 0x00e4 0x72bd0000 dmb 0x00e8 0x1a000019 dmb 0x00ec 0xffff0000 dmb dphy enable start 150mhz 600 4 0x1c20168 0x8203 dmb 0x1ca1004 0x10000000 dmb 0x1ca1010 0xa06000e dmb 0x1ca1014 0xa033207 dmb 0x1ca1018 0x1e dmb 0x1ca101c 0x0 dmb 0x1ca1020 0x303 dmb 0x1ca1000 0x31 dmb 0x1ca104c 0x9f007f00 dmb 0x1ca1050 0x17000000 dmb 0x1ca105c 0x1f01555 dmb 0x1ca1054 0x2 dmb udelay 5 0x1ca1058 0x3040000 dmb udelay 1 update bits 0x1ca1058 0xf8000000 0xf8000000 dmb udelay 1 update bits 0x1ca1058 0x4000000 0x4000000 dmb udelay 1 update bits 0x1ca1054 0x10 0x10 dmb udelay 1 update bits 0x1ca1050 0x80000000 0x80000000 dmb update bits 0x1ca1054 0xf000000 0xf000000 dmb dphy enable end deassert reset gpd 23 1 pd23 lcd rst active low sunxi gpio set cfgpin pin 0x77 val 1 sunxi gpio set cfgbank bank offset 119 val 1 clrsetbits 0x1c20874 0xf0000000 0x10000000 sunxi gpio output pin 0x77 val 1 before 0x1c2087c 0x1c0000 after 0x1c2087c 0x9c0000 dmb wait for initialization udelay 15000 struct reg inst dsi panel init seq nuttx panel init writedcs len 4 b9 f1 12 83 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c b9 f1 12 83 84 5d modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0x8312f1b9 modifyreg32 addr 0x308 val 0x00005d84 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 28 ba 33 81 05 f9 0e 0e 20 00 00 00 00 00 00 00 44 25 00 91 0a 00 00 02 4f 11 00 00 37 mipi dsi dcs write channel 0 cmd 0x39 len 28 composelongpacket channel 0 cmd 0x39 len 28 packet len 34 39 1c 00 2f ba 33 81 05 f9 0e 0e 20 00 00 00 00 00 00 00 44 25 00 91 0a 00 00 02 4f 11 00 00 37 2c e2 modifyreg32 addr 0x300 val 0x2f001c39 modifyreg32 addr 0x304 val 0x058133ba modifyreg32 addr 0x308 val 0x200e0ef9 modifyreg32 addr 0x30c val 0x00000000 modifyreg32 addr 0x310 val 0x44000000 modifyreg32 addr 0x314 val 0x0a910025 modifyreg32 addr 0x318 val 0x4f020000 modifyreg32 addr 0x31c val 0x37000011 modifyreg32 addr 0x320 val 0x0000e22c modifyreg32 addr 0x200 val 0x00000021 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 5 b8 25 22 20 03 mipi dsi dcs write channel 0 cmd 0x39 len 5 composelongpacket channel 0 cmd 0x39 len 5 packet len 11 39 05 00 36 b8 25 22 20 03 03 72 modifyreg32 addr 0x300 val 0x36000539 modifyreg32 addr 0x304 val 0x202225b8 modifyreg32 addr 0x308 val 0x00720303 modifyreg32 addr 0x200 val 0x0000000a modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 11 b3 10 10 05 05 03 ff 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 11 composelongpacket channel 0 cmd 0x39 len 11 packet len 17 39 0b 00 2c b3 10 10 05 05 03 ff 00 00 00 00 6f bc modifyreg32 addr 0x300 val 0x2c000b39 modifyreg32 addr 0x304 val 0x051010b3 modifyreg32 addr 0x308 val 0x00ff0305 modifyreg32 addr 0x30c val 0x6f000000 modifyreg32 addr 0x310 val 0x000000bc modifyreg32 addr 0x200 val 0x00000010 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 10 c0 73 73 50 50 00 c0 08 70 00 mipi dsi dcs write channel 0 cmd 0x39 len 10 composelongpacket channel 0 cmd 0x39 len 10 packet len 16 39 0a 00 36 c0 73 73 50 50 00 c0 08 70 00 1b 6a modifyreg32 addr 0x300 val 0x36000a39 modifyreg32 addr 0x304 val 0x507373c0 modifyreg32 addr 0x308 val 0x08c00050 modifyreg32 addr 0x30c val 0x6a1b0070 modifyreg32 addr 0x200 val 0x0000000f modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 2 bc 4e mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 bc 4e 35 modifyreg32 addr 0x300 val 0x354ebc15 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 2 cc 0b mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 cc 0b 22 modifyreg32 addr 0x300 val 0x220bcc15 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 2 b4 80 mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 b4 80 22 modifyreg32 addr 0x300 val 0x2280b415 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 4 b2 f0 12 f0 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c b2 f0 12 f0 51 86 modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0xf012f0b2 modifyreg32 addr 0x308 val 0x00008651 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 15 e3 00 00 0b 0b 10 10 00 00 00 00 ff 00 c0 10 mipi dsi dcs write channel 0 cmd 0x39 len 15 composelongpacket channel 0 cmd 0x39 len 15 packet len 21 39 0f 00 0f e3 00 00 0b 0b 10 10 00 00 00 00 ff 00 c0 10 36 0f modifyreg32 addr 0x300 val 0x0f000f39 modifyreg32 addr 0x304 val 0x0b0000e3 modifyreg32 addr 0x308 val 0x0010100b modifyreg32 addr 0x30c val 0xff000000 modifyreg32 addr 0x310 val 0x3610c000 modifyreg32 addr 0x314 val 0x0000000f modifyreg32 addr 0x200 val 0x00000014 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 6 c6 01 00 ff ff 00 mipi dsi dcs write channel 0 cmd 0x39 len 6 composelongpacket channel 0 cmd 0x39 len 6 packet len 12 39 06 00 30 c6 01 00 ff ff 00 8e 25 modifyreg32 addr 0x300 val 0x30000639 modifyreg32 addr 0x304 val 0xff0001c6 modifyreg32 addr 0x308 val 0x258e00ff modifyreg32 addr 0x200 val 0x0000000b modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 13 c1 74 00 32 32 77 f1 ff ff cc cc 77 77 mipi dsi dcs write channel 0 cmd 0x39 len 13 composelongpacket channel 0 cmd 0x39 len 13 packet len 19 39 0d 00 13 c1 74 00 32 32 77 f1 ff ff cc cc 77 77 69 e4 modifyreg32 addr 0x300 val 0x13000d39 modifyreg32 addr 0x304 val 0x320074c1 modifyreg32 addr 0x308 val 0xfff17732 modifyreg32 addr 0x30c val 0x77ccccff modifyreg32 addr 0x310 val 0x00e46977 modifyreg32 addr 0x200 val 0x00000012 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 3 b5 07 07 mipi dsi dcs write channel 0 cmd 0x39 len 3 composelongpacket channel 0 cmd 0x39 len 3 packet len 9 39 03 00 09 b5 07 07 7b b3 modifyreg32 addr 0x300 val 0x09000339 modifyreg32 addr 0x304 val 0x7b0707b5 modifyreg32 addr 0x308 val 0x000000b3 modifyreg32 addr 0x200 val 0x00000008 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 3 b6 2c 2c mipi dsi dcs write channel 0 cmd 0x39 len 3 composelongpacket channel 0 cmd 0x39 len 3 packet len 9 39 03 00 09 b6 2c 2c 55 04 modifyreg32 addr 0x300 val 0x09000339 modifyreg32 addr 0x304 val 0x552c2cb6 modifyreg32 addr 0x308 val 0x00000004 modifyreg32 addr 0x200 val 0x00000008 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 4 bf 02 11 00 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c bf 02 11 00 b5 e9 modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0x001102bf modifyreg32 addr 0x308 val 0x0000e9b5 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 64 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 64 composelongpacket channel 0 cmd 0x39 len 64 packet len 70 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 modifyreg32 addr 0x300 val 0x25004039 modifyreg32 addr 0x304 val 0x061082e9 modifyreg32 addr 0x308 val 0xa50aa205 modifyreg32 addr 0x30c val 0x37233112 modifyreg32 addr 0x310 val 0x27bc0483 modifyreg32 addr 0x314 val 0x03000c38 modifyreg32 addr 0x318 val 0x0c000000 modifyreg32 addr 0x31c val 0x00000300 modifyreg32 addr 0x320 val 0x31757500 modifyreg32 addr 0x324 val 0x88888888 modifyreg32 addr 0x328 val 0x88138888 modifyreg32 addr 0x32c val 0x88206464 modifyreg32 addr 0x330 val 0x88888888 modifyreg32 addr 0x334 val 0x00880288 modifyreg32 addr 0x338 val 0x00000000 modifyreg32 addr 0x33c val 0x00000000 modifyreg32 addr 0x340 val 0x00000000 modifyreg32 addr 0x344 val 0x00000365 modifyreg32 addr 0x200 val 0x00000045 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 62 ea 02 21 00 00 00 00 00 00 00 00 00 00 02 46 02 88 88 88 88 88 88 64 88 13 57 13 88 88 88 88 88 88 75 88 23 14 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 0a a5 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 62 composelongpacket channel 0 cmd 0x39 len 62 packet len 68 39 3e 00 1a ea 02 21 00 00 00 00 00 00 00 00 00 00 02 46 02 88 88 88 88 88 88 64 88 13 57 13 88 88 88 88 88 88 75 88 23 14 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 0a a5 00 00 00 00 24 1b modifyreg32 addr 0x300 val 0x1a003e39 modifyreg32 addr 0x304 val 0x002102ea modifyreg32 addr 0x308 val 0x00000000 modifyreg32 addr 0x30c val 0x00000000 modifyreg32 addr 0x310 val 0x02460200 modifyreg32 addr 0x314 val 0x88888888 modifyreg32 addr 0x318 val 0x88648888 modifyreg32 addr 0x31c val 0x88135713 modifyreg32 addr 0x320 val 0x88888888 modifyreg32 addr 0x324 val 0x23887588 modifyreg32 addr 0x328 val 0x02000014 modifyreg32 addr 0x32c val 0x00000000 modifyreg32 addr 0x330 val 0x00000000 modifyreg32 addr 0x334 val 0x00000000 modifyreg32 addr 0x338 val 0x03000000 modifyreg32 addr 0x33c val 0x0000a50a modifyreg32 addr 0x340 val 0x1b240000 modifyreg32 addr 0x200 val 0x00000043 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 35 e0 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 mipi dsi dcs write channel 0 cmd 0x39 len 35 composelongpacket channel 0 cmd 0x39 len 35 packet len 41 39 23 00 20 e0 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 93 bf modifyreg32 addr 0x300 val 0x20002339 modifyreg32 addr 0x304 val 0x0d0900e0 modifyreg32 addr 0x308 val 0x413c2723 modifyreg32 addr 0x30c val 0x0e0d0735 modifyreg32 addr 0x310 val 0x12101312 modifyreg32 addr 0x314 val 0x09001812 modifyreg32 addr 0x318 val 0x3c27230d modifyreg32 addr 0x31c val 0x0d073541 modifyreg32 addr 0x320 val 0x1013120e modifyreg32 addr 0x324 val 0x93181212 modifyreg32 addr 0x328 val 0x000000bf modifyreg32 addr 0x200 val 0x00000028 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 1 11 mipi dsi dcs write channel 0 cmd 0x5 len 1 composeshortpacket channel 0 cmd 0x5 len 1 packet len 4 05 11 00 36 modifyreg32 addr 0x300 val 0x36001105 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 1 29 mipi dsi dcs write channel 0 cmd 0x5 len 1 composeshortpacket channel 0 cmd 0x5 len 1 packet len 4 05 29 00 1c modifyreg32 addr 0x300 val 0x1c002905 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 dsi start dsi start hsc 0x0048 0x00000f02 dmb magic commit 0 dmb dsi update bits 0x01ca0020 0000001f 00000010 00000000 dmb udelay 1000 dsi start dsi start hsd 0x0048 0x63f07006 dmb magic commit 0 dmb dsi init end de2 init set sram for video use 0x1c00004 0x0 dmb setup de2 pll clock set pll de clk 297000000 pll10 rate 24000000 n m 0x1c20048 0x81001701 dmb while readl 0x1c20048 0x10000000 enable de2 special clock clrsetbits 0x1c20104 0x3000000 0x81000000 enable de2 ahb setbits 0x1c202c4 0x1000 setbits 0x1c20064 0x1000 enable clock for mixer 0 set route mixer0 tcon0 setbits 0x1000000 0x1 setbits 0x1000008 0x1 setbits 0x1000004 0x1 clrbits 0x1000010 0x1 clear all registers 0x1100000 to 0x1105fff 0x0 0x1120000 0x0 0x1130000 0x0 0x1140000 0x0 0x1150000 0x0 0x11a0000 0x0 0x11a2000 0x0 0x11a4000 0x0 0x11a6000 0x0 0x11a8000 0x0 0x11aa000 0x0 0x11b0000 0x0 enable mixer 0x1100000 0x1 dmb backlight enable pct 0x5a 1 0 has incorrectly documented non presence of ph10 the circuit is in fact the same as on 1 1 configure pwm gpl 10 gpl r pwm sunxi gpio set cfgpin pin 0x16a val 2 sunxi gpio set cfgbank bank offset 362 val 2 clrsetbits 0x1f02c04 0xf00 0x200 clrbits 0x1f03800 0x40 dmb 0x1f03804 0x4af0437 dmb 0x1f03800 0x5f dmb enable backlight gph 10 1 sunxi gpio set cfgpin pin 0xea val 1 sunxi gpio set cfgbank bank offset 234 val 1 clrsetbits 0x1c20900 0xf00 0x100 sunxi gpio output pin 0xea val 1 before 0x1c2090c 0x400 after 0x1c2090c 0x400 dmb test render inituiblender configure blender 0x1101088 0xff000000 0x1101084 0x0 inituichannel channel 1 set overlay 720 x 1440 0x1103000 0xff000405 0x1103010 0x400fd524 0x110300c 0xb40 0x1103004 0x59f02cf 0x1103088 0x59f02cf 0x1103008 0x0 channel 1 set blender output 0x110108c 0x59f02cf 0x110000c 0x59f02cf channel 1 set blender input pipe 0 720 x 1440 0x1101008 0x59f02cf 0x1101004 0xff000000 0x110100c 0x0 0x1101090 0x3010301 channel 1 disable scaler 0x1140000 0x0 inituichannel channel 2 set overlay 600 x 600 0x1104000 0xff000005 0x1104010 0x404f1d24 0x110400c 0x960 0x1104004 0x2570257 0x1104088 0x2570257 0x1104008 0x0 channel 2 set blender input pipe 1 600 x 600 0x1101018 0x2570257 0x1101014 0xff000000 0x110101c 0x340034 0x1101094 0x3010301 channel 2 disable scaler 0x1150000 0x0 inituichannel channel 3 set overlay 720 x 1440 0x1105000 0x7f000005 0x1105010 0x40651624 0x110500c 0xb40 0x1105004 0x59f02cf 0x1105088 0x59f02cf 0x1105008 0x0 channel 3 set blender input pipe 2 720 x 1440 0x1101028 0x59f02cf 0x1101024 0xff000000 0x110102c 0x0 0x1101098 0x3010301 channel 3 disable scaler 0x1160000 0x0 applysettings set bld route and bld fcolor control 0x1101080 0x321 0x1101000 0x701 apply settings 0x1100008 0x1 hello zig on pinephone testing compose short packet without parameter composeshortpacket channel 0 cmd 0x5 len 1 result 05 11 00 36 testing compose short packet with parameter composeshortpacket channel 0 cmd 0x15 len 2 result 15 bc 4e 35 testing compose long packet composelongpacket channel 0 cmd 0x39 len 64 result 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 nsh nsh testing zig display engine driver on qemu text aarch64 none elf gcc v using built in specs collect gcc aarch64 none elf gcc collect lto wrapper applications armgnutoolchain 11 3 rel1 aarch64 none elf bin libexec gcc aarch64 none elf 11 3 1 lto wrapper target aarch64 none elf configured with volumes data jenkins workspace gnu toolchain arm 11 src gcc configure target aarch64 none elf prefix volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf install with gmp volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf host tools with mpfr volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf host tools with mpc volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf host tools with isl volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf host tools disable shared disable nls disable threads disable tls enable checking release enable languages c c fortran with newlib with gnu as with gnu ld with sysroot volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf install aarch64 none elf with pkgversion arm gnu toolchain 11 3 rel1 with bugurl https bugs linaro org thread model single supported lto compression algorithms zlib gcc version 11 3 1 20220712 arm gnu toolchain 11 3 rel1 zig version 0 10 0 dev 2351 b64a1d5ab build zig pushd pinephone nuttx gicv2 nuttx pinephone nuttx gicv2 nuttx nuttx git pull remote enumerating objects 5 done remote counting objects 100 5 5 done remote compressing objects 100 1 1 done remote total 3 delta 2 reused 3 delta 2 pack reused 0 unpacking objects 100 3 3 done from https github com lupyuen pinephone nuttx 4f24434 3bc128f main origin main updating 4f24434 3bc128f fast forward render zig 4 1 file changed 2 insertions 2 deletions zig build obj verbose cimport target aarch64 freestanding none mcpu cortex a53 isystem users luppy gicv2 nuttx nuttx include i users luppy gicv2 nuttx apps include render zig info compilation c import output zig cache o bdba45dc794911501be5991bbd50b924 cimport zig info compilation c import output zig cache o 4d99b86faf008804574b7c60caf78668 cimport zig cp render o users luppy gicv2 nuttx apps examples null null main c users luppy gicv2 nuttx apps examples null o popd gicv2 nuttx nuttx make j make 1 entering directory users luppy gicv2 nuttx apps make 1 entering directory users luppy gicv2 nuttx nuttx libs libxx make 1 libxx a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx libs libxx make 2 entering directory users luppy gicv2 nuttx apps builtin make 2 entering directory users luppy gicv2 nuttx apps examples null make 2 entering directory users luppy gicv2 nuttx apps nshlib make 2 entering directory users luppy gicv2 nuttx apps system nsh make 2 entering directory users luppy gicv2 nuttx apps platform make 2 entering directory users luppy gicv2 nuttx apps system system make 2 entering directory users luppy gicv2 nuttx apps system readline make 2 entering directory users luppy gicv2 nuttx apps examples hello make 2 entering directory users luppy gicv2 nuttx apps testing getprime make 2 entering directory users luppy gicv2 nuttx apps testing ostest make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps testing ostest make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps examples hello make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps testing getprime make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps builtin make 2 nothing to be done for depend make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps platform make 2 leaving directory users luppy gicv2 nuttx apps system system make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps examples null make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps nshlib make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps system nsh make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps system readline make 1 leaving directory users luppy gicv2 nuttx apps make 1 entering directory users luppy gicv2 nuttx nuttx sched make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx sched make 1 entering directory users luppy gicv2 nuttx nuttx drivers make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx drivers make 1 entering directory users luppy gicv2 nuttx nuttx boards make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx boards make 1 entering directory users luppy gicv2 nuttx nuttx arch arm64 src make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx arch arm64 src make 1 entering directory users luppy gicv2 nuttx nuttx fs make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx fs make 1 entering directory users luppy gicv2 nuttx nuttx binfmt make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx binfmt make 1 entering directory users luppy gicv2 nuttx nuttx libs libc make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx libs libc make 1 entering directory users luppy gicv2 nuttx nuttx mm make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx mm make 1 entering directory users luppy gicv2 nuttx nuttx libs libxx make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx libs libxx make 1 entering directory users luppy gicv2 nuttx nuttx sched make 1 entering directory users luppy gicv2 nuttx nuttx drivers make 1 entering directory users luppy gicv2 nuttx nuttx libs libc make 1 entering directory users luppy gicv2 nuttx nuttx boards make 1 entering directory users luppy gicv2 nuttx nuttx mm make 1 entering directory users luppy gicv2 nuttx nuttx arch arm64 src make 1 entering directory users luppy gicv2 nuttx apps make 1 entering directory users luppy gicv2 nuttx nuttx fs make 1 entering directory users luppy gicv2 nuttx nuttx binfmt make 1 libboards a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx boards make 1 libdrivers a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx drivers make 1 libmm a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx mm make 1 libsched a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx sched make 1 libbinfmt a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx binfmt make 1 libfs a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx fs rm f users luppy gicv2 nuttx apps libapps a make users luppy gicv2 nuttx apps libapps a make 1 libarch a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx arch arm64 src make 2 entering directory users luppy gicv2 nuttx apps make 1 libc a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx libs libc make 3 entering directory users luppy gicv2 nuttx apps builtin make 3 entering directory users luppy gicv2 nuttx apps system readline make 3 entering directory users luppy gicv2 nuttx apps nshlib make 3 entering directory users luppy gicv2 nuttx apps examples hello make 3 entering directory users luppy gicv2 nuttx apps platform make 3 entering directory users luppy gicv2 nuttx apps system nsh make 3 entering directory users luppy gicv2 nuttx apps examples null make 3 entering directory users luppy gicv2 nuttx apps testing getprime make 3 entering directory users luppy gicv2 nuttx apps system system make 3 entering directory users luppy gicv2 nuttx apps testing ostest make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps platform make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps examples null make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps system readline make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps system nsh make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps builtin make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps examples hello make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps system system make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps testing getprime make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps nshlib make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps testing ostest make 3 entering directory users luppy gicv2 nuttx apps builtin ar add libapps a builtin list c users luppy gicv2 nuttx apps builtin o exec builtin c users luppy gicv2 nuttx apps builtin o make 3 leaving directory users luppy gicv2 nuttx apps builtin make 3 entering directory users luppy gicv2 nuttx apps examples hello ar add libapps a hello main c users luppy gicv2 nuttx apps examples hello o make 3 leaving directory users luppy gicv2 nuttx apps examples hello make 3 entering directory users luppy gicv2 nuttx apps examples null ar add libapps a null main c users luppy gicv2 nuttx apps examples null o make 3 leaving directory users luppy gicv2 nuttx apps examples null make 3 entering directory users luppy gicv2 nuttx apps nshlib ar add libapps a nsh init c users luppy gicv2 nuttx apps nshlib o nsh parse c users luppy gicv2 nuttx apps nshlib o nsh console c users luppy gicv2 nuttx apps nshlib o nsh script c users luppy gicv2 nuttx apps nshlib o nsh system c users luppy gicv2 nuttx apps nshlib o nsh command c users luppy gicv2 nuttx apps nshlib o nsh fscmds c users luppy gicv2 nuttx apps nshlib o nsh ddcmd c users luppy gicv2 nuttx apps nshlib o nsh proccmds c users luppy gicv2 nuttx apps nshlib o nsh mmcmds c users luppy gicv2 nuttx apps nshlib o nsh timcmds c users luppy gicv2 nuttx apps nshlib o nsh envcmds c users luppy gicv2 nuttx apps nshlib o nsh syscmds c users luppy gicv2 nuttx apps nshlib o nsh dbgcmds c users luppy gicv2 nuttx apps nshlib o nsh session c users luppy gicv2 nuttx apps nshlib o nsh fsutils c users luppy gicv2 nuttx apps nshlib o nsh builtin c users luppy gicv2 nuttx apps nshlib o nsh romfsetc c users luppy gicv2 nuttx apps nshlib o nsh mntcmds c users luppy gicv2 nuttx apps nshlib o nsh consolemain c users luppy gicv2 nuttx apps nshlib o nsh printf c users luppy gicv2 nuttx apps nshlib o nsh test c users luppy gicv2 nuttx apps nshlib o make 3 leaving directory users luppy gicv2 nuttx apps nshlib make 3 entering directory users luppy gicv2 nuttx apps platform ar add libapps a dummy c users luppy gicv2 nuttx apps platform o make 3 leaving directory users luppy gicv2 nuttx apps platform make 3 entering directory users luppy gicv2 nuttx apps system nsh ar add libapps a nsh main c users luppy gicv2 nuttx apps system nsh o sh main c users luppy gicv2 nuttx apps system nsh o make 3 leaving directory users luppy gicv2 nuttx apps system nsh make 3 entering directory users luppy gicv2 nuttx apps system readline ar add libapps a readline c users luppy gicv2 nuttx apps system readline o readline fd c users luppy gicv2 nuttx apps system readline o readline common c users luppy gicv2 nuttx apps system readline o make 3 leaving directory users luppy gicv2 nuttx apps system readline make 3 entering directory users luppy gicv2 nuttx apps system system ar add libapps a system c users luppy gicv2 nuttx apps system system o make 3 leaving directory users luppy gicv2 nuttx apps system system make 3 entering directory users luppy gicv2 nuttx apps testing getprime ar add libapps a getprime main c users luppy gicv2 nuttx apps testing getprime o make 3 leaving directory users luppy gicv2 nuttx apps testing getprime make 3 entering directory users luppy gicv2 nuttx apps testing ostest ar add libapps a getopt c users luppy gicv2 nuttx apps testing ostest o dev null c users luppy gicv2 nuttx apps testing ostest o restart c users luppy gicv2 nuttx apps testing ostest o sigprocmask c users luppy gicv2 nuttx apps testing ostest o sighand c users luppy gicv2 nuttx apps testing ostest o signest c users luppy gicv2 nuttx apps testing ostest o fpu c users luppy gicv2 nuttx apps testing ostest o setvbuf c users luppy gicv2 nuttx apps testing ostest o tls c users luppy gicv2 nuttx apps testing ostest o waitpid c users luppy gicv2 nuttx apps testing ostest o cancel c users luppy gicv2 nuttx apps testing ostest o cond c users luppy gicv2 nuttx apps testing ostest o mutex c users luppy gicv2 nuttx apps testing ostest o timedmutex c users luppy gicv2 nuttx apps testing ostest o sem c users luppy gicv2 nuttx apps testing ostest o semtimed c users luppy gicv2 nuttx apps testing ostest o barrier c users luppy gicv2 nuttx apps testing ostest o timedwait c users luppy gicv2 nuttx apps testing ostest o pthread rwlock c users luppy gicv2 nuttx apps testing ostest o pthread rwlock cancel c users luppy gicv2 nuttx apps testing ostest o specific c users luppy gicv2 nuttx apps testing ostest o robust c users luppy gicv2 nuttx apps testing ostest o roundrobin c users luppy gicv2 nuttx apps testing ostest o mqueue c users luppy gicv2 nuttx apps testing ostest o timedmqueue c users luppy gicv2 nuttx apps testing ostest o posixtimer c users luppy gicv2 nuttx apps testing ostest o vfork c users luppy gicv2 nuttx apps testing ostest o ostest main c users luppy gicv2 nuttx apps testing ostest o make 3 leaving directory users luppy gicv2 nuttx apps testing ostest make 2 leaving directory users luppy gicv2 nuttx apps make 1 leaving directory users luppy gicv2 nuttx apps in users luppy gicv2 nuttx apps libapps a staging libapps a make 1 entering directory users luppy gicv2 nuttx nuttx arch arm64 src make 2 entering directory users luppy gicv2 nuttx nuttx boards arm64 qemu qemu a53 src make 2 libboard a is up to date make 2 leaving directory users luppy gicv2 nuttx nuttx boards arm64 qemu qemu a53 src ld nuttx make 1 leaving directory users luppy gicv2 nuttx nuttx arch arm64 src cp nuttx hex cp nuttx bin aarch64 none elf size nuttx text data bss dec hex filename 273955 12624 9782904 10069483 99a5eb nuttx aarch64 none elf objdump t s demangle line numbers wide nuttx qemu system aarch64 smp 4 cpu cortex a53 nographic machine virt virtualization on gic version 2 net none chardev stdio id con mux on serial chardev con mon chardev con mode readline kernel nuttx ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x40c1d000 heap size 0x73e3000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x8000000 arm64 gic initialize config gicr base 0x8010000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 62 50mhz cycle 62500 up timer initialize vector table 0x402b5000 up timer initialize before writing vbar el1 0x402b5000 up timer initialize after writing vbar el1 0x402b5000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x402b5000 einit 0x402b5000 stext 0x40280000 etext 0x402b6000 nsh sysinit fopen failed 2 nsh mkfatfs command not found nuttshell nsh nuttx 11 0 0 rc2 nsh nx start cpu0 beginning idle loop nsh hello task spawn name hello entry 0x4029b35c file actions 0x40c22580 attr 0x40c22588 argv 0x40c226d0 spawn execattrs setting policy 2 priority 100 for pid 3 hello world test render inituiblender configure blender 0x1101088 0xff000000 0x1101084 0x0 inituichannel channel 1 set overlay 720 x 1440 0x1103000 0xff000405 0x1103010 0x402cf808 0x110300c 0xb40 0x1103004 0x59f02cf 0x1103088 0x59f02cf 0x1103008 0x0 channel 1 set blender output 0x110108c 0x59f02cf 0x110000c 0x59f02cf channel 1 set blender input pipe 0 720 x 1440 0x1101008 0x59f02cf 0x1101004 0xff000000 0x110100c 0x0 0x1101090 0x3010301 channel 1 disable scaler 0x1140000 0x0 inituichannel channel 2 set overlay 600 x 600 0x1104000 0xff000005 0x1104010 0x406c4008 0x110400c 0x960 0x1104004 0x2570257 0x1104088 0x2570257 0x1104008 0x0 channel 2 set blender input pipe 1 600 x 600 0x1101018 0x2570257 0x1101014 0xff000000 0x110101c 0x340034 0x1101094 0x3010301 channel 2 disable scaler 0x1150000 0x0 inituichannel channel 3 set overlay 720 x 1440 0x1105000 0x7f000005 0x1105010 0x40823908 0x110500c 0xb40 0x1105004 0x59f02cf 0x1105088 0x59f02cf 0x1105008 0x0 channel 3 set blender input pipe 2 720 x 1440 0x1101028 0x59f02cf 0x1101024 0xff000000 0x110102c 0x0 0x1101098 0x3010301 channel 3 disable scaler 0x1160000 0x0 applysettings set bld route and bld fcolor control 0x1101080 0x321 0x1101000 0x701 apply settings 0x1100008 0x1 nsh qemu system aarch64 terminating on signal 2 from pid 93762 unknown process terminal will be reused by tasks press any key to close it testing p boot display engine on pinephone text dram 2048 mib trying to boot from mmc1 notice bl31 v2 2 release v2 2 904 gf9ea3a629 notice bl31 built 15 32 12 apr 9 2020 notice bl31 detected allwinner a64 h64 r18 soc 1689 notice bl31 found u boot dtb at 0x4064410 model pinephone notice psci system suspend is unavailable u boot 2020 07 nov 08 2020 00 15 12 0100 dram 2 gib mmc device mmc 1c11000 seq 1 is in use by mmc 1c10000 mmc 1c0f000 0 mmc 1c10000 2 mmc 1c11000 1 loading environment from fat warning bad crc using default environment starting usb no working controllers found hit any key to stop autoboot 0 switch to partitions 0 ok mmc0 is current device scanning mmc 0 1 found u boot script boot scr 653 bytes read in 3 ms 211 9 kib s executing script at 4fc00000 gpio pin 114 gpio 114 value is 1 214451 bytes read in 12 ms 17 mib s uncompressed size 10240000 0x9c4000 36162 bytes read in 4 ms 8 6 mib s 1078500 bytes read in 51 ms 20 2 mib s flattened device tree blob at 4fa00000 booting using the fdt blob at 0x4fa00000 loading ramdisk to 49ef8000 end 49fff4e4 ok loading device tree to 0000000049eec000 end 0000000049ef7d41 ok starting kernel hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x40a44000 heap size 0x75bc000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x400d2000 up timer initialize before writing vbar el1 0x40252000 up timer initialize after writing vbar el1 0x400d2000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x400d2000 einit 0x400d2000 stext 0x40080000 etext 0x400d3000 nsh sysinit fopen failed 2 nshn x msktfaarttf s c pcuo0m m abnedg innonti nfgo uinddl e l onoupt t shell nsh nuttx 11 0 0 rc2 nsh hello task spawn name hello entry 0x4009d2fc file actions 0x40a49580 attr 0x40a49588 argv 0x40a496d0 spawn execattrs setting policy 2 priority 100 for pid 3 abhello world ph cfg1 reg 0x7177 ph data reg 0x400 pd cfg2 reg 0x77711177 pd data reg 0x1c0000 struct reg inst dsi init seq 0x0000 0x00000001 0x0010 0x00030000 0x0060 0x0000000a 0x0078 0x00000000 0x0020 0x0000001f 0x0024 0x10000001 0x0028 0x20000010 0x002c 0x2000000f 0x0030 0x30100001 0x0034 0x40000010 0x0038 0x0000000f 0x003c 0x5000001f 0x004c 0x00560001 0x02f8 0x000000ff 0x0014 0x00005bc7 0x007c 0x10000007 0x0040 0x30000002 0x0044 0x00310031 0x0054 0x00310031 0x0090 0x1308703e 0x0098 0x0000ffff 0x009c 0xffffffff 0x0080 0x00010008 display malloc size 2330 0x000c 0x00000000 0x00b0 0x12000021 0x00b4 0x01000031 0x00b8 0x07000001 0x00bc 0x14000011 0x0018 0x0011000a 0x001c 0x05cd05a0 0x00c0 0x09004a19 0x00c4 0x50b40000 0x00c8 0x35005419 0x00cc 0x757a0000 0x00d0 0x09004a19 0x00d4 0x50b40000 0x00e0 0x0c091a19 0x00e4 0x72bd0000 0x00e8 0x1a000019 0x00ec 0xffff0000 struct reg inst dsi panel init seq nuttx panel init writedcs len 4 b9 f1 12 83 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c b9 f1 12 83 84 5d modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0x8312f1b9 modifyreg32 addr 0x308 val 0x00005d84 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 28 ba 33 81 05 f9 0e 0e 20 00 00 00 00 00 00 00 44 25 00 91 0a 00 00 02 4f 11 00 00 37 mipi dsi dcs write channel 0 cmd 0x39 len 28 composelongpacket channel 0 cmd 0x39 len 28 packet len 34 39 1c 00 2f ba 33 81 05 f9 0e 0e 20 00 00 00 00 00 00 00 44 25 00 91 0a 00 00 02 4f 11 00 00 37 2c e2 modifyreg32 addr 0x300 val 0x2f001c39 modifyreg32 addr 0x304 val 0x058133ba modifyreg32 addr 0x308 val 0x200e0ef9 modifyreg32 addr 0x30c val 0x00000000 modifyreg32 addr 0x310 val 0x44000000 modifyreg32 addr 0x314 val 0x0a910025 modifyreg32 addr 0x318 val 0x4f020000 modifyreg32 addr 0x31c val 0x37000011 modifyreg32 addr 0x320 val 0x0000e22c modifyreg32 addr 0x200 val 0x00000021 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 5 b8 25 22 20 03 mipi dsi dcs write channel 0 cmd 0x39 len 5 composelongpacket channel 0 cmd 0x39 len 5 packet len 11 39 05 00 36 b8 25 22 20 03 03 72 modifyreg32 addr 0x300 val 0x36000539 modifyreg32 addr 0x304 val 0x202225b8 modifyreg32 addr 0x308 val 0x00720303 modifyreg32 addr 0x200 val 0x0000000a modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 11 b3 10 10 05 05 03 ff 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 11 composelongpacket channel 0 cmd 0x39 len 11 packet len 17 39 0b 00 2c b3 10 10 05 05 03 ff 00 00 00 00 6f bc modifyreg32 addr 0x300 val 0x2c000b39 modifyreg32 addr 0x304 val 0x051010b3 modifyreg32 addr 0x308 val 0x00ff0305 modifyreg32 addr 0x30c val 0x6f000000 modifyreg32 addr 0x310 val 0x000000bc modifyreg32 addr 0x200 val 0x00000010 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 10 c0 73 73 50 50 00 c0 08 70 00 mipi dsi dcs write channel 0 cmd 0x39 len 10 composelongpacket channel 0 cmd 0x39 len 10 packet len 16 39 0a 00 36 c0 73 73 50 50 00 c0 08 70 00 1b 6a modifyreg32 addr 0x300 val 0x36000a39 modifyreg32 addr 0x304 val 0x507373c0 modifyreg32 addr 0x308 val 0x08c00050 modifyreg32 addr 0x30c val 0x6a1b0070 modifyreg32 addr 0x200 val 0x0000000f modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 2 bc 4e mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 bc 4e 35 modifyreg32 addr 0x300 val 0x354ebc15 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 2 cc 0b mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 cc 0b 22 modifyreg32 addr 0x300 val 0x220bcc15 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 2 b4 80 mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 b4 80 22 modifyreg32 addr 0x300 val 0x2280b415 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 4 b2 f0 12 f0 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c b2 f0 12 f0 51 86 modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0xf012f0b2 modifyreg32 addr 0x308 val 0x00008651 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 15 e3 00 00 0b 0b 10 10 00 00 00 00 ff 00 c0 10 mipi dsi dcs write channel 0 cmd 0x39 len 15 composelongpacket channel 0 cmd 0x39 len 15 packet len 21 39 0f 00 0f e3 00 00 0b 0b 10 10 00 00 00 00 ff 00 c0 10 36 0f modifyreg32 addr 0x300 val 0x0f000f39 modifyreg32 addr 0x304 val 0x0b0000e3 modifyreg32 addr 0x308 val 0x0010100b modifyreg32 addr 0x30c val 0xff000000 modifyreg32 addr 0x310 val 0x3610c000 modifyreg32 addr 0x314 val 0x0000000f modifyreg32 addr 0x200 val 0x00000014 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 6 c6 01 00 ff ff 00 mipi dsi dcs write channel 0 cmd 0x39 len 6 composelongpacket channel 0 cmd 0x39 len 6 packet len 12 39 06 00 30 c6 01 00 ff ff 00 8e 25 modifyreg32 addr 0x300 val 0x30000639 modifyreg32 addr 0x304 val 0xff0001c6 modifyreg32 addr 0x308 val 0x258e00ff modifyreg32 addr 0x200 val 0x0000000b modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 13 c1 74 00 32 32 77 f1 ff ff cc cc 77 77 mipi dsi dcs write channel 0 cmd 0x39 len 13 composelongpacket channel 0 cmd 0x39 len 13 packet len 19 39 0d 00 13 c1 74 00 32 32 77 f1 ff ff cc cc 77 77 69 e4 modifyreg32 addr 0x300 val 0x13000d39 modifyreg32 addr 0x304 val 0x320074c1 modifyreg32 addr 0x308 val 0xfff17732 modifyreg32 addr 0x30c val 0x77ccccff modifyreg32 addr 0x310 val 0x00e46977 modifyreg32 addr 0x200 val 0x00000012 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 3 b5 07 07 mipi dsi dcs write channel 0 cmd 0x39 len 3 composelongpacket channel 0 cmd 0x39 len 3 packet len 9 39 03 00 09 b5 07 07 7b b3 modifyreg32 addr 0x300 val 0x09000339 modifyreg32 addr 0x304 val 0x7b0707b5 modifyreg32 addr 0x308 val 0x000000b3 modifyreg32 addr 0x200 val 0x00000008 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 3 b6 2c 2c mipi dsi dcs write channel 0 cmd 0x39 len 3 composelongpacket channel 0 cmd 0x39 len 3 packet len 9 39 03 00 09 b6 2c 2c 55 04 modifyreg32 addr 0x300 val 0x09000339 modifyreg32 addr 0x304 val 0x552c2cb6 modifyreg32 addr 0x308 val 0x00000004 modifyreg32 addr 0x200 val 0x00000008 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 4 bf 02 11 00 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c bf 02 11 00 b5 e9 modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0x001102bf modifyreg32 addr 0x308 val 0x0000e9b5 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 64 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 64 composelongpacket channel 0 cmd 0x39 len 64 packet len 70 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 modifyreg32 addr 0x300 val 0x25004039 modifyreg32 addr 0x304 val 0x061082e9 modifyreg32 addr 0x308 val 0xa50aa205 modifyreg32 addr 0x30c val 0x37233112 modifyreg32 addr 0x310 val 0x27bc0483 modifyreg32 addr 0x314 val 0x03000c38 modifyreg32 addr 0x318 val 0x0c000000 modifyreg32 addr 0x31c val 0x00000300 modifyreg32 addr 0x320 val 0x31757500 modifyreg32 addr 0x324 val 0x88888888 modifyreg32 addr 0x328 val 0x88138888 modifyreg32 addr 0x32c val 0x88206464 modifyreg32 addr 0x330 val 0x88888888 modifyreg32 addr 0x334 val 0x00880288 modifyreg32 addr 0x338 val 0x00000000 modifyreg32 addr 0x33c val 0x00000000 modifyreg32 addr 0x340 val 0x00000000 modifyreg32 addr 0x344 val 0x00000365 modifyreg32 addr 0x200 val 0x00000045 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 62 ea 02 21 00 00 00 00 00 00 00 00 00 00 02 46 02 88 88 88 88 88 88 64 88 13 57 13 88 88 88 88 88 88 75 88 23 14 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 0a a5 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 62 composelongpacket channel 0 cmd 0x39 len 62 packet len 68 39 3e 00 1a ea 02 21 00 00 00 00 00 00 00 00 00 00 02 46 02 88 88 88 88 88 88 64 88 13 57 13 88 88 88 88 88 88 75 88 23 14 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 0a a5 00 00 00 00 24 1b modifyreg32 addr 0x300 val 0x1a003e39 modifyreg32 addr 0x304 val 0x002102ea modifyreg32 addr 0x308 val 0x00000000 modifyreg32 addr 0x30c val 0x00000000 modifyreg32 addr 0x310 val 0x02460200 modifyreg32 addr 0x314 val 0x88888888 modifyreg32 addr 0x318 val 0x88648888 modifyreg32 addr 0x31c val 0x88135713 modifyreg32 addr 0x320 val 0x88888888 modifyreg32 addr 0x324 val 0x23887588 modifyreg32 addr 0x328 val 0x02000014 modifyreg32 addr 0x32c val 0x00000000 modifyreg32 addr 0x330 val 0x00000000 modifyreg32 addr 0x334 val 0x00000000 modifyreg32 addr 0x338 val 0x03000000 modifyreg32 addr 0x33c val 0x0000a50a modifyreg32 addr 0x340 val 0x1b240000 modifyreg32 addr 0x200 val 0x00000043 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 35 e0 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 mipi dsi dcs write channel 0 cmd 0x39 len 35 composelongpacket channel 0 cmd 0x39 len 35 packet len 41 39 23 00 20 e0 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 93 bf modifyreg32 addr 0x300 val 0x20002339 modifyreg32 addr 0x304 val 0x0d0900e0 modifyreg32 addr 0x308 val 0x413c2723 modifyreg32 addr 0x30c val 0x0e0d0735 modifyreg32 addr 0x310 val 0x12101312 modifyreg32 addr 0x314 val 0x09001812 modifyreg32 addr 0x318 val 0x3c27230d modifyreg32 addr 0x31c val 0x0d073541 modifyreg32 addr 0x320 val 0x1013120e modifyreg32 addr 0x324 val 0x93181212 modifyreg32 addr 0x328 val 0x000000bf modifyreg32 addr 0x200 val 0x00000028 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 1 11 mipi dsi dcs write channel 0 cmd 0x5 len 1 composeshortpacket channel 0 cmd 0x5 len 1 packet len 4 05 11 00 36 modifyreg32 addr 0x300 val 0x36001105 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 1 29 mipi dsi dcs write channel 0 cmd 0x5 len 1 composeshortpacket channel 0 cmd 0x5 len 1 packet len 4 05 29 00 1c modifyreg32 addr 0x300 val 0x1c002905 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 0x0048 0x00000f02 magic commit 0 dsi update bits 0x01ca0020 0000001f 00000010 00000000 0x0048 0x63f07006 magic commit 0 framebuffers fb0 0x4064a6ac len 0xfd200 fb1 0x404eadac len 0x57e40 fb2 0x400f65ac len 0xfd200 display commit configure blender bld bkcolor 0x1101088 0xff000000 bld premultiply 0x1101084 0x0 channel 1 set overlay ui config attr 0x1103000 0xff000405 ui config top laddr 0x1103010 0x4064a6ac ui config pitch 0x110300c 0xb40 ui config size 0x1103004 0x59f02cf ui overlay size 0x1103088 0x59f02cf io config coord 0x1103008 0x0 channel 1 set blender output bld output size 0x110108c 0x59f02cf glb size 0x110000c 0x59f02cf channel 1 set blender input pipe 0 bld pipe insize 0x1101008 0x59f02cf bld pipe fcolor 0x1101004 0xff000000 bld pipe offset 0x110100c 0x0 bld pipe mode 0x1101090 0x3010301 channel 1 disable scaler mixer 0x1140000 0x0 channel 2 set overlay ui config attr 0x1104000 0xff000005 ui config top laddr 0x1104010 0x404eadac ui config pitch 0x110400c 0x960 ui config size 0x1104004 0x2570257 ui overlay size 0x1104088 0x2570257 io config coord 0x1104008 0x0 channel 2 set blender input pipe 1 bld pipe insize 0x1101018 0x2570257 bld pipe fcolor 0x1101014 0xff000000 bld pipe offset 0x110101c 0x340034 bld pipe mode 0x1101094 0x3010301 channel 2 disable scaler mixer 0x1150000 0x0 channel 3 set overlay ui config attr 0x1105000 0xff000005 ui config top laddr 0x1105010 0x400f65ac ui config pitch 0x110500c 0xb40 ui config size 0x1105004 0x59f02cf ui overlay size 0x1105088 0x59f02cf io config coord 0x1105008 0x0 channel 3 set blender input pipe 2 bld pipe insize 0x1101028 0x59f02cf bld pipe fcolor 0x1101024 0xff000000 bld pipe offset 0x110102c 0x0 bld pipe mode 0x1101098 0x3010301 channel 3 disable scaler mixer 0x1160000 0x0 set bld route and bld fcolor control bld route 0x1101080 0x321 dmb bld fcolor control 0x1101000 0x701 dmb apply settings glb dbuff 0x1100008 0x1 dmb if we enable channel 1 and disable channels 2 and 3 text display commit configure blender bld bkcolor 0x1101088 0xff000000 bld premultiply 0x1101084 0x0 channel 1 set overlay ui config attr 0x1103000 0xff000405 ui config top laddr 0x1103010 0x400f65ac ui config pitch 0x110300c 0xb40 ui config size 0x1103004 0x59f02cf ui overlay size 0x1103088 0x59f02cf io config coord 0x1103008 0x0 channel 1 set blender output bld output size 0x110108c 0x59f02cf glb size 0x110000c 0x59f02cf channel 1 set blender input pipe 0 bld pipe insize 0x1101008 0x59f02cf bld pipe fcolor 0x1101004 0xff000000 bld pipe offset 0x110100c 0x0 bld pipe mode 0x1101090 0x3010301 channel 1 disable scaler mixer 0x1140000 0x0 channel 2 disable overlay and pipe ui config attr 0x1104000 0x0 channel 2 disable scaler mixer 0x1150000 0x0 channel 3 disable overlay and pipe ui config attr 0x1105000 0x0 channel 3 disable scaler mixer 0x1160000 0x0 set bld route and bld fcolor control bld route 0x1101080 0x1 bld fcolor control 0x1101000 0x101 apply settings glb dbuff 0x1100008 0x1 testing nuttx zig driver for mipi dsi on pinephone testing our nuttx zig driver for mipi dsi https github com lupyuen pinephone nuttx zig driver for pinephone mipi dsi on pinephone screen lights up and shows a test pattern text dram 2048 mib trying to boot from mmc1 notice bl31 v2 2 release v2 2 904 gf9ea3a629 notice bl31 built 15 32 12 apr 9 2020 notice bl31 detected allwinner a64 h64 r18 soc 1689 notice bl31 found u boot dtb at 0x4064410 model pinephone notice psci system suspend is unavailable u boot 2020 07 nov 08 2020 00 15 12 0100 dram 2 gib mmc device mmc 1c11000 seq 1 is in use by mmc 1c10000 mmc 1c0f000 0 mmc 1c10000 2 mmc 1c11000 1 loading environment from fat warning bad crc using default environment starting usb no working controllers found hit any key to stop autoboot 0 switch to partitions 0 ok mmc0 is current device scanning mmc 0 1 found u boot script boot scr 653 bytes read in 3 ms 211 9 kib s executing script at 4fc00000 gpio pin 114 gpio 114 value is 1 207379 bytes read in 13 ms 15 2 mib s uncompressed size 4653056 0x470000 36162 bytes read in 4 ms 8 6 mib s 1078500 bytes read in 50 ms 20 6 mib s flattened device tree blob at 4fa00000 booting using the fdt blob at 0x4fa00000 loading ramdisk to 49ef8000 end 49fff4e4 ok loading device tree to 0000000049eec000 end 0000000049ef7d41 ok starting kernel hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x404f0000 heap size 0x7b10000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x400d2000 up timer initialize before writing vbar el1 0x40252000 up timer initialize after writing vbar el1 0x400d2000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x400d2000 einit 0x400d2000 stext 0x40080000 etext 0x400d3000 nsh sysinit fopen failed 2 nshn x msktfaarttf s c pcuo0m m abnedg innonti nfgo uinddl e l onoupt t shell nsh nuttx 11 0 0 rc2 nsh hello task spawn name hello entry 0x4009ce64 file actions 0x404f5580 attr 0x404f5588 argv 0x404f56d0 spawn execattrs setting policy 2 priority 100 for pid 3 abhello world ph cfg1 reg 0x7177 ph data reg 0x400 pd cfg2 reg 0x77711177 pd data reg 0x1c0000 struct reg inst dsi init seq 0x0000 0x00000001 0x0010 0x00030000 0x0060 0x0000000a 0x0078 0x00000000 0x0020 0x0000001f 0x0024 0x10000001 0x0028 0x20000010 0x002c 0x2000000f 0x0030 0x30100001 0x0034 0x40000010 0x0038 0x0000000f 0x003c 0x5000001f 0x004c 0x00560001 0x02f8 0x000000ff 0x0014 0x00005bc7 0x007c 0x10000007 0x0040 0x30000002 0x0044 0x00310031 0x0054 0x00310031 0x0090 0x1308703e 0x0098 0x0000ffff 0x009c 0xffffffff 0x0080 0x00010008 display malloc size 2330 0x000c 0x00000000 0x00b0 0x12000021 0x00b4 0x01000031 0x00b8 0x07000001 0x00bc 0x14000011 0x0018 0x0011000a 0x001c 0x05cd05a0 0x00c0 0x09004a19 0x00c4 0x50b40000 0x00c8 0x35005419 0x00cc 0x757a0000 0x00d0 0x09004a19 0x00d4 0x50b40000 0x00e0 0x0c091a19 0x00e4 0x72bd0000 0x00e8 0x1a000019 0x00ec 0xffff0000 struct reg inst dsi panel init seq nuttx panel init writedcs len 4 b9 f1 12 83 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c b9 f1 12 83 84 5d modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0x8312f1b9 modifyreg32 addr 0x308 val 0x00005d84 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 28 ba 33 81 05 f9 0e 0e 20 00 00 00 00 00 00 00 44 25 00 91 0a 00 00 02 4f 11 00 00 37 mipi dsi dcs write channel 0 cmd 0x39 len 28 composelongpacket channel 0 cmd 0x39 len 28 packet len 34 39 1c 00 2f ba 33 81 05 f9 0e 0e 20 00 00 00 00 00 00 00 44 25 00 91 0a 00 00 02 4f 11 00 00 37 2c e2 modifyreg32 addr 0x300 val 0x2f001c39 modifyreg32 addr 0x304 val 0x058133ba modifyreg32 addr 0x308 val 0x200e0ef9 modifyreg32 addr 0x30c val 0x00000000 modifyreg32 addr 0x310 val 0x44000000 modifyreg32 addr 0x314 val 0x0a910025 modifyreg32 addr 0x318 val 0x4f020000 modifyreg32 addr 0x31c val 0x37000011 modifyreg32 addr 0x320 val 0x0000e22c modifyreg32 addr 0x200 val 0x00000021 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 5 b8 25 22 20 03 mipi dsi dcs write channel 0 cmd 0x39 len 5 composelongpacket channel 0 cmd 0x39 len 5 packet len 11 39 05 00 36 b8 25 22 20 03 03 72 modifyreg32 addr 0x300 val 0x36000539 modifyreg32 addr 0x304 val 0x202225b8 modifyreg32 addr 0x308 val 0x00720303 modifyreg32 addr 0x200 val 0x0000000a modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 11 b3 10 10 05 05 03 ff 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 11 composelongpacket channel 0 cmd 0x39 len 11 packet len 17 39 0b 00 2c b3 10 10 05 05 03 ff 00 00 00 00 6f bc modifyreg32 addr 0x300 val 0x2c000b39 modifyreg32 addr 0x304 val 0x051010b3 modifyreg32 addr 0x308 val 0x00ff0305 modifyreg32 addr 0x30c val 0x6f000000 modifyreg32 addr 0x310 val 0x000000bc modifyreg32 addr 0x200 val 0x00000010 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 10 c0 73 73 50 50 00 c0 08 70 00 mipi dsi dcs write channel 0 cmd 0x39 len 10 composelongpacket channel 0 cmd 0x39 len 10 packet len 16 39 0a 00 36 c0 73 73 50 50 00 c0 08 70 00 1b 6a modifyreg32 addr 0x300 val 0x36000a39 modifyreg32 addr 0x304 val 0x507373c0 modifyreg32 addr 0x308 val 0x08c00050 modifyreg32 addr 0x30c val 0x6a1b0070 modifyreg32 addr 0x200 val 0x0000000f modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 2 bc 4e mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 bc 4e 35 modifyreg32 addr 0x300 val 0x354ebc15 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 2 cc 0b mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 cc 0b 22 modifyreg32 addr 0x300 val 0x220bcc15 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 2 b4 80 mipi dsi dcs write channel 0 cmd 0x15 len 2 composeshortpacket channel 0 cmd 0x15 len 2 packet len 4 15 b4 80 22 modifyreg32 addr 0x300 val 0x2280b415 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 4 b2 f0 12 f0 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c b2 f0 12 f0 51 86 modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0xf012f0b2 modifyreg32 addr 0x308 val 0x00008651 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 15 e3 00 00 0b 0b 10 10 00 00 00 00 ff 00 c0 10 mipi dsi dcs write channel 0 cmd 0x39 len 15 composelongpacket channel 0 cmd 0x39 len 15 packet len 21 39 0f 00 0f e3 00 00 0b 0b 10 10 00 00 00 00 ff 00 c0 10 36 0f modifyreg32 addr 0x300 val 0x0f000f39 modifyreg32 addr 0x304 val 0x0b0000e3 modifyreg32 addr 0x308 val 0x0010100b modifyreg32 addr 0x30c val 0xff000000 modifyreg32 addr 0x310 val 0x3610c000 modifyreg32 addr 0x314 val 0x0000000f modifyreg32 addr 0x200 val 0x00000014 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 6 c6 01 00 ff ff 00 mipi dsi dcs write channel 0 cmd 0x39 len 6 composelongpacket channel 0 cmd 0x39 len 6 packet len 12 39 06 00 30 c6 01 00 ff ff 00 8e 25 modifyreg32 addr 0x300 val 0x30000639 modifyreg32 addr 0x304 val 0xff0001c6 modifyreg32 addr 0x308 val 0x258e00ff modifyreg32 addr 0x200 val 0x0000000b modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 13 c1 74 00 32 32 77 f1 ff ff cc cc 77 77 mipi dsi dcs write channel 0 cmd 0x39 len 13 composelongpacket channel 0 cmd 0x39 len 13 packet len 19 39 0d 00 13 c1 74 00 32 32 77 f1 ff ff cc cc 77 77 69 e4 modifyreg32 addr 0x300 val 0x13000d39 modifyreg32 addr 0x304 val 0x320074c1 modifyreg32 addr 0x308 val 0xfff17732 modifyreg32 addr 0x30c val 0x77ccccff modifyreg32 addr 0x310 val 0x00e46977 modifyreg32 addr 0x200 val 0x00000012 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 3 b5 07 07 mipi dsi dcs write channel 0 cmd 0x39 len 3 composelongpacket channel 0 cmd 0x39 len 3 packet len 9 39 03 00 09 b5 07 07 7b b3 modifyreg32 addr 0x300 val 0x09000339 modifyreg32 addr 0x304 val 0x7b0707b5 modifyreg32 addr 0x308 val 0x000000b3 modifyreg32 addr 0x200 val 0x00000008 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 3 b6 2c 2c mipi dsi dcs write channel 0 cmd 0x39 len 3 composelongpacket channel 0 cmd 0x39 len 3 packet len 9 39 03 00 09 b6 2c 2c 55 04 modifyreg32 addr 0x300 val 0x09000339 modifyreg32 addr 0x304 val 0x552c2cb6 modifyreg32 addr 0x308 val 0x00000004 modifyreg32 addr 0x200 val 0x00000008 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 4 bf 02 11 00 mipi dsi dcs write channel 0 cmd 0x39 len 4 composelongpacket channel 0 cmd 0x39 len 4 packet len 10 39 04 00 2c bf 02 11 00 b5 e9 modifyreg32 addr 0x300 val 0x2c000439 modifyreg32 addr 0x304 val 0x001102bf modifyreg32 addr 0x308 val 0x0000e9b5 modifyreg32 addr 0x200 val 0x00000009 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 64 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 64 composelongpacket channel 0 cmd 0x39 len 64 packet len 70 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 modifyreg32 addr 0x300 val 0x25004039 modifyreg32 addr 0x304 val 0x061082e9 modifyreg32 addr 0x308 val 0xa50aa205 modifyreg32 addr 0x30c val 0x37233112 modifyreg32 addr 0x310 val 0x27bc0483 modifyreg32 addr 0x314 val 0x03000c38 modifyreg32 addr 0x318 val 0x0c000000 modifyreg32 addr 0x31c val 0x00000300 modifyreg32 addr 0x320 val 0x31757500 modifyreg32 addr 0x324 val 0x88888888 modifyreg32 addr 0x328 val 0x88138888 modifyreg32 addr 0x32c val 0x88206464 modifyreg32 addr 0x330 val 0x88888888 modifyreg32 addr 0x334 val 0x00880288 modifyreg32 addr 0x338 val 0x00000000 modifyreg32 addr 0x33c val 0x00000000 modifyreg32 addr 0x340 val 0x00000000 modifyreg32 addr 0x344 val 0x00000365 modifyreg32 addr 0x200 val 0x00000045 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 62 ea 02 21 00 00 00 00 00 00 00 00 00 00 02 46 02 88 88 88 88 88 88 64 88 13 57 13 88 88 88 88 88 88 75 88 23 14 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 0a a5 00 00 00 00 mipi dsi dcs write channel 0 cmd 0x39 len 62 composelongpacket channel 0 cmd 0x39 len 62 packet len 68 39 3e 00 1a ea 02 21 00 00 00 00 00 00 00 00 00 00 02 46 02 88 88 88 88 88 88 64 88 13 57 13 88 88 88 88 88 88 75 88 23 14 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 0a a5 00 00 00 00 24 1b modifyreg32 addr 0x300 val 0x1a003e39 modifyreg32 addr 0x304 val 0x002102ea modifyreg32 addr 0x308 val 0x00000000 modifyreg32 addr 0x30c val 0x00000000 modifyreg32 addr 0x310 val 0x02460200 modifyreg32 addr 0x314 val 0x88888888 modifyreg32 addr 0x318 val 0x88648888 modifyreg32 addr 0x31c val 0x88135713 modifyreg32 addr 0x320 val 0x88888888 modifyreg32 addr 0x324 val 0x23887588 modifyreg32 addr 0x328 val 0x02000014 modifyreg32 addr 0x32c val 0x00000000 modifyreg32 addr 0x330 val 0x00000000 modifyreg32 addr 0x334 val 0x00000000 modifyreg32 addr 0x338 val 0x03000000 modifyreg32 addr 0x33c val 0x0000a50a modifyreg32 addr 0x340 val 0x1b240000 modifyreg32 addr 0x200 val 0x00000043 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 35 e0 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 mipi dsi dcs write channel 0 cmd 0x39 len 35 composelongpacket channel 0 cmd 0x39 len 35 packet len 41 39 23 00 20 e0 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 93 bf modifyreg32 addr 0x300 val 0x20002339 modifyreg32 addr 0x304 val 0x0d0900e0 modifyreg32 addr 0x308 val 0x413c2723 modifyreg32 addr 0x30c val 0x0e0d0735 modifyreg32 addr 0x310 val 0x12101312 modifyreg32 addr 0x314 val 0x09001812 modifyreg32 addr 0x318 val 0x3c27230d modifyreg32 addr 0x31c val 0x0d073541 modifyreg32 addr 0x320 val 0x1013120e modifyreg32 addr 0x324 val 0x93181212 modifyreg32 addr 0x328 val 0x000000bf modifyreg32 addr 0x200 val 0x00000028 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 1 11 mipi dsi dcs write channel 0 cmd 0x5 len 1 composeshortpacket channel 0 cmd 0x5 len 1 packet len 4 05 11 00 36 modifyreg32 addr 0x300 val 0x36001105 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 writedcs len 1 29 mipi dsi dcs write channel 0 cmd 0x5 len 1 composeshortpacket channel 0 cmd 0x5 len 1 packet len 4 05 29 00 1c modifyreg32 addr 0x300 val 0x1c002905 modifyreg32 addr 0x200 val 0x00000003 modifyreg32 addr 0x010 val 0x00000000 modifyreg32 addr 0x010 val 0x00000001 0x0048 0x00000f02 magic commit 0 dsi update bits 0x01ca0020 0000001f 00000010 00000000 0x0048 0x63f07006 magic commit 0 hello zig on pinephone testing compose short packet without parameter composeshortpacket channel 0 cmd 0x5 len 1 result 05 11 00 36 testing compose short packet with parameter composeshortpacket channel 0 cmd 0x15 len 2 result 15 bc 4e 35 testing compose long packet composelongpacket channel 0 cmd 0x39 len 64 result 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 nsh nsh uname a nuttx 11 0 0 rc2 a33f82d oct 6 2022 19 36 13 arm64 qemu a53 nsh nsh testing nuttx zig driver for mipi dsi on qemu testing our nuttx zig driver for mipi dsi https github com lupyuen pinephone nuttx zig driver for pinephone mipi dsi on pinephone text aarch64 none elf gcc v using built in specs collect gcc aarch64 none elf gcc collect lto wrapper applications armgnutoolchain 11 3 rel1 aarch64 none elf bin libexec gcc aarch64 none elf 11 3 1 lto wrapper target aarch64 none elf configured with volumes data jenkins workspace gnu toolchain arm 11 src gcc configure target aarch64 none elf prefix volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf install with gmp volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf host tools with mpfr volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf host tools with mpc volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf host tools with isl volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf host tools disable shared disable nls disable threads disable tls enable checking release enable languages c c fortran with newlib with gnu as with gnu ld with sysroot volumes data jenkins workspace gnu toolchain arm 11 build aarch64 none elf install aarch64 none elf with pkgversion arm gnu toolchain 11 3 rel1 with bugurl https bugs linaro org thread model single supported lto compression algorithms zlib gcc version 11 3 1 20220712 arm gnu toolchain 11 3 rel1 zig version 0 10 0 dev 2351 b64a1d5ab build zig pushd pinephone nuttx gicv2 nuttx pinephone nuttx gicv2 nuttx nuttx git pull already up to date zig build obj target aarch64 freestanding none mcpu cortex a53 isystem users luppy gicv2 nuttx nuttx include i users luppy gicv2 nuttx apps include display zig cp display o users luppy gicv2 nuttx apps examples null null main c users luppy gicv2 nuttx apps examples null o popd gicv2 nuttx nuttx make j make 1 entering directory users luppy gicv2 nuttx apps make 1 entering directory users luppy gicv2 nuttx nuttx libs libxx make 1 libxx a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx libs libxx make 2 entering directory users luppy gicv2 nuttx apps examples hello make 2 entering directory users luppy gicv2 nuttx apps builtin make 2 entering directory users luppy gicv2 nuttx apps examples null make 2 entering directory users luppy gicv2 nuttx apps system system make 2 entering directory users luppy gicv2 nuttx apps system readline make 2 entering directory users luppy gicv2 nuttx apps testing getprime make 2 entering directory users luppy gicv2 nuttx apps platform make 2 entering directory users luppy gicv2 nuttx apps system nsh make 2 entering directory users luppy gicv2 nuttx apps nshlib make 2 entering directory users luppy gicv2 nuttx apps testing ostest make 2 nothing to be done for depend make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps nshlib make 2 leaving directory users luppy gicv2 nuttx apps system system make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps examples hello make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps system readline make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps testing getprime make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps examples null make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps platform make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps builtin make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps system nsh make 2 nothing to be done for depend make 2 leaving directory users luppy gicv2 nuttx apps testing ostest make 1 leaving directory users luppy gicv2 nuttx apps make 1 entering directory users luppy gicv2 nuttx nuttx sched make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx sched make 1 entering directory users luppy gicv2 nuttx nuttx drivers make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx drivers make 1 entering directory users luppy gicv2 nuttx nuttx boards make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx boards make 1 entering directory users luppy gicv2 nuttx nuttx arch arm64 src make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx arch arm64 src make 1 entering directory users luppy gicv2 nuttx nuttx fs make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx fs make 1 entering directory users luppy gicv2 nuttx nuttx binfmt make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx binfmt make 1 entering directory users luppy gicv2 nuttx nuttx libs libc make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx libs libc make 1 entering directory users luppy gicv2 nuttx nuttx mm make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx mm make 1 entering directory users luppy gicv2 nuttx nuttx libs libxx make 1 nothing to be done for depend make 1 leaving directory users luppy gicv2 nuttx nuttx libs libxx make 1 entering directory users luppy gicv2 nuttx nuttx sched make 1 entering directory users luppy gicv2 nuttx nuttx drivers make 1 entering directory users luppy gicv2 nuttx nuttx libs libc make 1 entering directory users luppy gicv2 nuttx nuttx boards make 1 entering directory users luppy gicv2 nuttx nuttx mm make 1 entering directory users luppy gicv2 nuttx nuttx arch arm64 src make 1 entering directory users luppy gicv2 nuttx apps make 1 entering directory users luppy gicv2 nuttx nuttx fs make 1 entering directory users luppy gicv2 nuttx nuttx binfmt make 1 libboards a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx boards make 1 libdrivers a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx drivers make 1 libmm a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx mm make 1 libsched a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx sched make 1 libfs a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx fs make 1 libbinfmt a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx binfmt rm f users luppy gicv2 nuttx apps libapps a make users luppy gicv2 nuttx apps libapps a make 1 libarch a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx arch arm64 src make 2 entering directory users luppy gicv2 nuttx apps make 1 libc a is up to date make 1 leaving directory users luppy gicv2 nuttx nuttx libs libc make 3 entering directory users luppy gicv2 nuttx apps builtin make 3 entering directory users luppy gicv2 nuttx apps nshlib make 3 entering directory users luppy gicv2 nuttx apps testing getprime make 3 entering directory users luppy gicv2 nuttx apps examples null make 3 entering directory users luppy gicv2 nuttx apps platform make 3 entering directory users luppy gicv2 nuttx apps examples hello make 3 entering directory users luppy gicv2 nuttx apps system system make 3 entering directory users luppy gicv2 nuttx apps testing ostest make 3 entering directory users luppy gicv2 nuttx apps system nsh make 3 entering directory users luppy gicv2 nuttx apps system readline make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps examples hello make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps builtin make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps platform make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps system nsh make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps system system make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps testing ostest make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps nshlib make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps testing getprime make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps examples null make 3 nothing to be done for all make 3 leaving directory users luppy gicv2 nuttx apps system readline make 3 entering directory users luppy gicv2 nuttx apps builtin ar add libapps a builtin list c users luppy gicv2 nuttx apps builtin o exec builtin c users luppy gicv2 nuttx apps builtin o make 3 leaving directory users luppy gicv2 nuttx apps builtin make 3 entering directory users luppy gicv2 nuttx apps examples hello ar add libapps a hello main c users luppy gicv2 nuttx apps examples hello o make 3 leaving directory users luppy gicv2 nuttx apps examples hello make 3 entering directory users luppy gicv2 nuttx apps examples null ar add libapps a null main c users luppy gicv2 nuttx apps examples null o make 3 leaving directory users luppy gicv2 nuttx apps examples null make 3 entering directory users luppy gicv2 nuttx apps nshlib ar add libapps a nsh init c users luppy gicv2 nuttx apps nshlib o nsh parse c users luppy gicv2 nuttx apps nshlib o nsh console c users luppy gicv2 nuttx apps nshlib o nsh script c users luppy gicv2 nuttx apps nshlib o nsh system c users luppy gicv2 nuttx apps nshlib o nsh command c users luppy gicv2 nuttx apps nshlib o nsh fscmds c users luppy gicv2 nuttx apps nshlib o nsh ddcmd c users luppy gicv2 nuttx apps nshlib o nsh proccmds c users luppy gicv2 nuttx apps nshlib o nsh mmcmds c users luppy gicv2 nuttx apps nshlib o nsh timcmds c users luppy gicv2 nuttx apps nshlib o nsh envcmds c users luppy gicv2 nuttx apps nshlib o nsh syscmds c users luppy gicv2 nuttx apps nshlib o nsh dbgcmds c users luppy gicv2 nuttx apps nshlib o nsh session c users luppy gicv2 nuttx apps nshlib o nsh fsutils c users luppy gicv2 nuttx apps nshlib o nsh builtin c users luppy gicv2 nuttx apps nshlib o nsh romfsetc c users luppy gicv2 nuttx apps nshlib o nsh mntcmds c users luppy gicv2 nuttx apps nshlib o nsh consolemain c users luppy gicv2 nuttx apps nshlib o nsh printf c users luppy gicv2 nuttx apps nshlib o nsh test c users luppy gicv2 nuttx apps nshlib o make 3 leaving directory users luppy gicv2 nuttx apps nshlib make 3 entering directory users luppy gicv2 nuttx apps platform ar add libapps a dummy c users luppy gicv2 nuttx apps platform o make 3 leaving directory users luppy gicv2 nuttx apps platform make 3 entering directory users luppy gicv2 nuttx apps system nsh ar add libapps a nsh main c users luppy gicv2 nuttx apps system nsh o sh main c users luppy gicv2 nuttx apps system nsh o make 3 leaving directory users luppy gicv2 nuttx apps system nsh make 3 entering directory users luppy gicv2 nuttx apps system readline ar add libapps a readline c users luppy gicv2 nuttx apps system readline o readline fd c users luppy gicv2 nuttx apps system readline o readline common c users luppy gicv2 nuttx apps system readline o make 3 leaving directory users luppy gicv2 nuttx apps system readline make 3 entering directory users luppy gicv2 nuttx apps system system ar add libapps a system c users luppy gicv2 nuttx apps system system o make 3 leaving directory users luppy gicv2 nuttx apps system system make 3 entering directory users luppy gicv2 nuttx apps testing getprime ar add libapps a getprime main c users luppy gicv2 nuttx apps testing getprime o make 3 leaving directory users luppy gicv2 nuttx apps testing getprime make 3 entering directory users luppy gicv2 nuttx apps testing ostest ar add libapps a getopt c users luppy gicv2 nuttx apps testing ostest o dev null c users luppy gicv2 nuttx apps testing ostest o restart c users luppy gicv2 nuttx apps testing ostest o sigprocmask c users luppy gicv2 nuttx apps testing ostest o sighand c users luppy gicv2 nuttx apps testing ostest o signest c users luppy gicv2 nuttx apps testing ostest o fpu c users luppy gicv2 nuttx apps testing ostest o setvbuf c users luppy gicv2 nuttx apps testing ostest o tls c users luppy gicv2 nuttx apps testing ostest o waitpid c users luppy gicv2 nuttx apps testing ostest o cancel c users luppy gicv2 nuttx apps testing ostest o cond c users luppy gicv2 nuttx apps testing ostest o mutex c users luppy gicv2 nuttx apps testing ostest o timedmutex c users luppy gicv2 nuttx apps testing ostest o sem c users luppy gicv2 nuttx apps testing ostest o semtimed c users luppy gicv2 nuttx apps testing ostest o barrier c users luppy gicv2 nuttx apps testing ostest o timedwait c users luppy gicv2 nuttx apps testing ostest o pthread rwlock c users luppy gicv2 nuttx apps testing ostest o pthread rwlock cancel c users luppy gicv2 nuttx apps testing ostest o specific c users luppy gicv2 nuttx apps testing ostest o robust c users luppy gicv2 nuttx apps testing ostest o roundrobin c users luppy gicv2 nuttx apps testing ostest o mqueue c users luppy gicv2 nuttx apps testing ostest o timedmqueue c users luppy gicv2 nuttx apps testing ostest o posixtimer c users luppy gicv2 nuttx apps testing ostest o vfork c users luppy gicv2 nuttx apps testing ostest o ostest main c users luppy gicv2 nuttx apps testing ostest o make 3 leaving directory users luppy gicv2 nuttx apps testing ostest make 2 leaving directory users luppy gicv2 nuttx apps make 1 leaving directory users luppy gicv2 nuttx apps in users luppy gicv2 nuttx apps libapps a staging libapps a make 1 entering directory users luppy gicv2 nuttx nuttx arch arm64 src make 2 entering directory users luppy gicv2 nuttx nuttx boards arm64 qemu qemu a53 src make 2 libboard a is up to date make 2 leaving directory users luppy gicv2 nuttx nuttx boards arm64 qemu qemu a53 src ld nuttx make 1 leaving directory users luppy gicv2 nuttx nuttx arch arm64 src cp nuttx hex cp nuttx bin aarch64 none elf size nuttx text data bss dec hex filename 253075 12624 48504 314203 4cb5b nuttx aarch64 none elf objdump t s demangle line numbers wide nuttx qemu system aarch64 smp 4 cpu cortex a53 nographic machine virt virtualization on gic version 2 net none chardev stdio id con mux on serial chardev con mon chardev con mode readline kernel nuttx ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x402cf000 heap size 0x7d31000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x8000000 arm64 gic initialize config gicr base 0x8010000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 62 50mhz cycle 62500 up timer initialize vector table 0x402b1000 up timer initialize before writing vbar el1 0x402b1000 up timer initialize after writing vbar el1 0x402b1000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x402b1000 einit 0x402b1000 stext 0x40280000 etext 0x402b2000 nsh sysinit fopen failed 2 nsh mkfatfs command not found nuttshell nsh nuttx 11 0 0 rc2 nsh nx start cpu0 beginning idle loop nsh null task spawn name null entry 0x4029c9d0 file actions 0x402d4580 attr 0x402d4588 argv 0x402d46d0 spawn execattrs setting policy 2 priority 100 for pid 3 hello zig on pinephone testing compose short packet without parameter composeshortpacket channel 0 cmd 0x5 len 1 result 05 11 00 36 testing compose short packet with parameter composeshortpacket channel 0 cmd 0x15 len 2 result 15 bc 4e 35 testing compose long packet composelongpacket channel 0 cmd 0x39 len 64 result 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 nsh qemu system aarch64 terminating on signal 2 from pid 5928 unknown process terminal will be reused by tasks press any key to close it testing p boot driver for mipi dsi with logging testing pinephone p boot display code https gist github com lupyuen ee3adf76e76881609845d0ab0f768a95 with logging text dram 2048 mib trying to boot from mmc1 notice bl31 v2 2 release v2 2 904 gf9ea3a629 notice bl31 built 15 32 12 apr 9 2020 notice bl31 detected allwinner a64 h64 r18 soc 1689 notice bl31 found u boot dtb at 0x4064410 model pinephone notice psci system suspend is unavailable u boot 2020 07 nov 08 2020 00 15 12 0100 dram 2 gib mmc device mmc 1c11000 seq 1 is in use by mmc 1c10000 mmc 1c0f000 0 mmc 1c10000 2 mmc 1c11000 1 loading environment from fat warning bad crc using default environment starting usb no working controllers found hit any key to stop autoboot 0 switch to partitions 0 ok mmc0 is current device scanning mmc 0 1 found u boot script boot scr 653 bytes read in 3 ms 211 9 kib s executing script at 4fc00000 gpio pin 114 gpio 114 value is 1 205024 bytes read in 13 ms 15 mib s uncompressed size 4640768 0x46d000 36162 bytes read in 4 ms 8 6 mib s 1078500 bytes read in 51 ms 20 2 mib s flattened device tree blob at 4fa00000 booting using the fdt blob at 0x4fa00000 loading ramdisk to 49ef8000 end 49fff4e4 ok loading device tree to 0000000049eec000 end 0000000049ef7d41 ok starting kernel hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x404ed000 heap size 0x7b13000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x400cf000 up timer initialize before writing vbar el1 0x4024f000 up timer initialize after writing vbar el1 0x400cf000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x400cf000 einit 0x400cf000 stext 0x40080000 etext 0x400d0000 nsh sysinit fopen failed 2 nshn x msktfaarttf s c pcuo0m m abnedg innonti nfgo uinddl e l onoupt t shell nsh nuttx 11 0 0 rc2 nsh hello task spawn name hello entry 0x4009cf58 file actions 0x404f2580 attr 0x404f2588 argv 0x404f26d0 spawn execattrs setting policy 2 priority 100 for pid 3 abhello world ph cfg1 reg 0x7177 ph data reg 0x400 pd cfg2 reg 0x77711177 pd data reg 0x1c0000 struct reg inst dsi init seq 0x0000 0x00000001 0x0010 0x00030000 0x0060 0x0000000a 0x0078 0x00000000 0x0020 0x0000001f 0x0024 0x10000001 0x0028 0x20000010 0x002c 0x2000000f 0x0030 0x30100001 0x0034 0x40000010 0x0038 0x0000000f 0x003c 0x5000001f 0x004c 0x00560001 0x02f8 0x000000ff 0x0014 0x00005bc7 0x007c 0x10000007 0x0040 0x30000002 0x0044 0x00310031 0x0054 0x00310031 0x0090 0x1308703e 0x0098 0x0000ffff 0x009c 0xffffffff 0x0080 0x00010008 display malloc size 2330 0x000c 0x00000000 0x00b0 0x12000021 0x00b4 0x01000031 0x00b8 0x07000001 0x00bc 0x14000011 0x0018 0x0011000a 0x001c 0x05cd05a0 0x00c0 0x09004a19 0x00c4 0x50b40000 0x00c8 0x35005419 0x00cc 0x757a0000 0x00d0 0x09004a19 0x00d4 0x50b40000 0x00e0 0x0c091a19 0x00e4 0x72bd0000 0x00e8 0x1a000019 0x00ec 0xffff0000 struct reg inst dsi panel init seq mipi dsi dcs write long len 4 b9 f1 12 83 0x0300 0x2c000439 header 2c000439 display zalloc size 10 0x0304 0x8312f1b9 0x0308 0x00005d84 payload 0 8312f1b9 payload 1 00005d84 0x0200 0x00000009 len 9 magic commit 0 mipi dsi dcs write long len 28 ba 33 81 05 f9 0e 0e 20 00 00 00 00 00 00 00 44 25 00 91 0a 00 00 02 4f 11 00 00 37 0x0300 0x2f001c39 header 2f001c39 display zalloc size 34 0x0304 0x058133ba 0x0308 0x200e0ef9 0x030c 0x00000000 0x0310 0x44000000 0x0314 0x0a910025 0x0318 0x4f020000 0x031c 0x37000011 0x0320 0x0000e22c payload 0 058133ba payload 1 200e0ef9 payload 2 00000000 payload 3 44000000 payload 4 0a910025 payload 5 4f020000 payload 6 37000011 payload 7 0000e22c 0x0200 0x00000021 len 33 magic commit 0 mipi dsi dcs write long len 5 b8 25 22 20 03 0x0300 0x36000539 header 36000539 display zalloc size 11 0x0304 0x202225b8 0x0308 0x00720303 payload 0 202225b8 payload 1 00720303 0x0200 0x0000000a len 10 magic commit 0 mipi dsi dcs write long len 11 b3 10 10 05 05 03 ff 00 00 00 00 0x0300 0x2c000b39 header 2c000b39 display zalloc size 17 0x0304 0x051010b3 0x0308 0x00ff0305 0x030c 0x6f000000 0x0310 0x000000bc payload 0 051010b3 payload 1 00ff0305 payload 2 6f000000 payload 3 000000bc 0x0200 0x00000010 len 16 magic commit 0 mipi dsi dcs write long len 10 c0 73 73 50 50 00 c0 08 70 00 0x0300 0x36000a39 header 36000a39 display zalloc size 16 0x0304 0x507373c0 0x0308 0x08c00050 0x030c 0x6a1b0070 payload 0 507373c0 payload 1 08c00050 payload 2 6a1b0070 0x0200 0x0000000f len 15 magic commit 0 mipi dsi dcs write short len 2 bc 4e 0x0300 0x354ebc15 header 354ebc15 0x0200 0x00000003 len 3 magic commit 0 mipi dsi dcs write short len 2 cc 0b 0x0300 0x220bcc15 header 220bcc15 0x0200 0x00000003 len 3 magic commit 0 mipi dsi dcs write short len 2 b4 80 0x0300 0x2280b415 header 2280b415 0x0200 0x00000003 len 3 magic commit 0 mipi dsi dcs write long len 4 b2 f0 12 f0 0x0300 0x2c000439 header 2c000439 display zalloc size 10 0x0304 0xf012f0b2 0x0308 0x00008651 payload 0 f012f0b2 payload 1 00008651 0x0200 0x00000009 len 9 magic commit 0 mipi dsi dcs write long len 15 e3 00 00 0b 0b 10 10 00 00 00 00 ff 00 c0 10 0x0300 0x0f000f39 header 0f000f39 display zalloc size 21 0x0304 0x0b0000e3 0x0308 0x0010100b 0x030c 0xff000000 0x0310 0x3610c000 0x0314 0x0000000f payload 0 0b0000e3 payload 1 0010100b payload 2 ff000000 payload 3 3610c000 payload 4 0000000f 0x0200 0x00000014 len 20 magic commit 0 mipi dsi dcs write long len 6 c6 01 00 ff ff 00 0x0300 0x30000639 header 30000639 display zalloc size 12 0x0304 0xff0001c6 0x0308 0x258e00ff payload 0 ff0001c6 payload 1 258e00ff 0x0200 0x0000000b len 11 magic commit 0 mipi dsi dcs write long len 13 c1 74 00 32 32 77 f1 ff ff cc cc 77 77 0x0300 0x13000d39 header 13000d39 display zalloc size 19 0x0304 0x320074c1 0x0308 0xfff17732 0x030c 0x77ccccff 0x0310 0x00e46977 payload 0 320074c1 payload 1 fff17732 payload 2 77ccccff payload 3 00e46977 0x0200 0x00000012 len 18 magic commit 0 mipi dsi dcs write long len 3 b5 07 07 0x0300 0x09000339 header 09000339 display zalloc size 9 0x0304 0x7b0707b5 0x0308 0x000000b3 payload 0 7b0707b5 payload 1 000000b3 0x0200 0x00000008 len 8 magic commit 0 mipi dsi dcs write long len 3 b6 2c 2c 0x0300 0x09000339 header 09000339 display zalloc size 9 0x0304 0x552c2cb6 0x0308 0x00000004 payload 0 552c2cb6 payload 1 00000004 0x0200 0x00000008 len 8 magic commit 0 mipi dsi dcs write long len 4 bf 02 11 00 0x0300 0x2c000439 header 2c000439 display zalloc size 10 0x0304 0x001102bf 0x0308 0x0000e9b5 payload 0 001102bf payload 1 0000e9b5 0x0200 0x00000009 len 9 magic commit 0 mipi dsi dcs write long len 64 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0300 0x25004039 header 25004039 display zalloc size 70 0x0304 0x061082e9 0x0308 0xa50aa205 0x030c 0x37233112 0x0310 0x27bc0483 0x0314 0x03000c38 0x0318 0x0c000000 0x031c 0x00000300 0x0320 0x31757500 0x0324 0x88888888 0x0328 0x88138888 0x032c 0x88206464 0x0330 0x88888888 0x0334 0x00880288 0x0338 0x00000000 0x033c 0x00000000 0x0340 0x00000000 0x0344 0x00000365 payload 0 061082e9 payload 1 a50aa205 payload 2 37233112 payload 3 27bc0483 payload 4 03000c38 payload 5 0c000000 payload 6 00000300 payload 7 31757500 payload 8 88888888 payload 9 88138888 payload 10 88206464 payload 11 88888888 payload 12 00880288 payload 13 00000000 payload 14 00000000 payload 15 00000000 payload 16 00000365 0x0200 0x00000045 len 69 magic commit 0 mipi dsi dcs write long len 62 ea 02 21 00 00 00 00 00 00 00 00 00 00 02 46 02 88 88 88 88 88 88 64 88 13 57 13 88 88 88 88 88 88 75 88 23 14 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 0a a5 00 00 00 00 0x0300 0x1a003e39 header 1a003e39 display zalloc size 68 0x0304 0x002102ea 0x0308 0x00000000 0x030c 0x00000000 0x0310 0x02460200 0x0314 0x88888888 0x0318 0x88648888 0x031c 0x88135713 0x0320 0x88888888 0x0324 0x23887588 0x0328 0x02000014 0x032c 0x00000000 0x0330 0x00000000 0x0334 0x00000000 0x0338 0x03000000 0x033c 0x0000a50a 0x0340 0x1b240000 payload 0 002102ea payload 1 00000000 payload 2 00000000 payload 3 02460200 payload 4 88888888 payload 5 88648888 payload 6 88135713 payload 7 88888888 payload 8 23887588 payload 9 02000014 payload 10 00000000 payload 11 00000000 payload 12 00000000 payload 13 03000000 payload 14 0000a50a payload 15 1b240000 0x0200 0x00000043 len 67 magic commit 0 mipi dsi dcs write long len 35 e0 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 00 09 0d 23 27 3c 41 35 07 0d 0e 12 13 10 12 12 18 0x0300 0x20002339 header 20002339 display zalloc size 41 0x0304 0x0d0900e0 0x0308 0x413c2723 0x030c 0x0e0d0735 0x0310 0x12101312 0x0314 0x09001812 0x0318 0x3c27230d 0x031c 0x0d073541 0x0320 0x1013120e 0x0324 0x93181212 0x0328 0x000000bf payload 0 0d0900e0 payload 1 413c2723 payload 2 0e0d0735 payload 3 12101312 payload 4 09001812 payload 5 3c27230d payload 6 0d073541 payload 7 1013120e payload 8 93181212 payload 9 000000bf 0x0200 0x00000028 len 40 magic commit 0 mipi dsi dcs write short len 1 11 0x0300 0x36001105 header 36001105 0x0200 0x00000003 len 3 magic commit 0 mipi dsi dcs write short len 1 29 0x0300 0x1c002905 header 1c002905 0x0200 0x00000003 len 3 magic commit 0 0x0048 0x00000f02 magic commit 0 dsi update bits 0x01ca0020 0000001f 00000010 00000000 0x0048 0x63f07006 magic commit 0 hello zig on pinephone mipi dsi dcs write channel 0 cmd 0x39 len 64 composelongpacket channel 0 cmd 0x39 len 64 computecrc len 64 crc 0x365 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 packet len 70 39 40 00 25 e9 82 10 06 05 a2 0a a5 12 31 23 37 83 04 bc 27 38 0c 00 03 00 00 00 0c 00 03 00 00 00 75 75 31 88 88 88 88 88 88 13 88 64 64 20 88 88 88 88 88 88 02 88 00 00 00 00 00 00 00 00 00 00 00 00 00 65 03 modifyreg32 addr 0x300 val 0x25004039 modifyreg32 addr 0x304 val 0x061082e9 modifyreg32 addr 0x308 val 0xa50aa205 modifyreg32 addr 0x30c val 0x37233112 modifyreg32 addr 0x310 val 0x27bc0483 modifyreg32 addr 0x314 val 0x03000c38 modifyreg32 addr 0x318 val 0x0c000000 modifyreg32 addr 0x31c val 0x00000300 modifyreg32 addr 0x320 val 0x31757500 modifyreg32 addr 0x324 val 0x88888888 modifyreg32 addr 0x328 val 0x88138888 modifyreg32 addr 0x32c val 0x88206464 modifyreg32 addr 0x330 val 0x88888888 modifyreg32 addr 0x334 val 0x00880288 modifyreg32 addr 0x338 val 0x00000000 modifyreg32 addr 0x33c val 0x00000000 modifyreg32 addr 0x340 val 0x00000000 modifyreg32 addr 0x344 val 0x00000365 modifyreg32 addr 0x200 val 0x00000045 nsh nsh testing p boot driver for mipi dsi without logging testing pinephone p boot display code https gist github com lupyuen ee3adf76e76881609845d0ab0f768a95 without logging text nsh hello task spawn name hello entry 0x4009ce04 file actions 0x404ea580 attr 0x404ea588 argv 0x404ea6d0 spawn execattrs setting policy 2 priority 100 for pid 3 abhello world ph cfg1 reg 0x7177 ph data reg 0x400 pd cfg2 reg 0x77711177 pd data reg 0x1c0000 struct reg inst dsi init seq 0x0000 0x00000001 0x0010 0x00030000 0x0060 0x0000000a 0x0078 0x00000000 0x0020 0x0000001f 0x0024 0x10000001 0x0028 0x20000010 0x002c 0x2000000f 0x0030 0x30100001 0x0034 0x40000010 0x0038 0x0000000f 0x003c 0x5000001f 0x004c 0x00560001 0x02f8 0x000000ff 0x0014 0x00005bc7 0x007c 0x10000007 0x0040 0x30000002 0x0044 0x00310031 0x0054 0x00310031 0x0090 0x1308703e 0x0098 0x0000ffff 0x009c 0xffffffff 0x0080 0x00010008 display malloc size 2330 0x000c 0x00000000 0x00b0 0x12000021 0x00b4 0x01000031 0x00b8 0x07000001 0x00bc 0x14000011 0x0018 0x0011000a 0x001c 0x05cd05a0 0x00c0 0x09004a19 0x00c4 0x50b40000 0x00c8 0x35005419 0x00cc 0x757a0000 0x00d0 0x09004a19 0x00d4 0x50b40000 0x00e0 0x0c091a19 0x00e4 0x72bd0000 0x00e8 0x1a000019 0x00ec 0xffff0000 struct reg inst dsi panel init seq 0x0300 0x2c000439 display zalloc size 10 0x0304 0x8312f1b9 0x0308 0x00005d84 0x0200 0x00000009 magic commit 0 0x0300 0x2f001c39 display zalloc size 34 0x0304 0x058133ba 0x0308 0x200e0ef9 0x030c 0x00000000 0x0310 0x44000000 0x0314 0x0a910025 0x0318 0x4f020000 0x031c 0x37000011 0x0320 0x0000e22c 0x0200 0x00000021 magic commit 0 0x0300 0x36000539 display zalloc size 11 0x0304 0x202225b8 0x0308 0x00720303 0x0200 0x0000000a magic commit 0 0x0300 0x2c000b39 display zalloc size 17 0x0304 0x051010b3 0x0308 0x00ff0305 0x030c 0x6f000000 0x0310 0x000000bc 0x0200 0x00000010 magic commit 0 0x0300 0x36000a39 display zalloc size 16 0x0304 0x507373c0 0x0308 0x08c00050 0x030c 0x6a1b0070 0x0200 0x0000000f magic commit 0 0x0300 0x354ebc15 0x0200 0x00000003 magic commit 0 0x0300 0x220bcc15 0x0200 0x00000003 magic commit 0 0x0300 0x2280b415 0x0200 0x00000003 magic commit 0 0x0300 0x2c000439 display zalloc size 10 0x0304 0xf012f0b2 0x0308 0x00008651 0x0200 0x00000009 magic commit 0 0x0300 0x0f000f39 display zalloc size 21 0x0304 0x0b0000e3 0x0308 0x0010100b 0x030c 0xff000000 0x0310 0x3610c000 0x0314 0x0000000f 0x0200 0x00000014 magic commit 0 0x0300 0x30000639 display zalloc size 12 0x0304 0xff0001c6 0x0308 0x258e00ff 0x0200 0x0000000b magic commit 0 0x0300 0x13000d39 display zalloc size 19 0x0304 0x320074c1 0x0308 0xfff17732 0x030c 0x77ccccff 0x0310 0x00e46977 0x0200 0x00000012 magic commit 0 0x0300 0x09000339 display zalloc size 9 0x0304 0x7b0707b5 0x0308 0x000000b3 0x0200 0x00000008 magic commit 0 0x0300 0x09000339 display zalloc size 9 0x0304 0x552c2cb6 0x0308 0x00000004 0x0200 0x00000008 magic commit 0 0x0300 0x2c000439 display zalloc size 10 0x0304 0x001102bf 0x0308 0x0000e9b5 0x0200 0x00000009 magic commit 0 0x0300 0x25004039 display zalloc size 70 0x0304 0x061082e9 0x0308 0xa50aa205 0x030c 0x37233112 0x0310 0x27bc0483 0x0314 0x03000c38 0x0318 0x0c000000 0x031c 0x00000300 0x0320 0x31757500 0x0324 0x88888888 0x0328 0x88138888 0x032c 0x88206464 0x0330 0x88888888 0x0334 0x00880288 0x0338 0x00000000 0x033c 0x00000000 0x0340 0x00000000 0x0344 0x00000365 0x0200 0x00000045 magic commit 0 0x0300 0x1a003e39 display zalloc size 68 0x0304 0x002102ea 0x0308 0x00000000 0x030c 0x00000000 0x0310 0x02460200 0x0314 0x88888888 0x0318 0x88648888 0x031c 0x88135713 0x0320 0x88888888 0x0324 0x23887588 0x0328 0x02000014 0x032c 0x00000000 0x0330 0x00000000 0x0334 0x00000000 0x0338 0x03000000 0x033c 0x0000a50a 0x0340 0x1b240000 0x0200 0x00000043 magic commit 0 0x0300 0x20002339 display zalloc size 41 0x0304 0x0d0900e0 0x0308 0x413c2723 0x030c 0x0e0d0735 0x0310 0x12101312 0x0314 0x09001812 0x0318 0x3c27230d 0x031c 0x0d073541 0x0320 0x1013120e 0x0324 0x93181212 0x0328 0x000000bf 0x0200 0x00000028 magic commit 0 0x0300 0x36001105 0x0200 0x00000003 magic commit 0 0x0300 0x1c002905 0x0200 0x00000003 magic commit 0 0x0048 0x00000f02 magic commit 0 dsi update bits 0x01ca0020 0000001f 00000010 00000000 0x0048 0x63f07006 magic commit 0 nsh testing zig on pinephone text dram 2048 mib trying to boot from mmc1 notice bl31 v2 2 release v2 2 904 gf9ea3a629 notice bl31 built 15 32 12 apr 9 2020 notice bl31 detected allwinner a64 h64 r18 soc 1689 notice bl31 found u boot dtb at 0x4064410 model pinephone notice psci system suspend is unavailable u boot 2020 07 nov 08 2020 00 15 12 0100 dram 2 gib mmc device mmc 1c11000 seq 1 is in use by mmc 1c10000 mmc 1c0f000 0 mmc 1c10000 2 mmc 1c11000 1 loading environment from fat warning bad crc using default environment starting usb no working controllers found hit any key to stop autoboot 0 switch to partitions 0 ok mmc0 is current device scanning mmc 0 1 found u boot script boot scr 653 bytes read in 3 ms 211 9 kib s executing script at 4fc00000 gpio pin 114 gpio 114 value is 1 200596 bytes read in 12 ms 15 9 mib s uncompressed size 4624384 0x469000 36162 bytes read in 4 ms 8 6 mib s 1078500 bytes read in 50 ms 20 6 mib s flattened device tree blob at 4fa00000 booting using the fdt blob at 0x4fa00000 loading ramdisk to 49ef8000 end 49fff4e4 ok loading device tree to 0000000049eec000 end 0000000049ef7d41 ok starting kernel hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x404e9000 heap size 0x7b17000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x400cc000 up timer initialize before writing vbar el1 0x4024c000 up timer initialize after writing vbar el1 0x400cc000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x400cc000 einit 0x400cc000 stext 0x40080000 etext 0x400cd000 nsh sysinit fopen failed 2 nshn x msktfaarttf s c pcuo0m m abnedg innonti nfgo uinddl e l onoupt t shell nsh nuttx 11 0 0 rc2 nsh null task spawn name null entry 0x4009d340 file actions 0x404ee580 attr 0x404ee588 argv 0x404ee6d0 spawn execattrs setting policy 2 priority 100 for pid 3 hello zig on pinephone mipi dsi dcs write channel 0 cmd 29 len 0 zig panic nuttx mipi dsi dcs write not implemented stack trace 0x4009d7d4 0x4009d340 0x4009d2f4 0x4009d39c 0x4009d358 0x400852fc nsh nsh testing gic version 2 on pinephone text hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x400c4000 heap size 0x7f3c000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x1c81000 arm64 gic initialize config gicr base 0x1c82000 arm64 gic initialize gic version is 2 up timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 up timer initialize vector table 0x400a7000 up timer initialize before writing vbar el1 0x40227000 up timer initialize after writing vbar el1 0x400a7000 uart register registering dev console uart register registering dev ttys0 work start highpri starting high priority kernel worker thread s nx start application starting init thread lib cxx initialize sinit 0x400a7000 einit 0x400a7000 stext 0x40080000 etext 0x400a8000 nsh sysinit fopen failed 2 nshn x msktfaarttf s c pcuo0m m abnedg innonti nfgo uinddl e l onoupt t shell nsh nuttx 10 3 0 rc2 nsh uname a nuttx 10 3 0 rc2 fc909c6 dirty sep 1 2022 17 05 44 arm64 qemu a53 nsh helo nsh helo command not found nsh help help usage help v cmd cd dmesg help mount rmdir true xd cp echo hexdump mv set truncate cmp exec kill printf sleep uname basename dirname exit ls ps source umount break dd false mkdir pwd test unset cat df free mkrd rm time usleep builtin apps getprime hello nsh ostest sh nsh hello task spawn name hello entry 0x4009b1a0 file actions 0x400c9580 attr 0x400c9588 argv 0x400c96d0 spawn execattrs setting policy 2 priority 100 for pid 3 hello world nsh ls dev dev console null ram0 ram2 ttys0 zero nsh 7mreally kill this window y n 27m nsh testing gic version 2 on qemu text ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x402c4000 heap size 0x7d3c000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize config gicd base 0x8000000 arm64 gic initialize config gicr base 0x8010000 arm64 gic initialize gic version is 2 efghup timer initialize up timer initialize cp15 timer s running at 62 50mhz cycle 62500 up timer initialize arm arch timer irq 27 up timer initialize arm64 arch timer compare isr 0x4029b2ac up timer initialize irq unexpected isr 0x402823ec up timer initialize g irqvector 0 handler 0x402823ec up timer initialize g irqvector 1 handler 0x402823ec up timer initialize g irqvector 2 handler 0x402823ec up timer initialize g irqvector 3 handler 0x402823ec up timer initialize g irqvector 4 handler 0x402823ec up timer initialize g irqvector 5 handler 0x402823ec up timer initialize g irqvector 6 handler 0x402823ec up timer initialize g irqvector 7 handler 0x402823ec up timer initialize g irqvector 8 handler 0x402823ec up timer initialize g irqvector 9 handler 0x402823ec up timer initialize g irqvector 10 handler 0x402823ec up timer initialize g irqvector 11 handler 0x402823ec up timer initialize g irqvector 12 handler 0x402823ec up timer initialize g irqvector 13 handler 0x402823ec up timer initialize g irqvector 14 handler 0x402823ec up timer initialize g irqvector 15 handler 0x402823ec up timer initialize g irqvector 16 handler 0x402823ec up timer initialize g irqvector 17 handler 0x402823ec up timer initialize g irqvector 18 handler 0x402823ec up timer initialize g irqvector 19 handler 0x402823ec up timer initialize g irqvector 20 handler 0x402823ec up timer initialize g irqvector 21 handler 0x402823ec up timer initialize g irqvector 22 handler 0x402823ec up timer initialize g irqvector 23 handler 0x402823ec up timer initialize g irqvector 24 handler 0x402823ec up timer initialize g irqvector 25 handler 0x402823ec up timer initialize g irqvector 26 handler 0x402823ec up timer initialize g irqvector 27 handler 0x4029b2ac up timer initialize g irqvector 28 handler 0x402823ec up timer initialize g irqvector 29 handler 0x402823ec up timer initialize g irqvector 30 handler 0x402823ec up timer initialize g irqvector 31 handler 0x402823ec up timer initialize g irqvector 32 handler 0x402823ec up timer initialize g irqvector 33 handler 0x402823ec up timer initialize g irqvector 34 handler 0x402823ec up timer initialize g irqvector 35 handler 0x402823ec up timer initialize g irqvector 36 handler 0x402823ec up timer initialize g irqvector 37 handler 0x402823ec up timer initialize g irqvector 38 handler 0x402823ec up timer initialize g irqvector 39 handler 0x402823ec up timer initialize g irqvector 40 handler 0x402823ec up timer initialize g irqvector 41 handler 0x402823ec up timer initialize g irqvector 42 handler 0x402823ec up timer initialize g irqvector 43 handler 0x402823ec up timer initialize g irqvector 44 handler 0x402823ec up timer initialize g irqvector 45 handler 0x402823ec up timer initialize g irqvector 46 handler 0x402823ec up timer initialize g irqvector 47 handler 0x402823ec up timer initialize g irqvector 48 handler 0x402823ec up timer initialize g irqvector 49 handler 0x402823ec up timer initialize g irqvector 50 handler 0x402823ec up timer initialize g irqvector 51 handler 0x402823ec up timer initialize g irqvector 52 handler 0x402823ec up timer initialize g irqvector 53 handler 0x402823ec up timer initialize g irqvector 54 handler 0x402823ec up timer initialize g irqvector 55 handler 0x402823ec up timer initialize g irqvector 56 handler 0x402823ec up timer initialize g irqvector 57 handler 0x402823ec up timer initialize g irqvector 58 handler 0x402823ec up timer initialize g irqvector 59 handler 0x402823ec up timer initialize g irqvector 60 handler 0x402823ec up timer initialize g irqvector 61 handler 0x402823ec up timer initialize g irqvector 62 handler 0x402823ec up timer initialize g irqvector 63 handler 0x402823ec up timer initialize g irqvector 64 handler 0x402823ec up timer initialize g irqvector 65 handler 0x402823ec up timer initialize g irqvector 66 handler 0x402823ec up timer initialize g irqvector 67 handler 0x402823ec up timer initialize g irqvector 68 handler 0x402823ec up timer initialize g irqvector 69 handler 0x402823ec up timer initialize g irqvector 70 handler 0x402823ec up timer initialize g irqvector 71 handler 0x402823ec up timer initialize g irqvector 72 handler 0x402823ec up timer initialize g irqvector 73 handler 0x402823ec up timer initialize g irqvector 74 handler 0x402823ec up timer initialize g irqvector 75 handler 0x402823ec up timer initialize g irqvector 76 handler 0x402823ec up timer initialize g irqvector 77 handler 0x402823ec up timer initialize g irqvector 78 handler 0x402823ec up timer initialize g irqvector 79 handler 0x402823ec up timer initialize g irqvector 80 handler 0x402823ec up timer initialize g irqvector 81 handler 0x402823ec up timer initialize g irqvector 82 handler 0x402823ec up timer initialize g irqvector 83 handler 0x402823ec up timer initialize g irqvector 84 handler 0x402823ec up timer initialize g irqvector 85 handler 0x402823ec up timer initialize g irqvector 86 handler 0x402823ec up timer initialize g irqvector 87 handler 0x402823ec up timer initialize g irqvector 88 handler 0x402823ec up timer initialize g irqvector 89 handler 0x402823ec up timer initialize g irqvector 90 handler 0x402823ec up timer initialize g irqvector 91 handler 0x402823ec up timer initialize g irqvector 92 handler 0x402823ec up timer initialize g irqvector 93 handler 0x402823ec up timer initialize g irqvector 94 handler 0x402823ec up timer initialize g irqvector 95 handler 0x402823ec up timer initialize g irqvector 96 handler 0x402823ec up timer initialize g irqvector 97 handler 0x402823ec up timer initialize g irqvector 98 handler 0x402823ec up timer initialize g irqvector 99 handler 0x402823ec up timer initialize g irqvector 100 handler 0x402823ec up timer initialize g irqvector 101 handler 0x402823ec up timer initialize g irqvector 102 handler 0x402823ec up timer initialize g irqvector 103 handler 0x402823ec up timer initialize g irqvector 104 handler 0x402823ec up timer initialize g irqvector 105 handler 0x402823ec up timer initialize g irqvector 106 handler 0x402823ec up timer initialize g irqvector 107 handler 0x402823ec up timer initialize g irqvector 108 handler 0x402823ec up timer initialize g irqvector 109 handler 0x402823ec up timer initialize g irqvector 110 handler 0x402823ec up timer initialize g irqvector 111 handler 0x402823ec up timer initialize g irqvector 112 handler 0x402823ec up timer initialize g irqvector 113 handler 0x402823ec up timer initialize g irqvector 114 handler 0x402823ec up timer initialize g irqvector 115 handler 0x402823ec up timer initialize g irqvector 116 handler 0x402823ec up timer initialize g irqvector 117 handler 0x402823ec up timer initialize g irqvector 118 handler 0x402823ec up timer initialize g irqvector 119 handler 0x402823ec up timer initialize g irqvector 120 handler 0x402823ec up timer initialize g irqvector 121 handler 0x402823ec up timer initialize g irqvector 122 handler 0x402823ec up timer initialize g irqvector 123 handler 0x402823ec up timer initialize g irqvector 124 handler 0x402823ec up timer initialize g irqvector 125 handler 0x402823ec up timer initialize g irqvector 126 handler 0x402823ec up timer initialize g irqvector 127 handler 0x402823ec up timer initialize g irqvector 128 handler 0x402823ec up timer initialize g irqvector 129 handler 0x402823ec up timer initialize g irqvector 130 handler 0x402823ec up timer initialize g irqvector 131 handler 0x402823ec up timer initialize g irqvector 132 handler 0x402823ec up timer initialize g irqvector 133 handler 0x402823ec up timer initialize g irqvector 134 handler 0x402823ec up timer initialize g irqvector 135 handler 0x402823ec up timer initialize g irqvector 136 handler 0x402823ec up timer initialize g irqvector 137 handler 0x402823ec up timer initialize g irqvector 138 handler 0x402823ec up timer initialize g irqvector 139 handler 0x402823ec up timer initialize g irqvector 140 handler 0x402823ec up timer initialize g irqvector 141 handler 0x402823ec up timer initialize g irqvector 142 handler 0x402823ec up timer initialize g irqvector 143 handler 0x402823ec up timer initialize g irqvector 144 handler 0x402823ec up timer initialize g irqvector 145 handler 0x402823ec up timer initialize g irqvector 146 handler 0x402823ec up timer initialize g irqvector 147 handler 0x402823ec up timer initialize g irqvector 148 handler 0x402823ec up timer initialize g irqvector 149 handler 0x402823ec up timer initialize g irqvector 150 handler 0x402823ec up timer initialize g irqvector 151 handler 0x402823ec up timer initialize g irqvector 152 handler 0x402823ec up timer initialize g irqvector 153 handler 0x402823ec up timer initialize g irqvector 154 handler 0x402823ec up timer initialize g irqvector 155 handler 0x402823ec up timer initialize g irqvector 156 handler 0x402823ec up timer initialize g irqvector 157 handler 0x402823ec up timer initialize g irqvector 158 handler 0x402823ec up timer initialize g irqvector 159 handler 0x402823ec up timer initialize g irqvector 160 handler 0x402823ec up timer initialize g irqvector 161 handler 0x402823ec up timer initialize g irqvector 162 handler 0x402823ec up timer initialize g irqvector 163 handler 0x402823ec up timer initialize g irqvector 164 handler 0x402823ec up timer initialize g irqvector 165 handler 0x402823ec up timer initialize g irqvector 166 handler 0x402823ec up timer initialize g irqvector 167 handler 0x402823ec up timer initialize g irqvector 168 handler 0x402823ec up timer initialize g irqvector 169 handler 0x402823ec up timer initialize g irqvector 170 handler 0x402823ec up timer initialize g irqvector 171 handler 0x402823ec up timer initialize g irqvector 172 handler 0x402823ec up timer initialize g irqvector 173 handler 0x402823ec up timer initialize g irqvector 174 handler 0x402823ec up timer initialize g irqvector 175 handler 0x402823ec up timer initialize g irqvector 176 handler 0x402823ec up timer initialize g irqvector 177 handler 0x402823ec up timer initialize g irqvector 178 handler 0x402823ec up timer initialize g irqvector 179 handler 0x402823ec up timer initialize g irqvector 180 handler 0x402823ec up timer initialize g irqvector 181 handler 0x402823ec up timer initialize g irqvector 182 handler 0x402823ec up timer initialize g irqvector 183 handler 0x402823ec up timer initialize g irqvector 184 handler 0x402823ec up timer initialize g irqvector 185 handler 0x402823ec up timer initialize g irqvector 186 handler 0x402823ec up timer initialize g irqvector 187 handler 0x402823ec up timer initialize g irqvector 188 handler 0x402823ec up timer initialize g irqvector 189 handler 0x402823ec up timer initialize g irqvector 190 handler 0x402823ec up timer initialize g irqvector 191 handler 0x402823ec up timer initialize g irqvector 192 handler 0x402823ec up timer initialize g irqvector 193 handler 0x402823ec up timer initialize g irqvector 194 handler 0x402823ec up timer initialize g irqvector 195 handler 0x402823ec up timer initialize g irqvector 196 handler 0x402823ec up timer initialize g irqvector 197 handler 0x402823ec up timer initialize g irqvector 198 handler 0x402823ec up timer initialize g irqvector 199 handler 0x402823ec up timer initialize g irqvector 200 handler 0x402823ec up timer initialize g irqvector 201 handler 0x402823ec up timer initialize g irqvector 202 handler 0x402823ec up timer initialize g irqvector 203 handler 0x402823ec up timer initialize g irqvector 204 handler 0x402823ec up timer initialize g irqvector 205 handler 0x402823ec up timer initialize g irqvector 206 handler 0x402823ec up timer initialize g irqvector 207 handler 0x402823ec up timer initialize g irqvector 208 handler 0x402823ec up timer initialize g irqvector 209 handler 0x402823ec up timer initialize g irqvector 210 handler 0x402823ec up timer initialize g irqvector 211 handler 0x402823ec up timer initialize g irqvector 212 handler 0x402823ec up timer initialize g irqvector 213 handler 0x402823ec up timer initialize g irqvector 214 handler 0x402823ec up timer initialize g irqvector 215 handler 0x402823ec up timer initialize g irqvector 216 handler 0x402823ec up timer initialize g irqvector 217 handler 0x402823ec up timer initialize g irqvector 218 handler 0x402823ec up timer initialize g irqvector 219 handler 0x402823ec aklmnopbijqrqruart register registering dev console qruart register registering dev ttys0 qraklmnopbijqrqrqrwork start highpri starting high priority kernel worker thread s qrqrqrnx start application startinqrg init thread qrqrqrlib cxx initialize sinit 0x402a7000 einit 0x402a700qr0 stext 0x40280000 etext 0x402a8000 qrqrqrqrqrqrqrqnsh sysinit fopen failed 2 qrqrqrqrqrqrqrqrqrqrqrqrqnsh mkfatfs command not found qrqrqrqrq qnuttshell nsh nuttx 10 3 0 rc2 qnsh qqrnx start cpu0 beginning idle loop qrqrqrqrrrrrrr boot files for manjaro phosh on pinephone text manjaro manjaro arm ls l boot total 38568 rw r r 1 root root 1476 jun 22 08 36 boot scr rw r r 1 root root 1404 apr 6 11 51 boot txt drwxr xr x 3 root root 4096 oct 16 2021 dtbs rw r r 1 root root 20160520 jul 3 14 56 image rw r r 1 root root 8359044 jul 3 14 56 image gz rw r r 1 root root 7327835 jul 24 14 33 initramfs linux img rw r r 1 root root 722223 apr 6 11 51 u boot sunxi with spl pinephone 492 bin rw r r 1 root root 722223 apr 6 11 51 u boot sunxi with spl pinephone 528 bin rw r r 1 root root 722223 apr 6 11 51 u boot sunxi with spl pinephone 552 bin rw r r 1 root root 722223 apr 6 11 51 u boot sunxi with spl pinephone 592 bin rw r r 1 root root 722223 apr 6 11 51 u boot sunxi with spl pinephone 624 bin manjaro manjaro arm ls l boot dtbs total 8 drwxr xr x 2 root root 8192 jul 24 14 30 allwinner manjaro manjaro arm ls l boot dtbs allwinner total 1504 rw r r 1 root root 13440 jul 3 14 56 sun50i a100 allwinner perf1 dtb rw r r 1 root root 41295 jul 3 14 56 sun50i a64 amarula relic dtb rw r r 1 root root 41648 jul 3 14 56 sun50i a64 bananapi m64 dtb rw r r 1 root root 40512 jul 3 14 56 sun50i a64 nanopi a64 dtb rw r r 1 root root 39951 jul 3 14 56 sun50i a64 oceanic 5205 5inmfd dtb rw r r 1 root root 41268 jul 3 14 56 sun50i a64 olinuxino dtb rw r r 1 root root 41397 jul 3 14 56 sun50i a64 olinuxino emmc dtb rw r r 1 root root 42295 jul 3 14 56 sun50i a64 orangepi win dtb rw r r 1 root root 40316 jul 3 14 56 sun50i a64 pine64 dtb rw r r 1 root root 40948 jul 3 14 56 sun50i a64 pine64 lts dtb rw r r 1 root root 40438 jul 3 14 56 sun50i a64 pine64 plus dtb rw r r 1 root root 42979 jul 3 14 56 sun50i a64 pinebook dtb rw r r 1 root root 53726 jul 3 14 56 sun50i a64 pinephone 1 0 dtb rw r r 1 root root 53753 jul 3 14 56 sun50i a64 pinephone 1 1 dtb rw r r 1 root root 53718 jul 3 14 56 sun50i a64 pinephone 1 2 dtb rw r r 1 root root 44110 jul 3 14 56 sun50i a64 pinetab dtb rw r r 1 root root 44150 jul 3 14 56 sun50i a64 pinetab early adopter dtb rw r r 1 root root 40816 jul 3 14 56 sun50i a64 sopine baseboard dtb rw r r 1 root root 42234 jul 3 14 56 sun50i a64 teres i dtb rw r r 1 root root 31407 jul 3 14 56 sun50i h5 bananapi m2 plus dtb rw r r 1 root root 32846 jul 3 14 56 sun50i h5 bananapi m2 plus v1 2 dtb rw r r 1 root root 31056 jul 3 14 56 sun50i h5 emlid neutis n5 devboard dtb rw r r 1 root root 31277 jul 3 14 56 sun50i h5 libretech all h3 cc dtb rw r r 1 root root 29939 jul 3 14 56 sun50i h5 libretech all h3 it dtb rw r r 1 root root 31872 jul 3 14 56 sun50i h5 libretech all h5 cc dtb rw r r 1 root root 29013 jul 3 14 56 sun50i h5 nanopi neo2 dtb rw r r 1 root root 29704 jul 3 14 56 sun50i h5 nanopi neo plus2 dtb rw r r 1 root root 31401 jul 3 14 56 sun50i h5 nanopi r1s h5 dtb rw r r 1 root root 31082 jul 3 14 56 sun50i h5 orangepi pc2 dtb rw r r 1 root root 29806 jul 3 14 56 sun50i h5 orangepi prime dtb rw r r 1 root root 29044 jul 3 14 56 sun50i h5 orangepi zero plus2 dtb rw r r 1 root root 29131 jul 3 14 56 sun50i h5 orangepi zero plus dtb rw r r 1 root root 31911 jul 3 14 56 sun50i h6 beelink gs1 dtb rw r r 1 root root 33042 jul 3 14 56 sun50i h6 orangepi 3 dtb rw r r 1 root root 30504 jul 3 14 56 sun50i h6 orangepi lite2 dtb rw r r 1 root root 30287 jul 3 14 56 sun50i h6 orangepi one plus dtb rw r r 1 root root 32368 jul 3 14 56 sun50i h6 pine h64 dtb rw r r 1 root root 32882 jul 3 14 56 sun50i h6 pine h64 model b dtb rw r r 1 root root 29544 jul 3 14 56 sun50i h6 tanix tx6 dtb rw r r 1 root root 29305 jul 3 14 56 sun50i h6 tanix tx6 mini dtb manjaro manjaro arm cat boot boot txt boot boot txt after modifying run pp uboot mkscr to re generate the u boot boot script this is the description of the gpio lines used in this boot script gpio 98 is pd2 or a64 ball w19 which controls the vibrator motor gpio 114 is pd18 or a64 ball ab13 which controls the red part of the multicolor led gpio 115 is pd19 or a64 ball ab12 which controls the green part of the multicolor led gpio 116 is pd20 or a64 ball ab11 which controls the blue part of the multicolor led gpio set 98 gpio set 114 set root partition to the second partition of boot device part uuid devtype devnum 1 uuid boot part uuid devtype devnum 2 uuid root setenv bootargs loglevel 4 console tty0 console console earlycon uart mmio32 0x01c28000 consoleblank 0 boot partuuid uuid boot root partuuid uuid root rw rootwait quiet audit 0 bootsplash bootfile bootsplash themes manjaro bootsplash if load devtype devnum distro bootpart kernel addr r image then gpio clear 98 if load devtype devnum distro bootpart fdt addr r dtbs fdtfile then if load devtype devnum distro bootpart ramdisk addr r initramfs linux img then gpio set 115 booti kernel addr r ramdisk addr r filesize fdt addr r else gpio set 116 booti kernel addr r fdt addr r fi fi fi eof gic register dump below is the dump of pinephone s registers for arm generic interrupt controller version 2 https developer arm com documentation ihi0048 latest text hello nuttx on pinephone ready to boot cpu boot from el2 boot from el1 boot to c runtime for os initialize nx start entry up allocate heap heap start 0x0x400c4000 heap size 0x7f3c000 arm64 gic initialize todo init gic for pinephone arm64 gic initialize gic version is 2 earm gic dump gic entry arm gic0 initialize nlines 224 arm gic dump cpu cpu interface registers arm gic dump cpu icr 00000060 pmr 000000f0 bpr 00000003 iar 000003ff arm gic dump cpu rpr 000000ff hpir 000003ff abpr 00000000 arm gic dump cpu aiar 00000000 ahpir 00000000 idr 0202143b arm gic dump cpu apr1 00000000 apr2 00000000 apr3 00000000 apr4 00000000 arm gic dump cpu nsapr1 00000000 nsapr2 00000000 nsapr3 00000000 nsapr4 00000000 arm gic dump distributor distributor registers arm gic dump distributor dcr 00000000 ictr 0000fc66 iidr 0200143b arm gic dump32 isr 01c81080 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 iser icer 01c81100 arm gic dumpregs 0000ffff 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 ispr icpr 01c81200 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 sar car 01c81300 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump4 ipr 01c81400 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump4 iptr 01c81800 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 00000000 00000000 01010100 01010101 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump16 icfr 01c81c00 arm gic dumpregs aaaaaaaa 55540000 55555555 55555555 arm gic dumpregs 55555555 55555555 55555555 55555555 arm gic dumpregs 55555555 55555555 55555555 55555555 arm gic dumpregs 55555555 55555555 00000000 00000000 arm gic dump32 ppsir spisr 01c81d00 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 nsacr 01c81e00 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump8 scpr sspr 01c81f10 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump distributor pidr 01c81fd0 arm gic dump distributor 00000004 00000000 00000000 00000000 arm gic dump distributor 00000090 000000b4 0000002b arm gic dump distributor cidr 01c81ff0 arm gic dump distributor 0000000d 000000f0 00000005 000000b1 arm gic dump gic exit arm gic0 initialize nlines 224 arm gic dump cpu cpu interface registers arm gic dump cpu icr 00000060 pmr 000000f0 bpr 00000003 iar 000003ff arm gic dump cpu rpr 000000ff hpir 000003ff abpr 00000000 arm gic dump cpu aiar 00000000 ahpir 00000000 idr 0202143b arm gic dump cpu apr1 00000000 apr2 00000000 apr3 00000000 apr4 00000000 arm gic dump cpu nsapr1 00000000 nsapr2 00000000 nsapr3 00000000 nsapr4 00000000 arm gic dump distributor distributor registers arm gic dump distributor dcr 00000000 ictr 0000fc66 iidr 0200143b arm gic dump32 isr 01c81080 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 iser icer 01c81100 arm gic dumpregs 0000ffff 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 ispr icpr 01c81200 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 sar car 01c81300 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump4 ipr 01c81400 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dump4 iptr 01c81800 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 00000000 00000000 01010100 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dump16 icfr 01c81c00 arm gic dumpregs aaaaaaaa 55540000 55555555 55555555 arm gic dumpregs 55555555 55555555 55555555 55555555 arm gic dumpregs 55555555 55555555 55555555 55555555 arm gic dumpregs 55555555 55555555 00000000 00000000 arm gic dump32 ppsir spisr 01c81d00 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 nsacr 01c81e00 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump8 scpr sspr 01c81f10 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump distributor pidr 01c81fd0 arm gic dump distributor 00000004 00000000 00000000 00000000 arm gic dump distributor 00000090 000000b4 0000002b arm gic dump distributor cidr 01c81ff0 arm gic dump distributor 0000000d 000000f0 00000005 000000b1 fgarm gic dump gic entry arm gic initialize nlines 224 arm gic dump cpu cpu interface registers arm gic dump cpu icr 00000060 pmr 000000f0 bpr 00000003 iar 000003ff arm gic dump cpu rpr 000000ff hpir 000003ff abpr 00000000 arm gic dump cpu aiar 00000000 ahpir 00000000 idr 0202143b arm gic dump cpu apr1 00000000 apr2 00000000 apr3 00000000 apr4 00000000 arm gic dump cpu nsapr1 00000000 nsapr2 00000000 nsapr3 00000000 nsapr4 00000000 arm gic dump distributor distributor registers arm gic dump distributor dcr 00000000 ictr 0000fc66 iidr 0200143b arm gic dump32 isr 01c81080 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 iser icer 01c81100 arm gic dumpregs 0000ffff 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 ispr icpr 01c81200 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 sar car 01c81300 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump4 ipr 01c81400 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dump4 iptr 01c81800 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 00000000 00000000 01010100 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dump16 icfr 01c81c00 arm gic dumpregs aaaaaaaa 55540000 55555555 55555555 arm gic dumpregs 55555555 55555555 55555555 55555555 arm gic dumpregs 55555555 55555555 55555555 55555555 arm gic dumpregs 55555555 55555555 00000000 00000000 arm gic dump32 ppsir spisr 01c81d00 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 nsacr 01c81e00 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump8 scpr sspr 01c81f10 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump distributor pidr 01c81fd0 arm gic dump distributor 00000004 00000000 00000000 00000000 arm gic dump distributor 00000090 000000b4 0000002b arm gic dump distributor cidr 01c81ff0 arm gic dump distributor 0000000d 000000f0 00000005 000000b1 arm gic dump gic exit arm gic initialize nlines 224 arm gic dump cpu cpu interface registers arm gic dump cpu icr 00000061 pmr 000000f0 bpr 00000007 iar 000003ff arm gic dump cpu rpr 000000ff hpir 000003ff abpr 00000000 arm gic dump cpu aiar 00000000 ahpir 00000000 idr 0202143b arm gic dump cpu apr1 00000000 apr2 00000000 apr3 00000000 apr4 00000000 arm gic dump cpu nsapr1 00000000 nsapr2 00000000 nsapr3 00000000 nsapr4 00000000 arm gic dump distributor distributor registers arm gic dump distributor dcr 00000001 ictr 0000fc66 iidr 0200143b arm gic dump32 isr 01c81080 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 iser icer 01c81100 arm gic dumpregs 0000ffff 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 ispr icpr 01c81200 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 sar car 01c81300 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump4 ipr 01c81400 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 00000000 00000000 80000000 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dumpregs 80808080 80808080 80808080 80808080 arm gic dump4 iptr 01c81800 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 00000000 00000000 01010100 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dumpregs 01010101 01010101 01010101 01010101 arm gic dump16 icfr 01c81c00 arm gic dumpregs aaaaaaaa 55540000 55555555 55555555 arm gic dumpregs 55555555 55555555 55555555 55555555 arm gic dumpregs 55555555 55555555 55555555 55555555 arm gic dumpregs 55555555 55555555 00000000 00000000 arm gic dump32 ppsir spisr 01c81d00 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump32 nsacr 01c81e00 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump8 scpr sspr 01c81f10 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dumpregs 00000000 00000000 00000000 00000000 arm gic dump distributor pidr 01c81fd0 arm gic dump distributor 00000004 00000000 00000000 00000000 arm gic dump distributor 00000090 000000b4 0000002b arm gic dump distributor cidr 01c81ff0 arm gic dump distributor 0000000d 000000f0 00000005 000000b1 hup timer initialize up timer initialize cp15 timer s running at 24 00mhz cycle 24000 amarm gic dump gic exit up prioritize irq irq 27 arm gic dump cpu cpu interface registers arm gic dump cpu icr 00000061 pmr 000000f0 bpr 00000007 iar 000003ff arm gic dump cpu rpr 000000ff hpir 000003ff abpr 00000000 arm gic dump cpu aiar 00000000 ahpir 00000000 idr 0202143b arm gic dump cpu apr1 00000000 apr2 00000000 apr3 00000000 apr4 00000000 arm gic dump cpu nsapr1 00000000 nsapr2 00000000 nsapr3 00000000 nsapr4 00000000 arm gic dump distributor distributor registers arm gic dump distributor dcr 00000001 ictr 0000fc66 iidr 0200143b arm gic dump distributor isr 00000000 iser 0000ffff ispr 00000000 sar 00000000 arm gic dump distributor ipr a0000000 iptr 01010100 icfr 55540000 spisr 00000000 arm gic dump distributor nsacr 00000000 scpr 00000000 arm gic dump distributor pidr 01c81fd0 arm gic dump distributor 00000004 00000000 00000000 00000000 arm gic dump distributor 00000090 000000b4 0000002b arm gic dump distributor cidr 01c81ff0 arm gic dump distributor 0000000d 000000f0 00000005 000000b1 nopbiarm gic du
arm64 cortex-a53 nuttx pinephone osdev zig allwinner-a64 mipi-dsi de2
os
blockchain-tutorial
code your own blockchain in less than 200 lines of go tutorial read https medium com mycoralhealth code your own blockchain in less than 200 lines of go e296282bcffc our blog post first to see a walkthrough of the code check out our follow up tutorials networking https github com mycoralhealth blockchain tutorial tree master networking proof of work https github com mycoralhealth blockchain tutorial tree master proof work proof of stake https github com mycoralhealth blockchain tutorial tree master proof stake ipfs https medium com mycoralhealth learn to securely share files on the blockchain with ipfs 219ee47df54c p2p https medium com coinmonks code a simple p2p blockchain in go 46662601f417 advanced concepts for beginners https medium com mycoralhealth advanced blockchain concepts for beginners 32887202afad start your own hyperledger blockchain the easy way https medium com mycoralhealth start your own hyperledger blockchain the easy way 5758cb4ed2d1 build a dapp on hyperledger the easy way https medium com mycoralhealth build a dapp on hyperledger the easy way 178c39e503fa build your own blockchain twitter recorder https github com mycoralhealth twitter blockchain deployment steps git clone https github com mycoralhealth blockchain tutorial git navigate to this directory and rename the example file mv example env env go run main go open a web browser and visit http localhost 8080 to write new blocks send a post request i like to use postman https www getpostman com apps to http localhost 8080 with a json payload with bpm as the key and an integer as the value for example bpm 50 send as many requests as you like and refresh your browser to see your blocks grow use your actual heart rate beats per minute to track it over time screenshot screen https user images githubusercontent com 15616604 35492333 2829f690 0461 11e8 8c1f 8a0258d370e8 png
blockchain
palmy
palmy palmistry line recognition application read palmy android palmistry application pdf for more info
ai
iOSReverseEngineering
ios apple app ios app xcode app 99 app app store app apple ios plist app store app app app app iphone app app ipa ipa iphone app ios app store app app 1 ipa md5 2 rsa rsa md5 3 ipa 4 app ipa md5 now md5 5 md5 now md5 app ipa ipa app store ipa ipa ipa iresign adhoc inhourse mobileprovision ipa app id https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images resined png xml mobileprovision https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images mobilefile png ipa resigned ipa resignedfile https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images resignedfile png ipa itunes itunes ipa itunes iphone ipa itns https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images itns png oops app ipaerror https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images ipaerror jpg hopper 010 editor app xxx release execfile https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images execfile png hopper app app mobileprovision app asmcode https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images asmcode png tbz w22 0x0 loc 10008a314 w22 mobileprovision 0 tbz 0 imm b5 b40 0 63 0 31 b5 rt label tba https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images tbz png 1 tbnz tbnz https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images tbnz png tbz 31 5 tba https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images tbzm png tbnz 31 5 tba https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images tbnzm png 24 0 1 tbz w22 0 0x6b8 d6 35 00 36 iphone 36 00 35 d6 0011 0110 0000 0000 0011 0101 1101 0110 tbnz 0011 0111 0000 000 0011 0101 1101 0110 37 00 35 d6 d6 35 00 37 tbnz w22 0 0x6b8 010 editor xxx release d6 35 00 36 d6 35 00 37 010 https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images 010 png ipa app 010 https raw githubusercontent com 0xfeedface1993 iosreverseengineering master images succc jpg app app store ipa c c
os
ESD-2021-2022-HLS-01
knn based recommendation system acceleration this exercise demonstrates a movie recommendation system https en wikipedia org wiki recommender system based on k nearest neighbor https en wikipedia org wiki k nearest neighbors algorithm algorithm the used dataset is a subset of movielens https grouplens org datasets movielens students are going to use high level synthesis https en wikipedia org wiki high level synthesis in order to accelerate the recommendation system using the sdsoc 2016 4 https www xilinx com support download index html content xilinx en downloadnav vitis archive sdsoc html development environment finally they will execute the accelerated application on a zynq 7000 arm fpga soc https www xilinx com support documentation data sheets ds190 zynq 7000 overview pdf development board repository structure cpu directory contains a cpu only version for the movie recommendation system students can experiment with different distance metrics on the full dataset fpga directory contains the main code of the exercise various directory contains the jupyter notebook that was used in order to understand the input data and create the used dataset the movielens dataset subset can be found on https drive google com drive folders 1m kzco8pbifs6wiznb vluubm76f1b8f usp sharing
hls fpga recommendation-system
os
AirSENSE_Luxury_RTOS_V2.0
airssense luxury rtos v2 0 airsense luxury phi n b n s d ng rtos
os
CV
p a href https github com wscats cv a href https opencollective com yao alt financial contributors on open collective img src https opencollective com yao all badge svg label financial contributors a img src https img shields io badge star 500 orange a a href https github com wscats cv img src https img shields io badge version 6 66 brightgreen a a href https github com wscats cv img src https img shields io badge github page wscats yellow a a href https github com wscats img src https img shields io badge author eno yao blueviolet a p http wscats github io cv omi build index html https github com wscats cv javascript i wrote javascript nice 2015 xx web 10qps 200qps 10 3 2016 wapcms 3 2 pv hr 139 email wscats gmail com qq 163 gmail qq 7 1990 xx 3 https wscats github io blog github page github https github com wscats repo star github github web html5 15k 20k hr it hr jquery sass vue angular 123 2016 9 2017 9 456 789 2 3 html xx 2016 09 2017 03 vue jquery jwplayer js jquery kinslideshow html 1 2 html 1 csdn 2 3 4 5 github show me the code piano https github com wscats piano 8 star fork articles https github com wscats articles star fork xxoo vip https github com wscats good text share issues 62 javascript https github com wscats good text share issues 85 php node thinkphp codeigniter reactjs vuejs angularjs omi emberjs cocos2djs ionic weui bootstrap antdesign elementui amazeui jquery zepto lodash axios postman charles vue react dev tools swiper iscroll webpack gulp requirejs fis grunt typescript sass less pug jade native weex react native cordova uni app mpvue taro kbone wepy mysql mongodb pgsql pdo sqlite svn git phpunit simpletest qunit mocha sae bae aws html 1 2 css3 3 rem flex 4 photoshop 5 javascript javascript jquery zepto 6 7 http http 8 ajax json php 9 node js server ajax 10 bootstrap weui ionic 11 angularjs vuejs 12 gulp git svn html 1 html div css 2 html5 css3 es6 webapp canvas 3 4 bootstrap ant design ui sass stylus css 5 javascript jquery zepto 6 reactjs angularjs mui vue 7 ajax 8 json 9 localstorage sessionstorage cookie token 10 swiper font awesome jqueryui jquery 11 cordova webapp app app 12 visual studio code sublimetext hbulider git gulp postman photoshop 13 node js webpack express mongodb 14 taro 15 16 bootstrap weui ionic bootstrap weui ionic hr jquery php hr 5 10 skill skill skill skill skill skill web javascript html5 css3 h5 js ajax w3c div css html es6 vue angular react backbone jquery zepto json xml xhtml bom dom svg ui photoshop weui bootstrap ionic flex atom visual studio code hbuilder sublime text firebug dreamweaver asp jsp java ruby python php ps mobile mvc mvvm mvp www http https ftp ssl websocket seo sass less amd cmd requirejs seajs github stackoverflow segmentfault coding csdn linux mac windows ios android gulp grunt webpack git svn flash jssdk phonegap cordova hybrid firefox chrome safari charles express nodejs koa semantic foundation yui actionscript coffeescript typescript mysql webapp qq facebook wechat email ta 142 142 https github com ifyouremember interview vue https github com wscats vue tutorial node https github com wscats node tutorial react https github com wscats react tutorial angular https github com wscats angular tutorial omi http wscats github io cv omi build index html vue http wscats github io cv vue dist index html https github com wscats cv article article javascript https github com wscats good text share issues 85 https github com wscats cv https www zhihu com question 39486348 https www zhihu com question 19568008 https github com amfe article issues 5 https github com wscats cv https github com amfe article issues 5 ii winter https github com wintercn blog issues 8 offer http www cnblogs com joyeecheung p 5003980 html https github com hawx1993 front end interview questions zte https github com markyun my blog tree master front end developer questions https github com qiu deqing fe interview web https github com wangwenjie1314 webqd js http www cnblogs com xxcanghai p 5189353 html http www cnblogs com syfwhu p 4434132 html ruipeng zhang http www cnblogs com syfwhu p 4434132 html resume template for chinese programmers https github com geekcompany resumesample http cv ftqq com star contributors code contributors this project exists thanks to all the people who contribute a href https github com wscats cv graphs contributors img src https opencollective com yao contributors svg width 890 button false a financial contributors become a financial contributor and help us sustain our community individuals a href https opencollective com yao img src https opencollective com yao individuals svg width 890 a organizations support this project with your organization your logo will show up here with a link to your website a href https opencollective com yao organization 0 website img src https opencollective com yao organization 0 avatar svg a a href https opencollective com yao organization 1 website img src https opencollective com yao organization 1 avatar svg a a href https opencollective com yao organization 2 website img src https opencollective com yao organization 2 avatar svg a a href https opencollective com yao organization 3 website img src https opencollective com yao organization 3 avatar svg a a href https opencollective com yao organization 4 website img src https opencollective com yao organization 4 avatar svg a a href https opencollective com yao organization 5 website img src https opencollective com yao organization 5 avatar svg a a href https opencollective com yao organization 6 website img src https opencollective com yao organization 6 avatar svg a a href https opencollective com yao organization 7 website img src https opencollective com yao organization 7 avatar svg a a href https opencollective com yao organization 8 website img src https opencollective com yao organization 8 avatar svg a a href https opencollective com yao organization 9 website img src https opencollective com yao organization 9 avatar svg a
interview interview-questions markdown curriculum-vitae font-end
front_end
NSTehran-Reverse-Engineering
nstehran reverse engineering source code for nstehran 6 reverse engineering on ios apps 1 install theos jailed 2 run make package install
os
custom_embedded_linux_project
custom embedded linux project a custom embedded linux project design and implementation of a full software stack for a simple embedded system the kernel is customised and built from scratch with busybox providing most of the available user commands the system can be booted via usb using grub please see docs
os
simple-blog-front
front end for simple blog all text https cdn images 1 medium com max 800 1 mdxr5eddsciqhyop il9sg png requirements node js running backend https github com rodionchachura simple blog back run locally bash git clone https github com rodionchachura simple blog front cd simple blog front npm install npm start technologies react redux redux saga blog post https geekrodion com blog asp react blog license mit rodionchachura https geekrodion com
react redux redux-saga
front_end
govtnz-design-system
new zealand government design system alpha this is the github repo for developers more documentation is available on the design system alpha website https design system alpha digital govt nz this is a new service your feedback will help us to improve it email the design system ds team at info digital govt nz mailto info digital govt nz use our nzgds slack app https nz aog design system slack com open an issue in this github repo contributions we welcome contributions to the new zealand government design system nzgds see contributing https github com govtnz govtnz design system blob master contributing md install currently the design system is hosted on npm https npmjs com although we are investigating using other distribution networks too for example packagist https packagist org if you d prefer a particular network please let us know the npm package name is govtnz ds so from an npm project https docs npmjs com cli init use the command npm i govtnz ds or yarn add govtnz ds for users of yarn https yarnpkg com to add the design system once installed the design system files can be found at node modules govtnz ds build integration type where integration type is one of the following html html css css scss scss sass react js react javascript react ts react typescript react js styled components react javascript with styled components react ts styled components react typescript with styled components silverstripe components silverstripe alpha quality vue js vue javascript beta quality vue js vue typescript beta quality mustache mustacle handlebars beta quality there may be other integration types included however these are provided for testing purposes only and to give more transparency about our intentions to support more template formats component usage this project adheres to a naming convention where a component has an id with different filename extensions for each integration type for example the h1 component has html at node modules govtnz ds build html h1 html and css at node modules govtnz ds build css h1 css for example the flexcontainer component has html at node modules govtnz ds build html flexcontainer html and css at node modules govtnz ds build css flexcontainer css and so on find the list of possible components by browsing on the design system alpha website https design system alpha digital govt nz or browsing integration type directory under node modules govtnz ds build integration type updates and versions as there will be updates we recommend that you email info digital govt nz mailto info digital govt nz to subscribe to our newsletter information about new versions will also be available on npmjs each release of the design system is given a version number adhereing to semver https semver org so that specific versions can be installed you can upgrade to later versions of the design system by typing npm i govtnz ds semver or yarn add govtnz ds semver for users of yarn https yarnpkg com where semver is the specific version string integration types html html is provided as a reference sometimes these examples may include css classes showing optional classes eg g radios inline that you may not need so consult the website documentation to ensure you re using the correct html css css may be imported directly and will include css variables https developer mozilla org en us docs web css var for some design system components there is a index css that imports every css file take care when using this without a css preprocessor as it may result in many network requests for each individual file we recommend the best practice of choosing specific css files to bundle and minify rather than including all css files scss sass scss may be imported directly and will include both sass and css variables https developer mozilla org en us docs web css var for some design system components there is a index scss that imports every scss file take care importing every file because this may result in unused scss we recommend the best practice of choosing specific scss files to bundle and minify rather than including all scss files there is a settings scss file for sass variable configuration these settings may change as we develop theming features react import from an integration type as either react js react ts react js styled components or react ts styled components you can then name the specific component you wish to install eg for the h1 component javascript import h1 from govtnz ds build react js h1 js you may import css as import govtnz ds build css h1 css or scss as import govtnz ds build css h1 scss or include those classes via some other scss or css preprocessor for styled components https www styled components com you do not need to import css or scss read the component source code or use the typescript types to learn about the props each component accepts silverstripe please note that our silverstripe components are currently alpha quality we recommend using html until we can give you guidance on how to integrate specific technologies however if you wish to help us test these components they are available at node modules govtnz ds build silverstripe components as ss template files we intend to use the silverstripe components https github com symbiote silverstripe components syntax however there are currently bugs in this library that prevent us from using it we have two boilerplate sites included in this repo under packages for both silverstripe 3 and silverstripe 4 that show potential silverstripe components integrations vue after installation use files as javascript import h1 from govtnz ds build vue js h1 vue these vue files currently include css should they let us know read the component source code or use the typescript types to learn about the variables each component accepts mustache mustache https mustache github io handlebars https handlebarsjs com template files are included as an integration type we have a boilerplate demo included in this repo under packages for mustache mustache templates can be converted into html by using a mustache or handlebars template processor these processors accept a mustache template string and an object of properties to apply to the template called a context when providing a context value that sets an enumeration a multichoice option provide the value as option value true option true where option is the enumerated key and value is the enumerated value this is required because mustache is a logic less template format that has no way of comparing values so the enumeration must be precomputed some mustache templates use triple bracket variable which bypasses html escaping this is necessary because some variables are expected to render html not just text nodes or attribute values be careful to encode input to avoid security issues https github com owasp cheatsheetseries blob master cheatsheets cross site scripting prevention cheat sheet md why cant i just html entity encode untrusted data when using mustache templates other formats what other formats would you like us to support please let us know see contact details at the top of this page browser support note that n refers to the current version number and so n 3 means that the site would support the 3 previous versions of that browser supported browser device versions browser device os version mobile safari ios n 3 chrome android n 3 chrome desktop n 3 ms internet explorer desktop 11 ms edge desktop n 2 firefox desktop n 3 safari osx n 2 what other browsers would you like us to support please let us know see contact details at the top of this page changelog see changelog https github com govtnz govtnz design system blob master changelog md
os
LabOnTime
labontime project mobile labontime android application development
front_end
Computer-Vision-with-Python-3
computer vision with python 3 this is the code repository for computer vision with python 3 https www packtpub com application development computer vision python 3 utm source github utm medium repository utm campaign 9781788299763 published by packt https www packtpub com utm source github it contains all the supporting project files necessary to work through the book from start to finish about the book this book is a thorough guide for developers who want to get started with building computer vision applications using python 3 the book is divided into five sections the fundamentals of image processing applied computer vision making applications smarter extending your capabilities using opencv and getting hands on throughout this book three image processing libraries pillow scikit image and opencv will be used to implement different computer vision algorithms the book aims to equip readers to build computer vision applications that are capable of working in real world scenarios effectively some of the applications that we will look at in the book are optical character recognition object tracking and building a computer vision as a service platform that works over the internet instructions and navigation all of the code is organized into folders each folder starts with a number followed by the application name for example chapter02 the code will look like the following private void initialisebluetooth bluetoothmanager bluetoothmanager getsystemservice context bluetooth service bluetoothadapter bluetoothmanager getadapter bluetoothlescanner bluetoothadapter getbluetoothlescanner this book will guide you through the installation of all the tools that you need to follow the code samples code samples introduced in various chapters are for both android and ios platforms hence you will need to install the android studio and xcode ides since simulators lack bluetooth functionality hence you will need physical android and ios devices to run the code samples in terms of hardware you will be needing a raspberry pi for the code lab specific for chapter 5 beacons with raspberry pi for chapter 4 designing a personal tracking system and chapter 6 weather monitoring using ble in warehouses you will be needing a very low cost itag and the texas instruments sensor tag all of the hardware can be easily procured online related products learning opencv 3 computer vision with python second edition https www packtpub com application development learning opencv 3 computer vision python second edition utm source github utm medium repository utm campaign 9781785283840 opencv computer vision projects with python https www packtpub com application development opencv computer vision projects python utm source github utm medium repository utm campaign 9781787125490 opencv 3 computer vision application programming cookbook third edition https www packtpub com application development opencv 3 computer vision application programming cookbook third edition utm source github utm medium repository utm campaign 9781786469717
ai
blog
javascript es6 react redux ai chatgpt https github com camsong blog issues 16 vs code https github com camsong blog issues 15 react conf 2021 https github com camsong blog issues 14 100 https github com camsong blog issues 13 2019 5 https github com camsong blog issues 11 javascript https github com camsong blog issues 9 https github com camsong blog issues 8 react https github com camsong blog issues 6 css modules react https github com camsong blog issues 5 jquery javascript https github com camsong blog issues 4 immutable react https github com camsong blog issues 3 ajax fetch https github com camsong blog issues 2 flux relay redux https github com camsong blog issues 1 web neosoyn gmail com mailto neosoyn gmail com
front_end
blockchain_guide
v1 6 2 fintech distributed ledger technology dlt gitbook https yeasy gitbook io blockchain guide github https github com yeasy blockchain guide blob master summary md images blockchain book2 png 2 https item jd com 12159265 html fabric 2 x china pub http product china pub com 8071482 https item jd com 12935394 html http product dangdang com 28996031 html https github com yeasy blockchain guide wiki e3 80 8a e5 8c ba e5 9d 97 e9 93 be e5 8e 9f e7 90 86 e3 80 81 e8 ae be e8 ae a1 e4 b8 8e e5 ba 94 e7 94 a8 e3 80 8b2 e7 89 88 e5 8b 98 e8 af af e8 a1 a8 contribute md revision md https github com yeasy blockchain guide graphs contributors coffee coffee images coffee jpeg qq iv 364824846 qq iii 414919574 qq ii 523889325 qq i 335626996
blockchain hyperledger book fintech bitcoin ethereum distributed-system distributed-ledger technology
blockchain
SQL-Car-Rental-Project
sql car rental project this is the msc software engineering sql project submission business rules 1 customer has 1 or more reservation 2 reservation has 1 customer 3 reservation has 1 vehicle 4 reservation has 1 branch 5 vehicle has 1 vehicle type 6 vehicle can be on 1 or more reservation 7 vehicle has 1 branch 8 branch has 1 or more vehicle 9 branch has 1 or more reservation 10 vehicle type has 1 or more vehicles business reporting requirements 11 must generate a report that specifies the number of customers that rented vehicles from a date range 28 10 17 29 10 17 12 must generate a report that specifies the first name surname address and contact number of all customers 13 must generate a report to show all reservations placed by a customer miss caroline parkinson 14 must generate a report to show who rented the audi tt 15 must generate a report which specifies the number of customers who rented a vehicle in november 2017 16 must generate a report which specifies cars fuel status at any given time the script is run
server
thorin
ens design system middot npm version https img shields io npm v thorin svg style for the badge labelcolor 161c22 https www npmjs com package ensdomains thorin license https img shields io npm l thorin svg style for the badge labelcolor 161c22 license a design system for ens built with react and styled components note this project is in alpha stage it is in active development and is subject to change install to install this package using npm bash npm install ensdomains thorin to install this package using yarn bash yarn add ensdomains thorin checkout the project s playroom https thorin ens domains playroom to preview the components in a live online environment set up in your app component wrap the root of your app in a themeprovider https styled components com docs advanced module from styled components https styled components com import thoringlobalstyles and declare it as a child of themeprovider to set global styles set the theme by passing a theme object to themeprovider tsx import themeprovider from styled components import thoringlobalstyles lighttheme from ensdomains thorin const app return themeprovider theme lighttheme thoringlobalstyles children themeprovider dark theme to use the dark theme import darktheme and pass it to the themeprovider tsx import themeprovider from styled components import thoringlobalstyles lighttheme from ensdomains thorin const app return themeprovider theme lighttheme thoringlobalstyles children themeprovider use components a list of components with examples are available on the project website https thorin ens domains a simple example to get you started tsx import input searchsvg from ensdomains thorin const searchinput return input label search placeholder name or wallet address prefix searchsvg documentation you can find the full documentation on the project website https thorin ens domains the documentation is divided into two sections guides documentation and tips for working on this project components documentation and sample code for each individual component development bash gh clone repo ensdomains thorin pnpm install pnpm dev before development it is recommended that you read the following development guide https thorin ens domains guides development information and tips to help you when working on this project including component groups https thorin ens domains guides development component groups how the components are organized adding components https thorin ens domains guides development adding components a list of files that need to be added or modified for each component style guidlines https thorin ens domains guides development style guidelines rules and tips to follow to keep the project code consistent and maintainable common issues https thorin ens domains guides development common issues a list of known issues and how to resolve them playroom guide https thorin ens domains guides playroom information on how to add state and interactivity to sample code in playroom and mdx code previews contributing contribute to this project by sending a pull request to this repository https github com ensdomains thorin sources forked from degen https github com mirror xyz degen
os
reboost
p align center img src https user images githubusercontent com 44255990 87241868 d941a680 c444 11ea 8dbb 8abc674f3911 png alt reboost width 300 p p align center a href https circleci com gh sarsamurmu reboost img alt circleci src https circleci com gh sarsamurmu reboost svg style svg a a href https www npmjs com package reboost img alt npm src https img shields io npm v reboost style flat square a a href https lerna js org img alt maintained with lerna src https img shields io badge maintained 20with lerna cc00ff style flat square a a href https github com sarsamurmu reboost blob main license img alt license src https img shields io npm l reboost style flat square a p p align center reboost is a i super fast i dev server for rapid web development br it makes use of native es modules to enable fast bundle less development experience so you can develop your app faster a href what it does learn more about what it does a p features no bundling so the server start time is fast transforms only the required changed files uses advanced filesystem cache it will stay fast even after restarting complete source maps support for better developer experience supports commonjs modules plugin api for extending its capability enhanced import resolving built in hot reload api out of the box support for json css modules jsx and typescript preprocessor support using plugin combine with any other server built in content server with live reload and hot reload for css lots of configurable options note experimental reboost is in early development and some things may change break before we hit version 1 0 only for development build reboost is intended to use only on development for production you ve to bundle up your files by yourself using bundlers like webpack rollup etc quickstart run this command in your terminal shell npm init reboost app then it will ask you to choose a template from the available templates packages create app readme md available templates after that open the directory where your app is extracted install dependencies then run shell node reboost if you don t want to use the cli you can manually create an app docs manually creating an app md docs changelog packages core changelog md configurations docs configurations md plugins docs plugins md plugin api docs plugin api md hot reload api docs hot reload api md recipes docs recipes md faqs troubleshooting docs faqs and troubleshooting md what are supported es modules js ts decorators json babel docs recipes md babel css and css modules with hot reloading docs recipes md css and css modules commonjs modules docs recipes md commonjs modules jsx docs recipes md jsx lit docs recipes md lit malina js docs recipes md malinajs postcss docs recipes md postcss preact with fast refresh docs recipes md preact with fast refresh react with fast refresh docs recipes md react with fast refresh sass scss docs recipes md sass or scss solid docs recipes md solid svelte with hot reloading docs recipes md svelte tsx docs recipes md tsx typescript docs recipes md typescript vue 3 with hot reloading docs recipes md vue 3 and almost anything as long as you can implement it as a plugin docs plugin api md see the recipes docs recipes md for many template configurations what it does when developing a web app as your number of modules increases your compile time slows down it s a big problem it takes a lot of precious time which you could have used to develop your app since es2015 aka es6 modules are supported natively by browsers if you can connect or you can say serve them up correctly it will work on browsers without the need for bundling here reboost does that for you the serving part so you can develop your app faster reboost is highly inspired by these awesome projects vite https github com vitejs vite snowpack https github com pikapkg snowpack esbuild https github com evanw esbuild license licensed under the mit license license thanks for your support this project is nothing without your support if you like this project then help us by giving a star on its github repository
dev-server super-fast hmr electron esm ecmascript-modules commonjs-modules no-bundle web-development rapid-development
front_end
MLPB
machine learning problem bible mlpb mlpb is meant to become an organized collection of machine learning problems and solutions in practice machine learning often goes like this i have this problem i need to classify something as a b or c using a combination of numeric and categorical features if i could find a similar problem maybe i could modify the solution to work for my needs this is where mlpb steps in want to see machine learning problems with sparse data got it want to compare scikit learn s randomforestregressor with r s randomforest got it need an example of predicting a ranked target variable got it how it works mlpb contains a directory of problems within each problem is a designated data directory and one or more scripts with a solution to the problem this looks something like problems classify iris species data iris csv train csv test csv predict species xgb r predict nfl game winner data train csv test csv random forest model py random forest model r most of these directories should include a readme md file providing details about the problem data and solution s you can browse all the problems in mlpb s wiki https github com ben519 mlpb wiki you can also search for problems with specific tags like mult class classification sparse data nlp etc contact if you d like to contact me regarding bugs questions or general consulting feel free to drop me a line bgorman519 gmail com support found this free repo helpful show your support check out gormanalysis courses https gormanalysis teachable com and buy some merch https shop gormanalysis com gormanalysis shop https www gormanalysis com ads gormanalysis shop jpg https shop gormanalysis com
machine-learning r python
ai
awesome-blockchain
awesome blockchain awesome https awesome re badge svg https github com yjjnls awesome blockchain curated list of resources for the development and applications of block chain the blockchain is an incorruptible digital ledger of economic transactions that can be programmed to record not just financial transactions but virtually everything of value by don tapscott https www linkedin com pulse whats next generation internet surprise its all don tapscott font color 0099ff size 3 this is not a simple collection of internet resources but verified and organized data ensuring it s really suitable for your learning process and useful for your development and application font contents details summary click to expand summary awesome blockchain awesome blockchain contents contents frequently asked questions f a q s answers frequently asked questions faqs answers basic introduction basic introduction development tutorial development tutorial bitcoin bitcoin ethereum ethereum consortium blockchain consortium blockchain hyperledger hyperledger xuperchain xuperchain fisco bcos fisco bcos releated tools releated tools solidity solidity truffle truffle web3 js web3js implementation of blockchain implementation of blockchain projects and applications projects and applications quorum quorum monero monero iota iota eos eos ipfs ipfs filecoin filecoin bigchaindb bigchaindb bitshares bitshares arcblock arcblock further extension further extension papers papers books books applications applications identity applications identity applications public blockchain identity public blockchain identity blockchain as a collateral blockchain as a collateral unclear unclear guidance guidance internet of things applications internet of things applications energy applications energy applications media and journalism media and journalism defi decentralised finance defi decentralised finance roadmaps roadmaps contribute contribute details frequently asked questions f a q s answers q what s a blockchain a a blockchain is a distributed database with a list that is chain of records that is blocks linked and secured by digital fingerprints that is crypto hashes example from genesis block json https github com yjjnls awesome blockchain tree master src js genesis block json js version 0 height 1 previous hash null timestamp 1550049140488 merkle hash null generator publickey 18941c80a77f2150107cdde99486ba672b5279ddd469eeefed308540fbd46983 hash d611edb9fd86ee234cdc08d9bf382330d6ccc721cd5e59cf2a01b0a2a8decfff block signature 603b61b14348fb7eb087fe3267e28abacadf3932f0e33958fb016ab60f825e3124bfe6c7198d38f8c91b0a3b1f928919190680e44fbe7289a4202039ffbb2109 consensus data transactions basic img blockchain jesus png q what s a hash what s a one way crypto graphic hash digest checksum a a hash e g d611edb9fd86ee234cdc08d9bf382330d6ccc721cd5e59cf2a01b0a2a8decfff is a small digest checksum calculated with a one way crypto graphic hash digest checksum function e g sha256 secure hash algorithm 256 bits from the data example from crypto js https github com yjjnls awesome blockchain blob master src js crypto js js function calc hash data return crypto createhash sha256 update data digest hex a blockchain uses the block header e g version timestamp previous hash and the block data e g transaction data to calculate the new hash digest checksum q what s a merkle tree a a merkle tree is a hash tree named after ralph merkle who patented the concept in 1979 the patent expired in 2002 a hash tree is a generalization of hash lists or hash chains where every leaf node in the tree is labelled with a data block and every non leaf node in the tree is labelled with the crypto graphic hash of the labels of its child nodes for more see the merkle tree https en wikipedia org wiki merkle tree wikipedia article note by adding crypto graphic hash functions you can merkelize any data structure q what s a merkelized dag directed acyclic graph a it s a blockchain secured by crypto graphic hashes that uses a directed acyclic graph data structure instead of linear classic linked list note git uses merkelized dag directed acyclic graph s for its blockchains q is the git repo a blockchain a yes every branch in the git repo is a blockchain the classic satoshi blockchain is like a git repo with a single master branch only more q a blockchain interview questions https mindmajix com blockchain interview questions 10 essential blockchain interview questions https www toptal com blockchain interview questions top 36 blockchain job interview questions answers https blockchainsfactory com blockchain interview questions basic introduction encryption knowledge encryption knowledge basic concepts https www jianshu com p a044b303f7d5 asymmetric encryption digital signature certificate digital signature extension https www jianshu com p 410e77ec23fa multi signature blind signature group signature ring signature merkle tree https www jianshu com p a044b303f7d5 merkle tree in blockchain basic merkle tree in blockchain md merkle dag http www sohu com a 247540268 100222281 cryptonote v2 0 https cryptonote org whitepaper pdf untraceable transactions and egalitarian proof of work consensus consensus proof of work https www jianshu com p 3462f2ed74d7 proof of stake https www jianshu com p 2fd3bce523b0 proof of stake faqs https github com ethereum wiki wiki proof of stake faqs chinese version https ethfans org posts proof of stake faq new 2018 3 15 delegated proof of stake https www jianshu com p ccc3fff7a60d practical byzantine fault tolerance https www jianshu com p e991c1385f9f account and transaction model account and transaction model utxo model https www jianshu com p 2f4e75dbc2e4 exchange exchange applications applications do you need a blockchain https spectrum ieee org computing networks do you need a blockchain what can t blockchain do https www jianshu com p 70f6a29a6296 more extension application md governance governance blockchains should not be democracies https haseebq com blockchains should not be democracies https github com yfeng125 blockchain tutorial blob master doc e2 80 8b25 e6 af 94 e7 89 b9 e5 b8 81 ef bc 9a e6 89 a9 e5 ae b9 e4 b9 8b e4 ba 89 e3 80 81ifo e4 b8 8e e9 93 be e4 b8 8a e6 b2 bb e7 90 86 md digital currency ranking digital currency ranking https coinmarketcap com development tutorial bitcoin https github com bitcoin bitcoin img src https bitcoin org img icons logotop svg align right width 120 https bitcoincore org bitcoin is an experimental digital currency that enables instant payments to anyone anywhere in the world bitcoin uses peer to peer technology to operate with no central authority managing transactions and issuing money are carried out collectively by the network bitcoin white paper a peer to peer electronic cash system https bitcoin org bitcoin pdf chinese version bitcoin white 20paper md annotated bitcoin white paper https fermatslibrary com s bitcoin mastering bitcoin https github com bitcoinbook bitcoinbook chinese version http book 8btc com books 6 masterbitcoin2cn book pdf download http book 8btc com master bitcoin export pdf bitcoin improvement proposals bips https github com bitcoin bips but how does bitcoin actually work https www youtube com watch v bbc nxj3ng4 mining visualization http www yogh io mine last wallets bitcoin awesome md wallets api explorers bitcoin awesome md blockchain explorers libraries bitcoin awesome md libraries c javascript php ruby python java net web services bitcoin awesome md blockchain api and web services full nodes bitcoin awesome md full nodes more bitcoin awesome md ethereum https github com ethereum img src https github com yjjnls notes blob master img ethereum png align right width 80 https www ethereum org ethereum is a decentralized platform that runs smart contracts applications that run exactly as programmed without any possibility of downtime censorship fraud or third party interference these apps run on a custom built blockchain an enormously powerful shared global infrastructure that can move value around and represent the ownership of property ethereum white paper https github com ethereum wiki wiki white paper chinese version ethereum white 20paper md annotated ethereum white paper https fermatslibrary com s ethereum a next generation smart contract and decentralized application platform mastering ethereum https github com ethereumbook ethereumbook chinese version https github com inoutcode ethereum book ethereum yellow paper https ethereum github io yellowpaper paper pdf chinese version https github com yuange1024 ethereum yellowpaper ethereum wiki https github com ethereum wiki wiki ethereum design rationale https github com ethereum wiki wiki design rationale chinese version https ethfans org posts 510 ethereum problems https github com ethereum wiki wiki problems sharding roadmap https github com ethereum wiki wiki sharding roadmap ethereum flavored webassembly ewasm https github com ewasm vp2p wire protocol https github com ethereum wiki wiki c3 90 ce 9evp2p wire protocol evm awesome list https github com ethereum wiki wiki ethereum virtual machine evm awesome list patricia tree https github com ethereum wiki wiki patricia tree consensus ethash https github com ethereum wiki wiki ethash ethash dag https github com ethereum wiki wiki ethash dag ethash specification https github com ethereum wiki wiki ethash mining ethash dag https github com ethereum wiki wiki mining ethash dag dagger hashimoto algorithm https github com ethereum wiki blob master dagger hashimoto md dag explanation and images https ethereum stackexchange com questions 1993 what actually is a dag ethash in ethereum yellowpaper https ethereum github io yellowpaper paper pdf appendix j ethash c api example usage https github com ethereum wiki wiki ethash c api accounts transactions gas and block gas limits in ethereum https hudsonjameson com 2017 06 27 accounts transactions gas ethereum ethereum improvement proposals https eips ethereum org important eips and ercs https github com ethereumbook ethereumbook blob develop appdx standards eip erc asciidoc table of most important eips and ercs eip list https github com ethereum eips security ethereum smart contract security best practices https consensys github io smart contract best practices chinese version https github com consensys smart contract best practices blob master readme zh md onward with ethereum smart contract security https blog zeppelin solutions onward with ethereum smart contract security 97a827e47702 the hitchhiker s guide to smart contracts in ethereum https blog zeppelin solutions the hitchhikers guide to smart contracts in ethereum 848f08001f05 openzeppelin https docs openzeppelin com openzeppelin openzeppelin contracts https github com openzeppelin openzeppelin contracts doc https docs openzeppelin com contracts 2 x openzepplin sdk https github com openzeppelin openzeppelin sdk token erc20 https github com ethereum eips blob master eips eip 20 md impl https github com openzeppelin openzeppelin contracts tree master contracts token erc20 erc721 https github com ethereum eips blob master eips eip 721 md impl https github com openzeppelin openzeppelin contracts tree master contracts token erc721 utils ethereum blockchain explorer https etherscan io eth gas station https ethgasstation info eth network status https ethstats net eea enterprise ethereum private blockchain for enterprises https 101blockchains com enterprise ethereum what is enterprise ethereum https 101blockchains com enterprise ethereum 1 what is the enterprise ethereum alliance https 101blockchains com enterprise ethereum 2 benefits of enterprise ethereum https 101blockchains com enterprise ethereum 3 architecture stack of the enterprise ethereum blockchain https 101blockchains com enterprise ethereum 4 what are the possible enterprise ethereum use cases https 101blockchains com enterprise ethereum 5 ethereum blockchain as a service providers https 101blockchains com enterprise ethereum 6 real world companies using enterprise ethereum https 101blockchains com enterprise ethereum 7 final words https 101blockchains com enterprise ethereum 8 consortium blockchain theory the byzantine generals problem https people eecs berkeley edu luca cs174 byzantine pdf practical byzantine fault tolerance http pmg csail mit edu papers osdi99 pdf is consortium blockchain better http www infoq com cn news 2018 10 is consortium blockchain better 5 consortium blockchain comparison http www infoq com cn articles 5 consortium blockchain comparison quick version https upload images jianshu io upload images 11336404 f753396df0e930c8 jpg imagemogr2 auto orient strip 7cimageview2 2 w 1240 fisco bcos vs fabric http www infoq com cn news 2018 09 uncover consortium blockchain implement a consortium blockchain using ethereum building a private ethereum consortium https www microsoft com developerblog 2018 06 01 creating private ethereum consortium kubernetes deploying a private ethereum blockchain to microsoft azure cloud https www youtube com watch v hsconsfazg8 ethereum consortium network deployments made easy https github com catalystcode ibera ethereum consortium blockchain network how to set up a private ethereum blockchain in 20 minutes https arctouch com blog how to set up ethereum blockchain hyperledger img src https www hyperledger org wp content uploads 2018 03 hyperledger fabric logo color png align right width 120 https www hyperledger org projects fabric hyperledger org https wiki hyperledger org fabric fabric org https wiki hyperledger org display fabric fabric design documents https wiki hyperledger org display fabric design documents fabric wiki https hyperledger fabric readthedocs io en latest 1 4 en https hyperledger fabric readthedocs io en release 1 4 zn https hyperledger fabric readthedocs io zh cn release 1 4 release https hyperledger fabric readthedocs io downloads en release 1 4 pdf 2 2 en https hyperledger fabric readthedocs io en release 2 2 zn https hyperledger fabric readthedocs io zh cn release 2 2 fabric source code analyse https yeasy gitbook io hyperledger code fabric overview a kafka based ordering service for fabric https docs google com document d 19jihmw 8bltzn99laubofseluzqdrb6sbr0hsrgcany edit explorer explorer proposal https docs google com document d 1guvnhz5jqq gtvkflnz1yijfeoozvugqenc6qeqfqj4 edit explorer doc https blockchain explorer readthedocs io en master architecture index html ibm opentech hyperledger fabric 1 4 lts course https space bilibili com 102734951 channel detail cid 69148 edx introduction to hyperledger blockchain technologies free course https www edx org course introduction to hyperledger blockchain technologie xuperchain https github com xuperchain xuperchain img src https avatars3 githubusercontent com u 43258643 s 200 v 4 align right width 80 https xchain baidu com xuperchain the first open source project of xuperchain lab introduces a highly flexible blockchain architecture with great transaction performance xuperchain is the underlying solution for union networks with following highlight features high performance creative xupermodel technology makes contract execution and verification run parallelly tdpos https xuperchain readthedocs io zh latest design documents xpos html ensures quick consensus in a large scale network wasm vm using aot technology solid security contract account protected by multiple private keys ensures assets safety flexible authorization system https xuperchain readthedocs io zh latest design documents permission model html supports weight threshold ak sets and could be easily extended high scalability robust p2p https xuperchain readthedocs io zh latest design documents p2p html network supports a large scale network with thousands of nodes branch management on ledger makes automatic convergence consistency and supports global deployment multi language support support pluggable multi language contract vm using xuperbridge https xuperchain readthedocs io zh latest design documents xuperbridge html technology flexibility modular and pluggable design provides high flexibility for users to build their blockchain solutions for various business scenarios baidu blockchain engine https cloud baidu com product bbe html homepage https xchain baidu com doc https xuperchain readthedocs io zh latest index html wiki https github com xuperchain xuperchain wiki english version https github com xuperchain xuperchain wiki wiki in english getting start https github com xuperchain xuperchain wiki 3 getting started account operation https xuperchain readthedocs io zh latest advanced usage contract accounts html multiple nodes deployment https xuperchain readthedocs io zh latest advanced usage multi nodes html wasm contract https xuperchain readthedocs io zh latest advanced usage create contracts html proposal https xuperchain readthedocs io zh latest advanced usage initiate proposals html parallel chain https xuperchain readthedocs io zh latest advanced usage parallel chain html sdk go sdk https github com xuperchain xuper java sdk javascript sdk https github com xuperchain xuper sdk js java sdk https github com xuperchain xuper python sdk python sdk https github com xuperchain xuper python sdk detailed faqs https xuperchain readthedocs io zh latest faqs html comparation with fabric and ethereum https github com xuperchain xuperchain wiki e9 99 84 e8 af 84 e6 b5 8b e6 95 b0 e6 8d ae e5 af b9 e6 af 94 fisco bcos https github com fisco bcos wiki releated tools solidity doc https solidity readthedocs io en develop index html chinese version https solidity cn readthedocs io zh develop truffle blockchain kickstarter from scratch https prasannabrabourame medium com blockchain kickstarter from scratch 9a3906596cd0 web3 js doc https web3js readthedocs io en 1 0 chinese version http web3 tryblockchain org web3 js api refrence html implementation of blockchain ats functional blockchain https beta observablehq com galletti94 functional blockchain c programming the blockchain in c https programmingblockchain gitbooks io programmingblockchain crystal write your own blockchain and pow algorithm using crystal https medium com bradford hamilton write your own blockchain and pow algorithm using crystal d53d5d9d0c52 c blockchain from scratch https github com openblockchains awesome blockchains tree master blockchain cpp go building blockchain in go https github com jeiwan blockchain go chinese version 1 https github com liuchengxu blockchain tutorial blob master content part 1 basic prototype md chinese version 2 https zhangli1 gitbooks io dummies for blockchain content part 1 basic prototype https jeiwan net posts building blockchain in go part 1 part 2 proof of work https jeiwan net posts building blockchain in go part 2 part 3 persistence and cli https jeiwan net posts building blockchain in go part 3 part 4 transactions 1 https jeiwan net posts building blockchain in go part 4 part 5 addresses https jeiwan net posts building blockchain in go part 5 part 6 transactions 2 https jeiwan net posts building blockchain in go part 6 part 7 network https jeiwan net posts building blockchain in go part 7 go building a simple blockchain with go https www codementor io codehakase building a simple blockchain with go k7crur06v go code your own blockchain in less than 200 lines of go https medium com mycoralhealth code your own blockchain in less than 200 lines of go e296282bcffc go code your own blockchain mining algorithm in go https medium com mycoralhealth code your own blockchain mining algorithm in go 82c6a71aba1f go gocoin a full bitcoin solution written in go language golang https github com piotrnar gocoin go gochain a basic implementation of blockchain in go https github com crisadamo gochain go having fun implementing a blockchain using golang https github com izqui blockchain go naivechain a naive and simple implementation of blockchains https github com kofj naivechain java creating your first blockchain with java https medium com programmers blockchain create simple blockchain java tutorial from scratch 6eeed3cb03fa java write a blockchain with java https www jianshu com p afd8c465c91a javascript a cryptocurrency implementation in less than 1500 lines of code https github com conradoqg naivecoin javascript a web based demonstration of blockchain concepts https github com anders94 blockchain demo javascript build your own blockchain in javascript https github com nambrot blockchain in js javascript code for blockchain demo https github com seanjameshan blockchain javascript creating a blockchain with javascript https github com savjeetutorials savjeecoin javascript how to launch your own production ready cryptocurrency https hackernoon com how to launch your own production ready cryptocurrency ab97cb773371 javascript learn build a javascript blockchain https medium com digital alchemy holdings learn build a javascript blockchain part 1 ca61c285821e javascript node js blockchain imlementation brewchain chain websockets http server http www darrenbeck co uk blockchain nodejs nodejscrypto javascript writing a tiny blockchain in javascript https www savjee be 2017 07 writing tiny blockchain in javascript part 1 implementing a basic blockchain https www savjee be 2017 07 writing tiny blockchain in javascript part 2 implementing proof of work https www savjee be 2017 09 implementing proof of work javascript blockchain part 3 transactions mining rewards https www savjee be 2018 02 transactions and mining rewards part 4 signing transactions https www savjee be 2018 10 signing transactions blockchain javascript kotlin let s implement a cryptocurrency in kotlin https medium com vasilyf lets implement a cryptocurrency in kotlin part 1 blockchain 8704069f8580 python a practical introduction to blockchain with python http adilmoujahid com posts 2018 03 intro blockchain bitcoin python python build your own blockchain a python tutorial http ecomunsing com build your own blockchain python learn blockchains by building one https hackernoon com learn blockchains by building one 117428612f46 python let s build the tiniest blockchain https medium com crypto currently lets build the tiniest blockchain e70965a248b python write your own blockchain https bigishdata com 2017 10 17 write your own blockchain part 1 creating storing syncing displaying mining and proving work part 1 creating storing syncing displaying mining and proving work https bigishdata com 2017 10 17 write your own blockchain part 1 creating storing syncing displaying mining and proving work part 2 syncing chains from different nodes https bigishdata com 2017 10 27 build your own blockchain part 2 syncing chains from different nodes part 3 nodes that mine https bigishdata com 2017 11 02 build your own blockchain part 3 writing nodes that mine part 4 1 bitcoin proof of work difficulty explained https bigishdata com 2017 11 13 how to build a blockchain part 4 1 bitcoin proof of work difficulty explained part 4 2 ethereum proof of work difficulty explained https bigishdata com 2017 11 21 how to build your own blockchain part 4 2 ethereum proof of work difficulty explained ruby lets build a blockchain https github com haseeb qureshi lets build a blockchain ruby programming blockchains step by step manuscripts book edition https github com yukimotopress programming blockchains step by step scala how to build a simple actor based blockchain https medium freecodecamp org how to build a simple actor based blockchain aac1e996c177 typescript naivecoin a tutorial for building a cryptocurrency https lhartikk github io minimal working blockchain https lhartikk github io jekyll update 2017 07 14 chapter1 html proof of work https lhartikk github io jekyll update 2017 07 13 chapter2 html transactions https lhartikk github io jekyll update 2017 07 12 chapter3 html wallet https lhartikk github io jekyll update 2017 07 11 chapter4 html transaction relaying https lhartikk github io jekyll update 2017 07 10 chapter5 html wallet ui and blockchain explorer https lhartikk github io jekyll update 2017 07 09 chapter6 html typescript naivecoinstake a tutorial for building a cryptocurrency with the proof of stake consensus https naivecoinstake learn uno explore blockchain oss libraries packages source code cloud functions and apis https kandi openweaver com explore blockchain projects and applications img src https raw githubusercontent com jpmorganchase quorum master logo png align right width 80 https github com jpmorganchase quorum quorum quorum is an ethereum based distributed ledger protocol with transaction contract privacy and new consensus mechanisms quorum is a fork of go ethereum https github com ethereum go ethereum and is updated in line with go ethereum releases key enhancements over go ethereum privacy quorum supports private transactions and private contracts through public private state separation and utilises peer to peer encrypted message exchanges see constellation https github com jpmorganchase constellation and tessera https github com jpmorganchase tessera for directed transfer of private data to network participants alternative consensus mechanisms with no need for pow pos in a permissioned network quorum instead offers multiple consensus mechanisms that are more appropriate for consortium chains raft based consensus a consensus model for faster blocktimes transaction finality and on demand block creation istanbul bft a pbft inspired consensus algorithm with transaction finality by amis peer permissioning node peer permissioning using smart contracts ensuring only known parties can join the network higher performance quorum offers significantly higher performance than public geth img src https avatars3 githubusercontent com u 7450663 s 460 v 4 align right width 80 https github com monero project monero monero monero is a private secure untraceable decentralised digital currency you are your bank you control your funds and nobody can trace your transfers unless you allow them to do so privacy monero uses a cryptographically sound system to allow you to send and receive funds without your transactions being easily revealed on the blockchain the ledger of transactions that everyone has this ensures that your purchases receipts and all transfers remain absolutely private by default security using the power of a distributed peer to peer consensus network every transaction on the network is cryptographically secured individual wallets have a 25 word mnemonic seed that is only displayed once and can be written down to backup the wallet wallet files are encrypted with a passphrase to ensure they are useless if stolen untraceability by taking advantage of ring signatures a special property of a certain type of cryptography monero is able to ensure that transactions are not only untraceable but have an optional measure of ambiguity that ensures that transactions cannot easily be tied back to an individual user or computer getmonero org https getmonero org the official monero website lab getmonero org https lab getmonero org the official research group of monero rpc documentation https getmonero org resources developer guides daemon rpc html rpc documentation of the monero daemon wallet documentation https getmonero org resources developer guides wallet rpc html wallet documentation of the monero daemon cryptonote whitepaper https cryptonote org whitepaper pdf white paper of cryptonote the family of crypto currencies of monero review of the cryptonote white paper https downloads getmonero org whitepaper review pdf by the research lab of monero cryptonote standards https cryptonote org cns the 10 cryptonote standards equivalent to bips for bitcoin how to get started https github com monero project monero compiling monero from source roadmap https www getmonero org resources roadmap what is monero most comprehensive guide https blockgeeks com guides monero chinese version https github com liuchengxu blockchain tutorial blob master content monero what is monero md more resouces extension monero md img src https avatars0 githubusercontent com u 20126597 s 200 v 4 align right width 80 https github com iotaledger iota iota is a revolutionary new transactional settlement and data integrity layer for the internet of things it s based on a new distributed ledger architecture the tangle which overcomes the inefficiencies of current blockchain designs and introduces a new way of reaching consensus in a decentralized peer to peer system for the first time ever through iota people can transfer money without any fees this means that even infinitesimally small nanopayments can be made through iota iota is the missing puzzle piece for the machine economy to fully emerge and reach its desired potential we envision iota to be the public permissionless backbone for the internet of things that enables true interoperability between all devices iota https iota org next generation blockchain whitepaper https iota org iota whitepaper pdf the tangle chinese version http www iotachina com wp content uploads 2016 11 2016112902003453 pdf wikipedia https en wikipedia org wiki iota distributed ledger technology a primer on iota https blog iota org a primer on iota with presentation e0a6eb2cc621 a primer on iota with presentation iota china http iotachina com iota china iota italia http iotaitalia com iota italia iota korea http blog naver com iotakorea iota iota japan http lhj hatenablog jp entry iota iota iota on reddit https www reddit com r iota how to get started https github com iotaledger iri how to get started roadmap https www iota org research roadmap iota transactions confirmation and consensus https github com noneymous iota consensus presentation chinese version https github com liuchengxu blockchain tutorial blob master content iota iota consensus v1 0 md more resouces extension iota md img src https static eos io images landing sectiontokensale eos spinning logo gif align right width 80 https github com eosio eos eos eosio is software that introduces a blockchain architecture designed to enable vertical and horizontal scaling of decentralized applications the eosio software this is achieved through an operating system like construct upon which applications can be built the software provides accounts authentication databases asynchronous communication and the scheduling of applications across multiple cpu cores and or clusters the resulting technology is a blockchain architecture that has the potential to scale to millions of transactions per second eliminates user fees and allows for quick and easy deployment of decentralized applications for more information please read the eos io technical white paper https github com eosio documentation blob master technicalwhitepaper md eos wiki https github com eosio eos wiki high level eos software overview technical white paper https github com eosio documentation blob master technicalwhitepaper md eos io technical white paper v2 eos an introduction black edition http iang org papers eos an introduction black edition pdf ian grigg s whitepaper eosio developer portal https developers eos io official eosio developer portal with docs apis etc how to get started https developers eos io eosio home roadmap https github com eosio documentation blob master roadmap md tools https github com yjjnls awesome blockchain blob master extension eos md tools language support https github com yjjnls awesome blockchain blob master extension eos md language support img src https avatars2 githubusercontent com u 10536621 s 200 v 4 align right width 80 https github com ipfs ipfs ipfs the interplanetary file system https github com ipfs faq issues 76 is a new hypermedia distribution protocol addressed by content and identities ipfs enables the creation of completely distributed applications it aims to make the web faster safer and more open ipfs is a distributed file system that seeks to connect all computing devices with the same system of files in some ways this is similar to the original aims of the web but ipfs is actually more similar to a single bittorrent swarm exchanging git objects you can read more about its origins in the paper ipfs content addressed versioned p2p file system https github com ipfs ipfs blob master papers ipfs cap2pfs ipfs p2p file system pdf raw true ipfs is becoming a new major subsystem of the internet if built right it could complement or replace http it could complement or replace even more it sounds crazy it is crazy white paper https github com ipfs papers raw master ipfs cap2pfs ipfs p2p file system pdf academic papers on ipfs chinese version https gguoss github io 2017 05 28 ipfs specs https github com ipfs specs specifications on the ipfs protocol notes https github com ipfs notes various relevant notes and discussions that do not fit elsewhere img src https camo githubusercontent com 651f7045071c78042fec7f5b9f015e12589af6d5 68747470733a2f2f697066732e696f2f697066732f516d514a363850464d4464417367435a76413155567a7a6e3138617356636637485676434467706a695343417365 align right width 200 https github com ipfs reading list https github com ipfs reading list papers to read to understand ipfs protocol implementations https github com ipfs ipfs protocol implementations http client libraries https github com ipfs ipfs http client libraries roadmap https github com ipfs roadmap more resouces extension ipfs md filecoin https filecoin io white paper https filecoin io filecoin pdf chinese version http chainx org paper index index id 13 html polybase https polybase xyz white paper https framerusercontent com modules assets grv4t0d6jqojbio7zofgonnxqm f7glgr1ypwfk85uvr8su7mxe 3b6vkizw94srev8jj4 pdf docs https github com polybase docs bigchaindb https www bigchaindb com white paper https www bigchaindb com whitepaper chinese version http blog csdn net fengqing79 article details 70154076 bitshares white paper chinese version https www 8btc com article 3369 arcblock blockchain developer platform https www arcblock io white paper https www arcblock io en whitepaper latest img src https raw githubusercontent com petrosdemetrakopoulos ethairballoons master logo official png align right width 100 https github com petrosdemetrakopoulos ethairballoons ethair balloons https github com petrosdemetrakopoulos ethairballoons a strictly typed orm library for ethereum blockchain it allows developers to use ethereum blockchain as a persistent storage in an organized and model oriented way without writing custom complex smart contracts further extension papers https github com decrypto org blockchain papers books blockchain guide https yeasy gitbooks io blockchain guide content by baohua yang 2017 introduce blockchain related technologies from theory to practice with bitcoin ethereum and hyperledger https github com yjjnls books blob master block 20chain e5 8c ba e5 9d 97 e9 93 be e5 8e 9f e7 90 86 e3 80 81 e8 ae be e8 ae a1 e4 b8 8e e5 ba 94 e7 94 a8 pdf blockchain from digital currency to credit society https github com yjjnls books blob master block 20chain e5 8c ba e5 9d 97 e9 93 be 20 e4 bb 8e e6 95 b0 e5 ad 97 e8 b4 a7 e5 b8 81 e5 88 b0 e4 bf a1 e7 94 a8 e7 a4 be e4 bc 9a pdf attack of the 50 foot blockchain bitcoin blockchain ethereum smart contracts https davidgerard co uk blockchain table of contents by david gerard london 2017 what is a bitcoin the bitcoin ideology the incredible promises of bitcoin early bitcoin the rise to the first bubble how bitcoin mining centralised who is satoshi nakamoto spending bitcoins in 2017 trading bitcoins in 2017 the second crypto bubble altcoins smart contracts stupid humans business bafflegab but on the blockchain case study why you can t put the music industry on a blockchain mastering bitcoin programming the open blockchain https github com bitcoinbook bitcoinbook blob develop ch09 asciidoc 2nd edition by andreas m antonopoulos 2017 free online source version what is bitcoin how bitcoin works bitcoin core the reference implementation keys addresses wallets transactions advanced transactions and scripting the bitcoin network the blockchain mining and consensus bitcoin security blockchain applications programming blockchains in ruby from scratch step by step starting w crypto hashes beta rough draft https github com yukimotopress programming blockchains step by step by gerald bauer et al 2018 free online version crypto hash crypto block crypto block with proof of work blockchain blockchain blockchain blockchain broken timestamping mining mining mining what s your hash rate bitcoin bitcoin bitcoin crypto block with transactions tx programming cryptocurrencies and blockchains in ruby beta rough draft http yukimotopress github io blockchains by gerald bauer et al 2018 free online version yuki moto press bookshelf digital alchemy what s a blockchain how to turn digital bits into or decentralize payments decentralize transactions decentralize blockchains the proof of the pudding is the bitcoin btc blockchain s building blockchains from scratch a blockchain in ruby in 20 lines a blockchain is a data structure what about proof of work what about consensus find the lucky number nonce number used once adding transactions the world s worst database bitcoin blockchain mining tulips on the blockchain adding transactions blockchain lite basic blocks proof of work blocks transactions merkle tree build your own crypto hash trees grow your own money on trees what s a merkle tree transactions central bank run your own federated central bank nodes on the blockchain peer to peer over http inside mining printing cryptos cryptos cryptos on the blockchain awesome crypto case studies dutch gulden shilling cryptokitties and cryptocopycats blockchain for dummies ibm limited edition https www ibm com blockchain what is blockchain html by manav gupta 2017 free digital download w email grasping blockchain fundamentals taking a look at how blockchain works propelling business with blockchains blockchain in action use cases hyperledger a linux foundation project ten steps to your first blockchain application get rich quick business blockchain bible the secrets of free easy money https github com bitsblocks get rich quick bible 2018 free step 1 sell hot air how step 2 pump up your tokens how step 3 revolutionize the world how mastering ethereum building contract services and decentralized apps on the blockchain https github com ethereumbook ethereumbook by andreas m antonopoulos gavin wood 2018 free online source version what is ethereum introduction ethereum clients ethereum testnets keys and addresses wallets transactions contract services tokens oracles accounting gas evm ethereum virtual machine consensus devp2p peer to peer protocol dev tools and frameworks decentralized apps ethereum standards eips ercs building decentralized apps on the ethereum blockchain https www manning com books building ethereum dapps by roberto infante 2018 free chapter 1 understanding decentralized applications the ethereum blockchain building contract services in javascript like solidity running contract services on the ethereum blockchain developing ethereum decentralized apps with truffle best design and security practice best of bitcoin maximalist scammers morons clowns shills baghodlers inside the new new crypto ponzi economics https github com bitsblocks bitcoin maximalist 2018 free crypto facts decentralize payments efficient low cost fair clean true or false https github com bitsblocks crypto facts 2018 free islandcoin white paper a pen and paper cash system how to run a blockchain on a deserted island https github com bitsblocks islandcoin whitepaper by tal kol motivation consensus transaction and block specification transaction format block format genesis block references blockchain in action https www manning com books blockchain in action by bina ramamurthy early access learn how blockchain differs from other distributed systems smart contract development with ethereum and the solidity language web ui for decentralized apps identity privacy and security techniques on chain and off chain data storage permissioned blockchains in action https www manning com books permissioned blockchains in action by mansoor ahmed rengers marta piekarska geater early access a guide to creating innovative applications using blockchain technology writing smart contracts and distributed applications using solidity configuring dlt networks designing blockchain solutions for specific use cases identity management in permissioned blockchains networks programming hyperledger fabric https www amazon com dp 0578802228 by siddharth jain a guide to developing blockchain applications for enterprise use cases where fabric fits in to the blockchain landscape the ins and outs of deploying real world applications developing smart contracts and client applications in node debugging and troubleshooting securing production applications self sovereign identity https www manning com books self sovereign identity by alex preukschat and drummond reed in self sovereign identity decentralized digital identity and verifiable credentials you ll learn how ssi empowers us to receive digitally signed credentials store them in private wallets and securely prove our online identities applications identity applications public blockchain identity awesome name services https github com scio labs awesome name services awesome list curating all decentralized domain name services dns blockstack https blockstack org platform for decentralized server less apps where users control their data identity included evernym http www evernym com self sovereign identity built on top of open source permissioned blockchain jolocom https jolocom com self sovereing identity wallet sin https en bitcoin it wiki identity protocol v1 proposed identity protocol for bitcoin uport https www uport me self sovereign identity on ethereum https ethereum org by consensys https consensys net blockchain as a collateral shocard https shocard com proprietary digital identity service uses blockchain for time stamping and secure documents exchange tradle https tradle io makes a bank on blockchain identity as a collateral unclear kyc chain http kyc chain com secure platform for sharing verifiable identity claims data or documents among financial institutions objectchain collab http www objectchain collab com cross industry collaboration over distributed identity uniquid http uniquid com identity both for people and devices vida identity https vidaidentity com enterprise grade blockchain identity software guidance id3 https idcubed org institute for data driven design explores issues around self sovereign identity and distributed organizations opencreds http opencreds org w3c credentials community group tao network identity http tao network portfolio item the identity system description of blockchain identity by tao network internet of things applications chronicled http www chronicled com iot devices registry on blockchain filament http filament com software and hardware for decentralized intranet of things systems iota http www iotatoken com decentralized internet of things token on blockless blockchain machinomy http machinomy com distributed platform for iot micropayments project oaken https www projectoaken com iot blockchain platform slock it https slock it ethereum based platform for building shared things energy applications bankymoon http bankymoon co za blockchain consultancy presented http goo gl l6vjbx bitcoin topped smart electricity meter once topped up it chooses a plan and starts moving energy co tricity https co tricity com decentralised energy marketplace by innogy https innovationhub innogy com and consensys https consensys net electron http www electron org uk reinventing energy on blockchain gridsingularity http gridsingularity com blockchain for smart grid declare three years of work on the technology lo3 energy http lo3energy com energy services product research development makers of brooklyn microgrid http brooklynmicrogrid com along with consensys https consensys net lumo https lumoenergy com au energy provider experiment with blockchain powerledger https powerledger io decentralised energy marketpace powerpeers https www powerpeers nl peer to peer energy marketplace in the netherlands solar change http www solarchange co makers of solar coin http solarcoin org altcoin for a mw of solar power terraledger https terraledger com provider of renewable energy certificates impactppa https impactppa com reinvesting of power generated under power purchase agreement in more ppas media and journalism steem https steem io decentralized social network which incentivises content creation and curation popchest https popchest com incentivized distributed video platform civil https joincivil com decentralized newsmaking platform defi decentralised finance uniswap https uniswap org decentralized exchange powered by the automated market maker model amm compound https compound finance decentralized lending and borrowing 1inch exchange https 1inch exchange get the best rates among multiple dexes synthetix https synthetix io protocol for synthetic assets tools defi dashboard https debank com portfolio tracker project lists rankings etc zapper https zapper fi dashboard for viewing and managing your defi investments furucombo https furucombo app easily create flashloans without writing a single line of code covalent https www covalenthq com an unified api bringing visibility to billions of blockchain data points roadmaps blockchain developer roadmap https roadmap sh blockchain roadmap to become a blockchain developer contribute contributions welcome 1 fork it https github com yjjnls awesome blockchain fork 2 clone it git clone https github com yjjnls awesome blockchain 3 create your feature branch git checkout b your branch name 4 commit your changes git commit m description of a commit 5 push to the branch git push origin your branch name 6 create a new pull request if you found this resource helpful give it a otherwise contribute to it and give it a
ethereum bitcoin blockchain fabric awesome eos awesome-list monero iota eosio ipfs white-paper digital-currency mastering-bitcoin mastering-ethereum pow pos dpos pbft bulletproofs
blockchain
Blockchain-stuff
blockchain stuff curated list of blockchain and crytocurrency resources in general contents blockchain blockchain books blockchain books blockchain white papers blockchain white papers bitcoin books bitcoin ethereum and smart contracts ethereum and smart contracts videos videos youtube channels youtube channels blockchain books the business blockchain promise practice and application of the next internet technology https www amazon com fintech book technology entrepreneurs visionaries dp 111921887x ref pd bxgy 14 img 3 encoding utf8 pd rd i 111921887x pd rd r z5zrqn8rg5teqtmkyha9 pd rd w qigxn pd rd wg wzm9d psc 1 refrid z5zrqn8rg5teqtmkyha9 william mougayar the fintech book the financial technology handbook for investors entrepreneurs and visionaries https www amazon com fintech book technology entrepreneurs visionaries dp 111921887x ref pd bxgy 14 img 3 encoding utf8 pd rd i 111921887x pd rd r z5zrqn8rg5teqtmkyha9 pd rd w qigxn pd rd wg wzm9d psc 1 refrid z5zrqn8rg5teqtmkyha9 susanne chishti and janos barberis blockchain revolution how the technology behind bitcoin is changing moneybusiness and the world https www amazon com blockchain revolution technology changing business dp 1101980133 ref pd sim 14 11 encoding utf8 pd rd i 1101980133 pd rd r kf66s03s94p6cmsn0k29 pd rd w dibne pd rd wg jrgou psc 1 refrid kf66s03s94p6cmsn0k29 don and alextapscott valueweb how fintech firms are using mobile and blockchain technologies to create the internet of value https www amazon com valueweb fintech blockchain technologies internet dp 9814677175 ref pd sim 14 10 encoding utf8 pd rd i 9814677175 pd rd r bcchstjwge32h74xn9gz pd rd w 2ygdw pd rd wg ub9kn psc 1 refrid bcchstjwge32h74xn9gz chris skinner the fourth industrial revolution https www amazon com fourth industrial revolution klaus schwab dp 1944835008 ref sr 1 1 s books ie utf8 qid 1476984488 sr 1 1 keywords the fourth industrial revolution prof klaus schwab blockchain blueprint for a new economy https www amazon com blockchain blueprint economy melanie swan dp 1491920491 ref pd sim 14 3 encoding utf8 pd rd i 1491920491 pd rd r 3kqxc5rxym1r64cdq0dw pd rd w yggzx pd rd wg udr6c psc 1 refrid 3kqxc5rxym1r64cdq0dw melanie swan bye bye banks how retail banks are being displaced diminished and disintermediated by tech startups and what they can do to survive https www amazon com bye banks displaced diminished disintermediated dp 0993220649 ref sr 1 1 ie utf8 qid 1476986040 sr 8 1 keywords bye bye banks 3f james haycock how to program a block chain explorer with python and bitcoin https www amazon com program block explorer python bitcoin ebook dp b014b6890g ref sr 1 1 s books ie utf8 qid 1476984581 sr 1 1 keywords how to program a block chain explorer with python and bitcoin alex gorale blockchain the comprehensive guide to mastering the hidden economy https www amazon com blockchain comprehensive mastering technology financial dp 1537272039 ref pd sim 14 9 encoding utf8 pd rd i 1537272039 pd rd r d7a8braqa9gnyqyes830 pd rd w 76sme pd rd wg scgv1 psc 1 refrid d7a8braqa9gnyqyes830 timothy short blockchain the ultimate guide to understanding the hidden economy https www amazon com blockchain ultimate understanding hidden economy dp 1534839720 ref pd sim 14 5 encoding utf8 pd rd i 1534839720 pd rd r 6w5m79gd2jfecezdhpjf pd rd w 19drm pd rd wg dms0s psc 1 refrid 6w5m79gd2jfecezdhpjf oscar flynt blockchain revolution the ultimate guide to mastering bitcoin and how to use blockchain for your benefit https www amazon com blockchain revolution technology changing business dp 1101980133 ref pd bxgy 14 img 3 encoding utf8 pd rd i 1101980133 pd rd r jmghcb5wb1sfp0hymk6e pd rd w uheeo pd rd wg cburt psc 1 refrid jmghcb5wb1sfp0hymk6e phil stein blockchain fast and simple what it is how it works why it matters understand the basics join the revolution https www amazon com blockchain fast simple understand revolution ebook dp b01m1j671w ref sr 1 1 s books ie utf8 qid 1476984683 sr 1 1 keywords blockchain fast and simple what it is 2c how it works 2c why it matters 3a understand the basics 2c join the revolution pierro martini the science of the blockchain https www amazon com science blockchain inverted forest publishing dp 1522751831 ref pd sim 14 10 encoding utf8 pd rd i 1522751831 pd rd r ff7d9xvt7epcacxh29z8 pd rd w jxbsj pd rd wg pcc0z psc 1 refrid ff7d9xvt7epcacxh29z8 roger wattenhofer decentralized applications harnessing bitcoin s blockchain technology https www amazon com decentralized applications harnessing blockchain technology dp 1491924543 ref pd sim 14 3 encoding utf8 pd rd i 1491924543 pd rd r 7xn6ajy2px75qdztzapm pd rd w zdhwi pd rd wg oq9te psc 1 refrid 7xn6ajy2px75qdztzapm siraj raval blockchain the simple guide to everything you need to know https www amazon com blockchain simple guide everything need dp 1533161577 ref pd sim 14 23 encoding utf8 pd rd i 1533161577 pd rd r 26rqgpjbs5v65wxkfs9z pd rd w djmvn pd rd wg e1guu psc 1 refrid 26rqgpjbs5v65wxkfs9z jacob william blockchain explained a technology guide to the bitcoin and cryptocurrency fintech revolution https www amazon com blockchain explained technology cryptocurrency revolution dp 1535315946 ref pd sim 14 5 encoding utf8 pd rd i 1535315946 pd rd r 615dfbpatqx6gx4rbpwp pd rd w 96va0 pd rd wg m6xmm psc 1 refrid 615dfbpatqx6gx4rbpwp r j simmons blockchain the future of internet innovation ideas applications and uses for blockchain technology https www amazon com blockchain innovation applications cryptocurrencies technological ebook dp b01g80v3o2 ref sr 1 2 ie utf8 qid 1476985977 sr 8 2 keywords blockchain contracts and cyberlaw jerry kershen financial technology this book bundle includes fintech and blockchain https www amazon com financial technology bundle fintech blockchain dp 1533477299 ref pd sim 14 3 encoding utf8 pd rd i 1533477299 pd rd r d7a8braqa9gnyqyes830 pd rd w 76sme pd rd wg scgv1 psc 1 refrid d7a8braqa9gnyqyes830 jacob william blockchain quick start guide to understanding blockchain the biggest revolution in financial technology and beyond since the internet https www amazon com blockchain understanding revolution financial technology dp 153469093x ref pd sim 14 1 encoding utf8 pd rd i 153469093x pd rd r d7a8braqa9gnyqyes830 pd rd w 76sme pd rd wg scgv1 psc 1 refrid d7a8braqa9gnyqyes830 seth ramsey blockchain the essential guide to understanding the blockchain revolution https www amazon com blockchain essential guide understanding revolution dp 1537317504 ref pd sim 14 2 encoding utf8 pd rd i 1537317504 pd rd r n3211hrz6t4etter3my3 pd rd w i44hf pd rd wg evc6k psc 1 refrid n3211hrz6t4etter3my3 jeff reed blockchain easiest ultimate guide to understand blockchain https www amazon com blockchain understand programming contracts revolution dp 1537533371 ref pd sim 14 3 encoding utf8 pd rd i 1537533371 pd rd r 904dcpsy2qzx2vm23xqd pd rd w 3ocfl pd rd wg jjfbs psc 1 refrid 904dcpsy2qzx2vm23xqd jared norton blockchain white papers banking in a world of programmable assets accenture https www accenture com t20160509t223022 w us en acnmedia pdf 16 accenture strategy banking world of programmable assets pdf blockchain practical implications of a revolutionary technology for financial markets and beyond dla piper https www dlapiper com en uk insights events 2016 04 blockchain practical implications 11 apr 2016 a brave new world what impact will distributed ledger technology have on the financial industry the european central bank https www ecb europa eu paym pdf infocus 20160422 infocus dlt pdf distributed ledger technology beyond block chain uk government chief scientific adviser https www gov uk government uploads system uploads attachment data file 492972 gs 16 1 distributed ledger technology pdf the impact and potential of blockchain on the securities transaction lifecycle by the swift institute http www zyen com publications the 20impact 20and 20potential 20of 20blockchain 20on 20the 20securities 20transaction 20lif pdf blockchain technology beyond bitcoin university of california berkeley http scet berkeley edu wp content uploads blockchainpaper pdf consensus immutable agreement for the internet of value kpmg https assets kpmg com content dam kpmg pdf 2016 06 kpmg blockchain consensus mechanism pdf bitcoin mastering bitcoin unlocking digital cryptocurrencies https www amazon com mastering bitcoin unlocking digital cryptocurrencies dp 1449374042 ref sr 1 1 ie utf8 qid 1476978890 sr 8 1 keywords mastering bitcoin 3a unlocking digital cryptocurrencies andreas m antonopoulos digital gold the untold story of bitcoin https www amazon com digital gold bitcoin millionaires reinvent dp 0062362496 ref pd sim 14 1 encoding utf8 pd rd i 0062362496 pd rd r d7kmjcp493pph9advpcr pd rd w g5hrb pd rd wg ksfk5 psc 1 refrid d7kmjcp493pph9advpcr nathaniel popper the age of cryptocurrency how bitcoin and digital money are challenging the global economic order https www amazon com age cryptocurrency bitcoin challenging economic dp 1250065631 ref pd sim 14 6 encoding utf8 pd rd i 1250065631 pd rd r 7xn6ajy2px75qdztzapm pd rd w zdhwi pd rd wg oq9te psc 1 refrid 7xn6ajy2px75qdztzapm paul vigna and michael j casey bitcoin the future of money https www amazon com bitcoin future money dominic frisby dp 1783521023 ref pd sim 14 19 encoding utf8 pd rd i 1783521023 pd rd r kf66s03s94p6cmsn0k29 pd rd w dibne pd rd wg jrgou psc 1 refrid kf66s03s94p6cmsn0k29 dominic frisby wildcat currency wildcat currency how the virtual money revolution is transforming the economy edward castronova the bitcoin bible https www amazon com bitcoin bible gold benjamin guttmann dp 3732296962 ref pd sim 14 18 encoding utf8 pd rd i 3732296962 pd rd r kf66s03s94p6cmsn0k29 pd rd w dibne pd rd wg jrgou psc 1 refrid kf66s03s94p6cmsn0k29 benjamin guttmann virtual billions the genius the drug lord and the ivy league twins behind the rise of bitcoin https www amazon com virtual billions genius league bitcoin dp 163388144x ref sr 1 1 ie utf8 qid 1476986258 sr 8 1 keywords virtual billions 3a the genius eric geissinger the book of satoshi https www amazon com book satoshi collected writings nakamoto dp 0996061312 ref pd sim 14 8 encoding utf8 pd rd i 0996061312 pd rd r 9qb4zb20s6cy4nge029x pd rd w 2tjp2 pd rd wg vjlqc psc 1 refrid 9qb4zb20s6cy4nge029x paul champagne bitcoin for the befuddled https www amazon com bitcoin befuddled conrad barski dp 1593275730 ref pd sim 14 8 encoding utf8 pd rd i 1593275730 pd rd r kf66s03s94p6cmsn0k29 pd rd w dibne pd rd wg jrgou psc 1 refrid kf66s03s94p6cmsn0k29 conrad barski and chris wilmer bitcoin and the future of money https www amazon com bitcoin future money jose pagliery dp 1629370363 ref pd sim 14 14 encoding utf8 pd rd i 1629370363 pd rd r nhz4sy5acxyyfa2fn5pk pd rd w wi1xd pd rd wg ltnfm psc 1 refrid nhz4sy5acxyyfa2fn5pk jose pagliery the internet of money andreas m antonopoulos https www amazon com internet money andreas m antonopoulos dp 1537000454 ref pd bxgy 14 img 2 encoding utf8 pd rd i 1537000454 pd rd r xpr2xe7mnfcyab70vzdm pd rd w xn5tu pd rd wg 4sqi0 psc 1 refrid xpr2xe7mnfcyab70vzdm the bitcoin tutorial develop an intuitive understanding of the currency and blockchain technology https www amazon com bitcoin tutorial understanding blockchain technology ebook dp b01ep9sve8 ref sr 1 1 ie utf8 qid 1476986332 sr 8 1 keywords the bitcoin tutorial 3a bruce kleinman bitcoin mastering bitcoin cyptocurrency for beginners https www amazon com bitcoin mastering cyptocurrency reinventing currencies dp 153342733x ref pd sim 14 6 encoding utf8 pd rd i 153342733x pd rd r tjj3y2f85racyqsf23gz pd rd w kwflq pd rd wg kogbv psc 1 refrid tjj3y2f85racyqsf23gz tim harris bitcoin for dummies https www amazon com bitcoin dummies prypto dp 1119076137 ref pd sim 14 30 encoding utf8 pd rd i 1119076137 pd rd r 26rqgpjbs5v65wxkfs9z pd rd w djmvn pd rd wg e1guu psc 1 refrid 26rqgpjbs5v65wxkfs9z prypto bitcoin step by step for beginners how to invest and profit from bitcoin today https www amazon com bitcoin step beginners invest profit ebook dp b00k5rukee ref sr 1 1 ie utf8 qid 1476986366 sr 8 1 keywords bitcoin step by step leo kallstrom bitcoin a complete beginner s guide master the game https www amazon com bitcoin complete beginners guide master ebook dp b01ju6kd9c ref sr 1 2 ie utf8 qid 1476986332 sr 8 2 keywords the bitcoin tutorial 3a luke sutton the black book of bitcoin a step by step bitcoin guide on everything you need to know about this new currency https www amazon com black book bitcoin step step dp 1519284527 ref pd sim 14 22 encoding utf8 pd rd i 1519284527 pd rd r pmb5gabnhvfm2vhe3wbh pd rd w 6ygsw pd rd wg yvxm8 psc 1 refrid pmb5gabnhvfm2vhe3wbh mark janniro bitcoin internals a technical guide to bitcoin https www amazon com bitcoin internals technical guide ebook dp b00dg8ept0 ref sr 1 1 ie utf8 qid 1476985144 sr 8 1 keywords bitcoin internals 3a chris clark bitcoin in english https www amazon com bitcoin english understanding how works ebook dp b00x09lbx8 ref sr 1 1 ie utf8 qid 1476985191 sr 8 1 keywords bitcoin in english peter h le the anatomy of a money like informational commodity a study of bitcoin https www amazon com anatomy money like informational commodity bitcoin ebook dp b00meao7xk ref sr 1 1 ie utf8 qid 1476985224 sr 8 1 keywords the anatomy of a money tim swanson the digital money game competing in the multi trillion dollar payments industry https www amazon com digital money game competing multi trillion ebook dp b00lz3t66k ref sr 1 1 ie utf8 qid 1476985249 sr 8 1 keywords the digital money game 3a charmaine oak bit by bit how p2p is freeing the world https www amazon com bit how p2p freeing world ebook dp b00s085trs ref sr 1 1 ie utf8 qid 1476985273 sr 8 1 keywords bit by bit jeffery tucker bitcoin and cryptocurrency technologies a comprehensive introduction https www amazon com bitcoin cryptocurrency technologies comprehensive introduction dp 0691171696 ref pd sim 14 8 encoding utf8 pd rd i 0691171696 pd rd r 0chwwtbsreye58r7p0sx pd rd w gcu04 pd rd wg gzavr psc 1 refrid 0chwwtbsreye58r7p0sx arvind narayanan joseph bonneau edward felten andrew miller steven goldfeder the bitcoin tutor unlocking the secrets of bitcoin https www amazon com bitcoin tutor unlocking secrets dp 0979864917 ref pd sim 14 5 encoding utf8 pd rd i 0979864917 pd rd r qzn41aygxjscs7q32wa7 pd rd w 2i7o1 pd rd wg nbcjj psc 1 refrid qzn41aygxjscs7q32wa7 marc a carignan bitcoin basics https www amazon com bitcoin basics creating investing bitcoins dp 1508478945 ref pd sim 14 4 encoding utf8 pd rd i 1508478945 pd rd r ymypcm376h2jnj9nvb6d pd rd w 0gtr5 pd rd wg iqdc9 psc 1 refrid ymypcm376h2jnj9nvb6d benjamin tideas bitcoin decoded bitcoin beginner s guide to mining and the strategies to make money with cryptocurrencies https www amazon com bitcoin decoded beginners strategies cryptocurrencies dp 061595524x ref pd sim 14 12 encoding utf8 pd rd i 061595524x pd rd r kf66s03s94p6cmsn0k29 pd rd w dibne pd rd wg jrgou psc 1 refrid kf66s03s94p6cmsn0k29 brett combs tom mitsoff everything you need to know about buying selling and investing in bitcoin https www amazon com everything selling investing bitcoin technology dp 1493699474 ref pd sim 14 17 encoding utf8 pd rd i 1493699474 pd rd r kf66s03s94p6cmsn0k29 pd rd w dibne pd rd wg jrgou psc 1 refrid kf66s03s94p6cmsn0k29 a h smithers the bitcoin big bang how alternative currencies are about to change the world https www amazon com bitcoin big bang alternative currencies dp 1118963660 ref pd sim 14 13 encoding utf8 pd rd i 1118963660 pd rd r kf66s03s94p6cmsn0k29 pd rd w dibne pd rd wg jrgou psc 1 refrid kf66s03s94p6cmsn0k29 brian kelly anonymous cryptocurrencies the rise of bitcoin alternatives that offer true anonymity https www amazon com cryptocurrencies bitcoin alternatives offer anonymity dp 1500682586 ref pd sim 14 24 encoding utf8 pd rd i 1500682586 pd rd r pmb5gabnhvfm2vhe3wbh pd rd w 6ygsw pd rd wg yvxm8 psc 1 refrid pmb5gabnhvfm2vhe3wbh will martin understanding bitcoin cryptography engineering and economics https www amazon com understanding bitcoin cryptography engineering economics dp 1119019168 ref pd sim 14 16 encoding utf8 pd rd i 1119019168 pd rd r kf66s03s94p6cmsn0k29 pd rd w dibne pd rd wg jrgou psc 1 refrid kf66s03s94p6cmsn0k29 pedro franco ethereum and smart contracts investing in ethereum the ultimate guide to learning and profiting from cryptocurrencies https www amazon com investing ethereum learning profiting cryptocurrencies dp 153530281x ref pd sim 14 5 encoding utf8 pd rd i 153530281x pd rd r eh8vpzej5bmm540bqezw pd rd w cywq3 pd rd wg p4u9s psc 1 refrid eh8vpzej5bmm540bqezw oscar flynt ethereum a look into the world of ethereum and everything you need to know about it s trade and investment https www amazon com ethereum everything investment blockchain cryptocurrency ebook dp b01ic6nt8s ref sr 1 1 ie utf8 qid 1476984793 sr 8 1 keywords ethereum 3a a look into the world of ethereum and everything you need to know about it 27s trade and investment 21 ben abner smart contracts how to use blockchain smart contracts for cryptocurrency exchange https www amazon com smart contracts blockchain cryptocurrency exchange ebook dp b01iqjm53q ref sr 1 1 ie utf8 qid 1476984876 sr 8 1 keywords smart contracts 3a how to use blockchain oscar flynt investing in ethereum understanding cryptocurrencies for the smart investor https www amazon com investing ethereum understanding cryptocurrencies investor ebook dp b01dd6xvje ref sr 1 1 ie utf8 qid 1476985905 sr 8 1 keywords investing in ethereum 3a understanding michael k nungesser investing in ethereum the complete guide to smart investing learn how to easily profit from cryptocurrencies https www amazon com investing ethereum complete easily cryptocurrencies dp 1537677209 ref sr 1 fkmr0 1 ie utf8 qid 1476985775 sr 8 1 fkmr0 keywords ethereum 3a the complete beginners guide thomas sanders great chain of numbers a guide to smart contracts smart property and trustless asset management https www amazon com great chain numbers contracts management ebook dp b00irubmxo ref sr 1 1 ie utf8 qid 1476985949 sr 8 1 keywords great chain of numbers 3a a guide to smart contracts 2c smart property and trustless asset management tim swanson blockchain contracts and cyberlaw https www amazon com blockchain contracts cyberlaw pavan duggal ebook dp b019s2i1ce ref sr 1 1 ie utf8 qid 1476985977 sr 8 1 keywords blockchain contracts and cyberlaw pavan duggal ethereum the complete beginners guide blockchain cryptocurrencies ethereum https www amazon com s ref nb sb noss url search alias 3daps field keywords ethereum 3a the complete beginners guide ray hammond smart contracts the essential guide to using blockchain smart contracts for cryptocurrency exchange https www amazon com smart contracts essential blockchain cryptocurrency ebook dp b01lxgo7gh ref sr 1 1 ie utf8 qid 1476985747 sr 8 1 keywords smart contracts 3a the essential guide jeff reed smart contracts the ultimate guide to blockchain smart contracts learn how to use smart contracts for cryptocurrency exchange https www amazon com smart contracts ultimate blockchain cryptocurrency ebook dp b01lyk175f ref sr 1 2 ie utf8 qid 1476984876 sr 8 2 keywords smart contracts 3a how to use blockchain terry parker fintech financial technology and modern finance in the 21st century https www amazon com fintech financial technology blockchain contracts ebook dp b01mefl03w ref sr 1 1 ie utf8 qid 1476985691 sr 8 1 keywords fintech 3a financial technology and modern finance in the 21st century jeff reed the modern ethereum https www amazon com modern ethereum ryan venter ebook dp b01kirqz0s ref sr 1 1 ie utf8 qid 1476985723 sr 8 1 keywords the modern ethereum ryan venter videos rise of bitcoin 2min https vimeo com 110874487 powerful technology transforming society 6min http www youtube com watch v yivalusl9sua stopping war 1 min https www youtube com watch v eyu3tgqqtv8 quick introduction to bitcoin 5min https www youtube com watch v slfuj5n4twc xapo the history of money 5 min http youtu be ip0jcjyrew8 the story of genesis 3min http youtu be gd4llsr ik8 internet vs bitcoin 3min https www youtube com watch v s0lulpvhko4 ending the federal reserve s monopoly 6 min http vimeo com 94697840 join the bitcoin revolution 4min https www youtube com watch v 24ce5tv pgg convergex group nick colas 3min https www youtube com watch v cdvveckksxo bitcoin threatens kleptocracy 7 min http youtu be jahqtxvgxy4 defining bitcoin ownership 2 min https www youtube com watch v tanjgso16uk tedx distributing power trust eric spano 18min https www youtube com watch v wi1pbhi1fww stefan molyneux money power and politics 30min https www youtube com watch v bmlvqs9qsy morgan spurlock inside bitcoin 40 min http m disclose tv action viewvideo 198650 morgan spurlock living on bitcoin the inside man bitcoin cnn full documentary balaji srinivasan on silicon valley s ultimate exit the usa the microsoft of nations 16 min https www youtube com watch v coubchlxt6a balaji srinivasan gives a quick talk at goldman sachs 14 min https www youtube com watch v 7 vyesfsa30 youtube channels andreas antonopolous https www youtube com user aantonop andy ofiesh https www youtube com user jellybaby68 videos bitcoin embassy https www youtube com user jellybaby68 videos bitcoin foundation https www youtube com user bitcoinfoundation videos bitcoin wednesday https www youtube com channel uct po2gfqxiungwjxh6s04w videos blockchain university https www youtube com channel ucj5uhx90mzglk0lc gsmtzw videos bruce fenton first mover https www youtube com user brucefenton videos coin brief https www youtube com user coinbrief videos debitcoin https www youtube com user debitcoin videos decentral tv https www youtube com user decentraltv videos draper university https www youtube com user timothydraper videos everydaycrpto https www youtube com user cryptoeveryday videos let s talk bitcoin https www youtube com user letstalkbitcoinchan mit bitcoin club https www youtube com user mitbitcoinclub videos satoshi pollen technical https www youtube com user iamsatoshinakamoto videos sf bitcoin meetup industry https www youtube com channel ucolehokv7shwaas0zbwsv a videos texas bitcoin conference industy info technical university of nicosia msc in digital https www youtube com user mscdigitalcurrency videos wbn https www youtube com channel ucgo7fccpuylvk4lup3jagvw videos world crypto network industry info fun entertainment airbitz https www youtube com channel ucjatfo0 z9leg v7l lt2pw videos
blockchain
primer_live
primerlive p an implementation of github s a href https primer style design target blank primer design system a for phoenix liveview p p primer design provides a strong base for creating data driven applications such as rich crud applications with interactive forms p p all primerlive components accept the code class code attribute for customisations and often the code classes code struct to address inner elements a href https primer style design foundations css utilities getting started target blank primer s utility classes a allow a wide range of customisations without having to write custom styles p p primerlive components can be used in a href https github com phoenixframework phoenix live view target blank phoenix liveview pages a and regular non liveview views in phoenix applications p p forms created with a href https www ash hq org ash framework a are supported p documentation documentation at hexdocs https hexdocs pm primer live installation doc extra installation md usage doc extra usage md resources primerlive storybook and demo https primer live org source code https github com arthurclemens primer live
os
computervision-recipes
img src scenarios media logo cvbp png align right alt width 300 diff update july added support for action recognition and tracking in the new release v1 2 computer vision in recent years we ve see an extra ordinary growth in computer vision with applications in face recognition image understanding search drones mapping semi autonomous and autonomous vehicles a key part to many of these applications are visual recognition tasks such as image classification object detection and image similarity this repository provides examples and best practice guidelines for building computer vision systems the goal of this repository is to build a comprehensive set of tools and examples that leverage recent advances in computer vision algorithms neural architectures and operationalizing such systems rather than creating implementations from scratch we draw from existing state of the art libraries and build additional utility around loading image data optimizing and evaluating models and scaling up to the cloud in addition having worked in this space for many years we aim to answer common questions point out frequently observed pitfalls and show how to use the cloud for training and deployment we hope that these examples and utilities can significantly reduce the time to market by simplifying the experience from defining the business problem to development of solution by orders of magnitude in addition the example notebooks would serve as guidelines and showcase best practices and usage of the tools in a wide variety of languages these examples are provided as jupyter notebooks scenarios and common utility functions utils cv all examples use pytorch as the underlying deep learning library examples this repository supports various computer vision scenarios which either operate on a single image p align center img src scenarios media cv overview jpg height 350 alt some supported cv scenarios p as well as scenarios such as action recognition which take a video sequence as input p align center img src scenarios action recognition media action recognition2 gif example of action recognition p target audience our target audience for this repository includes data scientists and machine learning engineers with varying levels of computer vision knowledge as our content is source only and targets custom machine learning modelling the utilities and examples provided are intended to be solution accelerators for real world vision problems getting started to get started navigate to the setup guide setup md which lists instructions on how to setup the compute environment and dependencies needed to run the notebooks in this repo once your environment is setup navigate to the scenarios scenarios folder and start exploring the notebooks we recommend to start with the image classification notebooks since this introduces concepts which are also used by the other scenarios e g pre training on imagenet alternatively we support binder binder https mybinder org badge logo svg https mybinder org v2 gh patrickbue computervision recipes master filepath scenarios 2fclassification 2f01 training introduction binder ipynb which makes it easy to try one of our notebooks in a web browser simply by following this link however binder is free and as a result only comes with limited cpu compute power and without gpu support expect the notebook to run very slowly this is somewhat improved by reducing image resolution to e g 60 pixels but at the cost of low accuracies scenarios the following is a summary of commonly used computer vision scenarios that are covered in this repository for each of the main scenarios base we provide the tools to effectively build your own model this includes simple tasks such as fine tuning your own model on your own data to more complex tasks such as hard negative mining and even model deployment scenario support description classification scenarios classification base image classification is a supervised machine learning technique to learn and predict the category of a given image similarity scenarios similarity base image similarity is a way to compute a similarity score given a pair of images given an image it allows you to identify the most similar image in a given dataset detection scenarios detection base object detection is a technique that allows you to detect the bounding box of an object within an image keypoints scenarios keypoints base keypoint detection can be used to detect specific points on an object a pre trained model is provided to detect body joints for human pose estimation segmentation scenarios segmentation base image segmentation assigns a category to each pixel in an image action recognition scenarios action recognition base action recognition to identify in video webcam footage what actions are performed e g running opening a bottle and at what respective start end times we also implemented the i3d implementation of action recognition that can be found under contrib contrib tracking scenarios tracking base tracking allows to detect and track multiple objects in a video sequence over time crowd counting contrib crowd counting contrib counting the number of people in low crowd density e g less than 10 people and high crowd density e g thousands of people scenarios we separate the supported cv scenarios into two locations i base code and notebooks within the utils cv and scenarios folders which follow strict coding guidelines are well tested and maintained ii contrib code and other assets within the contrib folder mainly covering less common cv scenarios using bleeding edge state of the art approaches code in contrib is not regularly tested or maintained computer vision on azure note that for certain computer vision problems you may not need to build your own models instead pre built or easily customizable solutions exist on azure which do not require any custom coding or machine learning expertise we strongly recommend evaluating if these can sufficiently solve your problem if these solutions are not applicable or the accuracy of these solutions is not sufficient then resorting to more complex and time consuming custom approaches may be necessary the following microsoft services offer simple solutions to address common computer vision tasks vision services https docs microsoft com en us azure cognitive services computer vision are a set of pre trained rest apis which can be called for image tagging face recognition ocr video analytics and more these apis work out of the box and require minimal expertise in machine learning but have limited customization capabilities see the various demos available to get a feel for the functionality e g computer vision https azure microsoft com en us services cognitive services computer vision analyze the service can be used through api calls or through sdks available in net python java node and go languages custom vision https docs microsoft com en us azure cognitive services custom vision service home is a saas service to train and deploy a model as a rest api given a user provided training set all steps including image upload annotation and model deployment can be performed using an intuitive ui or through sdks available in net python java node and go languages training image classification or object detection models can be achieved with minimal machine learning expertise the custom vision offers more flexibility than using the pre trained cognitive services apis but requires the user to bring and annotate their own data if you need to train your own model the following services and links provide additional information that is likely useful azure machine learning service azureml https docs microsoft com azure machine learning wt mc id computervision github azureai is a service that helps users accelerate the training and deploying of machine learning models while not specific for computer vision workloads the azureml python sdk can be used for scalable and reliable training and deployment of machine learning solutions to the cloud we leverage azure machine learning in several of the notebooks within this repository e g deployment to azure kubernetes service https github com microsoft computervision recipes blob master scenarios classification 22 deployment on azure kubernetes service ipynb azure ai reference architectures https docs microsoft com en us azure architecture reference architectures ai training python models wt mc id computervision github azureai provide a set of examples backed by code of how to build common ai oriented workloads that leverage multiple cloud components while not computer vision specific these reference architectures cover several machine learning workloads such as model deployment or batch scoring build status azureml testing build type branch status branch status linux gpu master build status https dev azure com best practices computervision apis build status azureml aml unit test linux gpu branchname master https dev azure com best practices computervision build latest definitionid 41 branchname master staging build status https dev azure com best practices computervision apis build status azureml aml unit test linux gpu branchname staging https dev azure com best practices computervision build latest definitionid 41 branchname staging linux cpu master build status https dev azure com best practices computervision apis build status azureml aml unit test linux cpu branchname master https dev azure com best practices computervision build latest definitionid 37 branchname master staging build status https dev azure com best practices computervision apis build status azureml aml unit test linux cpu branchname staging https dev azure com best practices computervision build latest definitionid 37 branchname staging notebook unit gpu master build status https dev azure com best practices computervision apis build status azureml aml unit test linux nb gpu branchname master https dev azure com best practices computervision build latest definitionid 42 branchname master staging build status https dev azure com best practices computervision apis build status azureml aml unit test linux nb gpu branchname staging https dev azure com best practices computervision build latest definitionid 42 branchname staging contributing this project welcomes contributions and suggestions please see our contribution guidelines contributing md
machine-learning computer-vision deep-learning python jupyter-notebook operationalization kubernetes azure microsoft data-science tutorial artificial-intelligence image-classification image-processing similarity object-detection convolutional-neural-networks
ai
fabcar-blockchain-sample
japanese version readme ja md build status https travis ci org ibm fabcar blockchain sample svg branch master https travis ci org ibm fabcar blockchain sample fabcar blockchain sample hyperledger fabric sample fabcar on ibm blockchain platform note this developer pattern creates a blockchain network on ibm blockchain platform version 2 5 using the hyperledger fabric version 1 4 this code pattern demonstrates setting up a network on the ibm blockchain platform and deploying the fabcar smart contract on the network next we setup our application to interact with the network including identities to submit transactions on the smart contract the application is setup with a node js server using the fabric node sdk to process requests to the network and an angular client to bring up a web interface when the reader has completed this code pattern they will understand how to setup a hyperledger fabric network on ibm blockchain platform install and instantiate smart contract through the ibm blockchain platform develop a node js server with the hyperledger fabric sdk to interact with the deployed network create an angular frontend for the web app to interface with the network architecture flow p align center img src https user images githubusercontent com 8854447 72905801 17b0a100 3cff 11ea 8b4d 0cd6df807aa6 png p 1 the blockchain operator sets up the ibm blockchain platform service 2 the ibm blockchain platform enables to create a hyperledger fabric network onto a ibm cloud kubernetes service allowing to install and instantiate the fabcar smart contract on the network 3 the node js application server uses the fabric sdk to interact with the deployed network on ibm blockchain platform and creates apis for a web client 4 the angular client uses the node js application api to interact with the network 5 the user interacts with the fabcar angular web interface to update and query the blockchain ledger and state included components ibm blockchain platform https www ibm com cloud blockchain platform gives you total control of your blockchain network with a user interface that can simplify and accelerate your journey to deploy and manage blockchain components on the ibm cloud kubernetes service ibm cloud kubernetes service https www ibm com cloud container service creates a cluster of compute hosts and deploys highly available containers a kubernetes cluster lets you securely manage the resources that you need to quickly deploy update and scale applications ibm blockchain platform extension for vs code https marketplace visualstudio com items itemname ibmblockchain ibm blockchain platform is designed to assist users in developing testing and deploying smart contracts including connecting to hyperledger fabric environments featured technologies hyperledger fabric v1 4 https hyperledger fabric readthedocs io en release 1 4 is a platform for distributed ledger solutions underpinned by a modular architecture that delivers high degrees of confidentiality resiliency flexibility and scalability node js https nodejs org en is an open source cross platform javascript run time environment that executes server side javascript code express js https expressjs com is a minimal and flexible node js web application framework that provides a robust set of features for web and mobile applications angular io https angular io is a front end framework for building web applications prerequisites ibm cloud account https cloud ibm com registration target 2fdashboard 2fapps node v10 x and npm v6 x or greater https nodejs org en download vscode version 1 38 0 or greater https code visualstudio com ibm blockchain platform extension for vscode https marketplace visualstudio com items itemname ibmblockchain ibm blockchain platform running the application follow these steps to set up and run this code pattern the steps are described in detail below steps to run a local network you can find steps here run local md 1 clone the repo 1 clone the repo 2 package the smart contract 2 package the smart contract 3 create ibm cloud services 3 create ibm cloud services 4 build a network 4 build a network 5 deploy fabcar smart contract on the network 5 deploy fabcar smart contract on the network 6 connect application to the network 6 connect application to the network 7 run the application 7 run the application 1 clone the repo clone this repository in a folder your choice bash git clone https github com ibm fabcar blockchain sample git cd fabcar blockchain sample 2 package the smart contract we will use the ibm blockchain platform extension on vs code to package the fabcar smart contract open visual studio code and open the contract folder from fabcar blockchain sample repository that was cloned earlier it is important that you are opening the contract folder and not the entire fabcar blockchain sample directory otherwise you will see an error that states that it doesn t understand what programming language you are using press the f1 key to see the different vs code options choose ibm blockchain platform package open project p align center img src https user images githubusercontent com 8854447 85969156 de0e5100 b994 11ea 8764 a4ad5dcb3f01 png p click the ibm blockchain platform extension button on the left this will show the packaged contracts on top and the blockchain connections on the bottom p align center img height 500 src https user images githubusercontent com 8854447 73010107 bdd3d800 3ddf 11ea 8505 aff152d604e4 png p next right click on the packaged contract in this case select fabcar 1 0 0 to export it and choose export package choose a location on your machine and save the cds file we will use this packaged smart contract later to deploy on the ibm blockchain platform service now we will start setting up the different services required for configuring our hyperledger fabric network on the ibm cloud and for running our application using this network 3 create ibm cloud services create the ibm cloud kubernetes service https cloud ibm com kubernetes catalog cluster you can find the service in the catalog for this code pattern we can use the free cluster and give it a name note that the ibm cloud allows one instance of a free cluster which expires after 30 days note it could take 20 minutes for the ibm cloud kubernetes service setup to complete br p align center img src https user images githubusercontent com 8854447 71910506 046ad680 3140 11ea 9f4b 8bcb4d2a651b gif p br create the ibm blockchain platform https cloud ibm com catalog services blockchain platform service on the ibm cloud you can find the service in the catalog and give it a name br p align center img src https user images githubusercontent com 8854447 71910502 046ad680 3140 11ea 9853 3598b9363d91 gif p br after your kubernetes cluster is up and running you can deploy your ibm blockchain platform on the cluster again wait for the ibm cloud kubernetes service to indicate it was deployed the ibm blockchain platform service walks through few steps and finds your cluster on the ibm cloud to deploy the service on br p align center img src https user images githubusercontent com 8854447 71910501 046ad680 3140 11ea 8440 9d2fef0be426 gif p br once the blockchain platform is deployed on the kubernetes cluster you can launch the console to start configuring your blockchain network 4 build a network we will build a network as provided by the ibm blockchain platform documentation https cloud ibm com docs services blockchain howto topic blockchain ibp console build network ibp console build network this will include creating a channel with a single peer organization with its own msp and ca certificate authority and an orderer organization with its own msp and ca we will create the respective identities to deploy peers and operate nodes create your peer organization ca navigate to the b nodes b tab in the left navigation and click b add certificate authority b click b create a certificate authority b and click b next b give it a b ca display name b of org1 ca a b ca administrator enroll id b of admin and a b ca administrator enroll secret b of adminpw then click b next b review the summary and click b add certificate authority b br p align center img src https user images githubusercontent com 8854447 85798060 cf146e00 b70a 11ea 856b ef3264428fbc gif p br associate the peer organization ca admin identity in the nodes tab select the b org1 ca b once it is running indicated by the green box in the tile click b associate identity b on the ca overview panel on the side panel select the b enroll id b tab provide an b enroll id b of admin and an b enroll secret b of adminpw use the default value of org1 ca admin for the b identity display name b click b associate identity b to associate the admin identity with the b org1 ca b br p align center img src https user images githubusercontent com 8854447 85799219 dfc5e380 b70c 11ea 80a6 afccb0e526fc gif p br use peer organization ca to register the peer and org1 admin identities select the b org1 ca b certificate authority and ensure the admin identity that was created for the ca is visible in the table the next step is to register an admin for the organization org1 click on the b register user b button give an b enroll id b of org1admin and an b enroll secret b of org1adminpw set the b type b for this identity as admin specify to b use root affiliation b leave the b maximum enrollments b field blank click b next b skip the section to add attributes to this user and click b register user b repeat the process to create an identity of the peer click on the b register user b button give an b enroll id b of peer1 and an b enroll secret b of peer1pw set the b type b for this identity as peer specify to b use root affiliation b leave the b maximum enrollments b field blank click b next b skip the section to add attributes to this user and click b register user b br p align center img src https user images githubusercontent com 8854447 85800394 e35a6a00 b70e 11ea 967a f37334a685a3 gif p br create the peer organization msp definition navigate to the b organizations b tab in the left navigation and click b create msp definition b enter the b msp display name b as org1msp and the b msp id b as org1msp click b next b specify org1 ca as the b root certificate authority b click b next b select the b new identity b tab give the b enroll id b and b enroll secret b for your organization admin i e org1admin and org1adminpw respectively then give the b identity name b as org1 admin click the b generate b button to enroll this identity as the admin of your organization and add the identity to the wallet click b export b to export the admin certificates to your file system click b next b review all the information and click b create msp definition b br p align center img src https user images githubusercontent com 8854447 85800904 cbcfb100 b70f 11ea 9b95 376d9ef72caa gif p br create a peer navigate to the b nodes b tab in the left navigation and click b add peer b click b create a peer b and then click b next b give the b peer display name b as peer org1 and click b next b on the next screen select org1 ca as the b certificate authority b then give the b peer enroll id b and b peer enroll secret b as peer1 and peer1pw respectively select the b organization msp b as org1msp leave the b tls csr hostname b blank and select the highest value available in the drop down for b fabric version b i e 2 1 1 0 click b next b provide org1 admin as the b peer administrator identity b and click b next b review the summary and click b add peer b br p align center img src https user images githubusercontent com 8854447 85802117 41d51780 b712 11ea 80b1 06710ec3207d gif p br create your orderer organization ca navigate to the b nodes b tab in the left navigation and click b add certificate authority b click b create a certificate authority b and click b next b give it a b ca display name b of orderer ca a b ca administrator enroll id b of admin and a b ca administrator enroll secret b of adminpw then click b next b review the summary and click b add certificate authority b br p align center img src https user images githubusercontent com 8854447 85802348 c4f66d80 b712 11ea 801b 9f2fbbb66593 gif p br associate the orderer organization ca admin identity in the nodes tab select the b orderer ca b once it is running indicated by the green box in the tile click b associate identity b on the ca overview panel on the side panel select the b enroll id b tab provide an b enroll id b of admin and an b enroll secret b of adminpw use the default value of orderer ca admin for the b identity display name b click b associate identity b to associate the admin identity with the b orderer ca b br p align center img src https user images githubusercontent com 8854447 85802898 e2780700 b713 11ea 82c7 9ffc09686f0b gif p br use orderer organization ca to register orderer and orderer admin identities select the b orderer ca b certificate authority and ensure the admin identity that was created for the ca is visible in the table the next step is to register an admin for the organization orderer click on the b register user b button give an b enroll id b of ordereradmin and an b enroll secret b of ordereradminpw set the b type b for this identity as admin specify to b use root affiliation b leave the b maximum enrollments b field blank click b next b skip the section to add attributes to this user and click b register user b repeat the process to create an identity of the orderer click on the b register user b button give an b enroll id b of orderer and an b enroll secret b of ordererpw set the b type b for this identity as orderer specify to b use root affiliation b leave the b maximum enrollments b field blank click b next b skip the section to add attributes to this user and click b register user b br p align center img src https user images githubusercontent com 8854447 85803027 4995bb80 b714 11ea 81c7 b4b4cb2ec49d gif p br create the orderer organization msp definition navigate to the b organizations b tab in the left navigation and click b create msp definition b enter the b msp display name b as orderermsp and the b msp id b as orderermsp click b next b specify orderer ca as the b root certificate authority b click b next b select the b new identity b tab give the b enroll id b and b enroll secret b for your organization admin i e ordereradmin and ordereradminpw respectively then give the b identity name b as orderer admin click the b generate b button to enroll this identity as the admin of your organization and add the identity to the wallet click b export b to export the admin certificates to your file system click b next b review all the information and click b create msp definition b br p align center img src https user images githubusercontent com 8854447 85803287 caed4e00 b714 11ea 94e7 305880e6ba63 gif p br create an orderer navigate to the b nodes b tab in the left navigation and click b add ordering service b click b create an ordering service b and then click b next b give the b ordering service display name b as orderer and click b next b on the next screen select orderer ca as the b certificate authority b then give the b ordering service enroll id b and b ordering service enroll secret b as orderer and ordererpw respectively select the b organization msp b as orderermsp leave the b tls csr hostname b blank and select the highest value available in the drop down for b fabric version b i e 2 1 1 0 click b next b provide orderer admin as the b orderer administrator identity b and click b next b review the summary and click b add ordering service b br p align center img src https user images githubusercontent com 8854447 85803547 5ff04700 b715 11ea 934f 943ffe0439b0 gif p br add organization as consortium member on the orderer to transact navigate to the b nodes b tab and click on the b orderer b that was created under b consortium members b click b add organization b select the b existing msp id b tab from the drop down list select org1msp org1msp as this is the msp that represents the peer s organization org1 click b add organization b br p align center img src https user images githubusercontent com 8854447 85803823 105e4b00 b716 11ea 9ee3 28e0d30ffa95 gif p br create the channel navigate to the b channels b tab in the left navigation and click b create channel b click b next b give the b channel name b as mychannel select orderer from the b ordering service b drop down list click b next b under b organizations b select org1msp org1msp from the drop down list to add the organization org1 as a member of this channel click the b add b button set the permissions for this member as b operator b click b next b leave the b policy b as the default value i e 1 out of 1 click b next b select the b channel creator msp b as org1msp org1msp and the b identity b as org1 admin click b next b review the summary and click b create channel b br p align center img src https user images githubusercontent com 8854447 85804332 5a93fc00 b717 11ea 81e7 a4b6955575ee gif p br join your peer to the channel click on the newly created channel b mychannel b in the side panel that opens under b choose from available peers b select peer org1 once the peer is selected a check mark will be displayed next to it ensure that b make anchor peer s b is marked as yes click b join channel b br p align center img src https user images githubusercontent com 8854447 85804533 e60d8d00 b717 11ea 8066 64d66e4b4d33 gif p br 5 deploy fabcar smart contract on the network install a smart contract navigate to the b smart contracts b tab in the left navigation and click b install smart contract b click on b add file b browse to the location of the fabcar smart contract package file it is probably named fabcar 1 0 0 cds which we packaged earlier using the ibm blockchain platform extension for visual studio code once the contract is uploaded click b install smart contract b br p align center img src https user images githubusercontent com 8854447 86621220 d0a42880 bf8b 11ea 92b7 b67972796dc9 gif p br instantiate smart contract under b installed smart contracts b find the smart contract from the list note ours is called fabcar installed on our peer and click b instantiate b from the overflow menu on the right side of the row on the side panel that opens select the channel mychannel on which to instantiate the smart contract click b next b select org1msp as the organization member to be included in the endorsement policy click b next b skip the b setup private data collection b step and simply click b next b provide the b function name b as initledger and leave the b arguments b blank click b instantiate smart contract b br p align center img src https user images githubusercontent com 8854447 86622766 735da680 bf8e 11ea 9b21 0e9c9eebcfef gif p br 6 connect application to the network connect with sdk through connection profile navigate to the b organizations b tab in the left navigation and click on b org1msp b click on b download connection profile b in the side panel that opens up select yes as the response for b include org1 ca for user registration and enrollment b under b select peers to include b select peer org1 then click b download connection profile b this will download the connection json which we will use to establish a connection between the node js web application and the blockchain network br p align center img src https user images githubusercontent com 8854447 86624377 334bf300 bf91 11ea 9438 80da5de5cfce gif p br create an application admin navigate to the b nodes b tab in the left navigation and under b certificate authorities b choose b org1 ca b click on the b register user b button give an b enroll id b of app admin and an b enroll secret b of app adminpw set the b type b for this identity as client specify to b use root affiliation b leave the b maximum enrollments b field blank click b next b click on b add attribute b enter the b attribute name b as hf registrar roles and the b attribute value b as note if you wish to use the deregisteruser js script to remove revoke delete existing users then you need to add another attribute hf revoker with the attribute value of true to your application admin click b register user b br p align center img src https user images githubusercontent com 8854447 85872406 b0ab8280 b79d 11ea 80e8 632d2bd39285 gif p br update application connection profile copy the connection profile you downloaded into the server folder web app server update the config json web app server config json file with the connection json file name you downloaded the b enroll id b and b enroll secret b for your app admin which we earlier provided as app admin and app adminpw respectively the orgmsp id which we provided as org1msp the caname which can be found in your connection json file under organizations org1msp certificateauthorities this would be like an ip address and a port the username you would like to register update gateway discovery to enabled true aslocalhost false to connect to ibm blockchain platform b the current default contents of the config json are to connect to a local fabric instance from vs code b after the updates the contents of the config json should look similar to the file shown below connection file org1msp profile json appadmin app admin appadminsecret app adminpw orgmspid org1msp caname 169 46 208 151 30404 username user1 gatewaydiscovery enabled true aslocalhost false 7 run the application enroll admin first navigate to the web app server directory and install the node dependencies bash cd web app server npm install run the enrolladmin js script bash node enrolladmin js you should see the following in the terminal bash msg successfully enrolled admin user app admin and imported it into the wallet register user from the server directory run the registeruser js script bash node registeruser js you should see the following in the terminal bash successfully registered and enrolled admin user user1 and imported it into the wallet deregister user note the following steps need to be performed only if you wish to revoke an existing user by default removal of identities is disabled in ibm blockchain platform if you wish to remove identities you need to manually override this default setting in the ibm blockchain platform console on the console go to the nodes tab using the left hand navigation pane and click on your organization s ca click on the settings icon in the left side in the pane that opens up on the right side click on edit configuration json advanced paste the following into the input block for configuration updates then click update certificate authority note the value of 10 for passwordattempts is the default value if your certificate authority was set up with a different number for passwordattempts then you need to use that number you can find this value from the current configuration section which is just above the configuration updates section json ca cfg identities passwordattempts 10 allowremove true br p align center img src https user images githubusercontent com 8854447 87066593 d181c800 c1e0 11ea 8a57 6f0cf9fe11c8 gif p br the removal of identities will now be enabled as long as your application admin has been created with the hf revoker attribute set to the value of true as specified in the create an application admin create an application admin step above you can use the deregisteruser js script to remove the user identity from the server directory run the deregisteruser js script this script removes revokes the user identified by username specified in the config json web app server config json file bash node deregisteruser js you should see the following in the terminal bash successfully deregistered the user user1 and deleted it from the wallet start the application server from the server directory start the server bash npm start start the web client in a new terminal open the web app client directory and install the dependencies bash cd web app client npm install start the client bash npm start you can find the app running at http localhost 4200 br p align center img src https user images githubusercontent com 8854447 73296572 fc9ad100 41d7 11ea 9c55 f378741b56b4 gif p br you can go to the ibm blockchain platform console to monitor your users and get information on your channel including the blocks added br p align center img src https user images githubusercontent com 8854447 86625249 c6395d00 bf92 11ea 9d5b 93c036bc4870 gif p br troubleshooting if you encounter an error discover error access denied you need to set the gatewaydiscovery properly in your config json file this is b required b you must set it as follows to connect to ibp gatewaydiscovery enabled true aslocalhost false when running the registeruser js script if you get an error that says failed to register user user1 typeerror err invalid arg type the options ca property must be one of type string buffer typedarray or dataview received type object you can get past this error by editing your connection profile that was downloaded from ibm blockchain platform open the connection profile and look for tlscacerts under your certificateauthority if the pem value under tlscacerts is of type array remove the square brackets and convert it to a string that is if your connection profile is like the following image p align center img src https user images githubusercontent com 8854447 86639850 a06a8300 bfa7 11ea 90a1 c82bdb5f88a2 png p update it as shown in the image below p align center img src https user images githubusercontent com 8854447 86640129 05be7400 bfa8 11ea 8e35 dc1165ffaaca png p when running the registeruser js script if you get an error that says error calling register endpoint failed with error error self signed certificate you can get past this by adding httpoptions verify false to the certificateauthorities section of the connection profile that was downloaded from ibm blockchain platform br p align center img src https user images githubusercontent com 8854447 85960318 b2796f80 b970 11ea 9fcc b8af15bf4b38 png p br when running the deregisteruser js script if you get an error that says code 56 message identity removal is disabled this is because identity removal is disabled by default in ibm blockchain platform you will have to enable it by updating the ca using the steps provided in the deregister user deregister user section above when running the deregisteruser js script if you get an error that says failed to deregister user user1 error fabric ca request revoke failed with errors code 71 message authorization failure this is because your application admin does not have the hf revoker attribute set to true you will need to add a new application admin with this attribute enroll the admin using the enroll js script and then you should be able to run the deregisteruser js script using this new application admin links hyperledger fabric docs http hyperledger fabric readthedocs io en latest ibm code patterns for blockchain https developer ibm com patterns category blockchain license this code pattern is licensed under the apache software license version 2 separate third party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses contributions are subject to the developer certificate of origin version 1 1 dco https developercertificate org and the apache software license version 2 https www apache org licenses license 2 0 txt apache software license asl faq https www apache org foundation license faq html whatdoesitmean
kubernetes blockchain hyperledger fabric containers
blockchain
bitshares-core
bitshares core bitshares core https github com bitshares bitshares core is the bitshares blockchain node software and command line wallet software for ui reference wallet software browser based wallet and desktop wallet visit bitshares ui https github com bitshares bitshares ui visit bitshares github io https bitshares github io to learn about bitshares and join the community at bitsharestalk org https bitsharestalk org information for developers can be found in the wiki https github com bitshares bitshares core wiki and the bitshares developer portal https dev bitshares works users interested in how bitshares works can go to the bitshares documentation https how bitshares works site visit awesome bitshares https github com bitshares awesome bitshares to find more resources and links e g chat groups client libraries and extended apis getting started getting started support support using built in apis using built in apis accessing restrictable node api sets accessing restrictable node api sets faq faq license license branch build status master https github com bitshares bitshares core workflows macos badge svg branch master https github com bitshares bitshares core actions query workflow 3a macos branch 3amaster https github com bitshares bitshares core workflows ubuntu 20debug badge svg branch master https github com bitshares bitshares core actions query workflow 3a ubuntu debug branch 3amaster https github com bitshares bitshares core workflows ubuntu 20release badge svg branch master https github com bitshares bitshares core actions query workflow 3a ubuntu release branch 3amaster https github com bitshares bitshares core workflows windows 20mingw64 badge svg branch master https github com bitshares bitshares core actions query workflow 3a windows mingw64 branch 3amaster https github com bitshares bitshares core workflows docker badge svg branch master https github com bitshares bitshares core actions query workflow 3a 22docker 22 branch 3amaster develop https github com bitshares bitshares core workflows macos badge svg branch develop https github com bitshares bitshares core actions query workflow 3a macos branch 3adevelop https github com bitshares bitshares core workflows ubuntu 20debug badge svg branch develop https github com bitshares bitshares core actions query workflow 3a ubuntu debug branch 3adevelop https github com bitshares bitshares core workflows ubuntu 20release badge svg branch develop https github com bitshares bitshares core actions query workflow 3a ubuntu release branch 3adevelop https github com bitshares bitshares core workflows windows 20mingw64 badge svg branch develop https github com bitshares bitshares core actions query workflow 3a windows mingw64 branch 3adevelop https github com bitshares bitshares core workflows docker badge svg branch develop https github com bitshares bitshares core actions query workflow 3a 22docker 22 branch 3adevelop hardfork https github com bitshares bitshares core workflows macos badge svg branch hardfork https github com bitshares bitshares core actions query workflow 3a macos branch 3ahardfork https github com bitshares bitshares core workflows ubuntu 20debug badge svg branch hardfork https github com bitshares bitshares core actions query workflow 3a ubuntu debug branch 3ahardfork https github com bitshares bitshares core workflows ubuntu 20release badge svg branch hardfork https github com bitshares bitshares core actions query workflow 3a ubuntu release branch 3ahardfork https github com bitshares bitshares core workflows windows 20mingw64 badge svg branch hardfork https github com bitshares bitshares core actions query workflow 3a windows mingw64 branch 3ahardfork https github com bitshares bitshares core workflows docker badge svg branch hardfork https github com bitshares bitshares core actions query workflow 3a 22docker 22 branch 3ahardfork testnet https github com bitshares bitshares core workflows macos badge svg branch testnet https github com bitshares bitshares core actions query workflow 3a macos branch 3atestnet https github com bitshares bitshares core workflows ubuntu 20debug badge svg branch testnet https github com bitshares bitshares core actions query workflow 3a ubuntu debug branch 3atestnet https github com bitshares bitshares core workflows ubuntu 20release badge svg branch testnet https github com bitshares bitshares core actions query workflow 3a ubuntu release branch 3atestnet https github com bitshares bitshares core workflows windows 20mingw64 badge svg branch testnet https github com bitshares bitshares core actions query workflow 3a windows mingw64 branch 3atestnet https github com bitshares bitshares core workflows docker badge svg branch testnet https github com bitshares bitshares core actions query workflow 3a 22docker 22 branch 3atestnet master of bitshares fc https github com bitshares bitshares fc workflows macos badge svg branch master https github com bitshares bitshares fc actions query workflow 3a macos branch 3amaster https github com bitshares bitshares fc workflows ubuntu 20debug badge svg branch master https github com bitshares bitshares fc actions query workflow 3a ubuntu debug branch 3amaster https github com bitshares bitshares fc workflows ubuntu 20release badge svg branch master https github com bitshares bitshares fc actions query workflow 3a ubuntu release branch 3amaster getting started build instructions and additional documentation are available in the wiki https github com bitshares bitshares core wiki prebuilt binaries can be found in the releases page https github com bitshares bitshares core releases for download installing node and command line wallet software we recommend building on ubuntu 20 04 lts 64 bit install operating system dependencies sudo apt get update sudo apt get install autoconf cmake make automake libtool git libboost all dev libssl dev g libcurl4 openssl dev doxygen build node and command line wallet git clone https github com bitshares bitshares core git cd bitshares core git checkout master may substitute master with current release tag git submodule update init recursive mkdir build cd build cmake dcmake build type release make upgrade node and command line wallet cd bitshares core git remote set url origin https github com bitshares bitshares core git git checkout master git remote set head origin auto git pull git submodule update init recursive this command may fail git submodule sync recursive git submodule update init recursive mkdir build cd build cmake dcmake build type release make note bitshares requires a 64 bit operating system to build and will not build on a 32 bit os tested operating systems linux heavily tested with ubuntu lts releases macos various versions windows various versions visual studio and mingw openbsd various versions bitshares requires boost https www boost org libraries to build supports version 1 58 to 1 74 newer versions may work but have not been tested if your system came pre installed with a version of boost libraries that you do not wish to use you may manually build your preferred version and use it with bitshares by specifying it on the cmake command line example cmake dboost root path to boost bitshares requires openssl https www openssl org libraries to build supports version 1 0 2 to 1 1 1 if your system came pre installed with a version of openssl libraries that you do not wish to use you may manually build your preferred version and use it with bitshares by specifying it on the cmake command line example cmake dopenssl root dir path to openssl running and stopping node software run node software stay on bitshares core build directory before you run the below witness node command programs witness node witness node under build directory the node run will automatically create the directory witness node data dir along with config files underneath then start synchronizing the blockchain it may take usually several hours to fully synchronize the blockchain data the blockchain data will be stored under the directory witness node data dir stop node software for stopping the node run cleanly you will need to access the node run terminal then press on ctrl c then wait for the run to stop please note that it may take usually few minutes to exit the run it s recommended to use linux command screen https help ubuntu com community screen to initiate the node run so you can go back to the node run screen to stop it important by default the node will start in reduced memory mode by using some of the commands detailed in memory reduction for nodes https github com bitshares bitshares core wiki memory reduction for nodes in order to run a full node with all the account histories which usually unnecessary you need to remove partial operations and max ops per account from your config file please note that currently 2018 10 17 a full node will need more than 160gb of ram to operate and required memory is growing fast consider the following table as minimal requirements before running a node default full minimal elasticsearch 150g hdd 16g ram 640g ssd 64g ram 120g hdd 4g ram 1tb ssd 32g ram for this setup allocate at least 500gb of ssd as swap to use the command line wallet or other wallets clients with the node the node need to be started with rpc connection enabled which can be done by starting the node with the rpc endpoint parameter e g programs witness node witness node rpc endpoint 127 0 0 1 8090 or configure it in the config file by editing witness node data dir config ini as follows rpc endpoint 127 0 0 1 8090 you can run the program with help parameter to see more info programs witness node witness node help using command line wallet stay on bitshares core build directory before you run the below cli wallet command programs cli wallet cli wallet important the cli wallet or api interfaces to the node wouldn t be fully functional unless the node is fully synchronized with the blockchain the cli wallet command info will show result head block age which will tell you how far you are from the live current block of the blockchain to check your current block new info to query the blockchain e g get info about an account new get account account name or id if you need to transact with your account but not only query firstly set your initial password and unlock the wallet for non windows operating systems you can type the commands and press enter then input the password and press enter in this case the password won t show new set password enter enter password locked unlock enter enter password unlocked for windows or you d like to show the password type the commands with the password new set password password locked unlock password unlocked to be able to transact with your account import the corresponding private keys unlocked import key account name wif key the private keys will be encrypted and stored in the wallet file the file name is wallet json by default the private keys are accessible when the wallet is unlocked unlocked dump private keys use lock command to make the private keys inaccessible there is no auto lock feature so far unlocked lock to import your initial genesis balances import the private keys corresponding to the balances unlocked import balance account name wif key true use help to see all available wallet commands help use gethelp command to see more info about individual commands e g gethelp get order book the definition of all commands is available in the wallet hpp https github com bitshares bitshares core blob master libraries wallet include graphene wallet wallet hpp source code file corresponding documentation can be found in the doxygen documentation https bitshares github io doxygen classgraphene 1 1wallet 1 1wallet api html you can run the program with help parameter to see more info programs cli wallet cli wallet help there is also some info in the wiki https github com bitshares bitshares core wiki cli wallet cookbook support technical support is available in the bitsharestalk technical support subforum https bitsharestalk org index php board 45 0 bitshares core bugs can be reported directly to the issue tracker https github com bitshares bitshares core issues questions can be posted in github discussions https github com bitshares bitshares core discussions bitshares ui bugs should be reported to the ui issue tracker https github com bitshares bitshares ui issues up to date online doxygen documentation can be found at https bitshares github io doxygen https bitshares github io doxygen hierarchy html using built in apis node api the witness node software provides several different api sets known as node api each api set has its own id and a name when running witness node with rpc connection enabled initially two api sets are available api set with id 0 has name database it provides read only access to the database api set with id 1 has name login it is used to login and gain access to additional restrictable api sets here is an example using wscat package from npm for websockets npm install g wscat wscat c ws 127 0 0 1 8090 id 1 method call params 0 get accounts 1 2 0 id 1 result id 1 2 0 annotations membership expiration date 1969 12 31t23 59 59 registrar 1 2 0 referrer 1 2 0 lifetime referrer 1 2 0 network fee percentage 2000 lifetime referrer fee percentage 8000 referrer rewards percentage 0 name committee account owner weight threshold 1 account auths key auths address auths active weight threshold 6 account auths 1 2 5 1 1 2 6 1 1 2 7 1 1 2 8 1 1 2 9 1 1 2 10 1 1 2 11 1 1 2 12 1 1 2 13 1 1 2 14 1 key auths address auths options memo key gph1111111111111111111111111111111114t1anm voting account 1 2 0 num witness 0 num committee 0 votes extensions statistics 2 7 0 whitelisting accounts blacklisting accounts we can do the same thing using an http client such as curl for apis which do not require login or other session state curl data jsonrpc 2 0 method call params 0 get accounts 1 2 0 id 1 http 127 0 0 1 8090 id 1 result id 1 2 0 annotations membership expiration date 1969 12 31t23 59 59 registrar 1 2 0 referrer 1 2 0 lifetime referrer 1 2 0 network fee percentage 2000 lifetime referrer fee percentage 8000 referrer rewards percentage 0 name committee account owner weight threshold 1 account auths key auths address auths active weight threshold 6 account auths 1 2 5 1 1 2 6 1 1 2 7 1 1 2 8 1 1 2 9 1 1 2 10 1 1 2 11 1 1 2 12 1 1 2 13 1 1 2 14 1 key auths address auths options memo key gph1111111111111111111111111111111114t1anm voting account 1 2 0 num witness 0 num committee 0 votes extensions statistics 2 7 0 whitelisting accounts blacklisting accounts when using an http client the api set id can be replaced by the api set name e g curl data jsonrpc 2 0 method call params database get accounts 1 2 0 id 1 http 127 0 0 1 8090 the definition of all node apis is available in the source code files including database api hpp https github com bitshares bitshares core blob master libraries app include graphene app database api hpp and api hpp https github com bitshares bitshares core blob master libraries app include graphene app api hpp corresponding documentation can be found in doxygen database api https bitshares github io doxygen classgraphene 1 1app 1 1database api html other apis https bitshares github io doxygen namespacegraphene 1 1app html wallet api the cli wallet program can also be configured to serve all of its commands as apis known as wallet api start cli wallet with rpc connection enabled programs cli wallet cli wallet rpc http endpoint 127 0 0 1 8093 access the wallet api using an http client curl data jsonrpc 2 0 method info params id 1 http 127 0 0 1 8093 curl data jsonrpc 2 0 method get account params 1 2 0 id 1 http 127 0 0 1 8093 note the syntax to access wallet api is a bit different than accessing node api important when rpc connection is enabled for cli wallet sensitive data e g private keys which is accessible via commands will be accessible via rpc too it is recommended that only open network connection to localhost or trusted addresses e g configure a firewall when using wallet api sensitive data e g the wallet password and private keys is transmitted as plain text thus may be vulnerable to network sniffing it is recommended that only use wallet api with localhost or in a clean network and or use rpc tls endpoint parameter to only serve wallet api via secure connections accessing restrictable node api sets you can restrict node api sets to particular users by specifying an api access file in config ini or by using the api access full path to api access json command line option on node startup here is an example api access file which allows user bytemaster with password supersecret to access four different api sets while allowing any other user to access the three public api sets necessary to use the node permission map bytemaster password hash b64 9e9gf7ooxvb9k4bosfniptelxegoz5drgoymj94elay password salt b64 inddm6ici 8 allowed apis database api network broadcast api history api network node api password hash b64 password salt b64 allowed apis database api network broadcast api history api note the login api set is always accessible passwords are stored in base64 as salted sha256 hashes a simple python script saltpass py https github com bitshares bitshares core blob master programs witness node saltpass py is available to obtain hash and salt values from a password a single asterisk may be specified as username or password hash to accept any value with the above configuration here is an example of how to call the add node api from the network node api set id 1 method call params 1 login bytemaster supersecret id 2 method call params 1 network node id 3 method call params 2 add node 127 0 0 1 9090 note the call to network node is necessary to obtain the correct api set id for the network node api set it is not guaranteed that the api set id for the network node api set will always be 2 the restricted api sets are accessible via http too using basic access authentication e g curl data jsonrpc 2 0 method call params network node add node 127 0 0 1 9090 id 1 http bytemaster supersecret 127 0 0 1 8090 our doxygen documentation contains the most up to date information about apis for the node https bitshares github io doxygen namespacegraphene 1 1app html and the wallet https bitshares github io doxygen classgraphene 1 1wallet 1 1wallet api html faq is there a way to generate help with parameter names and method descriptions yes documentation of the code base including apis can be generated using doxygen simply run doxygen in this directory if both doxygen and perl are available in your build environment the command line wallet s help and gethelp commands will display help generated from the doxygen documentation if your command line wallet s help command displays descriptions without parameter names like signed transaction transfer string string string string string bool it means cmake was unable to find doxygen or perl during configuration if found the output should look like this signed transaction transfer string from string to string amount string asset symbol string memo bool broadcast is there a way to allow external program to drive cli wallet via websocket jsonrpc or http yes external programs may connect to the command line wallet and make its calls over a websockets api to do this run the wallet in server mode i e cli wallet h 127 0 0 1 9999 and then have the external program connect to it over the specified port in this example port 9999 please check the using built in apis using built in apis section for more info is there a way to access methods which require login over http yes most of the methods can be accessed by specifying the api name instead of an api id if an api is protected by a username and a password it can be accessed by using basic access authentication please check the accessing restrictable node api sets accessing restrictable node api sets section for more info however http is not really designed for server push notifications and we would have to figure out a way to queue notifications for a polling client websockets solves this problem if you need to access the stateful methods use websockets what is the meaning of a b c numbers the first number specifies the space space 1 is for protocol objects 2 is for implementation objects protocol space objects can appear on the wire for example in the binary form of transactions implementation space objects cannot appear on the wire and solely exist for implementation purposes such as optimization or internal bookkeeping the second number specifies the type the type of the object determines what fields it has for a complete list of type ids see graphene define ids protocol protocol ids in protocol types hpp https github com bitshares bitshares core blob master libraries protocol include graphene protocol types hpp and graphene define ids chain implementation ids in chain types hpp https github com bitshares bitshares core blob master libraries chain include graphene chain types hpp the third number specifies the instance the instance of the object is different for each individual object the answer to the previous question was really confusing can you make it clearer all account ids are of the form 1 2 x if you were the 9735th account to be registered your account s id will be 1 2 9735 account 0 is special it s the committee account which is controlled by the committee members and has a few abilities and restrictions other accounts do not all asset ids are of the form 1 3 x if you were the 29th asset to be registered your asset s id will be 1 3 29 asset 0 is special it s bts which is considered the core asset the first and second number together identify the kind of thing you re talking about 1 2 for accounts 1 3 for assets the third number identifies the particular thing how do i get the network add nodes command to work why is it so complicated you need to follow the instructions in the accessing restrictable node api sets accessing restrictable node api sets section to allow a username password access to the network node api set then you need to pass the username password to the cli wallet on the command line it s set up this way so that the default configuration is secure even if the rpc port is publicly accessible it s fine if your witness node allows the general public to query the database or broadcast transactions in fact this is how the hosted web ui works it s less fine if your witness node allows the general public to control which p2p nodes it s connecting to therefore the api to add p2p connections needs to be set up with proper access controls license bitshares core is under the mit license see license https github com bitshares bitshares core blob master license txt for more information
blockchain cryptocurrency bitshares dex dac
blockchain
foia.gov
foia new foia beta site national portal the site is based off of 18f recommendations https github com 18f foia recommendations from our discovery sprint with the department of justice content majority of the site content is in markdown https daringfireball net projects markdown syntax format markdown is intended to be as easy to read and easy to write as is feasible here are some resources for working with markdown basic writing and formatting syntax https help github com articles basic writing and formatting syntax mastering markdown https guides github com features mastering markdown edit this file in markdown https github com 18f beta foia gov edit develop readme md the entire site can be edited directly from this github repository here are some resources for working with github editing files in your repository https help github com articles editing files in your repository introduction to github for newcomers https www youtube com watch v una9gotm6ne github help https help github com workflow this github repository is setup with continuous deployment that means that any change you make approve and merge will be automatically deployed this means you can easily see the changes you make in the development environment and once approved deploy to production automatically the process in general works like this 1 edit a file on github 1 commit the change to the develop branch 1 any change made to develop will be automatically deployed to the development environment https dev www foia gov 1 review the change on the development environment 1 open a pull request https github com 18f beta foia gov compare master develop against the master branch 1 have a teammate review and approve https help github com articles about pull request reviews the code change in github https github com 18f beta foia gov pulls 1 merge the pull request 1 the change will be automatically deployed to the production environment https beta foia gov for the nitty gritty details of how automated deployment works please see the deployment documentation https github com 18f beta foia gov tree develop docs deployment md web content site content lives in the markdown pages under the www foia gov directory https github com usdoj foia gov tree develop www foia gov glossary terms 18f beta foia gov tree develop www foia gov glossary terms should be edited in markdown one term per file the name of the file is not important the term is pulled from the front matter within the file the primary and secondary navigation items live in the site configuration file https github com 18f beta foia gov blob develop config yml the landing page content lives in configuration https github com 18f beta foia gov blob develop www foia gov index html and in the layout https github com 18f beta foia gov blob develop www foia gov layouts home html footer links can be edited in the site footer https github com 18f beta foia gov blob develop www foia gov includes footer html foia request forms individual agency foia request forms live in the back stage foia back stage and are owned by oip however the per section help text blue box content can be edited one section per file in markdown 18f beta foia gov tree develop www foia gov request form sections the files should be numbered so they appear in the correct order but the name of the file is not important note you should avoid changing the front matter in these files the front stage javascript application depends on this information agency contact information contact information lives in the back stage foia back stage but this information should be updated individually by agency foia personnel development please browse the additional documentation topics https github com 18f beta foia gov tree develop docs on development foia back stage https admin foia gov
foia
front_end
front-end-handbook-2018
available now front end developer handbook 2019 https frontendmasters com guides front end handbook 2019 front end developer handbook 2018 written by cody lindley http codylindley com sponsored by frontend masters https frontendmasters com advancing your skills with in depth modern front end engineering courses front end developer handbook 2018 cover https frontendmasters com guides front end handbook 2018 cover jpg https frontendmasters com guides front end handbook 2018 this is a guide that anyone could use to learn about the practice of front end development it broadly outlines and discusses the practice of front end engineering how to learn it and what tools are used when practicing it in 2018 it is specifically written with the intention of being a professional resource for potential and currently practicing front end developers to equip themselves with learning materials and development tools secondarily it can be used by managers ctos instructors and headhunters to gain insights into the practice of front end development the content of the handbook favors web technologies html css dom and javascript and those solutions that are directly built on top of these open technologies the materials referenced and discussed in the book are either best in class or the current offering of a problem the book should not be considered a comprehensive outline of all resources available to a front end developer the value of the book is tied up in a terse focused and timely curation of just enough categorical information so as not to overwhelm anyone on any one particular subject matter the intention is to release an update to the content yearly the handbook is divided into the following three parts part i the front end practice part one broadly describes the practice of front end engineering part ii learning front end development part two identifies self directed and direct resources for learning to become a front end developer part iii front end development tools part three briefly explains and identifies tools of the trade read online https frontendmasters com guides front end handbook 2018 https frontendmasters com guides front end handbook 2018 translations chinese https github com xitu front end handbook 2018 a rel license href http creativecommons org licenses by nc nd 3 0 img alt creative commons license style border width 0 src https i creativecommons org l by nc nd 3 0 88x31 png a br this work is licensed under a a rel license href http creativecommons org licenses by nc nd 3 0 creative commons attribution noncommercial noderivs 3 0 unported license a
handbook development-handbook learning learn learn-js learn-javascript learn-react front-end-development front-end front-end-web-development front-end-developer web-development-tools web-development
front_end
development-of-real-time-systems
development of real time systems coursera development of real time systems course assignments find out more https www coursera org learn real time systems to test replace freertos sim project main c with main c inside assignment folders build make execute freertos sim clean make clean
real-time-systems rtos freertos
os
InfectionWatch
infectionwatch introduction the aim of this project is to build a cloud based platform to automatic collect analyze and store healthcare data for clinicians and researchers to jointly analyze and monitor infectious disease outbreaks view application rtinfo insight com or watch demo https youtu be tj8cibmghsm navigation 1 motivation about 2 tools and technologies used engineering design 3 flow of the data flow of the data 4 details of the workflow details of the workflow 5 environment setup environment setup 6 cluster structure cluster structure motivation infectious diseases are associated with substantial morbidity mortality and cost manual identification of infections is costly time consuming and diverts staff time from prevention activities although next generation dna sequencing has demonstrated its ability to identify microbial pathogens where traditional diagnostics have otherwise failed there are several limitations to use it for infection detection in clinical setting 1 the volume of data that is produced from next generation sequencing platforms is massive 2 data analysis is time consuming and requires sophisticated bioinformatics systems 3 the lack of computational resources for large dataset storage and management limits capability to analyze and clinically interpret the data tools and technologies used 1 aws s3 2 apache spark 3 airflow 4 aws redshift 5 flask 6 tableau flow of the data alt text pipeline png raw true optional title details of the workflow data source all the raw data used for processing and generating diagnosis report is from nih human microbiome project and saved in aws s3 bucket total 4tb the nih human microbiome project https portal hmpdacc org search s facettab files filters 7b 22op 22 22and 22 22content 22 5b 7b 22op 22 22in 22 22content 22 7b 22field 22 22files file format 22 22value 22 5b 22fasta 22 22fastq 22 5d 7d 7d 5d 7d performed whole metagenomic shotgun sequencing mwgs on over 1200 samples collected from 15 18 body sites from 300 human subjects they provide access to raw mwgs sequence data in fastq format data process this cloud based platform contains two pipelines the first pipeline collects and analyzes large scale genomic datasets to generate diagnosis for infection automatically the other pipeline is designed as distributed data mining systerm to review and process millions of patients medical records efficiently these pipelines utilized spark and redshift to process raw data and build a data warehouse for designing individualized treatment strategies and monitoring infection outbreaks by elastically scaling the number and types of compute instances in addition to optimization of pipelines to run in parallel there are no limits to the amount of data you can analyze airflow jobs a scheduler would be running to collect the data from s3 to spark jobs every two hours the raw sequencing data is collected and processed to get accurate diagnosis for infection at the sametime detailed healthcare information for patients is processed and saved to data warehouse all those data is further analyzed and posted to the dashboard dynamicaly ui design two tier data sharing application for both public health care management and clinical report dashboard allowing clinicians to better protect patients by identifying and investigating potential clusters of infections daily reports will be generated from the collected data a detailed summary of infection type patient s metadata and previous medical records would be available to the doctors for further analysis environment setup install and configure aws cli https aws amazon com cli and pegasus https github com insightdatascience pegasus on your local machine and clone this repository using git clone https github com jing0703 infectionwatch git aws tip add your local ip to your aws vpc inbound rules pegasus tip in pegasus home install download tech upgrade pip and python and follow the notes in docs pegasus setup odt to configure pegasus cluster structure to reproduce my environment 10 m4 large aws ec2 instances are needed 4 nodes spark cluster 1 batch for dna sequencing data analysis 4 nodes spark cluster 2 batch for medical records data processing flask node airflow node to create the clusters put the appropriate master yml and workers yml files in each cluster setup clustername folder following the template in cluster setup dummy yml template list all the necesary software in cluster setup clustername install sh and run the cluster setup create clusters sh script after that infectionwatch will be cloned to the clusters with necessary jar files downloaded and required python packages installed and any node s address from cluster some cluster name will be saved as the environment variable some cluster name i on every master where i 1 2 3 airflow setup the apache airflow scheduler can be installed on the master node of spark batch cluster follow the instructions in docs airflow setup txt to launch the airflow server aws redshift setup follow the instruction from aws guide https docs aws amazon com redshift latest gsg getting started html to setup cluster detailed information for creating tables uploading data and querying the database in redshift cluster can be found in docs redshift setup sql install other tools download and install biopython https biopython org and sparkhit https rhinempi github io sparkhit in all your spark cluster nodes for dna data analysis download and install boto3 https boto3 amazonaws com v1 documentation api latest guide quickstart html in all your spark cluster nodes configurations configuration settings for aws s3 bucket and redshift cluster are stored in the respective files in config folder replace the settings in config s3bucket config with the names and paths for your s3 bucket running infectionwatch schedule the batch job running airflow schedule sh on the node of airflow instance will add the batch job to the scheduler the batch job is set to execute every 2 hours and it can be started and monitored from the airflow gui at http spark batch cluster 0 8000 start the spark batch job execute allignment sh on the master of spark batch cluster 1 for dna sequencing analysis execute transformation sh on the master of spark batch cluster 2 for medical records analysis preferably after setting up aws credentials to access s3 and write to redshift flask and tableau run flask app py to start the flask server the tableau dashboard has been embeded in the flask dashboard possible extension integrated data warehousing system used in this platform could be used for facilitating the integration of artificial intelligence into data mining both the hisotrical and the incoming healthcare data can be used with machine learning algorithms for automation of infection detaction and prediction this pipleline is also to ingest voluminous and incremental datasets and complex data analytics methods for bioinformatics and genomics research
cloud
FreeRTOS-Projects
freertos projects projects built using freertos a light weight os for embedded systems the projects are implemented using esp32 dev board same code can be used for other microcontroller boards which support freertos by changing the header files
os
nlp-graph-notebooks
natural language processing with neo4j see http lyonwj com 2015 06 16 nlp with neo4j
ai
cmu-llm-class
github repo for 11 667 at cmu this is the website repository for the fall 2023 iteration of 11 667 large language models methods and applications acknowledgements this repo is based off the just the class https github com kevinlin1 just the class jekyll template creared by kevin lin just the class extends the popular just the docs https github com just the docs just the docs theme which provides a robust and thoroughly tested foundation for simple websites getting started getting started with just the class is simple 1 create a new repository based on just the class https github com kevinlin1 just the class generate 1 update config yml and readme md with your course information be sure to update the url and baseurl https mademistakes com mastering jekyll site url baseurl 1 configure a publishing source for github pages https help github com en articles configuring a publishing source for github pages your course website is now live 1 edit and create md markdown files https guides github com features mastering markdown to add more content pages just the class has been used by instructors at stanford university cs 161 https stanford cs161 github io winter2021 uc berkeley data 100 https ds100 org fa21 uc santa barbara csw8 https ucsb csw8 github io s22 northeastern university cs4530 5500 https neu se github io cs4530 cs5500 spring 2021 and carnegie mellon university 17 450 17 950 https cmu crafting software github io share your course website and find more examples in the show and tell discussion https github com kevinlin1 just the class discussions categories show and tell local development environment just the class requires no special jekyll plugins and can run on github pages standard jekyll compiler to setup a local development environment clone your template repository and follow the github docs on testing your github pages site locally with jekyll https docs github com en pages setting up a github pages site with jekyll testing your github pages site locally with jekyll
ai
Embedded-System
embedded system embedded system design analyze device driver and using them make some applications with androxstudio device driver designed by c and application designed by jave so to use the device driver we need java native interface jni which make java can call or be called by application and libraries
os
near-explorer
near blockchain explorer ci https github com near near explorer actions workflows continuous integration workflow yml badge svg event push https github com near near explorer actions workflows continuous integration workflow yml setup docker based setup prerequisite docker docker compose build run the containers choose a network npm run docker up mainnet or npm run docker up testnet or npm run docker up shardnet or npm run docker up guildnet note you may want to run them in background so just add detach flag now you can reach the service at http localhost 3000 node js setup hot reload prerequisite node js run nvm use to switch to the proper version install dependencies npm install run backend choose a network npm run w backend dev mainnet or npm run w backend dev testnet or npm run w backend dev shardnet or npm run w backend dev guildnet run frontend in a separate window npm run w frontend dev now you can reach the service at http localhost 3000 contributing to contribute to near explorer please see contributing contributing md most real time collaboration happens in a variety of channels on the near discord server https near chat with channels dedicated for getting help community documentation and all major contribution areas in the near ecosystem a good place to ask for help would be the general channel license near explorer is distributed under the terms of both the mit license and the apache license version 2 0 see license mit license mit and license apache license apache for details
blockchain-explorer frontend backend blockchain hacktoberfest
blockchain
TRAM-Benchmark
tram benchmarking temporal reasoning for large language models this repository contains datasets and model descriptions used for tram benchmarking temporal reasoning for large language models https arxiv org abs 2310 00835 datasets tram encompasses ten temporal reasoning tasks presented as multiple choice questions mcqs across a range of time related domains for clarity we ensure that each question has only one correct answer tram incorporates existing natural language understanding datasets human crafted templates and questions web sources and program generation answers have been derived through a combination of expert annotations and programmatic generation the benchmark includes 526 068 problems in total for each dataset we introduce a few shot development set with 5 questions per category and a separate test set for evaluation all datasets used for experiments can be downloaded in datasets folder overview of ten tasks included in the benchmark div align center img width 95 alt image src https github com eternityyw tram benchmark blob main image sources dataset set png div sub 1 zhou et al 2019 https aclanthology org d19 1332 2 rajpurkar et al 2016 https aclanthology org d16 1264 3 uzzaman et al 2013 https aclanthology org s13 2001 4 williams et al 2018 https aclanthology org n18 1101 5 bowman et al 2015 https aclanthology org d15 1075 6 roemmele et al 2011 https aaai org papers 02418 choice of plausible alternatives an evaluation of commonsense causal reasoning 7 mostafazadeh et al 2016 https aclanthology org n16 1098 8 mostafazadeh et al 2017 https aclanthology org w17 0906 sub note the data size column aggregates totals from both the development and test sets k way mc signifies a multiple choice response format with k options amb res denotes ambiguity resolution nli stands for natural language inference same indicates the text source is the same as the row above for more details please refer to the paper models we evaluate the performance of several well known language models on the tram benchmark which is organized into two main categories in the first category we consider four popular large language models llms the open source model llama 2 13b chat https arxiv org pdf 2307 09288 pdf and the closed source models palm bison chat https arxiv org pdf 2305 10403 pdf gpt 3 5 turbo and gpt 4 https arxiv org pdf 2303 08774 pdf we evaluate each model using two prompting strategies standard prompting sp and chain of thought cot prompting under both strategies the models undergo tests in zero shot and 5 shot settings for all models we apply greedy decoding i e temperature 0 for response generation each of these models is accessed using its corresponding api key in the second category we consider minimal supervision as opposed to traditional fully supervised learning in order to establish baseline evaluations specifically we employ four representative bert style models including bert base https aclanthology org n19 1423 bert large https aclanthology org n19 1423 roberta base https arxiv org abs 1907 11692 and roberta large https arxiv org abs 1907 11692 for the temporal nli task we employ the sequence classification variant of bert and roberta from huggingface i e bertforsequenceclassification https huggingface co docs transformers v4 34 0 en model doc bert transformers bertforsequenceclassification and robertaforsequenceclassification https huggingface co docs transformers v4 34 0 en model doc roberta transformers robertaforsequenceclassification given its suitability for the task s structure however for the other tasks we utilize the multiple choice variant of bert and roberta from huggingface i e bertformultiplechoice https huggingface co docs transformers v4 34 0 en model doc bert transformers bertformultiplechoice robertaformultiplechoice https huggingface co docs transformers v4 34 0 en model doc roberta transformers robertaformultiplechoice
bert-models large-language-models prompting temporal-reasoning
ai
chinese_nlp
segment hhm numpy scipy hhmlearn itenyh hmm a pure hmm http www 52nlp cn itenyh e7 89 88 e7 94 a8hmm e5 81 9a e4 b8 ad e6 96 87 e5 88 86 e8 af 8d e5 9b 9b ef bc 9aa pure hmm e5 88 86 e8 af 8d e5 99 a8 hmm http sbp810050504 blog 51cto com 2799422 1251640 todo lda labled lda gensim http blog itpub net 16582684 viewspace 1253901 https radimrehurek com gensim models ldamodel html https shuyo wordpress com todo lsi lda svd gensim todo svd topic 200 500 ntlk sklearn python scikit learn http rzcoding blog 163 com c c python sogou 10 10000 75 91 google http www fuqingchuan com 2015 03 776 html http www nltk org modules nltk classify maxent html http www umiacs umd edu hal megam index html note nltk gis iis megam megam megam l bfgs megam 32 32 dnf install glibc i686 crf ner crfsuite manual http www chokkan org software crfsuite manual html todo crf crf nlp 20 b org i org 1982 6 27 29 b org i org b per i per b org i org i org i org i org 7 2 b per i per 40 40 3 5 10 40 40 44 theano cuda optional keras genism http xccds1977 blogspot com 2015 11 blog post 25 html http www sighan org bakeoff2005 todo lstm 100 100 4 15 2014 6 1 2 3 16 196 3 rnn lstm rnn character model 2 layer https github com ebenolson pydata2015 blob master 4 20 20recurrent 20networks rnn 20character 20model 20 202 20layer ipynb char rnn https github com karpathy char rnn lstm text generation https github com fchollet keras blob master examples lstm text generation py
ai
STM32F407VG-FreeRTOS
stm32f407vg freertos 1 the sample code is used freertos on stm32f407 discovery
os
convertigo
convertigo low code no code mobile web platform convertigo is an open source low code no code platform for mobile web application development and back end as a service circleci ci image ci url p align center img src https uploads ssl webflow com 62d55bc018a5be3f0b91fcf3 62d55bc018a5be9efe91fd62 animation2 gif alt convertigo low code studio width 1000px p convertigo community edition is an open source fullstack low code no code platform the platform is used to build and run complex cross platform enterprise mobile and web apps in a few days convertigo platform is composed of several components 1 convertigo server the back end server mbaas part handles back end connectors micro services execution offline data device synchronization and serves mobile and pwa web apps convertigo server can be downloaded from github https github com convertigo convertigo releases latest as a tomcat war file or run directly as containers from dockerhub https hub docker com convertigo 2 convertigo studio runs on a windows or a macos workstation eclipse based ide used to program mbaas micro services workflows and use the mobile builder to build mobile apps uis in low code mode can be directly downloaded from github https github com convertigo convertigo releases latest 3 convertigo sdks can be used with third party mobile development tools such as xcode ios android studio android sdks are available on each platform standard repository bintray for android cocoapods for ios and npm for angular reactnative and vue js 4 convertigo forms the no code app builder to build form based apps as pwas or web applications with a web based nocode studio intented for non technical developpers citizen developpers convertigo community edition brought to you by convertigo sa paris san francisco the platform is currently used by more than 150k developers worldwide building enterprise class web and mobile apps convertigo image convertigo url www convertigo com convertigo url license convertigo community edition is agpl https www gnu org licenses agpl 3 0 html based changelog see changelog md changelog md markdown link img dfn s ci image https circleci com gh convertigo convertigo svg style shield ci url https circleci com gh convertigo workflows convertigo convertigo image https www convertigo com wp content themes eightdegree images logo convertigo png convertigo url https www convertigo com
low-code-development-platform mobile-development microservices kubernetes ionic-framework angular convertigo no-code opensource
front_end
ife_2016
baidu institute of front end technology nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp hey github 2015 https github com baidu ife ife tree master 2015 summer 2015 https github com baidu ife ife tree master 2015 spring
front_end
lens
lens blog https contextual ai introducing lens demo https lens contextual ai paper https arxiv org abs 2306 16410 colab https colab research google com github contextualai lens blob main notebooks example usage ipynb this is the official repository for the lens large language models enhanced to see paper https arxiv org abs 2306 16410 setup 1 we recommend that you get a machine with gpus and cuda a machine with a single gpu or even a cpu works although for large datasets you should get several gpus 2 create a python 3 9 conda or virtual environment and then install this repo as a pip package with bash pip install llm lens usage first the system runs a series of highly descriptive vision modules on your own dataset of images these modules provide a large set of natural language captions tags objects and attributes for each image these natural language descriptions are then provided to a large language model llm so that it can solve a variety of tasks relating to the image despite the simplicity of our system and the fact that it requires no finetuning we demonstrate in our paper that it often performs better than other sota image language models such as flamingo clip and kosmos visual descriptions to simply get visual descriptions from lens to pass on to an llm use the following code python import requests from lens import lens lensprocessor from pil import image import torch img url https images unsplash com photo 1465056836041 7f43ac27dcb5 w 720 raw image image open requests get img url stream true raw convert rgb question what is the image about lens lens processor lensprocessor with torch no grad samples processor raw image question output lens samples prompts output prompts the generated prompts can be passed to an llm for solving a vision task the output object also contains other useful information tags attributes objects that can be used to generate your custom prompts advanced use cases pass the image descriptions to a language model and ask it a question region python from transformers import autotokenizer automodelforseq2seqlm tokenizer autotokenizer from pretrained google flan t5 small truncation side left padding true llm model automodelforseq2seqlm from pretrained google flan t5 small input ids tokenizer samples prompts return tensors pt input ids outputs llm model generate input ids print tokenizer decode outputs 0 endregion you can also augment your huggingface dataset region python from datasets import load dataset from lens import lens lensprocessor lens lens processor lensprocessor ds load dataset llm lens lens sample test split test output ds lens hf dataset transform ds processor return global caption false architecture lens for open ended visual question answering lens open ended https github com contextualai lens assets 20826878 e2e9d993 3ae8 43d8 9152 0e73340afa41 lens for image classification lens close ended https github com contextualai lens assets 20826878 45f3ae43 e3e4 48fc b424 1899445d5c6f coming soon we are working on bringing the complete lens experience to you and following scripts will be added soon evaluation on vqa and other datasets present in the paper generating vocabularies used in the paper other scripts needed to reproduce the paper citation misc berrios2023language title towards language models that can see computer vision through the lens of natural language author william berrios and gautam mittal and tristan thrush and douwe kiela and amanpreet singh year 2023 eprint 2306 16410 archiveprefix arxiv primaryclass cs cl endregion
ai
magic-if
source code and data for the magic of if investigating causal reasoning abilities in large language models of code findings of acl 2023 dependencies python 3 7 openai backoff abductive reasoning code and data of the abductive reasoning task are in the abductive folder call codex py prompt generation and prediction with codex call davinci py prompt generation and prediction with davinci test cleanup no label json input of the test data test cleanup ref json labels of the test data the data files are downloaded from https github com xiangli1999 diffusion lm tree main datasets rocstory anlg anlg counterfactual reasoning code and data of the counterfactual reasoning task are in the counterfactual folder call codex py prompt generation and prediction with codex call davinci py prompt generation and prediction with davinci test data new json test data from https github com qkaren counterfactual storyrw generation results of codex generation results of codex are in the codex output folder citation please cite our paper if this repository inspires your work article liu2023magic title the magic of if investigating causal reasoning abilities in large language models of code author liu xiao and yin da and zhang chen and feng yansong and zhao dongyan journal arxiv preprint arxiv 2305 19213 year 2023 contact if you have any questions regarding the code please create an issue or contact the owner of this repository
ai
ues-store-prototype
ues store prototype a basic prototype wtth some of the functionality that an online portal for the engineering lounge store would have written in php and connecting to a mysql database the sql file to create the required database can be found the sql directory
server
aphelion
aphelion aphelion is a web app made for a school project the purpose of the app was to explore and gain a better understanding of web backend development the web app is centered around a simple game concept essentially it works as reverse pong where you try you re hardest to not let the ball hit you however the game is really just there to have an objective for the backend which includes encrypted communication using socket io and nginx a login system using bcrypt for storing passwords a leaderboard system a database hosted with mongodb atlas an account system using mongodb and gravatar to display personal information provided it s been provided nice global graphics and music to enrich the whole experience music togglable of course enjoy
server
GLAD-to-JAM-on-Docker
glad to jam on docker starter project for a jam stack https jamstack org frontend talking to a glad stack backend including an offline development environment in docker frontend is a create react app https github com facebookincubator create react app backend is serverless https serverless com deployed endpoint through api gateway to a graphql http graphql org aws lambda function talking to dynamodb terms jam stack javascript apis markup glad stack gateway lambda dynamodb cra create react app
jam docker dynamodb aws-lambda react serverless glad
server
pytorch_geometric_temporal
pypi image https badge fury io py torch geometric temporal svg pypi url https pypi python org pypi torch geometric temporal size image https img shields io github repo size benedekrozemberczki pytorch geometric temporal svg size url https github com benedekrozemberczki pytorch geometric temporal archive master zip build image https github com benedekrozemberczki pytorch geometric temporal workflows ci badge svg build url https github com benedekrozemberczki pytorch geometric temporal actions query workflow 3aci docs image https readthedocs org projects pytorch geometric temporal badge version latest docs url https pytorch geometric temporal readthedocs io en latest badge latest coverage image https codecov io gh benedekrozemberczki pytorch geometric temporal branch master graph badge svg coverage url https codecov io github benedekrozemberczki pytorch geometric temporal branch master p align center img width 90 src https raw githubusercontent com benedekrozemberczki pytorch geometric temporal master docs source static img text logo jpg sanitize true p pypi version pypi image pypi url docs status docs image docs url code coverage coverage image coverage url build status build image build url arxiv https img shields io badge arxiv 2104 07788 orange svg https arxiv org abs 2104 07788 benedekrozemberczki https img shields io twitter follow benrozemberczki style social logo twitter https twitter com intent follow screen name benrozemberczki documentation https pytorch geometric temporal readthedocs io external resources https pytorch geometric temporal readthedocs io en latest notes resources html datasets https pytorch geometric temporal readthedocs io en latest notes introduction html discrete time datasets pytorch geometric temporal is a temporal dynamic extension library for pytorch geometric https github com rusty1s pytorch geometric p align justify the library consists of various dynamic and temporal geometric deep learning embedding and spatio temporal regression methods from a variety of published research papers moreover it comes with an easy to use dataset loader train test splitter and temporal snaphot iterator for dynamic and temporal graphs the framework naturally provides gpu support it also comes with a number of benchmark datasets from the epidemological forecasting sharing economy energy production and web traffic management domains finally you can also create your own datasets p the package interfaces well with pytorch lightning https pytorch lightning readthedocs io which allows training on cpus single and multiple gpus out of the box take a look at this introductory example https github com benedekrozemberczki pytorch geometric temporal blob master examples recurrent lightning example py of using pytorch geometric temporal with pytorch lighning we also provide detailed examples for each of the recurrent https github com benedekrozemberczki pytorch geometric temporal tree master examples recurrent models and notebooks https github com benedekrozemberczki pytorch geometric temporal tree master notebooks for the attention based ones case study tutorials we provide in depth case study tutorials in the documentation https pytorch geometric temporal readthedocs io en latest each covers an aspect of pytorch geometric temporal s functionality incremental training epidemiological forecasting case study https pytorch geometric temporal readthedocs io en latest notes introduction html epidemiological forecasting cumulative training web traffic management case study https pytorch geometric temporal readthedocs io en latest notes introduction html web traffic prediction citing if you find pytorch geometric temporal and the new datasets useful in your research please consider adding the following citation bibtex inproceedings rozemberczki2021pytorch author benedek rozemberczki and paul scherer and yixuan he and george panagopoulos and alexander riedel and maria astefanoaei and oliver kiss and ferenc beres and guzman lopez and nicolas collignon and rik sarkar title pytorch geometric temporal spatiotemporal signal processing with neural machine learning models year 2021 booktitle proceedings of the 30th acm international conference on information and knowledge management pages 4564 4573 a simple example pytorch geometric temporal makes implementing dynamic and temporal graph neural networks quite easy see the accompanying tutorial https pytorch geometric temporal readthedocs io en latest notes introduction html applications for example this is all it takes to implement a recurrent graph convolutional network with two consecutive graph convolutional gru https arxiv org abs 1612 07659 cells and a linear layer python import torch import torch nn functional as f from torch geometric temporal nn recurrent import gconvgru class recurrentgcn torch nn module def init self node features num classes super recurrentgcn self init self recurrent 1 gconvgru node features 32 5 self recurrent 2 gconvgru 32 16 5 self linear torch nn linear 16 num classes def forward self x edge index edge weight x self recurrent 1 x edge index edge weight x f relu x x f dropout x training self training x self recurrent 2 x edge index edge weight x f relu x x f dropout x training self training x self linear x return f log softmax x dim 1 methods included in detail the following temporal graph neural networks were implemented recurrent graph convolutions dcrnn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent dcrnn dcrnn from li et al diffusion convolutional recurrent neural network data driven traffic forecasting https arxiv org abs 1707 01926 iclr 2018 gconvgru https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent gconv gru gconvgru from seo et al structured sequence modeling with graph convolutional recurrent networks https arxiv org abs 1612 07659 iconip 2018 gconvlstm https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent gconv lstm gconvlstm from seo et al structured sequence modeling with graph convolutional recurrent networks https arxiv org abs 1612 07659 iconip 2018 gc lstm https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent gc lstm gclstm from chen et al gc lstm graph convolution embedded lstm for dynamic link prediction https arxiv org abs 1812 04206 corr 2018 lrgcn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent lrgcn lrgcn from li et al predicting path failure in time evolving graphs https arxiv org abs 1905 03994 kdd 2019 dygrencoder https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent dygrae dygrencoder from taheri et al learning to represent the evolution of dynamic graphs with recurrent models https dl acm org doi 10 1145 3308560 3316581 evolvegcnh https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent evolvegcnh evolvegcnh from pareja et al evolvegcn evolving graph convolutional networks for dynamic graphs https arxiv org abs 1902 10191 evolvegcno https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent evolvegcno evolvegcno from pareja et al evolvegcn evolving graph convolutional networks for dynamic graphs https arxiv org abs 1902 10191 t gcn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent temporalgcn tgcn from zhao et al t gcn a temporal graph convolutional network for traffic prediction https arxiv org abs 1811 05320 a3t gcn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent attentiontemporalgcn a3tgcn from zhu et al a3t gcn attention temporal graph convolutional network for traffic forecasting https arxiv org abs 2006 11583 agcrn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent agcrn agcrn from bai et al adaptive graph convolutional recurrent network for traffic forecasting https arxiv org abs 2007 02842 neurips 2020 mpnn lstm https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent mpnn lstm mpnnlstm from panagopoulos et al transfer graph neural networks for pandemic forecasting https arxiv org abs 2009 08388 aaai 2021 attention aggregated temporal graph convolutions stgcn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn attention stgcn stconv from yu et al spatio temporal graph convolutional networks a deep learning framework for traffic forecasting https arxiv org abs 1709 04875 ijcai 2018 astgcn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn attention astgcn astgcn from guo et al attention based spatial temporal graph convolutional networks for traffic flow forecasting https ojs aaai org index php aaai article view 3881 aaai 2019 mstgcn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn attention mstgcn mstgcn from guo et al attention based spatial temporal graph convolutional networks for traffic flow forecasting https ojs aaai org index php aaai article view 3881 aaai 2019 gman https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn attention gman gman from zheng et al gman a graph multi attention network for traffic prediction https arxiv org pdf 1911 08415 pdf aaai 2020 mtgnn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn attention mtgnn mtgnn from wu et al connecting the dots multivariate time series forecasting with graph neural networks https arxiv org abs 2005 11650 kdd 2020 2s agcn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn attention tsagcn aagcn from shi et al two stream adaptive graph convolutional networks for skeleton based action recognition https arxiv org abs 1805 07694 cvpr 2019 dnntsp https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn attention dnntsp dnntsp from yu et al predicting temporal sets with deep neural networks https dl acm org doi abs 10 1145 3394486 3403152 kdd 2020 auxiliary graph convolutions temporalconv https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn attention stgcn temporalconv from yu et al spatio temporal graph convolutional networks a deep learning framework for traffic forecasting https arxiv org abs 1709 04875 ijcai 2018 dconv https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent dcrnn dconv from li et al diffusion convolutional recurrent neural network data driven traffic forecasting https arxiv org abs 1707 01926 iclr 2018 chebconvattention https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn attention astgcn chebconvattention from guo et al attention based spatial temporal graph convolutional networks for traffic flow forecasting https ojs aaai org index php aaai article view 3881 aaai 2019 avwgcn https pytorch geometric temporal readthedocs io en latest modules root html torch geometric temporal nn recurrent agcrn avwgcn from bai et al adaptive graph convolutional recurrent network for traffic forecasting https arxiv org abs 2007 02842 neurips 2020 head over to our documentation https pytorch geometric temporal readthedocs io to find out more about installation creation of datasets and a full list of implemented methods and available datasets for a quick start check out the examples https pytorch geometric temporal readthedocs io in the examples directory if you notice anything unexpected please open an issue https benedekrozemberczki pytorch geometric temporal issues if you are missing a specific method feel free to open a feature request https github com benedekrozemberczki pytorch geometric temporal issues installation first install pytorch pytorch install and pytorch geometric pyg install and then run sh pip install torch geometric temporal pytorch install https pytorch org get started locally pyg install https pytorch geometric readthedocs io en latest notes installation html running tests python m pytest test license mit license https github com benedekrozemberczki pytorch geometric temporal blob master license
pytorch graph-neural-networks temporal-networks temporal-graphs gcn graph-convolutional-networks deep-learning network-science temporal-data node-embedding network-embedding graph-embedding spatial-data spatial-analysis spatio-temporal-data spatio-temporal-analysis gnn graph-convolution spatiotemporal
ai
solidity
the solidity contract oriented programming language matrix chat https img shields io badge matrix 20 chat brightgreen style plastic logo matrix https matrix to ethereum solidity gitter im gitter chat https img shields io badge gitter 20 chat brightgreen style plastic logo gitter https gitter im ethereum solidity solidity forum https img shields io badge solidity forum 20 discuss brightgreen style plastic logo discourse https forum soliditylang org twitter follow https img shields io twitter follow solidity lang style plastic logo twitter https twitter com solidity lang mastodon follow https img shields io mastodon follow 000335908 domain https 3a 2f 2ffosstodon org 2f logo mastodon style plastic https fosstodon org solidity you can talk to us on gitter and matrix tweet at us on twitter or create a new topic in the solidity forum questions feedback and suggestions are welcome solidity is a statically typed contract oriented high level language for implementing smart contracts on the ethereum platform for a good overview and starting point please check out the official solidity language portal https soliditylang org table of contents background background build and install build and install example example documentation documentation development development maintainers maintainers license license security security background solidity is a statically typed curly braces programming language designed for developing smart contracts that run on the ethereum virtual machine smart contracts are programs that are executed inside a peer to peer network where nobody has special authority over the execution and thus they allow anyone to implement tokens of value ownership voting and other kinds of logic when deploying contracts you should use the latest released version of solidity this is because breaking changes as well as new features and bug fixes are introduced regularly we currently use a 0 x version number to indicate this fast pace of change https semver org spec item 4 build and install instructions about how to build and install the solidity compiler can be found in the solidity documentation https docs soliditylang org en latest installing solidity html building from source example a hello world program in solidity is of even less use than in other languages but still solidity spdx license identifier mit pragma solidity 0 6 0 0 9 0 contract helloworld function helloworld external pure returns string memory return hello world to get started with solidity you can use remix https remix ethereum org which is a browser based ide here are some example contracts 1 voting https docs soliditylang org en latest solidity by example html voting 2 blind auction https docs soliditylang org en latest solidity by example html blind auction 3 safe remote purchase https docs soliditylang org en latest solidity by example html safe remote purchase 4 micropayment channel https docs soliditylang org en latest solidity by example html micropayment channel documentation the solidity documentation is hosted using read the docs https docs soliditylang org development solidity is still under development contributions are always welcome please follow the developers guide https docs soliditylang org en latest contributing html if you want to help you can find our current feature and bug priorities for forthcoming releases in the projects section https github com ethereum solidity projects maintainers the solidity programming language and compiler are open source community projects governed by a core team the core team is sponsored by the ethereum foundation https ethereum foundation license solidity is licensed under gnu general public license v3 0 license txt some third party code has its own licensing terms cmake templates license h in security the security policy may be found here security md
cpp ethereum smartcontracts language solidity blockchain hacktoberfest programming-language
blockchain
worldskills-web-technologies
worldskills qu es worldskills es un espacio para demostrar las habilidades de los aprendices a nivel nacional e internacional se busca conectar a los representantes con el sector productivo y as aportar como pa s en la estructuraci n de nuevas habilidades internacionales es una estrategia que busca llevar la formaci n t cnica del sena a los m ximos est ndares internacionales quien soy oscar amado worldskills kazan imgs oscar 20amado 20 20worldskills jpg soy oscar amado representante de colombia en worldskills kaz n 2019 https worldskills2019 com en la competencia internacional m s importante del mundo a nivel t cnico y tecnol gico con m s de 1300 competidores de 63 paises en la habilidad tecnolog as web https worldskills org skills id 127 ciclo worldskills competencias entre fichas o centro competencia entre centros de formaci n preselecci n regional bucaramanga colombia competencia regional preselecci n nacional competencia nacional repechaje nacional competencia internacional kaz n rusia resultados de mi ciclo competencias entre fichas o centro div style width 200px img src imgs imagen1 png style object fit cover div m s de 20 competidores de diferentes trimestres y programas de formaci n de mi centro primer puesto competencia entre centros de formaci n div style width 200px img src imgs imagen2 png style object fit cover div 9 los mejores competidores de cada centro de 5 centros deformaci n de distrito capital centro de electricidad electr nica y telecomunicaciones centro para la industria de la comunicaci n gr fica centro de gesti n de mercados log stica y ti centro de servicios financieros centro de dise o y metrolog a primer puesto preselecci n regional bucaramanga colombia div style width 200px img src imgs imagen3 png style object fit cover div 22 competidores de diferentes regionales de colombia quinto lugar con pase a la competencia nacional competencia nacional div style width 200px img src imgs imagen4 png style object fit cover div 9 primeros puestos de la preselecci n nacional medalla de plata primer medalla de distrito capital en la habilidad dise o o tecnolog as web es algo historico quedaron 4 regionales que nunca habian estado en podio guaviare distrito capital quindio huila cundinamarca repechaje nacional div style width 200px img src imgs imagen5 png style object fit cover div 4 competidores podio de la competencia nacional ganador del repechaje nacional sue o meta y objetivo cumplido desde este momento quedo como competidor internacional representado a colombia en la habilidad tecnolog as web si deseas m s informaci n t cnica y un poco m s sobre la experiencia de ser un competidor worldskills puedes continuar leyendo este post en medium https ofaaoficial medium com worldskills colombia web technologies 3bb2698130e4 https ofaaoficial medium com worldskills colombia web technologies 3bb2698130e4 license copyright 2019 present oscar amado https github com ofaaoficial
worldskills oscar-amado web-technologies colombia internacional
server
waifu-otw
div align center h1 waifu on the web h1 img src public assets thumbnail png raw true alt thumbnail netlify status https api netlify com api v1 badges dee7e35d e19a 459d 8f09 dab97e2cfb00 deploy status https waifu sglkc my id issues https img shields io github issues sglkc waifu otw svg https github com sglkc waifu otw issues mit license https img shields io github license sglkc waifu otw svg license a client sided artificial intelligence with natural language processor live2d and speech recognition a href https github com sglkc waifu otw issues report a bug a strong strong a href https github com sglkc waifu otw issues request a feature a div hello i m chiai chiai is your average teenage girl her name comes from my name ai interestingly it also means a thousand love in japanese just like how i love developing her her model is from live2d sample model collection https www live2d com en download sample data anything else is from the internet and i do not claim any assets here credits are to the rightful owner about this project i made this for introduction to computer science my task was just to make a video about the ai i wanted to make here s the point i can t make no videos so i decided to make the ai into reality instead and to be honest this is the most elaborate project i have ever worked on shoutout to nlp js https github com axa group nlp js for natural language processing pixi live2d display https github com guansss pixi live2d display for the live2d display and vite https vitejs dev for bundling and typescript for the type errors at first i made this in plain html and javascript but i realized that it s too hard to maintain and requires too much hacks that it d be hard to understand by anyone if you want the old outdated version you can go to static https github com sglkc waifu otw tree static branch or visit the demo https sglkc github io waifu otw features the main focus of this project is the chatting anything else is not as important here s a list of what you can and may do chat in multiple language currently it supports english bahasa indonesia and japanese if you start to chat in another language the ai should automatically guess the language this is possible by providing multiple data for the ai note japanese is currently incomplete it just exist live2d this is the most visual sugar of all time it deserves no purpose except to drain your data to download a megabyte of live2d assets but in defense live2d is connected to nlp so that the model could react to certain message intents speech recognition this feature will only work in updated google chrome browsers you may use the microphone button on top left to use your voice the input then will be transcribed to the message box and will be automatically sent once you stopped warning this feature is very buggy and the most prone to errors never expect it to work todo i ll put this here because i know well i won t do them things that can be added improved and the reason why i didn t do it what why more message intents takes so much time to make the data all by myself expressions since how nlp and live2d interacts it s hard to integrate it maybe with nlp js sentient analysis smarter ai it s possible but nlp js documentation just made it so hard i can t find anything that i want better web ui ux low priority as long as it works progressive web app offline lowest priority nobody would want to use this offline lmao development to get this running on your machine you could try these steps below 1 clone the repository sh git clone https github com sglkc waifu otw git cd waifu otw 2 install dependencies with a package manager sh npm install 3 train the natural language model with the train script sh npm run train 4 a run in localhost sh npm run dev 4 b if you wish to build for production sh npm run build contributing i really wish for anyone to help with this project just a simple help with the data is much appreciated it s in src nlp src nlp btw the more the better 1 fork the repository 2 create your branch git checkout b patch 1 3 commit your changes git commit m chore add more english intents 4 push to the branch git push origin patch 1 5 open a pull request https github com sglkc waifu otw pulls license distributed under the mit license see license license for more information
nlp html javascript live2d live2d-web vite artificial-intelligence speech-recognition neural typescript natural-language-processing
ai
ml4a-ofx
ml4a ofx a collection of real time interactive applications and associated scripts for working with machine learning all apps contained here require openframeworks http www openframeworks cc to run as well as a number of addons listed below organization the openframeworks apps are provided as source code and can be built and compiled by using the project generator that comes with openframeworks several of these applications are coupled with python scripts which do some analysis of media feature extraction t sne etc whose results are then imported into your ofapp via json or some other means for further processing some of them can be replicated entirely within openframeworks and wherever possible for example t sne such applications are also provided the advantage of the scripts is that they can be used in other environments as well and are much easier to port or implement from the preeminent machine learning frameworks applications the apps https github com ml4a ml4a ofx tree master apps folder contains all of the individual openframeworks apps and their descriptions and usage instructions osc modules the osc modules https github com ml4a ml4a ofx tree master osc modules folder contains a set of applications which send or receive osc in order to facilitate communication with other applications and are very easily used alongside wekinator http www wekinator org datasets some of the applications work on image audio text datasets example datasets are provided and can be downloaded with the provided scripts see download images py for image example additionally some require pre trained models which can also be downloaded for the ones which require vgg weights you can download that here https drive google com file d 0bz7kyqmugsilt0j5dmrcm0rovhc view usp sharing addons all of the included applications both in the apps and osc modules folders require some combination of the following addons the readme for each app lists the addons required individually the following is a complete list ofxabletonlive https github com genekogan ofxabletonlive ofxassignment https github com kylemcdonald ofxassignment ofxaudiounit https github com admsyn ofxaudiounit ofxcv https github com kylemcdonald ofxcv ofxccv https github com kylemcdonald ofxccv ofxdarknet https github com mrzl ofxdarknet ofxfacetracker2 https github com halfdanj ofxfacetracker2 ofxgrt https github com nickgillian ofxgrt ofxjson https github com jeffcrouse ofxjson ofxleapmotion2 https github com genekogan ofxleapmotion2 ofxlearn https github com genekogan ofxlearn ofxmaxim https github com falcon4ever ofxmaxim ofxopenni https github com gameoverhack ofxopenni ofxscreengrab https github com genekogan ofxscreengrab ofxtemplatematch https github com genekogan ofxtemplatematching ofxtsne https github com genekogan ofxtsne the addons also make use of ofxgui ofxosc and ofxopencv which are included in openframeworks by default these addons are not currently used in ml4a ofx but are also relevant and may be wrapped into examples in the future ofxmsatensorflow https github com memo ofxmsatensorflow ofxdlib https github com bakercp ofxdlib ofxcaffe https github com geekrick88 ofxcaffe getting started these are some steps to get you up and running with ml4a ofx prepare your project 0 make sure you ve read and followed the openframeworks setup guides http openframeworks cc download relevant for your system going through them makes sure the foundation for all ml4a ofx apps is working correctly 1 this guide assumes that you have one folder with the openframeworks setup in it this is the folder in which you would test your openframeworks setup as described above one different folder in which you have the ml4a ofx content this folder does not have to be within the openframeworks folder 1 for your project you most certainly want to use an existing ml4a ofx app as a starting point so simply duplicate any of the folders within ml4a ofx apps and give the folder a custom name or work in the folder of the example project if you do not plan to re use it anyways 1 check the readme md file of your project it always contains the required addons you need to get your app running follow the links of each addon check the installation guide and follow each one some of the apps need example data to work correctly as you probably have enough space on your computer anyways open a terminal window go into the ml4a ofx folder and run sh setup sh this will download the necessary data and place it in the data folder all addons currently used across the examples are mentioned in the addons list addons be careful put the required addons into the addons subfolder of your openframeworks folder to work correctly setup your project on a mac you can use the projectgenerator app that is included in openframeworks set the base path to your openframeworks folder as described in the app this has to be done on the first time only click on the create update tab import your project by clicking the import button selecting your project s folder this should be located in your ml4a ofx folder your project name project path and the addons list should update accordingly if any of the addons is missing the interface will notify you of that since you prepared your project in the above described steps all should be good here otherwise check the prepare your project part again click update to get the project setup running the interface doesn t show it explicitly but this gets the project generator running it should result in a success message you can then click open in ide to directly open the project in xcode also feel free to close the projectgenerator again since you don t need it anymore for now within xcode wait a few moments to index and process the files of the project you can then compile the project by pressing the play button or cmd r cross your fingers fingers crossed and hope your project compiles wink if you run into any errors the openframeworks setup guides might have some explanations or possible steps otherwise it always helps to google the error seriously and try to figure out what s going on in case you get completely stuck you might find help here by opening an issue https github com ml4a ml4a ofx issues new include any error message you find and try to explain the problem as good as possible this will help resolve any issue a lot on windows feel free to add documentation here on linux feel free to add documentation here
ai
OScripture
nlp for analysis of the scriptures this repository is dedicated to development of nlp tools resources for analysis of the scriptures including bible and quran this project is in the scope of digital humanities please feel free to contribute dg https cloud githubusercontent com assets 8551117 17011754 cfed4a7e 4ec5 11e6 9799 6add70019875 png
ai
cs224n-2017-winter
cs224n winter 2017 all lecture notes slides and assignments for cs224n natural language processing with deep learning http web stanford edu class cs224n class by stanford the videos of all lectures are available on youtube https www youtube com playlist list pl3fw7lu3i5jsnh1rnuwq tcylnr7ekre6 useful links cs224n winter 2019 edition https github com maxim5 cs224n 2019 winter cs224n winter 2020 edition https github com maxim5 cs224n 2020 winter
machine-learning nlp stanford-nlp cs224n deep-learning
ai
iot-dc3
boom 6 show me you code alien rocket star star github https github com pnoker iot dc3 gitee https gitee com pnoker iot dc3 tada p align center img src dc3 images iot dc3 logo png width 400 br a href https travis ci org pnoker iot dc3 img src https travis ci org pnoker iot dc3 svg branch master a a href https codecov io gh pnoker iot dc3 img src https codecov io gh pnoker iot dc3 branch master graph badge svg a br a img src https img shields io badge jdk 1 8 green svg a a img src https img shields io badge spring boot 2 1 6 release blue svg a a img src https img shields io badge spring cloud greenwich release blue svg a a href https github com pnoker iot dc3 blob master license img src https img shields io github license pnoker iot dc3 svg a br strong dc3 spring cloud iot br iot dc3 is an open source distributed internet of things iot platform based on spring cloud it is used for rapid development of iot projects and management of iot devices it is a set of solutions for iot system strong p 1 dc3 iot iot dc3 architecture dc3 images iot dc3 architecture1 jpg 1 1 sdk 1 2 dc3 mqtt rtsp rtmp http plc s7 opc opc ua tcp socket java aes rsa 1 3 dc3 spring cloud java docker 2 dc3 iot dc3 spring cloud 4 iot dc3 architecture dc3 images iot dc3 architecture2 jpg spring cloud netflix https cloud spring io spring cloud netflix spring cloud gateway https cloud spring io spring cloud gateway spring cloud security https cloud spring io spring cloud security spring cloud openfeign https cloud spring io spring cloud openfeign spring cloud config https cloud spring io spring cloud config spring cloud bus https cloud spring io spring cloud bus 3 whale2 pnokers icloud com mega issue pull request iot dc3 lollipop lombok netty spring boot spring cloud s7connector https github com s7connector s7connector 4 wiki https github com pnoker iot dc3 wiki
server
machine-learning-specialization-andrew-ng
machine learning specialization with andrew ng p this repository contains a collection of notes and implementations of machine learning algorithms from andrew ng s machine learning specialization the specialization consists of three courses p 1 supervised machine learning regression and classification https www coursera org learn machine learning specialization machine learning introduction 1 advanced learning algorithms https www coursera org learn advanced learning algorithms specialization machine learning introduction 3 unsupervised learning recommenders reinforcement learning https www coursera org learn unsupervised learning recommenders reinforcement learning specialization machine learning introduction programming assignments p lab assignments are completed using jupyter notebooks and python any code i wrote is marked with start code here end code here so it can be removed easily if wanting to complete the labs from a clean state p 1 linear regression https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments linear regression ipynb 2 logistic regression https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments logistic regression ipynb 3 multiclass classification and neural networks https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments multi class classification and neural networks ipynb 4 neural networks for multiclass classification https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments neural networks for multiclass classification ipynb 5 advice for applying machine learning https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments advice for applying machine learning ipynb 6 decision trees https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments decision trees ipynb 7 k means clustering https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments k means clustering ipynb 8 anomaly detection https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments anomaly detection ipynb 9 collaborative filtering recommender systems https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments collaborative recommender systems ipynb 10 content based filtering recommender systems https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments content based filtering recommender systems ipynb 11 reinforcement learning https nbviewer org github pmulard machine learning specialization andrew ng blob main assignments reinforcement learning ipynb notes p these notes are information i found helpful while studying through the curriculum they include high level overviews practical tips and lots of walkthroughs through core mathematical concepts p p the idea is that most of the course is covered using these notes in conjunction with the assignments though i highly suggest using andrew s video series free and optional labs paid as he does a fantastic job of teaching p p i originally wrote these notes in notion which i ve provided links for below pdf versions of these are uploaded into the notes folder of the repo for accessibility i suggest working through the collection in the order they are provided as much of the knowledge builds upon itself p linear regression https pmulard notion site linear regression 82a77381f9504a65bcd8e1ae545aa4ed gradient descent https pmulard notion site gradient descent c8b5b3024f334f77bf2ee2016c0cdf69 logistic regression https www notion so pmulard logistic regression a55b93f722284e9ea110c6eb8ba6e49f pvs 4 neural networks https www notion so pmulard neural networks 7dd29cd37a024473ad3ca8caf3521be9 pvs 4 practical machine learning https pmulard notion site practical machine learning 28f12b4adb1946ad9da5d24b75e41ee5 decision trees https pmulard notion site decision trees 6798106e342240e29b7c515a0b84a548 tree ensembles https pmulard notion site tree ensembles 276f268505184db89625d811faa39dd4 clustering https pmulard notion site clustering 178a2ac563c64fe3bdd3666d4b14efc2 anomaly detection https pmulard notion site anomaly detection d0c0c8d73d1d44e9bcd0f374aa56022c recommender systems https pmulard notion site recommender systems 2552d55ed0c14043a3b7e0246ea89421 principle component analysis https www notion so pmulard principle component analysis babdb72cec1349c8bddacf4017a31296 pvs 4 reinforcement learning https www notion so pmulard reinforcement learning aa891ed958024a9eb8481a0562e50343 pvs 4
ai
review-of-point-cloud
review of point cloud toc 1 introduction instrument laser scanning photography 2 data processing registration segmentation and clustering fitting method object detection and classification 3 dimension quality assessment dimension and position of prefabricated elements 4 structural damage assessment global and local deformation crack directly on points cloud combined with image spalling such surface quality 5 structural performance assessment fe model generation model updating parameters such as modulus and passion ratio and validation structural nonlinear analysis 6 combination with bim life circle documentation visualization 7 conclusions in this work acknowledgments references papers arrow forward 1 segmentation base processing beam bridge detection of structural components in point clouds of existing rc bridges https kdocs cn l si4nxfaldy47 star slicing method arch bridge automated processing of large point clouds for structural health monitoring of masonry arch bridges https kdocs cn l sdmqmwy2tsdw arrow forward 2 dimensional quality assessment dqa rebar concrete cover automated dimensional quality assessment for formwork and rebar of reinforced concrete components using 3d point cloud data https kdocs cn l sfr2gi37urgf a noise removal algorithm pca ransac dimensional and surface quality a framework for dimensional and surface quality assessment of precast concrete elements using bim and 3d laser scanning https kdocs cn l strjem8y7vn3 dimension of panels automated dimensional quality assessment of precast concrete panels using terrestrial laser scanning https kdocs cn l ssgvs4sw0xns data pre processing edge and corner extraction compensation for edge dimension loss dimension estimation and quality assessment vector sum algorithm span style color green scan distance angular resolution incident angle span arrow forward 3 finite element model fem voxel based from laser scanning to finite element analysis of complex buildings by using a semi automatic procedure https kdocs cn l samracui4tzk slice generation fem generation fem two three dimensional voxel based mesh automated structural modelling of bridges from laser scanning https kdocs cn l stwxqkotqchm 2d 3d boundary interal exteral voxels arrow forward 4 inspection crack concrete crack assessment using digital image processing and 3d scene reconstruction https kdocs cn l sm1rhnmynpso 2d 3d bim 2d image net rgb laser based structural sensing and surface damage detection https kdocs cn l srbbv5jskrbp star star star image based development of image processing for crack detection on concrete structures through terrestrial laser scanning associated with the octree structure https kdocs cn l sextlmla5ssw oc tree 2d image processing uav deformation structure masonry arch structural assessment of masonry arch bridges by combination of non destructive testing techniques and three dimensional numerical modelling application to vilanova bridge https kdocs cn l splh6wuri0kl star star laser scan ground penetrating radar survey masonry arch mapping deformations and inferring movements of masonry arch bridges using point cloud data https kdocs cn l som0epenna4d material automatic classification of common building materials from 3d terrestrial laser scan data using one class support vector machine oc svm method and support vector data description svdd method with assistance of features such as material reflectance colour and surface roughness to classify material by point clouds applications of laser scanning to structures in laboratory tests and field surveys https kdocs cn l sai80ekiwdtx ls a laser scanning based method for fast estimation of seismic induced building deformations arrow forward 5 bim digital twin digital twinning of existing reinforced concrete bridges from labelled point clusters https kdocs cn l srtydtxhwknd ifc labelled point clusters fitting step slicing based object fitting method cloud to cloud distance based metrics gbxml in practical circumstances in all of the above studies
cloud
Modbus-PI-Pico-FreeRTOS
modbus rtu master and slave library for raspberry pi pico based on the c sdk and freertos includes a project example for independent master and slave instances running concurrently this repository is a port of the modbus library for stm32 microcontrollers https github com alejoseb modbus stm32 hal freertos also it uses the port of freertos to the raspberry pi pico published at https github com picocpp rpi pico freertos the library supports any combination of master or slave instances how to use the examples install the raspberry pi pico c sdk according to the official documentation https datasheets raspberrypi org pico getting started with pico pdf configure the environment to work with visual studio code clone this repository and initialize the submodules bash git clone https github com alejoseb modbus pi pico freertos git cd modbus pi pico freertos git submodule update init recursive open the repository folder in visual studio code update the launch json https github com alejoseb modbus pi pico freertos blob main vscode launch json file according to your environment start the debugging session according to the official documentation recommended modbus master and slave testing tools for linux and windows master client qmodbus linux https github com ed chemnitz qmodbus windows https sourceforge net projects qmodbus slave simulator linux https sourceforge net projects pymodslave windows https sourceforge net projects modrssim2
raspberry-pi-pico modbus-rtu
os
Audio-Vision
audio vision license https img shields io badge license mit brightgreen svg https github com channelcs summaries blob master license dep1 https img shields io badge theano 0 9 blue svg http deeplearning net software theano dep2 https img shields io badge keras 2 1 red svg https keras io implementation and reviews of audio computer vision related papers in python most of our codes use keras aud https github com channelcs keras aud library img src https placeholdit co i 130x30 bg 4286f4 fc ffffff text implementations alt implementations 1 deep neural network baseline for dcase challenge 2016 paper http www cs tut fi sgn arg dcase2016 documents challenge technical reports dcase2016 kong 3008 pdf code https github com channelcs summaries tree master dnn 2 cqt based convolutional neural networks for audio scene classification and domestic audio tagging paper http www cs tut fi sgn arg dcase2016 documents challenge technical reports dcase2016 lidy 4007 pdf code https github com akshitac8 summaries tree master parallel cnn 3 a convolutional neural network approach for acoustic scene classification paper https ieeexplore ieee org stamp stamp jsp tp arnumber 7966035 code https github com akshitac8 summaries tree master deep cnn 4 convolutional recurrent neural networks for polyphonic sound event detection paper https arxiv org pdf 1702 06286 pdf code https github com akshitac8 summaries tree master crnn 5 framecnn a weakly supervised learning framework for frame wise acoustic event detection and classification paper https www cs tut fi sgn arg dcase2017 documents challenge technical reports dcase2017 chou 102 pdf code https github com akshitac8 summaries tree master frame cnn 6 attention and localization based on a deep convolutional recurrent model for weakly supervised audio tagging paper https arxiv org pdf 1703 06052 pdf code https github com akshitac8 summaries tree master attention cgrnn 7 exploring models and data for image question answering paper https arxiv org pdf 1505 02074 pdf code https github com akshitac8 summaries tree master vis lstm 8 stacked attention networks for image question answering paper https arxiv org pdf 1511 02274 pdf code https github com channelcs audio vision tree master vqa stacked 20attention 9 sequence to sequence autoencoders for unsupervised representation learning from audio paper https www cs tut fi sgn arg dcase2017 documents workshop papers dcase2017workshop amiriparian 172 pdf code seq2seq rnn img src https placeholdit co i 130x30 bg 61e83c fc ffffff text applications alt applications application deployed using heroku and flask with python and js 1 digit classifier implementation https github com channelcs mnist cnn application https github com channelcs digit identify 2 mnist random digit regenerator paper https arxiv org pdf 1504 07225 pdf implementation https github com gauravbh1010tt deeplearn tree master corrnet application https github com channelcs image generate feedback all kinds of feedback code style bugs comments etc is welcome please open an issue https github com channelcs summaries issues on this repository contribution guidelines if you are familiar with basics of contributing to github repositories feel free to skip this section for total beginners who landed up here before contributing take a look at the blog post https channelcs github io best practices in a collaborative environment html to get started team roles aditya arora code environments structuring dynamic description logics feature logistics documentations akshita gupta paper selections understanding theoretical concepts model descriptions https sourcerer io fame akshitac8 channelcs audio vision images 0 https sourcerer io fame akshitac8 channelcs audio vision links 0 https sourcerer io fame akshitac8 channelcs audio vision images 1 https sourcerer io fame akshitac8 channelcs audio vision links 1 https sourcerer io fame akshitac8 channelcs audio vision images 2 https sourcerer io fame akshitac8 channelcs audio vision links 2 https sourcerer io fame akshitac8 channelcs audio vision images 3 https sourcerer io fame akshitac8 channelcs audio vision links 3 https sourcerer io fame akshitac8 channelcs audio vision images 4 https sourcerer io fame akshitac8 channelcs audio vision links 4 https sourcerer io fame akshitac8 channelcs audio vision images 5 https sourcerer io fame akshitac8 channelcs audio vision links 5 https sourcerer io fame akshitac8 channelcs audio vision images 6 https sourcerer io fame akshitac8 channelcs audio vision links 6 https sourcerer io fame akshitac8 channelcs audio vision images 7 https sourcerer io fame akshitac8 channelcs audio vision links 7 upcoming uploads 1 bottom up and top down attention for image captioning and visual question answering paper https arxiv org pdf 1707 07998 pdf
deep-learning computer-vision audio-tagging audio-classification heroku research-paper attention-mechanism seq2seq-model webapp attention-model
ai
red-instruct
red teaming large language models using chain of utterances for safety alignment paper https arxiv org abs 2308 09662 github https github com declare lab red instruct dataset https huggingface co datasets declare lab harmfulqa model https huggingface co declare lab starling 7b as a part of our efforts to make llms safer for public use we provide code to evaluate llm safety against chain of utterances cou based prompts referred to as redeval benchmark img src http drive google com uc export view id 1zswuwthrhlik18gxbnqx9 nppvyutqtb alt image width 30 height 30 code to perform safety alignment of vicuna 7b on harmfulqa https huggingface co datasets declare lab harmfulqa with this we obtain a safer version of vicuna which is more robust against redeval please check out our starling https huggingface co declare lab starling 7b img src https declare lab net assets images logos starling final png alt image width 30 height 40 red eval benchmark simple scripts to evaluate closed source systems chatgpt gpt4 and open source llms on our benchmark red eval to compute attack success rate asr red eval uses two question bank consisting of harmful questions harmfulqa https huggingface co datasets declare lab harmfulqa 1 960 harmful questions covering 10 topics and 10 subtopics each dangerousqa https github com salt nlp chain of thought bias blob main data dangerous q toxic outs json 200 harmful questions across 6 adjectives racist stereotypical sexist illegal toxic and harmful installation conda create name redeval c conda forge python 3 11 conda activate redeval pip install r requirements txt how to perform red teaming step 0 decide which prompt template you want to use for red teaming as a part of our efforts we provide a cou based prompt that is effective at breaking the safety guardrails of gpt4 chatgpt and open source models chain of utterances cou https github com declare lab red instruct blob main red prompts cou txt chain of thoughts cot https github com declare lab red instruct blob main red prompts cot txt standard prompt https github com declare lab red instruct blob main red prompts standard txt suffix prompt https github com declare lab red instruct blob main red prompts suffix txt note different llms may require slight variations in the above prompt template to generate meaningful outputs to create a new template you can refer to the above template files just make sure to have a question string in the prompt which is a placeholder for the harmful question step 1 generate model outputs on harmful questions by providing a path to the question bank and red teaming prompt closed source models gpt4 and chatgpt python generate responses py model gpt4 prompt red prompts cou txt dataset harmful questions dangerousqa json python generate responses py model chatgpt prompt red prompts cou txt dataset harmful questions dangerousqa json open source models python generate responses py model lmsys vicuna 7b v1 3 prompt red prompts cou txt dataset harmful questions dangerousqa json for better readability we can clean internal thoughts from responses by specifying clean thoughts as follows python generate responses py model gpt4 prompt red prompts cou txt dataset harmful questions dangerousqa json clean thoughts python generate responses py model chatgpt prompt red prompts cou txt dataset harmful questions dangerousqa json clean thoughts python generate responses py model lmsys vicuna 7b v1 3 prompt red prompts cou txt dataset harmful questions dangerousqa json clean thoughts to load models in 8 bit we can specify load 8bit as follows python generate responses py model lmsys vicuna 7b v1 3 prompt red prompts cou txt dataset harmful questions dangerousqa json clean thoughts load 8bit to run on a subset of the harmful questions we can specify num samples as follows python generate responses py model lmsys vicuna 7b v1 3 prompt red prompts cou txt dataset harmful questions dangerousqa json clean thoughts num samples 10 step 2 annotate the generated responses using gpt4 as a judge python gpt4 as judge py response file results dangerousqa gpt4 cou json save path results results attack success rate asr of different red teaming attempts dangerousqa dangerousqa dangerousqa dangerousqa harmfulqa harmfulqa harmfulqa harmfulqa standard cot redeval average standard cot redeval average gpt 4 0 0 0 651 0 217 0 0 004 0 612 0 206 chatgpt 0 0 005 0 728 0 244 0 018 0 027 0 728 0 257 vicuna 13b 0 027 0 490 0 835 0 450 vicuna 7b 0 025 0 532 0 875 0 477 stablebeluga 13b 0 026 0 630 0 915 0 523 stablebeluga 7b 0 102 0 755 0 915 0 590 vicuna ft 7b 0 095 0 465 0 860 0 473 llama2 ft 7b 0 722 0 860 0 896 0 826 starling blue 0 015 0 485 0 765 0 421 starling blue red 0 050 0 570 0 855 0 492 average 0 116 0 479 0 830 0 471 0 010 0 016 0 67 0 232 citation bibtex misc bhardwaj2023redteaming title red teaming large language models using chain of utterances for safety alignment author rishabh bhardwaj and soujanya poria year 2023 eprint 2308 09662 archiveprefix arxiv primaryclass cs cl
huggingface-transformers llama llama2 llm llms
ai
shiny-react-example
shiny react example example of a shiny app with a react front end demo https shiny glin io shiny react example installation sh git clone https github com glin shiny react example cd shiny react example npm install development 1 run the shiny app in development mode with live reloading enabled sh npm start or run main r in an r console 2 run webpack dev server with hot reloading enabled npm run dev 3 open http localhost 4000 production 1 build the react app in production mode npm run build 2 run the shiny app
r shiny react
front_end
few-shot
few shot learning the aim for this repository is to contain clean readable and tested code to reproduce few shot learning research this project is written in python 3 6 and pytorch and assumes you have a gpu see these medium articles for some more information 1 theory and concepts https towardsdatascience com advances in few shot learning a guided tour 36bc10a68b77 2 discussion of implementation details https towardsdatascience com advances in few shot learning reproducing results in pytorch aba70dee541d setup requirements listed in requirements txt install with pip install r requirements txt preferably in a virtualenv data edit the data path variable in config py to the location where you store the omniglot and miniimagenet datasets after acquiring the data and running the setup scripts your folder structure should look like data path omniglot images background images evaluation miniimagenet images background images evaluation omniglot dataset download from https github com brendenlake omniglot tree master python place the extracted files into data path omniglot raw and run scripts prepare omniglot py miniimagenet dataset download files from https drive google com file d 0b3irx3uqnobmq1flnxjszudywee view place in data miniimagenet images and run scripts prepare mini imagenet py tests optional after adding the datasets run pytest in the root directory to run all tests results the file experiments experiments txt contains the hyperparameters i used to obtain the results given below prototypical networks prototypical networks https github com oscarknagg few shot blob master assets proto nets diagram png run experiments proto nets py to reproduce results from prototpyical networks for few shot learning https arxiv org pdf 1703 05175 pdf snell et al arguments dataset omniglot miniimagenet whether to use the omniglot or miniimagenet dataset distance l2 cosine which distance metric to use n train support samples per class for training tasks n test support samples per class for validation tasks k train number of classes in training tasks k test number of classes in validation tasks q train query samples per class for training tasks q test query samples per class for validation tasks omniglot k way 5 5 20 20 n shot 1 5 1 5 published 98 8 99 7 96 0 98 9 this repo 98 2 99 4 95 8 98 6 miniimagenet k way 5 5 n shot 1 5 published 49 4 68 2 this repo 48 0 66 2 matching networks a differentiable nearest neighbours classifier matching networks https github com oscarknagg few shot blob master assets matching nets diagram png run experiments matching nets py to reproduce results from matching networks for one shot learning https arxiv org pdf 1606 04080 pdf vinyals et al arguments dataset omniglot miniimagenet whether to use the omniglot or miniimagenet dataset distance l2 cosine which distance metric to use n train support samples per class for training tasks n test support samples per class for validation tasks k train number of classes in training tasks k test number of classes in validation tasks q train query samples per class for training tasks q test query samples per class for validation tasks fce whether true or not false to use full context embeddings fce lstm layers number of lstm layers to use in the support set fce unrolling steps number of unrolling steps to use when calculating fce of the query sample i had trouble reproducing the results of this paper using the cosine distance metric as i found the converge to be slow and final performance dependent on the random initialisation however i was able to reproduce and slightly exceed the results of this paper using the l2 distance metric omniglot k way 5 5 20 20 n shot 1 5 1 5 published cosine 98 1 98 9 93 8 98 5 this repo cosine 92 0 93 2 75 6 77 8 this repo l2 98 3 99 8 92 8 97 8 miniimagenet k way 5 5 n shot 1 5 published cosine fce 44 2 57 0 this repo cosine fce 42 8 53 6 this repo l2 46 0 58 4 model agnostic meta learning maml maml https github com oscarknagg few shot blob master assets maml diagram png i used max pooling instead of strided convolutions in order to be consistent with the other papers the miniimagenet experiments using 2nd order maml took me over a day to run run experiments maml py to reproduce results from model agnostic meta learning https arxiv org pdf 1703 03400 pdf finn et al arguments dataset omniglot miniimagenet whether to use the omniglot or miniimagenet dataset distance l2 cosine which distance metric to use n support samples per class for few shot tasks k number of classes in training tasks q query samples per class for training tasks inner train steps number of inner loop updates to perform on training tasks inner val steps number of inner loop updates to perform on validation tasks inner lr learning rate to use for inner loop updates meta lr learning rate to use when updating the meta learner weights meta batch size number of tasks per meta batch order whether to use 1st or 2nd order maml epochs number of training epochs epoch len meta batches per epoch eval batches number of meta batches to use when evaluating the model after each epoch nb for maml n k and q are fixed between train and test you may need to adjust meta batch size to fit your gpu 2nd order maml uses a lot more memory omniglot k way 5 5 20 20 n shot 1 5 1 5 published 98 7 99 9 95 8 98 9 this repo 1 95 5 99 5 92 2 97 7 this repo 2 98 1 99 8 91 6 95 9 miniimagenet k way 5 5 n shot 1 5 published 48 1 63 2 this repo 1 46 4 63 3 this repo 2 47 5 64 7 number in brackets indicates 1st or 2nd order maml
machine-learning pytorch few-shot-learning research meta-learning maml omniglot miniimagenet
ai
IdentifyMe-Controller
identifyme controller this repo is custom powered by express using typescript controller for identifymeapp available at https github com thinhnnd identifymeapp installation dependency to start successfully in local environment you must use python 3 6 9 and install aca py by command bash pip3 install aries cloudagent and install indy sdk wrapper for python bash pip3 install python3 indy after that clone this repo bash git clone https github com xuanthu01 identifyme controller git run command to install bash npm install starting development this repo using von network to start dev successfully please clone von network and start in docker management tool will be appeared at http localhost 9000 bash npm run dev docker if you prefer global network than please use environment variables available variables ledger url seed genesis url genesis file easy run with script example bash ledger url http dev greenlight bcovrin vonx io start sh please note the url include ledger url is not contains http dev greenlight bcovrin vonx io build bash npm run build
cloud
INF-362-Web-Development-Sandbox-Spring-2013
inf 362 web development sandbox spring 2013 working sandbox for suny albany cci class on web development the copyright of the pages contained in this project is held by each one of the corresponding contributors the project as a whole is distributed under the apache 2 0 license please see license file for details
front_end
Data-Engineering-Google-Cloud-Specialization
cloud engineering with data engineering with google cloud professional certificate what you will learn learn the skills needed to be successful in a data engineer role learn about the infrastructure and platform services provided by google cloud platform prepare for the professional data engineer certification processing big data at scale for analytics and machine learning about this professional certificate this program provides the skills you need to advance your career in data engineering and recommends training to support your preparation for the industry recognized google cloud professional data engineer certification through a combination of presentations demos and labs you will enable data driven decision making by collecting transforming and publishing data and you ll gain real world experience through a number of hands on qwiklabs projects you ll also have the opportunity to practice key job skills including designing building and running data processing systems and operationalizing machine learning models upon successful completion of this program you will earn a certificate of completion to share with your professional network and potential employers if you would like to become google cloud certified and demonstrate your proficiency to design and build data processing systems and operationalize machine learning models on google cloud platform you will need to register for and pass the official google cloud certification exam you can find more details on how to register and additional resources to support your preparation at cloud google com certifications applied learning project this professional certificate incorporates hands on labs using our qwiklabs platform these hands on components will let you apply the skills you learn in the video lectures projects will incorporate topics such as google bigquery which are used and configured within qwiklabs you can expect to gain practical hands on experience with the concepts explained throughout the modules there are 5 courses in this professional certificate 1 google cloud platform big data and machine learning fundamentals 2 modernizing data lakes and data warehouses with gcp 3 building batch data pipelines on gcp 4 building resilient streaming analytics systems on gcp 5 smart analytics machine learning and ai on gcp 6 preparing for the google cloud professional data engineer exam
cloud
crect
crect a c compile time reactive rtos crect pronounced correct is a c library for generating a scheduler at compile time for cortex m series mcus which guarantees dead lock free and data race free execution it utilizes the nested vector interrupt controller nvic in cortex m processors to implement a stack resource policy srp based scheduler thanks to the compile time creation of the scheduler the resource requirements at run time are minimal with initialization 4 5 instructions job for initialization of the nvic 2 3 instructions queue element for initializing the async queue the static requirement for async is about 400 bytes the linked list systick and time implementation compile time uses the kvasir mpl library for metaprogramming runtime 3 4 instructions 4 bytes of stack for a lock 1 3 instructions for an implicit unlock claim has zero overhead it decomposes into a lock 5 instructions for a unique lock will change 2 instructions for a unique unlock will change 2 4 instructions for pend clear about 20 30 instructions number of items in queue for async in this scheduler heavy use of c metaprogramming and c 14 allows among other things priority ceilings and interrupt masks to be automatically calculated at compile time while resource locks are handled through raii and resource access is handled via a monitor pattern this minimizes user error without the need for an external extra compile step as is currently being investigated in the rtfm core language http www rtfm lang org videos tutorials youtube video from embo 2018 https www embo io describing the inner workings of crect https www youtube com watch v sbij9w9gfbw give it a test in the example folder a few example projects are setup for the nucleo f411re board for example a program that will blink a led every one seconds using crect primitives an example for how to use unique lock with a data pumping peripheral for example dma or a communication interface it also contains examples of crect system config hpp and crect user config hpp providing references until a documentation is available if there are any questions on the usage throw me a message tested on ubuntu linux using gcc 6 3 1 arm none eabi and a nucleo f411re for hardware testing it is currently not working on cortex m0 devices license boost software license version 1 0 contributors list of contributors in alphabetical order emil fresk https www github com korken89 odin holmes https www github com odinthenerd carlos van rooijen https www github com cvrxx references crect is based on the following academic papers t p baker a stack based resource allocation policy for realtime processes general theory of srp johan eriksson et al real time for the masses step 1 programming api and static priority srp kernel primitives srp primitives per lindgren et al abstract timers and their implementation onto the arm cortex m family of mcus async idea definitions job a function that runs to completion in a finite time no forever loop not as a normal thread that has a forever loop has a settable priority which indicates the urgency of the job resource an entity symbolizing something lockable i e any locked resource may only be accessed by a single job at a time lock a lock on a resource keeps other jobs that will also take said resource from running through manipulation of the systems nvic basepri settings a lock can only be held within a job and must be released before the exit of a job usage small description on how to use this resource definition a resource definition is as follows c using rled crect make resource crect object link led resource link to some object to be protected currently 2 system resources exists 1 the access to the async queue is protected via crect rasync 2 for getting the current time via crect clock system now is protected via crect rsystem clock see claim for example usage any job using these resources need to have the corresponding resource in its resource claim in crect user config hpp job definition a job definition consists of a few parts 1 the priority of the job from 0 meaning low to max priority meaning max 2 an isr the job is connected to peripheral isrs 0 is the lowest negative numbers are the system isrs if it is not connected to any take any random isr number for now in the future this will be automatic 3 the list of resources that the job may claim the job definitions are placed directly or via include in crect user config hpp c void job1 void using j1 crect job 1 priority 0 low crect make isr job1 1 isr connection and location r1 crect rasync list of possible resource claims each job need to be added to the user job list jobs in crect user config hpp isr definition the isr definitions available are split in the peripheral isrs i 0 and system isrs i 0 c peripheral isr definition i 0 template crect details isr function pointer p int i using make isr crect details isr p crect details index i system isr definition i 0 template int i using make system isr crect details isr nullptr crect details index i lock a lock keeps the system from running a job which will lock the same resource the analysis to determine which job can take which resource is done at compile time which makes the lock very cheap to use as indicated at the start of this document lock should however be avoided by the user use claim wherever possible c lock the resource remember locks are very cheap sprinkle them everywhere crect lock r1 lock locks are made in the constructor of the lock unlock is automatic in the destructor of lock there is no unlock this is by design claim even with lock it is easy to leak a resource and to minimize this chance claim uses a monitor pattern to guard the resource hence the resource is only available within the lambda of claim c access the led resource through the claim following a monitor pattern just as cheap as a lock crect claim rled auto led led enable to guarantee the lock for resources with a return works just as good with claim for example when getting the current time as the system time is a shared resource c resource is handled within the claim no risk of a data race auto current time crect claim crect rsystem clock auto now return now now is a function reference for a full example please see examples blinky unique lock add a unique resource and its corresponding lock is to support lock over job boundaries this allows for producer consumer patterns as the unique job can work by reading a queue of actions ex a dma where jobs push to a dma transfer queue and the job which has the unique dma resource will read this queue and perform the desired transactions a unique lock effectively decomposes into disabling the interrupt vector of the job while the unique unlock re enables the interrupt vector for a full example please see examples unique c there is no unlock this is by design pend clear pend directly sets a job for execution and will be as soon as its priority is the highest while clear removes the job for execution c compile time constant pend clear crect pend jobtopend crect clear jobtopend runtime dependent pend clear crect pend jobtopend isr id crect clear jobtopend isr id async async defers a jobs execution to some specific time c using chrono to relate the system to time the current max time is somewhere around 1500 years depending on mcu using namespace std chrono literals async in some specific duration using chrono crect async jobtopend 100ms async in some specific time using a specific time auto time to execute some duration crect claim crect rsystem clock auto now return now crect async jobtopend time to execute async can be used as pend for runtime dependent execution crect async 100ms jobtopend isr id crect async time to execute jobtopend isr id
rtos deadlock-free cortex-m reactive-programming compile-time
os
AR-Smart-IoT-MQTT-FreeRTOS
a r smart iot mqtt freertos email me at rihab jouini etudiant enit utm tn this is a project with real time os freertos using stm32l475 discoverykit iot node and mqtt protocol to connect to our node red dashboard
os
EE-702
ee 702 computer vision mini projects shape from shading multi occular stereo vision assignments paper review computing the stereo matching cost with convolutional neural networks problem setup video frame completion using global temporal gradient minimization authors and contributors meetshah1995 yashbhalgat
computer-vision stereo-vision shape-descriptor
ai
resources
light field resources this is a work in progress repo for collecting links to data sets source code and other resources related to research on light fields for computer vision this is an open list maintained by the light field community so please feel encouraged to contribute by adding updating information or by fixing broken links you may edit this file directly and make a pull request or send an email to contact at lightfield analysis net for further information and interaction within the light field community have a look at light field forum http lightfield forum com en mailing list general light field vision google group https groups google com forum forum lightfieldvision background information general light field information wikipedia https en wikipedia org wiki light field plenoptic info http plenoptic info provides some nice visualizations on how micro lens based plenoptic cameras work todor georgievs website http www tgeorgiev net insights into plenoptic cameras no longer updated a taxonomy and evaluation of dense light field depth estimation algorithms http lightfield analysis net benchmark paper survey cvprw lf4cv 2017 pdf paper with an in depth overview of depth estimation approaches for 4d light fields light fields and computational imaging https web stanford edu class ee367 reading levoy lfphoto ieee06 pdf early survey of the theory and practice of light field imaging please add more datasets stanford light field archives old new lytro and multiview http lightfields stanford edu mit synthetic light field archive http web media mit edu gordonw syntheticlightfields index php 4d light field dataset cvia konstanz hci heidelberg http lightfield analysis net hci 4d light field dataset http lightfieldgroup iwr uni heidelberg de page id 713 lytro first generation dataset https www irisa fr temics demos lightfield index html epfl light field image dataset http mmspg epfl ch epfl light field image dataset disney high spatio angular resolution light fields https www disneyresearch com project lightfields light field saliency dataset lfsd https www eecis udel edu nianyi lfsd htm lcav 31 a dataset for light field object recognition https github com aghasemi lcav31 a 4d light field dataset for material recognition http cseweb ucsd edu viscomp projects lf papers eccv16 lf dataset zip data for occlusion aware depth estimation using light field cameras http cseweb ucsd edu viscomp projects lf papers iccv15 dataset zip ddff 12 scene 4 5d lightfield depth benchmark https vision in tum de data datasets ddff12scene inria lytro light field dataset https www irisa fr temics demos lightfield lowrank2 datasets datasets html hfut lytro illum dataset for saliency detection https drive google com drive folders 1ieum co5jugka5 nhmxwjorat2kbasu3 graz university etaargus https www etaargus com datasets university rome smart dataset http www comlab uniroma3 it smart html mpi light field intrinsics http lfid mpi inf mpg de mpi light field archive http lightfields mpi inf mpg de dataset html matching lytro and raytrix dataset https figshare com articles the plenoptic dataset 6115487 cvia konstanz specular dataset https github com cvia kn lf autoencoder cvpr2018 code v sense lytro illum dataset https v sense scss tcd ie research light fields high quality lf extraction pipeline iris lytro illum light field dataset https www irisa fr temics demos illumdatasetlf index html iris light field video dataset captured by a r8 raytrix camera https www irisa fr temics demos lightfield clim datasets raytrixr8dataset 5x5 index html custom built plenoptic camera dataset osa publishing https figshare com articles raw image data taken by a standard plenoptic camera 3362152 pov ray lf dataset 900lfs incl depth paper convolutional networks for shape from light field cvpr16 https drive google com open id 1fbckwalzzmjwegqtn51e m9yonbhwus2 lightfield with depth ground truth https sites google com view cvia plenoptic imaging please add more tools matlab light field toolbox http dgd vision tools lftoolbox cocolib light field suite http cocolib net index php examples lightfields geometric light field camera calibration toolbox https sites google com site yunsubok lf geo calib blender addon to create synthetic light field data sets https github com lightfield analysis blender addon plenoptic toolbox 2 0 https github com plenoptictoolbox plenoptictoolbox2 0 plenoptic simulation https github com arne petersen plenoptic simulation matlab light field toolbox clim v sense https github com v sense lftoolbox clim vsense light field colour correction https github com v sense lftoolbox recolouring hpr light field focus calibration and depth estimation https www mathworks com matlabcentral fileexchange 67876 lightfield focus calibration for metric depth estimation plenoptisign light field geometry estimator https github com hahnec plenoptisign plenopticam light field rendering software app https github com hahnec plenopticam please add more algorithm source code liff light field feature detector and descriptor http dgd vision tools liff accurate depth map estimation from a lenslet light field camera https sites google com site hgjeoncv home depthfromlf cvpr15 lf occlusion aware depth estimation using light field cameras http cseweb ucsd edu viscomp projects lf papers iccv15 occcode zip lf occ empirical bayesian light field stereo matching by robust pseudo random field modeling http www ee nthu edu tw chaotsung rprf index html rprf robust depth estimation for light field via spinning parallelogram operator https github com shuozh spinning parallelogram operator spo lfbm5d filter for light field denoising and super resolution https github com v sense lfbm5d please add more where applicable the short name in parentheses denotes the acronym used on the 4d light field benchmark http lightfield analysis net workshops tutorials 1st workshop on light fields for computer vision eccv 2014 https www eecis udel edu yu lf4cv 2nd workshop on light fields for computer vision cvpr 2017 http lightfield analysis net lf4cv please add more people labs cvia computer vision and image analysis uni konstanz germany https www cvia uni konstanz de sci stanford computational imaging stanford university usa http www computationalimaging org hci heidelberg collaboratory for image processing heidelberg university germany http lightfieldgroup iwr uni heidelberg de page id 453 erc clim inria rennes france https www irisa fr temics demos lightfield clim test htm v sense school of computer science and statistics trinity college dublin ireland https v sense scss tcd ie research light field imaging hd vision systems https www hdvisionsystems com please add more
ai
ParkingManager
javaliz parkingmanager work by the javaliz team for the bachelor of software engineering subject advanced database topics
server
TrufflePig
trufflepig a steemit curation bot based on natural language processing and machine learning test https travis ci org smokincaterpillar trufflepig svg branch master coverage status https coveralls io repos github smokincaterpillar trufflepig badge svg branch master https coveralls io github smokincaterpillar trufflepig branch master steemit https steemit com can be a tough place for minnows as new users are often called i had to learn this myself due to the incredible number of new posts published every minute it is exceptionally difficult to stand apart from the crowd nice well researched and well crafted posts from minnows are often overlooked minnows do not benefit from influential followers to upvote their high quality posts their contributions are lost long before any whale may notice them and turn these posts into trending topics user based curation does have merrit and it is possible that posts receive the traction and recognition they deserve i believe there is a way to support the steemit content curators a way in which high quality content no longer goes unnoticed i have developed a curation bot called trufflepig to do exactly this using natural language processing and machine learning the deployed bot can be found here https steemit com trufflepig the concept the idea is to use well received posts as training examples to teach a machine learning regressor mlr what high quality steemit content looks like once trained the machine learning regressor is used to identify high quality posts which were missed by the curation community these posts which receive less payment than they deserved are dubbed truffles the general idea of the system is as follows 1 i train a machine learning regressor mlr using steemit posts as inputs and the corresponding steem dollar sbd reward and the number of votes as outputs 2 the mlr learns to predict potential payouts for new steemit posts 3 i compare the predicted payout with the actual payout of these recent steemit posts between 2 and 26 hours old when the machine learning model predicts a high reward where such a reward was not actually assigned to the post i classify this post as an overlooked truffle the implementation the machine learning regression model is trained on posts older than 7 days which have already been paid features include spelling errors post length and readability scores a post s content is modelled as a latent semantic indexing https de wikipedia org wiki latent semantic analysis projection the final regressor is a multi output random forest http scikit learn org stable modules generated sklearn ensemble randomforestregressor html the bot uses the official steem python https github com steemit steem python library to scrape data from the steemit blockchain and to post a toplist of the daily found truffles using its trained model the bot works as follows 1 older data is scraped from the blockchain see bchain getdata py or loaded from disk if possible 2 the scraped posts are filtered and preprocessed see preprocessing py 3 a model is trained on the processed data if one does not yet exist see model py or is otherwise loaded from disk 4 more recent data is scraped and checked for truffles using this trained model 5 the bot publishes a toplist of truffles on which it both upvotes and comments see bchain postdata py installation and execution clone the project directory git clone https github com smokincaterpillar trufflepig git add the project directory to your pythonpath e g export pythonpath pythonpath path to project start the bot using the provided main py driver python main py you can manually set the time the bot considers as now via the now configuration flag now 2018 01 01 11 42 42 by default the bot will not post to the blockchain to enable posting use the broadcast flag the bot s account information requires you to populate environment variables steem account steem posting key and steem password steem password is optional and used only to encrypt the wallet file the password should not be your steemit masterpassword open source usage the bot is open source and can be freely used for non commercial purposes please check the license file trufflepig https raw githubusercontent com smokincaterpillar trufflepig master img trufflepig17 small png trufflepig the bot s avatar has been created using https robohash org
ai
wd-admissions-challenge
create a review page for toy story 4 table of contents project project requirements requirements getting started getting started advice advice submitting your work submitting your work evaluation criteria evaluation criteria do this do this don t do this don t do this project you will be building a 1 page website using html css and javascript don t worry if you ve never coded before this is a super fun project for beginners and we ll provide you with all the resources you need to succeed you will be creating a movie page for toy story 4 here is a snapshot of what your project will look like all sizes screenshots wd challenge desktop jpeg requirements html use proper semantic html tags as much as possible there should be one h1 tag two h2 tags a number of p tags some img tags other tags as needed add links to outside sources ex links to character wikipedia pages css use html tags or classes to target page elements get your version of the design as close as you can to the provided mockup create a hover effect with css on any element javascript create an input field at the bottom of the page that will gather visitor comments create an input that will accept comments from visitors create a button which submits the comments to the website create a function that will post the comments to the page getting started learning the basics in order to crush your admissions challenge you ll need to learn some html css and javascript we ve hand selected a few tutorials we recommend starting with but feel free to use any additional resources you might need free intro to html css https www bigmarker com concordiabootcamps introduction to web development javascript dom manipulation https www youtube com watch v y17ruwkwdn8 flexboxfroggy com https flexboxfroggy com building your project with codesandbox you will be building your project with an app called codesandbox to get started create an account here https codesandbox io signin once signed in go to this url https codesandbox io s tech challenge toystory 4 xfbd7 create a copy of this project by clicking file fork sandbox this is where you will build out your project advice take some time to look over the provided content and mockups here is a gif to give you a better idea of what the actual page looks like all sizes screenshots wd techchallenge gif we ve added color codes and other css values that you will need in the styles css file all of the images you will need are in the images folder all of the text you will need is in the content md file the fonts are already being imported and are available for use in the css file get as far as you can this challenge is meant to be difficult and provide you with a challenge that should test your limits keep in mind that there are many ways of completing the project everyone will have a different solution as long as the rendered page looks like the provided mockup and you haven t gone against any explicit don ts you should be fine submitting your work in order to submit your work please save your project in codesandbox and email the url to your learning advisor evaluation criteria you have 10 days from the day you applied to send in your admissions challenge once we review your work we will reach out typically within a day or two to let you know the next steps 10 days is not a lot of time so make sure to put aside a few hours each day to get this done at the end of the 10 days submit your project at whichever state it is in do this do remember what stumped you and problems you had and be prepared to talk about them during your interview do have the grit to find solutions online not every search result will be a winner but if you persevere all the answers you need are available online do be aware that we will be questioning you on your code and the thought that went into it do write all of the html and css yourself do use vanilla javascript this means just plain ol js without any frameworks or libraries do use flexbox for your layout don t do this don t worry about creating a pixel perfect reproduction of the mockup don t try to learn everything there is to know about html css and js there is way too much to learn and that is what we are here to help with don t copy code from outside sources the code should be your own don t use any css framework to complete your project don t use jquery don t use tables in your code
front_end
defold
ci main https github com defold defold workflows ci 20 20main badge svg ci editor only https github com defold defold workflows ci 20 20editor 20only badge svg ci engine nightly https github com defold defold workflows ci 20 20engine 20nightly badge svg join the chat at https discord gg chbde7j https img shields io discord 250018174974689280 color 237289da label defold logo discord logocolor white https discord gg chbde7j defold repository for the defold engine editor and command line tools supported by https defold com images logo others melsoft black png https melsoft games com https defold com images spacer32 png https defold com images logo others rive black png https www rive app https defold com images spacer32 png https defold com images logo others op games color png https www opgames org https defold com images spacer32 png https defold com images logo others heroiclabs blue png https www heroiclabs com https defold com images spacer32 png https defold com images logo others king color png https king com folder structure build tools build configuration and build tools used by build scripts ci continuous integration files for github ci more info readme ci md com dynamo cr bob engine engine editor editor packages external packages scripts build and utility scripts share misc shared stuff used by other tools waf build scripts valgrind suppression files etc setup and build setup engine follow the setup guide readme setup md to install all of the tools needed to build the defold engine build engine follow the build instructions readme build md to build the engine and command line tools setup build and run editor follow the instructions editor readme md in the editor folder engine overview an overview of the engine architecture and additional engine information can be viewed here readme engine md platform specifics ios readme ios md android readme android md html5 emscripten readme emscripten md releasing a new version the release process is documented here release md complying with licenses a full list of third party software licenses along with information on how to give attribution and include the licenses in your game can be found in the complying with licenses complying with licenses md document in the defold repository on github
defold game-engine c-plus-plus clojure game-development multi-platform gamedev hacktoberfest
front_end
estnltk
estnltk open source tools for estonian natural language processing estnltk provides common natural language processing functionality such as paragraph sentence and word tokenization morphological analysis named entity recognition etc for the estonian language the project is funded by ekt eesti keeletehnoloogia riiklik programm https www keeletehnoloogia ee as of version 1 7 the estnltk library is split into 3 python packages estnltk core package containing core data structures interfaces and data conversion functions of the estnltk library estnltk the standard package which contains basic linguistic analysis including vabamorf s morphological analysis syntactic parsing and information extraction tools system taggers and postgres database tools estnltk neural package containing additional linguistic analysis based on neural models bert embeddings tagger stanza syntax taggers and neural morphological tagger source code of packages is available at the estnltk s monorepository https github com estnltk estnltk tree main estnltk installation estnltk is available for osx windows 64 and linux 64 and for python versions 3 8 to 3 11 you can install the latest version via pypi pip install estnltk 1 7 2 alternatively you can install estnltk via anaconda https www anaconda com download installation steps with conda 1 create a conda environment https conda io projects conda en latest user guide tasks manage environments html creating an environment with commands with python 3 9 for instance conda create n py39 python 3 9 2 activate the environment https conda io projects conda en latest user guide tasks manage environments html activating an environment for instance conda activate py39 3 install estnltk with the command conda install c estnltk c conda forge estnltk 1 7 2 remark about conda installations as our platform coverage is wider on pip we encourage installing estnltk inside conda environment through pip if the default conda installation fails remark on conda linux if you are trying to run estnltk conda package on an older linux platform such as centos 7 ubuntu 18 04 or 20 04 you may stumble upon an error stating libc so 6 version glibc 2 34 not found a quick and recommended solution is to install estnltk via pip instead for possible alternative soultions see this thread https github com huggingface tokenizers issues 585 note for using some of the tools in estnltk you also need to have java installed in your system we recommend using oracle java http www oracle com technetwork java javase downloads index html although alternatives such as openjdk http openjdk java net should also work using on google colab you can install estnltk on google colab https colab research google com environment via command pip install estnltk 1 7 2 documentation estnltk s tutorials come in the form of jupyter notebooks http jupyter org starting point of tutorials https github com estnltk estnltk tree main tutorials additional educational materials on estnltk are available on web pages of an nlp course taught at the university of tartu https github com d009 estnlp https github com d009 estnlp in estonian note if you have trouble viewing jupyter notebooks in github you get an error message sorry something went wrong reload at loading a notebook then try to open notebooks with the help of https nbviewer jupyter org https nbviewer jupyter org source the source of the last release is available at the main branch https github com estnltk estnltk tree main changelog is available here https github com estnltk estnltk blob main changelog md estnltk neural tools in estnltk neural require installation of deep learning frameworks tensorflow pytorch and are demanding for computational resources they also rely on large models which need to be downloaded separately instructions for installing the package can be found here https github com estnltk estnltk blob main estnltk neural readme md citation in case you use estnltk in your work please cite us as follows inproceedings laur etal 2020 lrec author laur sven and orasmaa siim and s rg dage and tammo paul title estnltk 1 6 remastered estonian nlp pipeline booktitle proceedings of the 12th language resources and evaluation conference month may year 2020 address marseille france publisher european language resources association pages 7154 7162 url https www aclweb org anthology 2020 lrec 1 884 if you use estnltk v1 4 1 or older please cite inproceedings orasmaa16 332 author siim orasmaa and timo petmanson and alexander tkachenko and sven laur and heiki jaan kaalep title estnltk nlp toolkit for estonian booktitle proceedings of the tenth international conference on language resources and evaluation lrec 2016 year 2016 month may date 23 28 location portoro slovenia editor nicoletta calzolari conference chair and khalid choukri and thierry declerck and marko grobelnik and bente maegaard and joseph mariani and asuncion moreno and jan odijk and stelios piperidis publisher european language resources association elra address paris france isbn 978 2 9517408 9 1 language english
estnltk anaconda-distribution estonian estonian-language natural-language-processing nlp
ai
Automotive-Buzzer-and-Light-Control
automotive buzzer and light control a demonstration of diagrams related to embedded systems static and dynamic design concepts the system used for illustration consists of 2 microcontrollers communicating with each other using can protocol the static design diagrams are block diagram layered architecture the dynamic design diagrams are state machine sequence diagram
os
connect_four
connect four an implementation of connect four using the atmega328p microcontroller for unlv cpe 301l final project overview our final project is a combination of the lcd keypad lab and the first lab which used arduino code we implemented a connect four game on the atmega328p with two users that will act as players whose turns alternate starting with player one s turn always the 4x4 keypad will act as our game input and each player will take turns pressing buttons until one player can connect four in a row the first row and four columns will be the input representing the top of the connect four game pressing any of the buttons in row one will drop an imaginary piece onto the imaginary game board our program will check if the opposing player has already occupied a certain spot and in that case then the player can t occupy that button anymore then the lcd will display which player has taken their turn and which button is pressed as well as displaying the win condition or draw components software arduino ide https www arduino cc en software hardware atmega328p https www microchip com en us product atmega328p lcd display https www amazon com sunfounder serial module display arduino dp b019k5x53o ref asc df b019k5x53o tag hyprod 20 linkcode df0 hvadid 312760964359 hvpos hvnetw g hvrand 17107115202404698256 hvpone hvptwo hvqmt hvdev c hvdvcmdl hvlocint hvlocphy 9030833 hvtargid pla 563014027379 th 1
arduino-ide atmega328p connect-four lcd-screen
os
CS643-2016
my work for the class of mobile web content development
front_end
nlp_newsletter
nlp newsletter note the new nlp newsletter now lives here https github com dair ai nlp newsletter the nlp newsletter provides a weekly issue that curates the most important natural language processing nlp news coming from both the industry and academia subscribe get the latest nlp news right inside your favorite community github to subscribe just click on both the watch and star buttons up above like so alt txt https github com omarsar nlp newsletter blob master resources nlp newsletter gif editors elvis saravia http elvissaravia com twitter https twitter com omarsar0 youtube https www youtube com channel ucyna oxowl7ieuowb7whmxq want to become an editor reach me out directly on twitter https twitter com omarsar0 or leave an issue here https github com omarsar nlp newsletter issues new past issues issue 1 nlp legend dies facebook s wav2letter tensorflow for deep learning research https github com omarsar nlp newsletter blob master issues issue 1 nlp legend dies facebooks wav2letter tensorflow for deep learning research md january 12 2018 issue 2 best of nlp research bipolar detection openai s faster neural networks sarcastobot https github com omarsar nlp newsletter blob master issues issue 2 best of nlp research bipolar detection openais faster neural networks sarcastobot md january 19 2018 issue 3 emotional chatbot detectron deep learning course google free gpu https github com omarsar nlp newsletter blob master issues issue 3 emotional chatbot detectron deep learning course google free gpu md january 26 2018 issue 4 sequence models course gary marcus vs yann lecun deep learning matrix calculus tensorflow capsules https github com omarsar nlp newsletter blob master issues issue 4 sequence models course gary marcus vs yann lecun deep learning matrix calculus tensorflow capsules md february 2 2018 issue 5 nested lstms tensorflow minigo aaai 2018 notes extract 4 0 arxiv vanity https github com omarsar nlp newsletter blob master issues issue 5 nested lstms tensorflow minigo aaai 2018 notes extract 4 0 arxiv vanity md february 9 2018 issue 6 deep reinforcement learning agents tensorflow spinn tensor comprehensions emotion understanding state of nlu https github com omarsar nlp newsletter blob master issues issue6 deep 20reinforcement 20learning 20agents 2c 20tensorflow 20spinn 2c 20tensor 20comprehensions 2c 20emotion 20understanding 2c 20state 20of 20nlu md february 16 2018 issue 7 deep voice 3 ganfather test tube sound and meaning proven beauty word embeddings in 157 languages https github com omarsar nlp newsletter blob master issues issue7 deepvoice ganfather testtube md february 25 2018 issue 8 woebot raises 8 million tensorflow 1 6 project alexandria google ml course deep learning notations https github com omarsar nlp newsletter blob master issues issue8 md march 3 2018 issue 9 tensorflow js code2vec dl text text distance group normalization linguamatics https github com omarsar nlp newsletter blob master issues issue9 md april 2 2018 issue 10 textql colorless green rnns convai2 machine learning yearning meta learning tutorial tinn world models https github com omarsar nlp newsletter blob master issues issue10 md april 9 2018 issue 11 deepsuperlearner spherical cnns google semantris debater data alterego text to images gans hate speech detection https github com omarsar nlp newsletter blob master issues issue11 md april 16 2018 issue 12 pytorch 0 4 0 google brain tokyo quicknlp multilingual nlu peerread dataset pytorch gan ml openness sgd earth dl for alzheimer s detection https github com omarsar nlp newsletter blob master issues issue12 md may 14 2018 issue 13 einsum magenta js ml debiasing tensorflow 1 8 0 the gradient mlperf sarcasm detection fast ai loves pytorch word morphing https github com omarsar nlp newsletter blob master issues issue13 md may 21 2018 issue 14 google duplex sense embeddings hyperdoc2vec codraw keras cppn tflite resume classification https github com omarsar nlp newsletter blob master issues issue14 google duplex sense embeddings hyperdoc2vec codraw keras cppn tflite resume classification md may 28 2018 issue 15 polysemy embeddings semi adversarial networks ulmfit color naming sentiment style transfer https github com omarsar nlp newsletter blob master issues issue 2015 polysemy embeddings semi adversarial networks ulmfit color naming sentiment style transfer md june 4 2018 issue 16 hyperbolic attention networks whistle to music graph2seq netflix research intel nlp tools https github com omarsar nlp newsletter blob master issues issue 2016 20 20hyperbolic attention networks whistle to music graph2seq netflix research intel nlp tools md june 11 2018 issue 17 elmo glomo floydhub workspaces ai principles ncrf torchfold ai talent report https github com omarsar nlp newsletter blob master issues issue 2017 20 20elmo glomo floydhub workspaces ai principles ncrf torchfold ai talent report md june 18 2018 issue 18 song lyric toxicity commit assistant nlp progress densepose pytorch geometric https github com omarsar nlp newsletter blob master issues issue 2018 20 20song toxicity commit assistant nlp progress densepose pytorch geometric md june 25 2018 issue 19 libratus openai five common sense ai arnn positive ai wavenet stack darts roar https github com omarsar nlp newsletter blob master issues issue 2019 libratus openai five common sense ai arnn positive ai wavenet stack darts roar md july 2 2018 issue 20 grokking deep learning something something v2 tensorflow 1 9 nlp imagenet moment feature wise transformations https github com omarsar nlp newsletter blob master issues issue 2020 grokking deep learning something something v2 tensorflow 1 9 nlp imagenet moment feature wise transformations md july 14 2018 issue 21 arel textworld ecommerce chatbot bloomberg and bair ai courses troubling trends in ml icml 2018 notes nlp and law https github com omarsar nlp newsletter blob master issues issue 2021 arel textworld ecommerce chatbot bloomberg and bair ai courses troubling trends in ml icml 2018 notes nlp and law md july 16 2018 issue 22 tensorboardx nlp best practices cirq subjectivity in ai mojitalk seq to seq debugging data portability https github com omarsar nlp newsletter blob master issues issue 2022 tensorboardx nlp best practices cirq subjectivity in ai mojitalk seq to seq debugging data portability md july 23 2018 issue 23 decanlp gluonnlp al stack pythia data for good differentiable image parameterizations https github com omarsar nlp newsletter blob master issues issue 2023 decanlp gluonnlp al stack pythia data for good differentiable image parameterizations md july 31 2018 issue 24 manubot nalu gluoncv ml5 js doc ai openai benchmark deep speare cyberbullying detection https github com omarsar nlp newsletter blob master issues issue 2024 manubot nalu gluoncv ml5 js doc ai openai benchmark deep speare cyberbullying detection md august 6 2018 issue 25 pictures to poetry facebook teaches ml tensorflow 1 10 0 mnasnet bixby speaker ai in 2026 https github com omarsar nlp newsletter blob master issues issue 2025 pictures to poetry facebook teaches ml tensorflow 1 10 0 mnasnet bixby speaker ai in 2026 md august 13 2018 issue 26 swag q a dataset polygonrnn deep learning in nlp diagnosing retinal disease pix2pix on the browser autokeras https github com omarsar nlp newsletter blob master issues issue 2026 swag qa dataset polygonrnn deep learning in nlp diagnosing retinal disease pix2pix on the browser autokeras md august 20 2018 issue 27 deep infomax image to image translation fever perception engines quac best 150 ml tutorials https github com omarsar nlp newsletter blob master issues issue 2027 deep infomax image to image translation fever perception engines quac best 150 ml tutorials md august 27 2018 issue 28 google ai dopamine glue transmogrifai machine learning for health care nlp interpretability probabilistic thinking https github com omarsar nlp newsletter blob master issues issue 2028 google ai dopamine glue transmogrifai machine learning for health care nlp interpretability probabilistic thinking md september 4 2018 issue 29 mlaas don the joy of ai jupytext ai next mtnt gan lab what if tool dataset search https github com omarsar nlp newsletter blob master issues issue 2029 mlaas don the joy of ai jupytext ai next mtnt gan lab what if tool dataset search md september 12 2018 issue 30 facebook s sapfix improvisational comedy textual analogy parsing ethical ml sound search gans and art https github com omarsar nlp newsletter blob master issues issue 2030 facebooks sapfix improvisational comedy textual analogy parsing ethical ml sound search gans and art md september 17 2018 issue 31 sotawhat dynamic meta embeddings journal fairness in ml course graphnets nlp overview paper medical torch https github com omarsar nlp newsletter blob master issues issue 2031 sotawhat dynamic meta embeddings journal fairness in ml course graphnets nlp overview paper medical torch md october 22 2018 issue 32 nlp overview facebook s xnli sharc autoaugment pair2vec iterated amplification https github com omarsar nlp newsletter blob master issues issue 2032 nlp overview facebooks xnli sharc autoaugment pair2vec iterated amplification md october 29 2018
nlp-machine-learning nlp deep-learning natural-language-processing
ai
nid-notes
nid notes a new flutter application getting started this project is a starting point for a flutter application a few resources to get you started if this is your first flutter project lab write your first flutter app https flutter dev docs get started codelab cookbook useful flutter samples https flutter dev docs cookbook for help getting started with flutter view our online documentation https flutter dev docs which offers tutorials samples guidance on mobile development and a full api reference
front_end
city_score
city score an app to get scores about the city of your choice project nr 4 of backend development master start2impact javascript advanced
server
iot-things-examples
examples for bosch iot things this repository contains examples for using bosch iot things it is part of the bosch iot suite https www bosch iot suite com which is the cloud based iot platform provided by bosch io https bosch io the service is based on and powered by the open source project eclipse ditto https www eclipse org ditto the example code provided here shows a selection of the bosch iot things service functionality thus the examples do not cover the complete service offering if you need more information please visit the links above or contact us digitaltwin example digitaltwin example this concept shows an end to end scenario for digital twins based on bosch iot things eclipse ditto desired state synchronizer desired state synchronizer this example shows a usage scenario for an integration of iot devices with bosch iot things eclipse ditto it is focused on distinguishing between the current reported state of device information and a desired target state for that device this is mainly required for configuration parameters of devices that are connected either sporadically or unstably octopus firmware octopus firmware this example shows how to connect an esp8266 based iot board via bosch iot hub to bosch iot things and how to update a digital twin via telemetry data sent from the device octopus simulator octopus simulator this example is a local node js simulator which you can use as a replacement for octopus firmware octopus firmware if you don t have access to an octopus octopus frontend octopus frontend this example shows how to send command and control messages via the http api of bosch iot things to bosch iot hub to the physical device things batch importer things batch importer with this tool you can upload a large number things into your cloud service instance at once the example uses the things client for uploading the things from a local file license the examples are available under the terms of bosch si or bosch io example code license see individual files for details
server
system-design-basics
system design basics click 9733 if you like the project your contributions are heartily welcome br table of contents todo br basic steps 1 clarify and agree on the scope of the system user cases description of sequences of events that taken together lead to a system doing something useful who is going to use it how are they going to use it constraints mainly identify traffic and data handling constraints at scale scale of the system such as requests per second requests types data written per second data read per second special system requirements such as multi threading read or write oriented 2 high level architecture design abstract design sketch the important components and connections between them but don t go into some details application service layer serves the requests list different services required data storage layer eg usually a scalable system includes webserver load balancer service service partition database master slave database cluster and caching systems 3 component design component specific apis required for each of them object oriented design for functionalities map features to modules one scenario for one module consider the relationships among modules certain functions must have unique instance singletons core object can be made up of many other objects composition one object is another object inheritance 4 database schema design understanding bottlenecks perhaps your system needs a load balancer and many machines behind it to handle the user requests or maybe the data is so huge that you need to distribute your database on multiple machines what are some of the downsides that occur from doing that is the database too slow and does it need some in memory caching 5 scaling vertical scaling you scale by adding more power cpu ram to your existing machine horizontal scaling you scale by adding more machines into your pool of resources caching load balancing helps you scale horizontally across an ever increasing number of servers but caching will enable you to make vastly better use of the resources you already have as well as making otherwise unattainable product requirements feasible application caching requires explicit integration in the application code itself usually it will check if a value is in the cache if not retrieve the value from the database database caching tends to be free when you flip your database on you re going to get some level of default configuration which will provide some degree of caching and performance those initial settings will be optimized for a generic usecase and by tweaking them to your system s access patterns you can generally squeeze a great deal of performance improvement in memory caches are most potent in terms of raw performance this is because they store their entire set of data in memory and accesses to ram are orders of magnitude faster than those to disk eg memcached or redis eg precalculating results e g the number of visits from each referring domain for the previous day eg pre generating expensive indexes e g suggested stories based on a user s click history eg storing copies of frequently accessed data in a faster backend e g memcache instead of postgresql load balancing public servers of a scalable web service are hidden behind a load balancer this load balancer evenly distributes load requests from your users onto your group cluster of application servers types smart client hard to get it perfect hardware load balancers but reliable software load balancers hybrid works for most systems p align center img src http lethain com static blog intro arch load balance png alt load balancing p database replication database replication is the frequent electronic copying data from a database in one computer or server to a database in another so that all users share the same level of information the result is a distributed database in which users can access data relevant to their tasks without interfering with the work of others the implementation of database replication for the purpose of eliminating data ambiguity or inconsistency among users is known as normalization database partitioning partitioning of relational data usually refers to decomposing your tables either row wise horizontally or column wise vertically map reduce for sufficiently small systems you can often get away with adhoc queries on a sql database but that approach may not scale up trivially once the quantity of data stored or write load requires sharding your database and will usually require dedicated slaves for the purpose of performing these queries at which point maybe you d rather use a system designed for analyzing large quantities of data rather than fighting your database adding a map reduce layer makes it possible to perform data and or processing intensive operations in a reasonable amount of time you might use it for calculating suggested users in a social graph or for generating analytics reports eg hadoop and maybe hive or hbase platform layer services separating the platform and web application allow you to scale the pieces independently if you add a new api you can add platform servers without adding unnecessary capacity for your web application tier adding a platform layer can be a way to reuse your infrastructure for multiple products or interfaces a web application an api an iphone app etc without writing too much redundant boilerplate code for dealing with caches databases etc p align center img src http lethain com static blog intro arch platform layer png alt platform layer p div align right b a href back to top a b div key topics for designing a system 1 concurrency do you understand threads deadlock and starvation do you know how to parallelize algorithms do you understand consistency and coherence 2 networking do you roughly understand ipc and tcp ip do you know the difference between throughput and latency and when each is the relevant factor 3 abstraction you should understand the systems you re building upon do you know roughly how an os file system and database work do you know about the various levels of caching in a modern os 4 real world performance you should be familiar with the speed of everything your computer can do including the relative performance of ram disk ssd and your network 5 estimation estimation especially in the form of a back of the envelope calculation is important because it helps you narrow down the list of possible solutions to only the ones that are feasible then you have only a few prototypes or micro benchmarks to write 6 availability reliability are you thinking about how things can fail especially in a distributed environment do know how to design a system to cope with network failures do you understand durability div align right b a href back to top a b div web app system design considerations security cors using cdn a content delivery network cdn is a system of distributed servers network that deliver webpages and other web content to a user based on the geographic locations of the user the origin of the webpage and a content delivery server this service is effective in speeding the delivery of content of websites with high traffic and websites that have global reach the closer the cdn server is to the user geographically the faster the content will be delivered to the user cdns also provide protection from large surges in traffic full text search using sphinx lucene solr which achieve fast search responses because instead of searching the text directly it searches an index instead offline support progressive enhancement service workers web workers server side rendering asynchronous loading of assets lazy load items minimizing network requests http2 bundling sprites etc developer productivity tooling accessibility internationalization responsive design browser compatibility div align right b a href back to top a b div working components of front end architecture code html5 wai aria css sass code standards and organization object oriented approach how do objects break down and get put together js frameworks organization performance optimization techniques asset delivery front end ops documentation onboarding docs styleguide pattern library architecture diagrams code flow tool chain testing performance testing visual regression unit testing end to end testing process git workflow dependency management npm bundler bower build systems grunt gulp deploy process continuous integration travis ci jenkins div align right b a href back to top a b div q what is architecture q what is clean architecture q what is code design principles solid q what is component principles q what is architecture principles q what are the concepts of the clean architectural design code using solid principles todo div align right b a href back to top a b div
os
MegaListofResources
megalistofresources this is a ton of helpful links for designers and front end developers we encourage you to play around and explore all of these resources as everything that s on this list comes highly recommended if you ever find yourself at a loss for what to do poke around in here while not every person will necessarily need all of these resources it s a great way to discover what you personally like and works for you use only what you find useful about designation designation http designation io designation io http designation io is a full time full immersion full stack design bootcamp in chicago and st louis over 16 weeks students learn digital design front end development and user experience ux and build their portfolios by working with live clients on real world projects search google https www google com gws rd ssl stackoverflow coding questions http stackoverflow com ux stack exchange ux questions http ux stackexchange com graphic design stack exchange visual design questions http graphicdesign stackexchange com mdn mozilla developer network for good documentation https developer mozilla org en us creative commons license free image search http search creativecommons org online communities hacker news startup culture news trends https news ycombinator com designer news design culture news trends https news layervault com product hunt startup culture news trends http www producthunt com sidebar design culture news trends http sidebar io dribbble design culture trends http dribbble com behance design culture trends https www behance net r web design http reddit com r web design interviews dorm room tycoon design interviews http drt fm designation blog http designation io blog category interviews humble pied http humblepied com invisionapp blog http blog invisionapp com responsiveness responsive patterns http bradfrost github io this is responsive patterns html responsive px http responsivepx com lettering js responsive typography http letteringjs com fluid images http unstoppablerobotninja com entry fluid images fluid 960 grid http designinfluences com fluid960gs gridless http thatcoolguy github io gridless boilerplate px to em http pxtoem com media queries patterns library http mediaqueri es responsive web design most complete guide http www webdesignshock com responsive web design this is responsive patterns library http bradfrost github io this is responsive ink create responsive interfaces http ink sapo pt responsinator http www responsinator com front end development important must read of things to understand in front end dev css resets responsive media queries viewport meta tag box model container columns rows best practices clearfix http www adamkaplan me grid code guide standards for flexible durable html css http mdo github io code guide how to keep up to date on front end technologies http uptodate frontendrescue org front end frameworks html5 boilerplate http html5boilerplate com blueprint http www blueprintcss org zurb foundation http foundation zurb com 99lime http www 99lime com skeleton http www getskeleton com centurion http www centurionframework com compare front end frameworks http usablica github io front end frameworks compare html javascript frameworks angularjs https angularjs org emberjs http emberjs com batmanjs http batmanjs org backbone http backbonejs org sproutcore http sproutcore com yui http yuilibrary com semantic ui semantics for sharing http semantic ui com sharing feedback publishing scratchpad http scratchpad io firepad http www firepad io snaggy http snag gy bounce http www bounceapp com dropcanvas http dropcanvas com wetransfer https www wetransfer com squadedit https squadedit com codepen http codepen io jsfiddle http jsfiddle net editr http lab idered pl editr snipt https snipt net chop http chopapp com screencast o matic http www screencast o matic com beam it http www justbeamit com copybar http copybar io login js bin http jsbin com welcome 1 edit dablet http dabblet com floobits https floobits com stypi https code stypi com aexzlzrl paste https paste sh liveweave http liveweave com volafile https volafile io talky https talky io sharefest https www sharefest me appear https appear in coderpad https coderpad io criticue peer review websites http www criticue com redpen https redpen io analytics google analytics http analytics google com piwik open source http piwik org mixpanel http mixpanel com gosquared https www gosquared com flurry http www flurry com chartbeat https chartbeat com parsely http www parsely com hosting platforms cloudcannon free static hosting http cloudcannon com pancake free static hosting https pancake io site44 static hosting http www site44 com meteor javascript app framework https www meteor com firebase javascript app framework https www firebase com forge https getforge com front end development tools huge list of front end dev bookmarks https github com dypsilon frontend dev bookmarks 1434 best resources for designers developers www agiledesigners com introduction to css3 transitions article http www css3 info preview css3 transitions bounce js tool to create css3 animations http bouncejs com wow css3 animation library http mynameismatthieu com wow css palette http www houghtona com csspalette index php css3 generator http css3generator com css3 http css3 mikeplate com css gradient generator http www colorzilla com gradient editor css button generator http www dextronet com css buttons generator lorempixel placeholder images http lorempixel com lipsum placeholder text http lipsum com wordmark http wordmark it layerstyle http layerstyles org builder html border image generator http border image com icheck super customized checkboxes and radio buttons for jquery http fronteed com icheck svgeneration http www svgeneration com grumpicon create fallback pngs for svg files http grumpicon com css3 animation cheat sheet http www justinaguilar com animations index html animate css css3 library http daneden github io animate css pure small responsive css modules http purecss io tridiv 3d css http tridiv com todomvc javascript resource http todomvc com superherojs js library http superherojs com unheap jquery plugins http www unheap com random user generator http randomuser me ui faces http uifaces com ui names http uinames com whattheme http whattheme com ie browser testing https www modern ie en us article on front end and ui style guides http sideproject io front end and ui style guides patterns pattern libraries subtle patterns visual pattern http subtlepatterns com first time ux showcase of new user experiences http firsttimeux tumblr com ui interaction library http useyourinterface com subjective c innovative ios interfaces http subjc com ui cloud largest user interface design database in the world http ui cloud com android patterns http www androidpatterns com android ui patterns http www androiduipatterns com 2012 09 creating custom android styles easy way html android niceties http androidniceties tumblr com android app patterns http www android app patterns com category grid mobile design gallery http www mobiledesignpatterngallery com mobile patterns php ux archive http uxarchive com pttrns http www pttrns com mobile patterns http www mobile patterns com inspired ui http inspired ui com capptivate http capptivate co native mobile design android design guidelines https developer android com design index html apple design guidelines https developer apple com resources android tools android in browser emulator https www manymo com android halo colors http android holo colors com android google play icon template http www sparktechsoft com blogs android design app icon template android asset studio http romannurik github io androidassetstudio android printable kit http androiduiux com 2012 06 30 printable a4 gui sketching kit nexus s galaxy nexus and nexus 7 android icons http www androidicons com device generator http developer android com distribute tools promote device art html android design tips http www androiddesign tips ios tools iphone gui psd by teehan lax http www teehanlax com tools iphone ios do s and don ts https developer apple com design tips placeit real life image templates to insert mobile screens https placeit net prototyping web dev html css js js frameworks framerjs http framerjs com jquery mobile http jquerymobile com codiqa https codiqa com ratchet http goratchet com hammer js http hammerjs github io xcode origami for xcode http facebook github io origami ideo s avocado for origami http ideo is avocado labs adobe after effects http www adobe com products aftereffects html drag and drop tools proto io http proto io flinto https www flinto com marvel http marvelapp com invisionapp http inivisionapp com pop https popapp in fluid ui https www fluidui com typography choosing the right font a practical guide to typography on the web http webdesign tutsplus com articles choosing the right font a practical guide to typography on the web webdesign 15 butterick s practical typography best guide online read summary of key rules http practicaltypography com instacalc em to px calculator http instacalc com 16738 typescale http type scale com the elements of typographic style applied to the web webtypography net thinking with type http www thinkingwithtype com whatthefont http www myfonts com whatthefont myfonts bestsellers trending fonts http www myfonts com bestsellers typewolf font recommendations http www typewolf com type finder find reputable typefaces http www type finder com online font services typekit https typekit com cloud typography http www typography com cloud welcome adobe web edge fonts https edgewebfonts adobe com fonts google fonts free https www google com fonts colors color template http www rocket design fr color template paletton http paletton com uid 1000u0kllllafw0g0qfqfg0w0af kuler color wheel https kuler adobe com create color wheel colour lovers color trends http www colourlovers com colorhexa color encyclopedia http www colorhexa com brandcolors http brandcolors net branding style tiles http styletil es webstiles web style tiles http webstiles namanyayg com images png gauntlet compress image sizes http pnggauntlet com pic resize http www picresize com logos logo lounge http logolounge com logopond http logopond com brands of the world www brandsoftheworld com wireframes i 3 wireframes http wireframes tumblr com wireframe showcase http www wireframeshowcase com references cheat sheets all api cheat sheets http overapi com jquery quick api reference http oscarotero com jquery article of 100 terrific dev tools http dailytekk com 2012 09 24 100 terrific tools for coders developers learn layout simple visual way to learn html css layout design http learnlayout com validation code cleaner html markup validation w3 http validator w3 org html tidy http infohound net tidy css validation w3 http jigsaw w3 org css validator validate by upload clean css http www cleancss com css compressor http www cssdrive com index php main csscompressor procssor organize your css http tools maxcdn com procssor javascript compressor http javascriptcompressor com other html css components email design mailchimp email design reference http templates mailchimp com beautiful email newsletters http beautiful email newsletters com brace email script when you can t write php http forms brace io campaign monitor ultimate guide to css https www campaignmonitor com css html forms sitepoint article on html5 forms markup http www sitepoint com html5 forms markup learning online courses treehouse http teamtreehouse com codeschool https www codeschool com learnable https learnable com udacity http udacity com freecodecamp http www freecodecamp com lynda http lynda com codecademy free http www codecademy com learn skillfeed https www skillfeed com sitepoint http www sitepoint com gibbon https gibbon co free programming books huge list https github com vhf free programming books blob master free programming books md tutorials articles css tricks http css tricks com downloads codeplayer http thecodeplayer com design tutsplus http design tutsplus com code tutsplus http code tutsplus com pineapple io central hub of tutorials http pineapple io reset true photoshop secrets http photoshopsecrets tumblr com scotch http scotch io little big details http littlebigdetails com design principles ftw http designprinciplesftw com medium design ux https medium com design ux code visually http codevisually com designinstruct http designinstruct com bento http www bento io cody http codyhouse co zurb quips http zurb com quips playground inspiration zurb playground http zurb com playground codrops http tympanus net codrops css deck http cssdeck com uibox curated html css js components library http www uibox in six ux http sixux com ui parade http www uiparade com media queries http mediaqueri es lovely ui mobile inspiration http www lovelyui com awwwards webdesign showcase http www awwwards com fwa interactive showcase http www thefwa com give n go http give n go co the expressive web http beta theexpressiveweb com welcome favicons favicon generator http realfavicongenerator net favicon cheat sheet https github com audreyr favicon cheat sheet drag and drop solutions template generators webflow https webflow com bricks http www brickseditor com easel https www easel io html5 up http html5up net icons iconfinder https www iconfinder com iconarchive http www iconarchive com iconmonstr http iconmonstr com the noun project http thenounproject com icomoon https icomoon io fontello http fontello com copypastecharacter http copypastecharacter com fontawesome http fortawesome github io font awesome glyphicons http glyphicons com icons guide http www iconsguide com testico http testico net flaticons http flaticons net flat icon http www flaticon com pictos http pictos cc symbolset http symbolset com stock photography unsplash https www unsplash com compfight http www compfight com morgue file http morguefile com im creator http imcreator com free public domain https publicdomainarchive com picjumbo http picjumbo com getty images http gettyimages com think stock http thinkstockphotos com death to the stock photo http deathtothestockphoto com resources freebies designmodo http designmodo com freebies despreneur http despreneur com about sketch app resources http www sketchappsources com konigi tools http konigi com tools smashingmagazine http www smashingmagazine com tag freebies freebbble dribbble design freebies http freebbble com 365psd free psds http 365psd com design freebies http www designfreebies com photoshoplr http madebyvadim tumblr com freepik http www freepik com flaticon http flaticon com 52 weeks of ux http 52weeksofux com hack design https hackdesign org lessons
front_end
ASISaDT
asisadt advanced seminar in information system amp digital technology summer term 2020 survey on explainability of artificial intelligence for usage in mass public transportation as part of new innovative concepts to improve environmental sustainability in this sector
server
searchrecipe
recommend recipe 1 1 1 1 1 1 1 1 1 sync 1 1 async event driven eventual consistency 1 circuit breaker fallback 1 1 cqrs https workflowy com s assessment qjn45fbdvzn4atl3 as is horizontally aligned image https user images githubusercontent com 16534043 106468971 f7a2e880 64e1 11eb 9e3e faf334166094 png to be vertically aligned image https user images githubusercontent com 16534043 106469623 de4e6c00 64e2 11eb 9c5d bd3d43fa6340 png eventstorming 1 image https user images githubusercontent com 12531980 106534309 28f9d380 6537 11eb 878b ae136d43cdcc png 1 image https user images githubusercontent com 12531980 106551677 18f2eb80 6559 11eb 907a 7da3b69ce975 png 1 ok 2 3 ok 3 4 ok 5 6 ok my page 7 ok polyglot image https user images githubusercontent com 12531980 106552529 dd592100 655a 11eb 9d86 dbb94faebe62 png bc 8081 8084 8088 cd recipe mvn spring boot run cd order mvn spring boot run cd delivery mvn spring boot run cd mypage mvn spring boot run cd gateway mvn spring boot run ddd msaez io aggregate entity entity pattern repository pattern spring data rest restrepository java package searchrecipe import javax persistence import org springframework beans beanutils import java util list entity table name order table public class order id generatedvalue strategy generationtype auto private long id private string materialnm private integer qty private string status postpersist public void onpostpersist ordered ordered new ordered beanutils copyproperties this ordered ordered publishaftercommit prepersist public void onprepersist try thread currentthread sleep long 800 math random 220 catch interruptedexception e e printstacktrace preremove public void onpreremove ordercanceled ordercanceled new ordercanceled beanutils copyproperties this ordercanceled ordercanceled publishaftercommit following code causes dependency to external apis it is not a good practice instead event policy mapping is recommended searchrecipe external cancellation cancellation new searchrecipe external cancellation mappings goes here cancellation setorderid this getid cancellation setstatus delivery cancelled orderapplication applicationcontext getbean searchrecipe external cancellationservice class cancel cancellation public long getid return id public void setid long id this id id public string getmaterialnm return materialnm public void setmaterialnm string materialnm this materialnm materialnm public integer getqty return qty public void setqty integer qty this qty qty public string getstatus return status public void setstatus string status this status status rest api materialordered image https user images githubusercontent com 12531980 106535000 9c501500 6538 11eb 89be f5c1078ad4c3 png image https user images githubusercontent com 12531980 106535116 d6b9b200 6538 11eb 8498 46b2d9398b79 png gateway api gateway yaml server port 8088 spring profiles default cloud gateway routes id recipe uri http localhost 8081 predicates path recipes id order uri http localhost 8082 predicates path orders id delivery uri http localhost 8083 predicates path deliveries cancellations id mypage uri http localhost 8084 predicates path mypages globalcors corsconfigurations allowedorigins allowedmethods allowedheaders allowcredentials true spring profiles docker cloud gateway routes id recipe uri http recipe 8080 predicates path recipes id order uri http order 8080 predicates path orders id delivery uri http delivery 8080 predicates path deliveries cancellations id mypage uri http mypage 8080 predicates path mypages globalcors corsconfigurations allowedorigins allowedmethods allowedheaders allowcredentials true server port 8080 recipe hsql recipe pom xml image https user images githubusercontent com 12531980 106535831 70359380 653a 11eb 8e81 1654226aa9e9 png recipe order delivery req res fallback order delivery rest repository rest feignclient feignclient service proxy java package searchrecipe external import org springframework cloud openfeign feignclient import org springframework web bind annotation requestbody import org springframework web bind annotation requestmapping import org springframework web bind annotation requestmethod import java util date feignclient name delivery url api delivery url public interface cancellationservice requestmapping method requestmethod post path cancellations public void cancel requestbody cancellation cancellation preremove java public class order preremove public void onpreremove ordercanceled ordercanceled new ordercanceled beanutils copyproperties this ordercanceled ordercanceled publishaftercommit following code causes dependency to external apis it is not a good practice instead event policy mapping is recommended searchrecipe external cancellation cancellation new searchrecipe external cancellation mappings goes here cancellation setorderid this getid cancellation setstatus delivery cancelled orderapplication applicationcontext getbean searchrecipe external cancellationservice class cancel cancellation delivery ctrl c image https user images githubusercontent com 12531980 106551276 425f4780 6558 11eb 87d0 db00d11f70cb png cancel image https user images githubusercontent com 12531980 106551103 da106600 6557 11eb 8609 4593a0b7d8c2 png delivery image https user images githubusercontent com 12531980 106551365 6d499b80 6558 11eb 84b7 b454b1df15c8 png pub sub recipe java pub java public class recipe id generatedvalue strategy generationtype auto private long id private string recipenm private string cookingmethod private string materialnm private integer qty postpersist public void onpostpersist materialordered materialordered new materialordered beanutils copyproperties this materialordered materialordered publishaftercommit order java policy handler sub java service public class policyhandler autowired orderrepository orderrepository streamlistener kafkaprocessor input public void whenevermaterialordered order payload materialordered materialordered if materialordered isme system out println listener materialordered tojson order order new order order setmaterialnm materialordered getmaterialnm order setqty materialordered getqty order setstatus received order orderrepository save order recipe order recipe image https user images githubusercontent com 12531980 106556204 5f007d00 6562 11eb 8087 e0260a54d7bd png order image https user images githubusercontent com 12531980 106555946 e699bc00 6561 11eb 81de 15ea39698d35 png recipe image https user images githubusercontent com 12531980 106556261 7ccde200 6562 11eb 82d1 cd38eb3075fe png cqrs viewer view materialordered mypage image https user images githubusercontent com 12531980 106606835 ecb18c00 65a5 11eb 85fa 9342cc8bef3d png ordercanceled mypage image https user images githubusercontent com 12531980 106606970 17034980 65a6 11eb 91e3 55c4e31a7e36 png ci cd git git clone http github com wongil searchrecipe build cd searchrecipe cd recipe mvn package cd cd order mvn package cd cd delivery mvn package cd cd gateway mvn package cd cd mypage mvn package dockerlizing acr azure container registry docker image push cd searchrecipe cd recipe az acr build registry skccteam02 image skccteam02 azurecr io recipe v1 cd cd order az acr build registry skccteam02 image skccteam02 azurecr io order v1 cd cd delivery az acr build registry skccteam02 image skccteam02 azurecr io delivery v1 cd cd gateway az acr build registry skccteam02 image skccteam02 azurecr io gateway v1 cd cd mypage az acr build registry skccteam02 image skccteam02 azurecr io mypage v1 acr push image https user images githubusercontent com 16534043 106696222 95e89880 661f 11eb 939a 1604a760c967 png acr kubernetes deploy kubectl create deploy recipe image skccteam02 azurecr io recipe v1 kubectl create deploy order image skccteam02 azurecr io order v1 kubectl create deploy delivery image skccteam02 azurecr io delivery v1 kubectl create deploy gateway image skccteam02 azurecr io gateway v1 kubectl create deploy mypage image skccteam02 azurecr io mypage v1 kubectl get all kubectl deploy image https user images githubusercontent com 16534043 106553685 34f88c00 655d 11eb 87cb e59a6f920a5b png kubernetes docker port 8080 gateway loadbalancer kubectl expose deploy recipe type clusterip port 8080 kubectl expose deploy order type clusterip port 8080 kubectl expose deploy delivery type clusterip port 8080 kubectl expose deploy gateway type loadbalancer port 8080 kubectl expose deploy mypage type clusterip port 8080 kubectl get all kubectl expose image https user images githubusercontent com 16534043 106554016 e0a1dc00 655d 11eb 8439 f4326cecda5a png kafka zookeeper server 100 autoscaler cb siege siege c100 t60s r10 v http get http delivery 8080 deliveries readiness yml image https user images githubusercontent com 16534043 106564492 a261e800 6570 11eb 9b2b 31fca5350825 png kubectl apply f deployment without readiness yml kubernetes delivery pod siege availability 100 socket siege image https user images githubusercontent com 16534043 106564722 fb318080 6570 11eb 92d5 181e50772e8b png siege siege c100 t60s r10 v http get http delivery 8080 deliveries readiness yml image https user images githubusercontent com 16534043 106564838 22884d80 6571 11eb 8cf1 dd0e53b547d7 png kubectl apply f deployment with readiness yml pod 2 pod pod image https user images githubusercontent com 16534043 106564937 52375580 6571 11eb 994f b69acceb64b0 png image https user images githubusercontent com 16534043 106565031 75620500 6571 11eb 9028 bd05d8125f04 png siege availability image https user images githubusercontent com 16534043 106565135 a80bfd80 6571 11eb 943e b3bd77c519db png recipe kubectl apply f eof apiversion apps v1 kind deployment metadata name recipe namespace default labels app recipe spec replicas 1 selector matchlabels app recipe template metadata labels app recipe spec containers name recipe image skccteam02 azurecr io recipe v1 ports containerport 8080 resources limits cpu 500m requests cpu 200m eof expose kubectl expose deploy recipe type clusterip port 8080 recipe replica hpa cpu 15 replica 10 kubectl autoscale deploy recipe min 1 max 10 cpu percent 15 hpa image https user images githubusercontent com 16534043 106558142 9709bf00 6566 11eb 9340 12959204fee8 png hpa image https user images githubusercontent com 16534043 106558218 b3a5f700 6566 11eb 9b74 0c93679d2b31 png image https user images githubusercontent com 16534043 106558245 c0c2e600 6566 11eb 89fe 8a6178e1f976 png siege 2 cloud siege pod kubectl exec it siege pod bin bash siege c1000 t120s r100 v content type application json http recipe 8080 recipes post recipenm apple juice watch kubectl get all siege image https user images githubusercontent com 16534043 106560612 a12dbc80 656a 11eb 8213 5a07a0a03561 png siege image https user images githubusercontent com 16534043 106560501 75aad200 656a 11eb 99dc fe585ef7e741 png siege kubectl exec it siege pod bin bash siege c1000 t120s r100 v content type application json http recipe 8080 recipes post recipenm apple juice siege image https user images githubusercontent com 16534043 106560930 3335c500 656b 11eb 8165 bcb066a03f15 png self healing liveness probe delivery yml liveness probe liveness probe liveness probe 8090 livenessprobe httpget path actuator health port 8090 initialdelayseconds 120 timeoutseconds 2 periodseconds 5 failurethreshold 5 delivery liveness image https user images githubusercontent com 16534043 106566682 f7ebc400 6573 11eb 8452 ed693bdf1f17 png delivery liveness 8090 restart image https user images githubusercontent com 16534043 106566789 210c5480 6574 11eb 8e71 ae11755e274f png configmap configmap configmap kubectl create configmap deliveryword from literal word preparing configmap image https user images githubusercontent com 16534043 106593940 c505f800 6594 11eb 9284 8e896b531f04 png docker delivery kubectl delete pod deploy service delivery delivery policyhandler java delivery src main java searchrecipe 30 delivery started configmap delivery setstatus delivery started delivery setstatus delivery status is system getenv status delivery deployment yml deployment configmap yml env name status valuefrom configmapkeyref name deliveryword key word image https user images githubusercontent com 16534043 106592668 275df900 6593 11eb 9007 fb31717f34e8 png docker image repository kubernetes pod deployment configmap yml kubectl create f deployment config yml kubernetes pod expose pod configmap env image https user images githubusercontent com 16534043 106595482 faabe080 6596 11eb 9a73 f66fb5d61382 png http status configmap key http post http 20 194 26 128 8080 recipes recipenm apple juice cookingmethod using mixer materialnm apple qty 3 image https user images githubusercontent com 16534043 106603485 ae19d280 65a1 11eb 9fe5 773e1ad46790 png configmap status image https user images githubusercontent com 16534043 106688731 fe307d80 6611 11eb 936f 61739006af67 png istio circuit breaker istio injection enabled namespace kubectl create namespace istio test ns kubectl label namespace istio test ns istio injection enabled namespace label istio injection enabled image https user images githubusercontent com 16534043 106686154 3b464100 660d 11eb 8a64 f9c1c93b35db png namespace pod c kubectl deploy kubectl create deploy recipe image skccteam02 azurecr io recipe v1 n istio test ns kubectl create deploy order image skccteam02 azurecr io order v1 n istio test ns kubectl create deploy delivery image skccteam02 azurecr io delivery v1 n istio test ns kubectl create deploy gateway image skccteam02 azurecr io gateway v1 n istio test ns kubectl create deploy mypage image skccteam02 azurecr io mypage v1 n istio test ns kubectl get all expose expose gateway loadbalancer clusterip kubectl expose deploy recipe type clusterip port 8080 n istio test ns kubectl expose deploy order type clusterip port 8080 n istio test ns kubectl expose deploy delivery type clusterip port 8080 n istio test ns kubectl expose deploy gateway type loadbalancer port 8080 n istio test ns kubectl expose deploy mypage type clusterip port 8080 n istio test ns container 2 1 container 1 sidecar envoy image https user images githubusercontent com 16534043 106686490 b3ad0200 660d 11eb 9473 a779d587f200 png gateway external ip http http 52 231 71 168 8080 recipes recipenm apple juice cookingmethod using mixer materialnm apple qty 3 image https user images githubusercontent com 16534043 106686560 db9c6580 660d 11eb 86f5 c5f5a1b70352 png circuit breaker destination rule pending request response time connection pool kubectl apply f eof apiversion networking istio io v1alpha3 kind destinationrule metadata name dr httpbin namespace istio test ns spec host gateway trafficpolicy connectionpool http http1maxpendingrequests 1 maxrequestsperconnection 1 eof destinationrule image https user images githubusercontent com 16534043 106686837 5cf3f800 660e 11eb 9690 3c6ec926bd8e png siege user 1 c1 siege namespace pod siege kubectl exec it siege 5459b87f86 tl584 c siege n istio test ns bin bash siege c1 t30s v content type application json http 52 231 71 168 8080 recipes post recipenm apple juice availability image https user images githubusercontent com 16534043 106687083 d0960500 660e 11eb 9442 f2a4ef3f8da7 png user 2 siege c2 t30s v content type application json http 52 231 71 168 8080 recipes post recipenm apple juice availability user 1 circuit breaker image https user images githubusercontent com 16534043 106687175 fcb18600 660e 11eb 8b46 c33a88be8694 png istio add on kiali jaeger grafana kiali istio external ip 20001 proxy image https user images githubusercontent com 16534043 106687288 31254200 660f 11eb 89d2 61bf7eafa0d9 png image https user images githubusercontent com 16534043 106687515 97aa6000 660f 11eb 8cad 2247d1d0c747 png jaeger istio external ip 80 tracing image https user images githubusercontent com 16534043 106687562 b27cd480 660f 11eb 8bb0 0bab4585ece7 png grafana istio external ip 3000 prometheus istio image https user images githubusercontent com 16534043 106687835 451d7380 6610 11eb 9d54 257c3eb4b866 png
cloud
CVBallTracking
basketball tracking created by brett fazio http linkedin com in brett fazio and william chen https www linkedin com in william chen 6474a216b assets bron gif assets davis gif overview read our paper here https github com brettfazio cvballtracking blob main assets ball tracking pdf requirements the libraries to run the code are cv2 https pypi org project opencv python numpy https numpy org pandas https pandas pydata org and h5py https www h5py org if trying to run evaluate on the a2d dataset an extended version of cv2 opencv contrib python is required make sure this is the only cv2 package installed opencv python is a different package that does not include support for the trackers do not install multiple different opencv packages in the same environment pip install opencv contrib python additionally access to the yolo tracker is required but this is already included in the src yolo folder however you must download the weights for the yolo model it can be done as follows cd src yolo weights bash download weights sh if you wish to use the goturn tracker instead of the csrt tracker we recommend csrt you must download the goturn model here https github com mogball goturn files and place it within the src folder to run on the a2d dataset the release of the dataset itself is also required it is available here https web eecs umich edu jjcorso r a2d and the unzipped folder entitled release should be placed in the a2d directory usage the main entry point for this project is main py to avoid errors please run it from the src directory the most basic usage for the project would be to run on a single input video it can be done as follows python3 main py video path where path is a path to a video file for example python3 main py video sample data lebron on court mp4 adding the fast flag only tracks the ball in frames after the first detection python3 main py video sample data lebron on court mp4 fast adding the live flag allows for real time tracking live tracking is only available when used with the fast flag note performance may be vary depending on cpu gpu python3 main py video sample data lebron on court mp4 fast live to run a2d add the a2d flag and then to specify the number of samples use a2d amt for example python3 main py a2d a2d amt 5 forward pass only assets forwards gif track backwards forwards assets full gif references credit this project builds on the work of eriklindernoren s pytorch yolo implementation as a base specifically the pre trained model the repository can be found here https github com eriklindernoren pytorch yolov3
ai
Metalhead.jl
metalhead dev https img shields io badge docs dev blue svg https fluxml github io metalhead jl dev ci https github com fluxml metalhead jl actions workflows ci yml badge svg https github com fluxml metalhead jl actions workflows ci yml coverage https codecov io gh fluxml metalhead jl branch master graph badge svg https codecov io gh fluxml metalhead jl metalhead jl https github com fluxml metalhead jl provides standard machine learning vision models for use with flux jl https fluxml ai the architectures in this package make use of pure flux layers and they represent the best practices for creating modules like residual blocks inception blocks etc in flux metalhead also provides some building blocks for more complex models in the layers module installation julia julia add metalhead getting started you can find the metalhead jl getting started guide here https fluxml ai metalhead jl dev tutorials quickstart available models to contribute new models see our contributing docs https fluxml ai metalhead jl dev contributing image classification model name constructor pre trained alexnet https papers nips cc paper 2012 file c399862d3b9d6b76c8436e924a68c45b paper pdf alexnet https fluxml ai metalhead jl dev api other metalhead alexnet n convmixer https arxiv org abs 2201 09792 convmixer https fluxml ai metalhead jl dev api hybrid metalhead convmixer n convnext https arxiv org abs 2201 03545 convnext https fluxml ai metalhead jl dev api hybrid metalhead convnext n densenet https arxiv org abs 1608 06993 densenet https fluxml ai metalhead jl dev api densenet metalhead densenet n efficientnet https arxiv org abs 1905 11946 efficientnet https fluxml ai metalhead jl dev api efficientnet metalhead efficientnet n efficientnetv2 https arxiv org abs 2104 00298 efficientnetv2 https fluxml ai metalhead jl dev api efficientnet metalhead efficientnetv2 n gmlp https arxiv org abs 2105 08050 gmlp https fluxml ai metalhead jl dev api mixers metalhead gmlp n googlenet https arxiv org abs 1409 4842 googlenet https fluxml ai metalhead jl dev api inception l metalhead googlenet n inception v3 https arxiv org abs 1512 00567 inceptionv3 https fluxml ai metalhead jl dev api inception metalhead inceptionv3 n inception v4 https arxiv org abs 1602 07261 inceptionv4 https fluxml ai metalhead jl dev api inception metalhead inceptionv4 n inceptionresnet v2 https arxiv org abs 1602 07261 inceptionresnetv2 https fluxml ai metalhead jl dev api inception metalhead inceptionresnetv2 n mlpmixer https arxiv org pdf 2105 01601 mlpmixer https fluxml ai metalhead jl dev api mixer metalhead mlpmixer n mobilenetv1 https arxiv org abs 1704 04861 mobilenetv1 https fluxml ai metalhead jl dev api efficientnet metalhead mobilenetv1 n mobilenetv2 https arxiv org abs 1801 04381 mobilenetv2 https fluxml ai metalhead jl dev api efficientnet metalhead mobilenetv2 n mobilenetv3 https arxiv org abs 1905 02244 mobilenetv3 https fluxml ai metalhead jl dev api efficientnet metalhead mobilenetv3 n mnasnet https arxiv org abs 1807 11626 mnasnet https fluxml ai metalhead jl dev api efficientnet metalhead mnasnet n resmlp https arxiv org abs 2105 03404 resmlp https fluxml ai metalhead jl dev api mixers metalhead resmlp n resnet https arxiv org abs 1512 03385 resnet https fluxml ai metalhead jl dev api resnet metalhead resnet y resnext https arxiv org abs 1611 05431 resnext https fluxml ai metalhead jl dev api resnet metalhead resnext y squeezenet https arxiv org abs 1602 07360 squeezenet https fluxml ai metalhead jl dev api others metalhead squeezenet y xception https arxiv org abs 1610 02357 xception https fluxml ai metalhead jl dev api inception metalhead xception n wideresnet https arxiv org abs 1605 07146 wideresnet https fluxml ai metalhead jl dev api resnet metalhead wideresnet y vgg https arxiv org abs 1409 1556 vgg https fluxml ai metalhead jl dev api others metalhead vgg y vision transformer https arxiv org abs 2010 11929 vit https fluxml ai metalhead jl dev api vit metalhead vit y other models model name constructor pre trained unet https arxiv org abs 1505 04597 unet https fluxml ai metalhead jl dev api others metalhead unet n
machine-learning computer-vision deep-learning flux julia
ai
safexcore
safex project releases network has performed hard fork 6 with fix for token overflow issue wallet fix and other bug fixes current hard fork ready release of ubuntu windows and mac safexd node binaries and source code is available here https github com safex safexcore releases build test https github com safex safexcore workflows ubuntu 2018 04 20build badge svg branch master https github com safex safexcore workflows ubuntu 2018 04 20test badge svg branch master https github com safex safexcore workflows mac 20build badge svg branch master https github com safex safexcore workflows mac 20test badge svg branch master https github com safex safexcore workflows windows 20build badge svg branch master build instructions macos check if you have developer tools installed xcode select p if you don t have developer tools install it if you do skip this step xcode select install clone the git repository with recursive git clone recursive https github com safex safexcore git go into safexcore folder cd safexcore check if brew is installed which brew if you don t have brew installed install it if you have it skip this step brew install wget install all libraries brew tap jmuncaster homebrew header only brew install cmake boost zmq czmq zeromq jmuncaster header only cppzmq openssl pkg config protbuf you will need to have macports installed if you don t have it install it from here https guide macports org download the package for your os version from the website open new terminal window and check if macports are installed port version if the installation was successful install readline using macports sudo port install readline build it and insert the number of cores you have make j your number of cores debug all if you want to build safexd with protobuf support you need to install protobuf build dependency by starting install protobuf dep macos sh ubuntu 18 04 a one liner for installing all dependencies on ubuntu 18 04 is sudo apt update sudo apt install build essential cmake pkg config libboost all dev libssl dev libzmq3 dev libunbound dev libminiupnpc dev libunwind8 dev liblzma dev libreadline6 dev libldns dev libexpat1 dev libgtest dev doxygen graphviz libpcsclite dev libprotobuf dev clone the git repository with recursive git clone recursive https github com safex safexcore git to build a debug version run make j your number of cores debug all build log to use all cores to build a release version run make j your number of cores release all build log to use all cores docker build using all available cores docker build t safex docker build log or build using a specific number of cores reduce ram requirement docker build build arg nproc 1 t safex docker build log either run in foreground docker run it v safex chain root safex v safex wallet wallet p 18080 18080 safex or in background docker run it d v safex chain root safex v safex wallet wallet p 18080 18080 safex testing to test the code run cd build debug tests ctest j your number of cores vv tests log on windows binaries for windows are built on windows using the mingw toolchain within msys2 environment https www msys2 org the msys2 environment emulates a posix system the toolchain runs within the environment and cross compiles binaries that can run outside of the environment as a regular windows application preparing the build environment download and install the msys2 installer https www msys2 org either the 64 bit or the 32 bit package depending on your system open the msys shell via the msys2 msys shortcut update packages using pacman pacman syuu exit the msys shell using alt f4 start msys2 mingw 64 bit shell and update packages again using pacman pacman syuu install dependencies to build for 64 bit windows pacman s mingw w64 x86 64 toolchain make mingw w64 x86 64 cmake mingw w64 x86 64 boost mingw w64 x86 64 openssl mingw w64 x86 64 zeromq mingw w64 x86 64 libsodium to build for 32 bit windows pacman s mingw w64 i686 toolchain make mingw w64 i686 cmake mingw w64 i686 boost mingw w64 i686 openssl mingw w64 i686 zeromq mingw w64 i686 libsodium to install protobuf dependency on mingw go to external folder and run install protobuf dep mingw sh open the mingw shell via msys2 mingw 64 bit shortcut on 64 bit windows or msys2 mingw 32 bit shortcut on 32 bit windows note that if you are running 64 bit windows you will have both 64 bit and 32 bit mingw shells cloning to git clone run git clone recursive https github com safex safexcore git building change to the cloned directory run cd safexcore if you would like a specific version tag https github com safex safexcore tags do a git checkout for that version eg v0 1 0 if you don t care about the version and just want binaries from master skip this step git checkout if you are on a 64 bit system run make release static win64 if you are on a 32 bit system run make release static win32 the resulting executables can be found in build release bin running built binaries are located in build debug bin and or build release bin depending upon which build was used to run ubuntu 18 04 statically built binaries on another machine libnorm1 and libpcsclite1 libraries must be installed to run the node build debug bin safexd testnet to run the wallet path to binaries safex wallet cli testnet other wallet parameters to list all wallet parameters use path to binaries safex wallet cli testnet help br br br copyright c 2018 the safex project portions copyright c 2014 2018 the monero project portions copyright c 2012 2013 the cryptonote developers
blockchain safex cryptocurrency ecommerce
blockchain
BroadcastControl
broadcast control for graia framework asyncio graia framework pypi bash pip install graia broadcast poetry poetry add graia broadcast example python from graia broadcast import dispatchable basedispatcher broadcast from graia broadcast interfaces dispatcher import dispatcherinterface class exampleevent dispatchable class dispatcher basedispatcher def catch interface dispatcherinterface if interface annotation is str return ok i m broadcast broadcast broadcast receiver exampleevent or just receiver exampleevent async def event listener maybe you are str str print maybe you are str ok i m async def main broadcast postevent exampleevent sync call is allowed await asyncio sleep 0 1 to solve event task loop run until complete main mit
os
training
the accessibility tree a training guide for advanced web development the purpose of the aria spec is to map simulated web controls to equivalent control types on the platform accessibility api and to provide various mechanisms to enhance the accessibility of web technologies operating system vendors browser vendors and assistive technology vendors then follow the aria spec to ensure that control mappings are supported properly in each it s important to understand that all aria roles and supporting states and properties map to their equivalent roles states and properties within the accessibility api on that operating system which is why the same aria markup when correctly implemented is valid across all devices and platforms the accessibility tree training guide provides an in depth overview of all relevant information that is important to be aware of when building aria enhanced web technologies written in collaboration with members of the w3c pfwg including richard schwerdtfeger t v raman and mark sadecki distributed under the terms of the open source initiative osi mit license developed and maintained by bryan garaventa https www linkedin com in bgaraventa or on twitter at https twitter com bryanegaraventa note all visual design by angela ricci web designer and web front end developer you can check her work at her personal site https gericci me or you can follow her on twitter at https twitter com gericci project home https whatsock com training related projects whatsock organization https github com whatsock visual aria https github com whatsock visual aria
server
open-balena
docs images openbalena logo svg openbalena is a platform to deploy and manage connected devices devices run balenaos balena os website a host operating system designed for running containers on iot devices and are managed via the balena cli balena cli which you can use to configure your application containers push updates check status view logs and so forth openbalena s backend services composed of battle tested components that we ve run in production on balenacloud balena cloud website for years can store device information securely and reliably allow remote management via a built in vpn service and efficiently distribute container images to your devices to learn more about openbalena visit balena io open open balena website features simple provisioning adding devices to your fleet is a breeze easy updates remotely update the software on your devices with a single command container based benefit from the power of virtualization optimized for the edge scalable deploy and manage one device or one million powerful api sdk extend openbalena to fit your needs built in vpn access your devices regardless of their network environment getting started our getting started guide getting started is the most direct path to getting an openbalena installation up and running and successfully deploying your application to your device s compatibility the current release of openbalena has the following minimum version requirements balenaos v2 58 3 balena cli v12 38 5 if you are updating from previous openbalena versions ensure you update the balena cli and reprovision any devices to at least the minimum required versions in order for them to be fully compatible with this release as some features may not work documentation while we re still working on the project documentation please refer to the balenacloud documentation documentation balenacloud is built on top of openbalena so the core concepts and functionality is identical the following sections are of particular interest overview a balena primer https balena io docs learn welcome primer overview core concepts https balena io docs learn welcome concepts overview going to production https balena io docs learn welcome production plan develop define a container https balena io docs learn develop dockerfile develop multiple containers https balena io docs learn develop multicontainer develop runtime https balena io docs learn develop runtime develop interact with hardware https balena io docs learn develop hardware deploy optimize your builds https balena io docs learn deploy build optimization reference https balena io docs reference faq https balena io docs faq troubleshooting faq getting help you are welcome to submit any questions participate in discussions and request help with any issue in openbalena forums forums the balena team frequents these forums and will be happy to help you can also ask other community members for help or contribute by answering questions posted by fellow openbalena users please do not use the issue tracker for support related questions contributing everyone is welcome to contribute to openbalena there are many different ways to get involved apart from submitting pull requests including helping other users on the forums forums reporting or triaging issues issue tracker reviewing and discussing pull requests pulls or just spreading the word all of openbalena is hosted on github apart from its constituent components which are the api open balena api vpn open balena vpn registry open balena registry s3 storage service open balena s3 and database open balena db contributions are also welcome to its client side software such as the balena cli balena cli the balena sdk balena sdk balenaos balena os and balenaengine balena engine roadmap openbalena is currently in beta while fully functional it lacks features we consider important before we can comfortably call it production ready during this phase don t be alarmed if things don t work as expected just yet and please let us know about any bugs or errors you encounter the following improvements and new functionality is planned full documentation full test suite simplified deployment remote host os updates support for custom device types differences between openbalena and balenacloud whilst openbalena and balenacloud share the same core technology there are some key differences first openbalena is self hosted whereas balenacloud is hosted by balena and therefore handles security maintenance scaling and reliability of all the backend services openbalena is also single user whereas balenacloud supports multiple users and organizations openbalena also lacks some of the commercial features that define balenacloud such as the web based dashboard and updates with binary container deltas the following table contains the main differences between both openbalena balenacloud device updates using full docker images device updates using delta images https www balena io docs learn deploy delta support for a single user support for multiple users https www balena io docs learn manage account application members self hosted deployment and scaling balena managed scaling and deployment community support via forums forums private support on paid plans https www balena io pricing build locally and deploy via balena cli build remotely with native builders using balena push https www balena io docs learn deploy deployment balena push or git push https www balena io docs learn deploy deployment git push no public device url support serve websites directly from device with public device urls https www balena io docs learn manage actions enable public device url management via balena cli only cloud based device management dashboard download images from balena io balena os website and configure locally via balena cli download configured images directly from the dashboard no remote device diagnostics remote device diagnostics additionally refer back to the roadmap roadmap above for planned but not yet implemented features license openbalena is licensed under the terms of agpl v3 see license https github com balena io open balena blob master license for details balena cli https github com balena io balena cli balena cloud website https balena io cloud balena engine https github com balena os balena engine balena os website https balena io os balena os https github com balena os meta balena balena sdk https github com balena io balena sdk documentation https balena io docs learn welcome introduction forums https forums balena io c open balena getting started https balena io open docs getting started issue tracker https github com balena io open balena issues open balena api https github com balena io open balena api open balena db https github com balena io open balena db open balena registry https github com balena io open balena registry open balena s3 https github com balena io open balena s3 open balena vpn https github com balena io open balena vpn open balena website https balena io open pulls https github com balena io open balena pulls faq how do you ensure continuity of openbalena are there security patches on openbalena openbalena is an open source initiative which is mostly driven by us but it also gets contributions from the community we work to keep openbalena as up to date as our bandwidth allows especially with security patches that said we do not have a policy or guarantee of a software release schedule however it is in our best interest to keep openbalena updated and patched since we also use it for balenacloud how do you ensure the join command actually works between open and cloud the join command is not only used for moving from openbalena to balenacloud but it is used daily by our developers to move devices from developments and testing instances to production and vice versa the join command actually wraps the os config command which is the basic tool balena uses for configuring devices is it production ready while we actually have some rather large fleets using openbalena we as a company consider it still to be in beta status we don t perform regular testing on the platform like we do balenacloud and we do not yet have feature parity between the various services we offer can new device types be added to openbalena technically yes but in a supported or balena recommended fashion no the main reason is that until we regularly test the openbalena platform the way we do balenacloud there s no scalable way for us to provide support for new device types are there open source ui dashboards from the community for openbalena yes here are a few open balena admin open balena ui https github com dcaputo harmoni open balena admin by user dcaputo harmoni https github com dcaputo harmoni who first posted about here https forums balena io t open balena admin an admin interface for openbalena 355324 in our forums open balena dashboard https github com razikus open balena dashboard by user razikus https github com razikus
iot docker raspberrypi resin-io balena open-balena
server
AUTSE2015SE-ryan-DROP-TABLE
autse2015se ryan drop table
server
SMART-LLM
smart llm smart multi agent robot task planning using large language models shyam sundar kannan vishnunandan l n venkatesh and byung cheol min submitted to ieee international conference on robotics and automation icra 2024 project page https sites google com view smart llm arxiv https arxiv org abs 2309 10062 video https www youtube com watch v msstpl7ifyi abstract in this work we introduce smart llm an innovative framework designed for embodied multi robot task planning smart llm smart multi agent robot task planning using large language models llms harnesses the power of llms to convert high level task instructions provided as input into a multi robot task plan it accomplishes this by executing a series of stages including task decomposition coalition formation and task allocation all guided by programmatic llm prompts within the few shot prompting paradigm we create a benchmark dataset designed for validating the multi robot task planning problem encompassing four distinct categories of high level instructions that vary in task complexity our evaluation experiments span both simulation and real world scenarios demonstrating that the proposed model can achieve promising results for generating multi robot task plans setup create a conda environment or virtualenv conda create n smartllm python 3 9 install dependencies pip install r requirments txt creating openai api key the code relies on openai api create an api key at https platform openai com create a file named api key txt in the root folder of the project and paste your openai key in the file running script run the following command to generate output execuate python scripts to perform the tasks in the given ai2thor floor plans refer to https ai2thor allenai org demo for the layout of various ai2thor floor plans python3 scripts run llm py floor plan floor plan no note refer to the script for running it on different versions of gpt models and changing the test dataset the above script should generate the executable code and store it in the logs folder run the following script to execute the above generated scripts and execute it in an ai2thor environment the script requires command which needs to be executed as parameter command needs to be the folder name in the logs folder where the executable plans generated are stored python3 scripts execute plan py command command dataset the repository contains numerous commands and robots with various skill sets to perform heterogenous robot tasks refer to data final test for the various tasks robots available for the tasks and the final state of the environment after the task for evaluation the file name corresponds to the ai2thor floor plans where the task will be executed refer to resources robots py for the list of robots used in the final test and the skills possessed by each robot citation if you find this work useful for your research please consider citing article kannan2023smart title smart llm smart multi agent robot task planning using large language models author kannan shyam sundar and venkatesh vishnunandan ln and min byung cheol journal arxiv preprint arxiv 2309 10062 year 2023
ai
404-Not-Found
404 not found the front end shadowsocks of user management the back end base on shadowsocks manyuser branch https github com mengskysama shadowsocks tree manyuser you can use it if the back end use manyuser note probably will release a new version in september 1 you have any questions you can send e mail to bye someant com or sumbit a issues php 5 4 if you want show server infomation need istall munin pdo mysql about demo a href http 404notfound cc target blank 404notfound cc a test data bash default user account demo demo com 123456 default administrator account demo 123456 default gift card 123456 administrator page url yourdomain com admin default ss method aes 256 cfb qrcode php 30 qr node userpanel img src http ww4 sinaimg cn mw690 b1209f59gw1eqzn2nzpq5j20n10jkwfw jpg administrator page img src http ww1 sinaimg cn mw690 b1209f59gw1eqzn2pgcabj20n10jktax jpg img src http ww4 sinaimg cn mw690 b1209f59gw1eqzn2ohds6j20n10jkwfy jpg how do you use it step 1 import sql sql step 2 edit config php change mysql connection php define dbhost localhost define dbname 404 define dbuser 404 define dbpassword password require dirname file src pdo class php db new db dbhost dbname dbuser dbpassword beginflow 10240 mb portwidth 50000 59999 base url 404notfound cc auto stop server when user becoming due you can using crontab bash example 15 45 curl http yourdomain com loop php update september 1 support ajax editor node
front_end
android-takeaway
android takeaway mobile application development course assignments
front_end
MAD_Project
mobile application development project android h2 mobile application to manage user orders advertisements and other related things dog care application h2 ide android studio br technology java firebase database h3 a mobile application development project about a dog care application using android studio in java language h3 group members ul li s l abeygunawardana leader li li i g m j mudannayake li li w n s amaranayake li li r m wijethunga li ul h3 promotion video https www youtube com watch v a rbky0rsww ab channel sandunlakshitha h3 strong for educational purpose only strong
java android mobile mobile-app android-studio educational-project figma firebase
front_end