Albundy Posted October 29, 2016 Posted October 29, 2016 hello, Thank you very much for the effort porting arbian to S905x. debian builds work perfectly on mini m8s ii (s905x, 2G/8G, ap6212 wifi). Ubuntu xenial has issues with display as discussed above. tried to remove xfce and installed lxde same scrumbled screen. so it might not be the window manager, may be problem with X or driver.. on the other hand Ubuntu trusty does not boot, what is the difference xenial vs trusty build process? Are aml & s905 autoscripts different?
Albundy Posted October 29, 2016 Posted October 29, 2016 uInitrd was missing, I added to the BOOT partition, now booting, but scripts fails to generate uInitrd and trusty is console no desktop version.
balbes150 Posted October 29, 2016 Author Posted October 29, 2016 hi all, this is newbie question... sorry for this... I have a X96 tv box which is Amlogic S905X + Mali 450MP GPU device. Would love to have working armbian . I was able to run Libreelec. Supprisingly, it works well, however, Armbian_5.24_Amlogic-s905x_Debian_jessie_3.14.29_20161028.img will end in boot loop. Libreelec contains dtd.img, which apparently differs from armbian structure. I suppose, dtd should be a key for running kernel on particular device. Any hint how should i proceed to make armbian working? My device is rooted s i can get some usefull data from android if that would help. Thanks. Hi. What dtb file are You using ?
balbes150 Posted October 29, 2016 Author Posted October 29, 2016 uInitrd was missing, I added to the BOOT partition, now booting, but scripts fails to generate uInitrd and trusty is console no desktop version. 1. Try this version of Ubuntu 14. The user described how he she works. I have not checked this option. 2. To test, I put LXDE after removing XFCE. LXDE starts and runs. But they need to clean out the remnants from XFCE, they interfere with the normal work of other DE. http://freaktab.com/forum/tv-player-support/amlogic-based-tv-players/s905/tronsmart-ac/firmware-roms-tools-at/565449-running-linux-from-sd-card-or-usb-flash-drive-using-balbes150-method-and-files/page22
jan.pal Posted October 29, 2016 Posted October 29, 2016 Hi. What dtb file are You using ? Hi, my dtb.img is comming with this image: http://kszaq.libreelec.tv/s905/7.0.2.007/LibreELEC-S905.aarch64-7.0.2.007.img.gz this guide says that for s905x i should keep the dtb.img unchanged. for other devices i should find my dtb file here: http://kszaq.libreelec.tv/s905/7.0.2.008/device_trees/ rename it to dtb.img and copy to BOOT partition of the image file..... I have noticed there is no dtb.img in armbian image and i failed to understand how corresponding dtb file is loaded. Is there any guide how booting with dtb files works on Armbian? Thanks
balbes150 Posted October 29, 2016 Author Posted October 29, 2016 1. From copy the working of the image LE (that You normally run) file "dtb.img" on the media where the recorded Armbian. Try to start the system with this file. 2. If the system fails to start, You need to try, one at a time, copy the existing FAT partition in the directory /dtb compatible files. And check with them the launch of Armbian. You can try the dtb files that are on the site KSZAQ. 3. In the image Armbian, by default (immediately after recording the image to media), there is no dtb file. The autorun script system is set up so that if there is no file, it tries to load from the internal memory. The first run you can try without the dtb file, if the system is to start, then embedded file (from internal memory) suitable for Armbian. If the system fails to start, you need to add the dtb file manually (choosing such that the system can work normally).
garyang Posted October 29, 2016 Posted October 29, 2016 I've compared odroid C2 jessie and armbian. There is several device missing. /dev/dri/card1 /dev/dri/card0 /dev/ump X11 log compare armbian [ 17.017] (II) FBTURBO(0): can't load 'mali_drm' kernel module [ 17.018] (II) Loading sub module "dri2" [ 17.018] (II) LoadModule: "dri2" [ 17.018] (II) Module "dri2" already built-in [ 28.170] FbdevMaliDRI2_Init: drmOpen failed! [ 28.170] (II) FBTURBO(0): failed to enable DRI2 integration for Mali GPU [ 28.170] (==) RandR enabled [ 28.192] (II) SELinux: Disabled on system [ 28.194] (II) AIGLX: Screen 0 is not DRI2 capable [ 28.194] (EE) AIGLX: reverting to software rendering odroid c2 jessie[ 32.447] (==) ModulePath set to "/usr/lib/xorg/modules" [ 32.447] (II) The server relies on udev to provide the list of input device$ If no devices become available, reconfigure udev or disable AutoAddDevi$ [ 32.447] (II) Loader magic: 0x55579eece8 [ 32.447] (II) Module ABI versions: [ 32.447] X.Org ANSI C Emulation: 0.4 [ 32.447] X.Org Video Driver: 18.0 [ 32.447] X.Org XInput driver : 21.0 [ 32.447] X.Org Server Extension : 8.0 [ 32.447] (II) xfree86: Adding drm device (/dev/dri/card0) [ 32.448] (II) xfree86: Adding drm device (/dev/dri/card1) [ 32.448] (II) no primary bus or device found [ 32.448] falling back to /sys/devices/platform/mali_drm.0/drm/card0 we need kernel with drm support for h/w rendering and run kodi. Is it possible convert odroid kernel to armbian kernel?
jan.pal Posted October 29, 2016 Posted October 29, 2016 1. From copy the working of the image LE (that You normally run) file "dtb.img" on the media where the recorded Armbian. Try to start the system with this file. 2. If the system fails to start, You need to try, one at a time, copy the existing FAT partition in the directory /dtb compatible files. And check with them the launch of Armbian. You can try the dtb files that are on the site KSZAQ. 3. In the image Armbian, by default (immediately after recording the image to media), there is no dtb file. The autorun script system is set up so that if there is no file, it tries to load from the internal memory. The first run you can try without the dtb file, if the system is to start, then embedded file (from internal memory) suitable for Armbian. If the system fails to start, you need to add the dtb file manually (choosing such that the system can work normally). Hi, now i can boot armbian... but can not login what is the login and passwd? i tried Armbian_5.24_Amlogic-s905x_Debian_jessie_3.14.29_20161028.img and Armbian_5.24_Amlogic-s905x_Ubuntu_xenial_3.14.29_20161028.img Thanks
balbes150 Posted October 29, 2016 Author Posted October 29, 2016 I've compared odroid C2 jessie and armbian. There is several device missing. /dev/dri/card1 /dev/dri/card0 /dev/ump X11 log compare armbian [ 17.017] (II) FBTURBO(0): can't load 'mali_drm' kernel module [ 17.018] (II) Loading sub module "dri2" [ 17.018] (II) LoadModule: "dri2" [ 17.018] (II) Module "dri2" already built-in [ 28.170] FbdevMaliDRI2_Init: drmOpen failed! [ 28.170] (II) FBTURBO(0): failed to enable DRI2 integration for Mali GPU [ 28.170] (==) RandR enabled [ 28.192] (II) SELinux: Disabled on system [ 28.194] (II) AIGLX: Screen 0 is not DRI2 capable [ 28.194] (EE) AIGLX: reverting to software rendering odroid c2 jessie[ 32.447] (==) ModulePath set to "/usr/lib/xorg/modules" [ 32.447] (II) The server relies on udev to provide the list of input device$ If no devices become available, reconfigure udev or disable AutoAddDevi$ [ 32.447] (II) Loader magic: 0x55579eece8 [ 32.447] (II) Module ABI versions: [ 32.447] X.Org ANSI C Emulation: 0.4 [ 32.447] X.Org Video Driver: 18.0 [ 32.447] X.Org XInput driver : 21.0 [ 32.447] X.Org Server Extension : 8.0 [ 32.447] (II) xfree86: Adding drm device (/dev/dri/card0) [ 32.448] (II) xfree86: Adding drm device (/dev/dri/card1) [ 32.448] (II) no primary bus or device found [ 32.448] falling back to /sys/devices/platform/mali_drm.0/drm/card0 we need kernel with drm support for h/w rendering and run kodi. Is it possible convert odroid kernel to armbian kernel? Version 5.20 (a-79) uses an adapted kernel from Odroid. If You wish, You can continue this thread. In git to build this branch you need to use vegas95. https://yadi.sk/d/LxdGtAWmxEk7b Hi, now i can boot armbian... but can not login what is the login and passwd? i tried Armbian_5.24_Amlogic-s905x_Debian_jessie_3.14.29_20161028.img and Armbian_5.24_Amlogic-s905x_Ubuntu_xenial_3.14.29_20161028.img Thanks General settings can be found here. http://www.armbian.com/odroid-c2/
jan.pal Posted October 29, 2016 Posted October 29, 2016 Version 5.20 (a-79) uses an adapted kernel from Odroid. If You wish, You can continue this thread. In git to build this branch you need to use vegas95. https://yadi.sk/d/LxdGtAWmxEk7b General settings can be found here. http://www.armbian.com/odroid-c2/ with root 1234 on debian image i get this error: Authentication token manipulation error :-(
balbes150 Posted October 29, 2016 Author Posted October 29, 2016 Primary start Armbian consists of two stages. When you first start the system you will need to wait for the automatic reboot. In the first stage, expands the root partition and run pre-primary settings. After the system reboot, and will then prompt for a login, then you can enter the username and password of the root user.
jan.pal Posted October 29, 2016 Posted October 29, 2016 Primary start Armbian consists of two stages. When you first start the system you will need to wait for the automatic reboot. In the first stage, expands the root partition and run pre-primary settings. After the system reboot, and will then prompt for a login, then you can enter the username and password of the root user.Thanks. I red the guide and also forums so i am aware that i have to wait for auto reboot. Unfortunatelly, i got this error after auto reboot. I even wait for 15 minutes but it does not help Sent from my GT-I9505 using Tapatalk
garyang Posted October 30, 2016 Posted October 30, 2016 Version 5.20 (a-79) uses an adapted kernel from Odroid. If You wish, You can continue this thread. In git to build this branch you need to use vegas95. https://yadi.sk/d/LxdGtAWmxEk7b General settings can be found here. http://www.armbian.com/odroid-c2/ It doesn't boot on S905X I added gxl_p212_2g.dtb file to dtb folder and root folder. I also added roo gxl_p212_2g.dtb file to dtb.img on root folder. Do I have to recompile for S905X?
sukanime Posted October 30, 2016 Posted October 30, 2016 Here is my two cents. Everythings works. Mali - vpu - open gl(es) - sound - lan. Mini m8s s905. arm-mali-tests are running on fbdev. For hardware video decoding - https://github.com/OtherCrashOverride/c2play/tree/dualstream, no need for Kodi. It allso can be used with smtube. One thing - kodi fbdev is needed. If anyone needs i can provide - kernel, modules, mali binary blobs. That's nice... i try c2play with the latest Odroid Ubuntu Mate, i could compile but it not run. Please could you share your build? so i could try c2play, i want to know, how good this media player. You could share an image from your sdcard. or Full Backup from BOOT Partition and ROOTFS Partition is much better (much smaller size), please see this http://www.aboutdebian.com/tar-backup.htm And upload it to Mediafire. Thanks before.
balbes150 Posted October 30, 2016 Author Posted October 30, 2016 Thanks. I red the guide and also forums so i am aware that i have to wait for auto reboot. Unfortunatelly, i got this error after auto reboot. I even wait for 15 minutes but it does not help Sent from my GT-I9505 using Tapatalk What medium is used to capture the image ? I can only assume that perhaps the cause of the error, either bad media or incorrect in the source image (image downloaded in error). It doesn't boot on S905X I added gxl_p212_2g.dtb file to dtb folder and root folder. I also added roo gxl_p212_2g.dtb file to dtb.img on root folder. Do I have to recompile for S905X? I looked at the code, it seems to me without the imposition of a large number of specific patches to support S905X, the kernel from the Odroid won't work.
Albundy Posted October 30, 2016 Posted October 30, 2016 balbes150, on 29 Oct 2016 - 11:53 PM, said: 2. To test, I put LXDE after removing XFCE. LXDE starts and runs. But they need to clean out the remnants from XFCE, they interfere with the normal work of other DE. in debian jessy you can see the desktop but some areas are very dark. I cannot see terminal, cannot type, mouse pointer also very dark. I lost it time to time. I removed xfce and installed lxde in debian (with physical serial terminal) with below commands: sudo apt-get purge xfconf xfce4-utils xfwm4 xfce4-session thunar xfdesktop4 exo-utils xfce4-panel xfce4-terminalsudo apt-get autoremovesudo apt-get install task-lxde-desktop but there are still problems, lxde menus cannot be closed, the desktop is not refreshed, you open and close windows, but there still remaining buttons etc. very interesting.. What commands are you using to remove xfce completely? I will try ubuntu again with lxde.. I am building images from 150balbes github repository.
balbes150 Posted October 30, 2016 Author Posted October 30, 2016 It seems the problem with the desktop XFCE in Debian after a reboot associated with the absence of the required rights from the user. As a workaround for versions of Debian. After rebooting the system (when the colors become dark), switch to another console (for example on the first Ctrl + Alt + F1), log as root. And run graphics with startx. Under the root user all colors are normalized (desktop as when you first start). I checked this option in Ubuntu - does not help. In the next few days I'll try to put the XFCE variant of Ubuntu with a different DE. Now that would completely remove XFCE need hands to remove the directory with the XFCE settings (in /etc/xdg) , remove the autorun and install any package for authorization (lightdm, gdm etc). To install another DE and patch into it to run. As I understand it, the scripts the primary configuration is rigidly prescribed autostart XFCE, and needed hands to remove. I have seen this behaviour when in turn there are two desktops, one from the new system and the remnants of XFCE.
balbes150 Posted October 30, 2016 Author Posted October 30, 2016 Uploaded the fixed images of the console with a working network S905X (checked on i7Pro, wired LAN works). Desktop images will be tomorrow.
garyang Posted October 30, 2016 Posted October 30, 2016 Uploaded the fixed images of the console with a working network S905X (checked on i7Pro, wired LAN works). Desktop images will be tomorrow. Thanks~~~ Armbian_5.24_Amlogic-s905x_Debian_jessie_3.14.29_20161030.img Ethernet and ssh works well..... I've found easy way to install desktop. First, Add odroid c2 jessie repository.(as root) cd /etc/apt/sources.list.d wget http://oph.mdrjr.net/meveric/sources.lists/meveric-all-main.list wget http://oph.mdrjr.net/meveric/sources.lists/meveric-all-C2.list wget http://oph.mdrjr.net/meveric/sources.lists/meveric-jessie-main.list wget http://oph.mdrjr.net/meveric/sources.lists/meveric-jessie-backports.list wget http://oph.mdrjr.net/meveric/sources.lists/meveric-all-testing.list wget -O- http://oph.mdrjr.net/meveric/meveric.asc| apt-key add - apt-get update apt-get install setup-odroid - run below cat /proc/cpuinfo | grep Hardware | awk '{print $3}' you can see Amlogic nano /usr/local/sbin/setup-odroid Change ODROID-C2 to Amlogic and save. setup-odroid You can install desktop with menu-driven.
vcka Posted October 30, 2016 Posted October 30, 2016 That's nice... i try c2play with the latest Odroid Ubuntu Mate, i could compile but it not run. Please could you share your build? so i could try c2play, i want to know, how good this media player. You could share an image from your sdcard. or Full Backup from BOOT Partition and ROOTFS Partition is much better (much smaller size), please see this http://www.aboutdebian.com/tar-backup.htm And upload it to Mediafire. Thanks before. Please download needed files http://myiot.bot.nu:22001/s905.tar.gz 1
jan.pal Posted October 30, 2016 Posted October 30, 2016 Uploaded the fixed images of the console with a working network S905X (checked on i7Pro, wired LAN works). Desktop images will be tomorrow. this image works also for me.. now i have working armbian on x96. thanks
balbes150 Posted October 30, 2016 Author Posted October 30, 2016 Still useful information for users. If the internal memory of the TV set-top box on the basis of S905 installed version is 007 or 008 (which use the new dtb format) , you can use the latest images (20161030) without manually copying dtb to the root FAT partition . Need dtb data is taken automatically from the internal memory. Ie, immediately after recording the image, it is possible to use a TV box without additional manual operations to copy the dtb file (same as version S905X).
jan.pal Posted October 30, 2016 Posted October 30, 2016 Still useful information for users. If the internal memory of the TV set-top box on the basis of S905 installed version is 007 or 008 (which use the new dtb format) , you can use the latest images (20161030) without manually copying dtb to the root FAT partition . Need dtb data is taken automatically from the internal memory. Ie, immediately after recording the image, it is possible to use a TV box without additional manual operations to copy the dtb file (same as version S905X). hi balbes159, your image runs me out of box, without copying the dtb to boot partition. so i understand dtb file is taken from intenal device memory.. How did you get there? My Armbian can not see Android file system. this is my list of block devices for illustration: root@amlogic-s905x:/dev/block# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 7.4G 0 disk ├─sda1 8:1 1 64M 0 part /boot └─sda2 8:2 1 7.2G 0 part / mmcblk0rpmb 179:96 0 512K 0 disk mmcblk0boot0 179:32 0 4M 0 disk mmcblk0boot1 179:64 0 4M 0 disk mmcblk0 179:0 0 7.3G 0 disk none of mmcblk* devices has a mountable filesystem. if i check Android fstab it is mounting /dev/block/system, /dev/block/data, ... Any hint to mount Android internal memory/filesystem to Armbian? Thanks
balbes150 Posted October 30, 2016 Author Posted October 30, 2016 dtb data receives a script from u-boot. https://github.com/150balbes/lib/blob/master/config/bootscripts/boot-amlogics905x.cmd By the way, if You run the desktop version of Debian, you will be able to see on the desktop a few links for access to the internal memory. To the question SSH in the Ubuntu images. Not yet clear to me why, when building image fails and the qemu package openssh-server is not installed completely. If you run in the running image command apt-get install openssh-server package is installed correctly and formed to have the keys. In this thread I described the problem. If there are users who collect their images, request them to respond as they have is the Assembly. Keys are generated once at build time or not ? http://forum.armbian.com/index.php/topic/2744-ubuntu-ssh/
jan.pal Posted October 30, 2016 Posted October 30, 2016 guys, i am getting bit crazy. 1) the latest , armbian_debian works great but can not mount internal filesystem 2) armbian_debian with manually installed xfce can not mount internal filesystem 3) armbian_debian_desktop can mount internal file system but ethernet does not work, which is showstopper for me armbian_debian_desktop has /dev/system and /dev/data which are devices for mounting internal storage but those devices does not exists on armbian_debian without desktop... Any hint how to make the /dev/system and /dev/data appear on armbian withou desktop? Am i missing some drivers? Thanks for your help...
Nofan Tasi Posted October 31, 2016 Posted October 31, 2016 guys, i am getting bit crazy. 1) the latest , armbian_debian works great but can not mount internal filesystem 2) armbian_debian with manually installed xfce can not mount internal filesystem 3) armbian_debian_desktop can mount internal file system but ethernet does not work, which is showstopper for me armbian_debian_desktop has /dev/system and /dev/data which are devices for mounting internal storage but those devices does not exists on armbian_debian without desktop... Any hint how to make the /dev/system and /dev/data appear on armbian withou desktop? Am i missing some drivers? Thanks for your help... I guess you can always mount manually, say: # mkdir /mnt/data /mnt/system # mount /dev/data /mnt/data # mount /dev/system /mnt/system ... # umount /mnt/system /mnt/data
jan.pal Posted October 31, 2016 Posted October 31, 2016 I guess you can always mount manually, say: # mkdir /mnt/data /mnt/system # mount /dev/data /mnt/data # mount /dev/system /mnt/system ... # umount /mnt/system /mnt/data In the armbian_debian the device /dev/data does not exist so i can not mount. While on desktop version device exists. Am i missing driver or configuration? Sent from my GT-I9505 using Tapatalk
vcka Posted October 31, 2016 Posted October 31, 2016 In the armbian_debian the device /dev/data does not exist so i can not mount. While on desktop version device exists. Am i missing driver or configuration? Sent from my GT-I9505 using Tapatalk Try modprobe aml_nftl_dev
balbes150 Posted October 31, 2016 Author Posted October 31, 2016 Thanks~~~ Armbian_5.24_Amlogic-s905x_Debian_jessie_3.14.29_20161030.img Ethernet and ssh works well..... I've found easy way to install desktop. First, Add odroid c2 jessie repository.(as root) cd /etc/apt/sources.list.d wget http://oph.mdrjr.net/meveric/sources.lists/meveric-all-main.list wget http://oph.mdrjr.net/meveric/sources.lists/meveric-all-C2.list wget http://oph.mdrjr.net/meveric/sources.lists/meveric-jessie-main.list wget http://oph.mdrjr.net/meveric/sources.lists/meveric-jessie-backports.list wget http://oph.mdrjr.net/meveric/sources.lists/meveric-all-testing.list wget -O- http://oph.mdrjr.net/meveric/meveric.asc| apt-key add - apt-get update apt-get install setup-odroid - run below cat /proc/cpuinfo | grep Hardware | awk '{print $3}' you can see Amlogic nano /usr/local/sbin/setup-odroid Change ODROID-C2 to Amlogic and save. setup-odroid You can install desktop with menu-driven. If You place it in the finished script, I'd put it to the Assembly. Then users can directly from the console version to run the desired action. Added fixed images (fixed network cards in S905X) with DE on the website.
balbes150 Posted October 31, 2016 Author Posted October 31, 2016 (edited) in debian jessy you can see the desktop but some areas are very dark. I cannot see terminal, cannot type, mouse pointer also very dark. I lost it time to time. I removed xfce and installed lxde in debian (with physical serial terminal) with below commands: sudo apt-get purge xfconf xfce4-utils xfwm4 xfce4-session thunar xfdesktop4 exo-utils xfce4-panel xfce4-terminalsudo apt-get autoremovesudo apt-get install task-lxde-desktop but there are still problems, lxde menus cannot be closed, the desktop is not refreshed, you open and close windows, but there still remaining buttons etc. very interesting.. What commands are you using to remove xfce completely? I will try ubuntu again with lxde.. I am building images from 150balbes github repository. Still need to remove the package "nodm". For quick installation, the minimum version of LXDE on Debian console image, so I wrote a simple script debian_install_lxde. After installation, the system has synaptic , then everyone can choose the right components. Checked advanced setting MATE. https://yadi.sk/d/5_32km_EsCV2A By the way, if you connect via SSH with the -X switch , you can remotely start programs graphically, for example synaptic. Edited October 31, 2016 by balbes150
Recommended Posts