Jump to content

rezaee

Members
  • Posts

    21
  • Joined

  • Last visited

Recent Profile Visitors

1295 profile views
  1. Calm down Igor! That was just kidding! I appreciate your works and can understand you, and for that reason tried other site and found the solution! Be happy!
  2. No, I didn't do it, but I did create two .conf files as I said above and after boot my display turns on and I think it means SPI works. BTW, I am very thankful for your participation in my topic. I tried to add "startx" to my "etc/rc.local" and it worked and saved 200EUR for me But I have two questions if you can help me: 1- what is difference between changing "script.bin" or "rc.local" ? Is first one faster? 2- If I want to write a C++ program, and want it runs just after boot (kiosk linux), should I put my program inside "rc.local"? How?
  3. I have nanopi-m1 and use Armbian-5.30(Ubuntu server 16.04/ Linux nanopim1 3.4.113-sun8i). I did make these to .conf files : Add to file /etc/modules-load.d/fbtft.conf spi-bcm2835 fbtft_device and Add to file /etc/modprobe.d/fbtft.conf options fbtft_device custom name=fb_ili9341 gpios=reset:1,dc:201,led:6 speed=16000000 rotate=90 bgr=1 Then I tried to make another file by this content: Add to file: /usr/share/X11/xorg.conf.d/99-fbdev.conf Section "Device" Identifier "myfb" Driver "fbdev" Option "fbdev" "/dev/fb1" EndSection But, After reboot, I think only this command will execute automatically: sudo modprobe fbtft_device custom name=fb_ili9341 gpios=reset:1,dc:201,led:6 speed=16000000 rotate=90 bgr=1 Because my LCD turns on and has blank screen(like when I run that command manually), but I should execute startx command to have my xwindow (a gray screen with a black mouse and right-click ability). But I like this done automatically(like HDMI monitor). So I searched a lot for it and I think found the soulution here: I did convert my "/boot.script.bin" to "custom.fex" file with this content: GNU nano 2.5.3 File: custom.fex [product] version = "100" machine = "FriendlyARM NanoPi M1" [platform] debug_mode = 1 eraseflag = 1 next_work = 2 [target] boot_clock = 1008 storage_type = -1 [key_detect_en] keyen_flag = 0 [fel_key] fel_key_max = 7 fel_key_min = 2 And I think I must add something like this for my LCD: script.bin/fex file The settings in the [disp_init] section of the script.bin/fex file define the display output enabled at boot. An example configuration for HDMI: [disp_init] disp_init_enable = 1 disp_mode = 0 screen0_output_type = 3 screen0_output_mode = 4 fb0_framebuffer_num = 2 fb0_format = 10 fb0_pixel_sequence = 0 fb0_scaler_mode_enable = 0 disp_mode selects single-screen output or different dual screen modes. Generally this is 0, which means use screen0 with fb0 (one screen). screen0_output_type = 3 means HDMI output. screen0_output_mode selects the video/monitor mode to use (resolution and refresh rate). See the table in the Fex guide. fb0_framebuffer_num selects the number of buffers for fb0, generally you need 2 or more for video acceleration or Mali (3D), 3 is better. fb0_format and fb0_pixel_sequence determine the pixel format in the framebuffer. The above example (values of 10 and 0) selects the most common variant of 32bpp truecolor (ARGB). fb0_scaler_mode_enable selects whether the scaler should be enabled. Enabling it does not really scale pixels, it configures the scaler to scale pixels 1-to-1 which can fix screen refresh-related problems at 1080p resolution. See the section below. Similar parameter are defined for screen1 (which is usually disabled in practice). But, as I know my LCD uses " fb8 " , I dont know how should I change this code? And can this code solve my problem and gives me my LCD running automatically at startup or I must compile my kernel for this purpose?
  4. MAy someone puts the contents of 01-armbian-defaults.conf inside : /etc/X11/xorg.conf.d/01-armbian-defaults.conf For NanoPi-M1 Armbian-5.30-Ubuntu-server.
  5. Hi I have an ARM-based board(http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M1) and use Armbian(Ubuntu-server 16.04) on it. I have a 2.2" TFT-LCD with SPI connection, and use this framebuffer driver(https://github.com/notro/fbtft) to launch it. I can setup my LCD with this command: sudo modprobe fbtft_device custom name=fb_ili9341 gpios=reset:1,dc:201,led:6 speed=16000000 rotate=90 bgr=1 And before, when I had Ubuntu desktop, I could change display by this command: FRAMEBUFFER=/dev/fb8 startx But in Ubuntu-server I get this error message: X.Org X Server 1.18.4 Release Date: 2016-07-19 X Protocol Version 11, Revision 0 Build Operating System: Linux 4.4.0-97-generic armv7l Ubuntu Current Operating System: Linux nanopim1 3.4.113-sun8i #16 SMP PREEMPT Tue Jun 13 14:15:57 CEST 2017 armv7l Kernel command line: root=UUID=10b3b795-f372-4ea9-b78a-93ae9355c20c rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=bd75a2d6-01 ubootsource=mmc sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1 Build Date: 13 October 2017 01:59:44PM xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.33.6 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 26 16:44:04 2017 (==) Using config directory: "/etc/X11/xorg.conf.d" (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) no screens found(EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. And have only a blank screen. I want to know how can I set this LCD as my boards default LCD and make it to run. In addition I must say I have installed xorg, openbox and xserver-xorg-video-fbdev too. Also I did accidentally remove this file's content 01-armbian-defaults.conf And looking for it too.
  6. I made an issue inside your github. I thought maybe it's better and easier to ask questions and also other people can see the solution too
  7. Very thank you Larry! I will check your project. Where can I ask questions about it? Can I show images with your library? Does your library support ILI9481 too? If I use this LCD can I use your library: http://www.sanatbazar.com/shop/shop-main/نمایشگر-3-5-اینچی-320x480-مناسب-برای-آردوینو-uno-و-mega2560
  8. Thank you Igor. I have a question for last question. What is the difference betwem Ubuntu server and Ubuntu core?
  9. Thanks again. There is a Ubuntu server in https://www.armbian.com/nanopi-m1/ and I think it's ubuntu core. But it uses kernel 3.4.113. Is not a version with kernel 4?
  10. Thanks Igor! Are there an Armbian version like Ubuntu-core for nanopi=m1?
  11. Hi I have NanoPi-M1 board. It has two type of Ubuntu-Core as you can see here(https://www.mediafire.com/folder/3q2911p1qp33p/NanoPi-M1Board#dc73df73c6dk6) with kernels (3.4.39 amd 4.11.2). But when I try modinfo fbtft It says there is no file or directory like this! But I think it should be exist in kernels with version above 4.10. By the way, I need this kernel support to running my LCD! Are there any Armbian version like Ubunto core with this module support on kernel? Or can I add this support to yhose Ubuntu files in above link? how?
  12. Can you explain more? For example I want a linux system that has microphone,speaker and display support, and when I turning it on, it executes "hello world.c" program and shows the result on the screen. And I don't want other default installed applications like web browser, office, etc! How can I do it? I do not need to follow previous sections(Building Armbian, Building options)?
  13. I have solved the problem on github. you can see ther result there if you want!
  14. The problem solved when I commented this line #gpio_sunxi in /etc/modules file. (I had un-commented it before)
  15. Hi I think the subject I am interested in, called Kiosk OS or computer. I like to build a computer that when you turn it on, it does only execute one or some programs that I want. how can I do that? Is it a simple thing or should I spend weeks or months to learning and doing that? (I am a newbie linux user but know the C language). Very thank you in advanced!
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines