Jump to content

Armbian for Amlogic S912


chocho
 Share

Recommended Posts

I note that you dont backup/restore your partitions! You just use install.sh and nothing more!

 

I read and have some guide tips from @balbes150 (I think so) to 

 

1) install.sh

2) dont reboot, and backup partitions

3) boot from SD and restore partitions (Fail here)

4) boot from emmc

 

I never try boot after install.sh like you do, maybe it works without steps 2,3, and 4 too

 

I note that you comment about remove kody, why you dont flash headless server. I burn headless server and its awsome,very clean :)

Link to comment
Share on other sites

Search Before Posting!

13 hours ago, Jeycop said:

 

Thank you.

I got it to work on my internal.

(H96 Pro+ (Plus) green mainboard with LDDR3 produced in 2017)

 

I used this version "Armbian_5.41_S9xxx_Ubuntu_xenial_3.14.29_server_20180305.img.xz" LINK

Installed it directly over original Firmware with "./install.sh" -script without any problems.

Important for me was to use Rufus to burn the image to a sdcard and to run it without any dtb-file in main directory on the sdcard.

To start from sdcard I pressed the reset-button for few seconds right after I plugged in the power cable.

 

I was just wondering about the download, because it's under "5.41_KODI-17.6" but I don't need any kodi on this box.

So do I have to clean it up at first, so no storage and performance waste on these additional installations?

 

Flashed in eMMC at first with Armbian_5.41_S9xxx_Ubuntu_xenial_3.14.29_server_20180305.img.xz but without backup and restore like sugested.........
Damn why I not try that LOL

Thanks @Jeycop

 

Its lightning fast running eMMC :) and a lots more space :) 25GB Free is more than enough :) simply awsome

I setup the whole setup, that contains 4 docker microservice containers, webapi. mqttserver, mongo, and nodejs/aurelia spa running and with a load average of 1.06

top - 19:32:17 up 15 min,  2 users,  load average: 1.09, 1.50, 1.26
Tasks: 162 total,   2 running, 160 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.5 us,  0.1 sy,  0.0 ni, 99.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  2815116 total,   846868 free,   989084 used,   979164 buff/cache
KiB Swap:  1407520 total,  1319976 free,    87544 used.  1758744 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                               
 4377 999       20   0  936044  49136  12252 S   1.3  1.7   0:17.40 mongod                                                                                                                
 5411 mario     20   0    7484   1764   1192 R   1.0  0.1   0:00.19 top                                                                                                                   
 4378 root      20   0 4624736 445216  12608 S   0.7 15.8   4:10.79 java                                                                                                                  
 2600 root      20   0       0      0      0 S   0.3  0.0   0:02.63 kworker/3:2                                                                                                           
 3461 root      20   0 1029888  28788  15004 S   0.3  1.0   0:09.37 dockerd                                                                                                               
 3680 root      20   0  946616   8888   4592 S   0.3  0.3   0:04.32 containerd                                                                                                            
 4420 root      20   0 4761960 375840  12632 S   0.3 13.4   3:43.67 java                                                                                                                  
 4975 root      -2   0       0      0      0 S   0.3  0.0   0:00.69 ksdioirqd/sdio                                                                                                        
    1 root      20   0  155872   5712   2408 S   0.0  0.2   0:10.92 systemd                                                                                                               
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd                                                                                                              
    3 root      20   0       0      0      0 S   0.0  0.0   0:00.23 ksoftirqd/0                                                                                                           
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H                                                                                                          
    7 root      20   0       0      0      0 S   0.0  0.0   0:00.73 rcu_preempt                                                                                                           
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_sched                                                                                                             
    9 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh                                                                                                                
   10 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/0                                                                                                           
   11 root      rt   0       0      0      0 S   0.0  0.0   0:00.12 migration/1                                                                                                           
   12 root      20   0       0      0      0 S   0.0  0.0   0:00.02 ksoftirqd/1                                                                                                           
   14 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H                                                                                                          
   15 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/2                                                                                                           
Link to comment
Share on other sites

2 hours ago, koakh said:

 

Flashed in eMMC at first with Armbian_5.41_S9xxx_Ubuntu_xenial_3.14.29_server_20180305.img.xz but without backup and restore like sugested.........
Damn why I not try that LOL
 

 

Nice to read you made it.

 

at my 16gb I have 11GB free space.

EMMC speed is ~ 60MByte/s. thats 4x faster than Raspb3B, I really like it.

 

I'm just a beginner at Linux, so I try to learn more about it.

Even I have chosen the Kodi download, I can't find Kodi on it ^^

Minecraft runs fine (installed to test speed) And I used it the hole day as SSH proxy for my smartphone -> really stable.

Now I try mumble server and a website with apache and mysql.

 

But ^^

Lan speed is really slow ~ 15MByte/s..

 

PS: Awesome Thread for setup, thanks !!!

hm docker, didn't hear about it, I start reading about it now^^

Did you do a wifi speedtest?

Link to comment
Share on other sites

36 minutes ago, Jeycop said:

Nice to read you made it.

 

PS: Awesome Thread for setup, thanks !!!

hm docker, didn't hear about it, I start reading about it now^^

Did you do a wifi speedtest?Now I try mumble server and a website with apache and mysql.

and dont know docker! welcome 

 

docker is the best thing that appens to IT after Linux (my humble opinion)
you have many containers already setup waiting.........with mysql, php, lamp etc just choose :)
install docker from my post and follow some good tutorials, and you are learning good stuff man (again my opinion)

 

thanks to all

Link to comment
Share on other sites

hello so i have been trying to run Armbian_5.41_S9xxx_Ubuntu_xenial_4.14.11_mate_2018 0323.img on my Mecool KM8 P Android Mini TV Box and i got it to boot up but i cant use the mouse or keyboard, please any help will be appreciated

Link to comment
Share on other sites

On 3/29/2018 at 8:11 PM, koakh said:

 

Flashed in eMMC at first with Armbian_5.41_S9xxx_Ubuntu_xenial_3.14.29_server_20180305.img.xz but without backup and restore like sugested.........
Damn why I not try that LOL

Thanks @Jeycop

 

Its lightning fast running eMMC :) and a lots more space :) 25GB Free is more than enough :) simply awsome

I setup the whole setup, that contains 4 docker microservice containers, webapi. mqttserver, mongo, and nodejs/aurelia spa running and with a load average of 1.06


top - 19:32:17 up 15 min,  2 users,  load average: 1.09, 1.50, 1.26
Tasks: 162 total,   2 running, 160 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.5 us,  0.1 sy,  0.0 ni, 99.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  2815116 total,   846868 free,   989084 used,   979164 buff/cache
KiB Swap:  1407520 total,  1319976 free,    87544 used.  1758744 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                               
 4377 999       20   0  936044  49136  12252 S   1.3  1.7   0:17.40 mongod                                                                                                                
 5411 mario     20   0    7484   1764   1192 R   1.0  0.1   0:00.19 top                                                                                                                   
 4378 root      20   0 4624736 445216  12608 S   0.7 15.8   4:10.79 java                                                                                                                  
 2600 root      20   0       0      0      0 S   0.3  0.0   0:02.63 kworker/3:2                                                                                                           
 3461 root      20   0 1029888  28788  15004 S   0.3  1.0   0:09.37 dockerd                                                                                                               
 3680 root      20   0  946616   8888   4592 S   0.3  0.3   0:04.32 containerd                                                                                                            
 4420 root      20   0 4761960 375840  12632 S   0.3 13.4   3:43.67 java                                                                                                                  
 4975 root      -2   0       0      0      0 S   0.3  0.0   0:00.69 ksdioirqd/sdio                                                                                                        
    1 root      20   0  155872   5712   2408 S   0.0  0.2   0:10.92 systemd                                                                                                               
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd                                                                                                              
    3 root      20   0       0      0      0 S   0.0  0.0   0:00.23 ksoftirqd/0                                                                                                           
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H                                                                                                          
    7 root      20   0       0      0      0 S   0.0  0.0   0:00.73 rcu_preempt                                                                                                           
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_sched                                                                                                             
    9 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh                                                                                                                
   10 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/0                                                                                                           
   11 root      rt   0       0      0      0 S   0.0  0.0   0:00.12 migration/1                                                                                                           
   12 root      20   0       0      0      0 S   0.0  0.0   0:00.02 ksoftirqd/1                                                                                                           
   14 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H                                                                                                          
   15 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/2                                                                                                           

Did you noticed that also in a clean install at system in idle we always have a system load that never goes under 1 caused by vdec-core in uninterruptible sleep?

This is a kernel related problem appeared in last versions and I have reported it here. Do you have some idea about what do to?

Link to comment
Share on other sites

Hello to all ... been lurking for a while - first post - I'm glad I found this place - kudos to all for the hard work that's been done here.

 

I believe I might have the same problem as Aniel Arias ... I am trying to load Armbian_5.41_S9xxx_Ubuntu_xenial_4.14.11_mate_20180323.img I get to the initial (root) login and my (USB) keyboard is non-functional.  I should mention that I'm using meson-gxm-q200.dtb - the only one I've found so far that will work for me.

 

Amlogic S912, Quad, A53, 2G/16G, dual wifi, 1G ether, 2 USB 2.0, 1 USB 3.0, 1 USB OTG, micro SD ... odd brand device .. "U2C"

 

... anything else you need to know?

 

Thanks in advance!

Link to comment
Share on other sites

ohh thank god im not the only one, and yes meson-gxbb-p201.dtb is the only one is working for me (have tested few other but no luck), please need some advise  on what to do next since i have depleted all my research and expend almost 2 days on this 

Link to comment
Share on other sites

39 minutes ago, fatugazuhati said:

Did you noticed that also in a clean install at system in idle we always have a system load that never goes under 1 caused by vdec-core in uninterruptible sleep?

This is a kernel related problem appeared in last versions and I have reported it here. Do you have some idea about what do to?

I dont know about this idle problem. But when I push system and use more resources, like push docker containers for eg, I have all cores and CPU at higher levels. But I will watch this idle for higher values.....

Link to comment
Share on other sites

44 minutes ago, balbes150 said:

This dtb file does not contain support for USB.

 

 

Well poop, that kinda sux ... but I do appreciate the reply and info.

 

I think I've tried just about all the other dtb's, and most of them don't even start loading for me.  If they do load, they freeze at various points.

 

I'm not using this android tv box for anything other than something to play with.   I'd like to wipe Android entirely and install Armbian internally - but I'm not sure where to start.   (I know, I know ... always start with a complete backup ... haha)

 

Link to comment
Share on other sites

20 hours ago, koakh said:

I dont know about this idle problem. But when I push system and use more resources, like push docker containers for eg, I have all cores and CPU at higher levels. But I will watch this idle for higher values.....

It is a kernel process and you can check the problem in this way:

ps aux | grep " D"
root      2534  0.0  0.0      0     0 ?        D    14:29   0:03 [vdec-core]
root      6948  0.0  0.0   4312   648 pts/0    S+   15:59   0:00 grep  D

 

@balbes150, if can help in dmesg I have this:

dmesg | grep vdec
[    5.735325] codec:get gate vdec control ok ffffffc09319c000
[    5.739991] codec:vdec_request_irq ffffffc00184efa8, vsync
[    5.861875] codec:used fix clk for vdec clk source!

 

Instead using the kernel from Jessie with wich this problem isn't present in dmesg I have this:

dmesg | grep vdec
[    5.657064] codec:get gate vdec control ok ffffffc0b3816500
[    5.661865] codec:used fix clk for vdec clk source!

 

 

Link to comment
Share on other sites

On 12/4/2016 at 4:42 PM, lvmc said:

 


adb pull /dev/block/boot boot.img

 


wget -c http://www.enck.org/tools/split_bootimg_pl.txt -O split_bootimg.pl
chmod a+x split_bootimg.pl
split_bootimg.pl boot.img

 


-rw-r--r--   1 lvmc  staff    32M Dec  4 19:28 boot.img
-rw-r--r--   1 lvmc  staff   7.0M Dec  4 20:08 boot.img-kernel
-rw-r--r--   1 lvmc  staff   898K Dec  4 20:08 boot.img-ramdisk.gz
-rw-r--r--   1 lvmc  staff    82K Dec  4 20:08 boot.img-second.gz

 

 

 

I realize this is an old thread ... but what does it mean if I do the above steps to split the boot image, but no "boot.img-second.gz" file gets generated?  (The other 3 boot.img files seem to be generated properly).

 

TIA

Link to comment
Share on other sites

A stupid question.

I have armbian on usb (32GB), libreelec on sd (32gb) and android on mmc (32 gb).

If the usb in not inserted the system boot on sd and on exit of libreelec i can reboot to android, but with usb inserted system boot always on armbian.

I don't want create a dual boot on usb for space reasons.

There is a metod for choose the boot device before system boot strap?  

Link to comment
Share on other sites

On 31/3/2018 at 6:19 PM, GneeChee said:

 

I realize this is an old thread ... but what does it mean if I do the above steps to split the boot image, but no "boot.img-second.gz" file gets generated?  (The other 3 boot.img files seem to be generated properly).

 

TIA

Simply that it isn't present in your boot img.

 

On 31/3/2018 at 9:35 PM, samarcanda said:

A stupid question.

I have armbian on usb (32GB), libreelec on sd (32gb) and android on mmc (32 gb).

If the usb in not inserted the system boot on sd and on exit of libreelec i can reboot to android, but with usb inserted system boot always on armbian.

I don't want create a dual boot on usb for space reasons.

There is a metod for choose the boot device before system boot strap?  

Yes, you can but it is not so simple and if I'm not in error you should found the answer in the s905/s905x thread.

Link to comment
Share on other sites

I appreciate the response.  I knew that would be the answer, but I'm lost here ...

 

I can't find a dtb that will allow me to fully boot up, and I don't know enough about this to know how to solve my problem.

 

My goal was to fully replace Android with some sort of Linux - I have this Android TV box that isn't being used - I didn't think it would be this difficult for me.

 

However - I *am* able to load LibreElec - that runs just fine.    Sadly, I don't want Kodi - and I would like a more complete version of Linux.

 

If anybody has any hints or help for me, I would love to hear it.    Otherwise, I'll keep plugging away - until I brick my Android TV box.   HAHA

Link to comment
Share on other sites

12 hours ago, GneeChee said:

I've tried that - several times with different armbian/kernel versions ... no luck :(

Try to boot Armbian with kernel 3.14 without any dtb, if it will fail please extract the dtb from your device and post it here.

Link to comment
Share on other sites

On 4/4/2018 at 6:06 AM, balbes150 said:

Use version Armbian with kernel 3.14

 

2 hours ago, fatugazuhati said:

Try to boot Armbian with kernel 3.14 without any dtb, if it will fail please extract the dtb from your device and post it here.

 

I tried that again, and still failed.   However, I remembered reading about bad SD cards - so I switched to a USB stick - and it worked!!!

My apologies to both of you - I should have done that a long time ago.    Anyway, this is where I am:

  • Armbian_5.37_S9xxx_Ubuntu_xenial_3.14.29_mate_20171226.img with NO dtb loaded
  • can boot into GUI desktop
  • sound works
  • no wifi, can't test ethernet (router is too far away) - I only want wifi
  • TV is set to overscan, and I can't adjust it - so part of my display is cut off - I don't know how to fix that in Linux (if at all possible)

I appreciate the help you've given me so far ... but now I don't know what to do to have a usable system.

 

My knowledge of Linux commands is VERY limited, but any tips you can offer would be greatly appreciated.

 

Oh - if I need to load a DTB (for wifi, etc), can I just copy it to the USB stick and reboot, or do I need to do something different?

 

Thanks in advance!

Link to comment
Share on other sites

6 hours ago, fatugazuhati said:

About the wifi you have to lad the correct module, everything is explained in the first post.

About the dtb, the best dtb is the one from your manufacturer so if it works you will never use a different dtb.

 

Thanks ... I appreciate your help!

 

Link to comment
Share on other sites

@Balbes150

 

I've been following you for a long time on this forum and I was wondering if you could make me a custom image of Armbian?

 

I am using a Khadas VIM2 Max and need a version of Debian Stretch & LibreELEC (if necessary) to be able to use it.  It will be used as a headless controller/server.

 

As you know, it's 64-bit and uses S912, etc.  I'm not sure which kernel is needed.

 

I also need to use a 4K UHD 3840x2160 display.  Would it be possible to modify the configuration from the CLI when running it?

 

Would I have access to framebuffers?  This is a requirement.

 

Could I have access to direct control of the GPU?   This is an option.

 

The last part of this request is that it must be put on a USB flash drive.  The Molex socket for the microSD card will not lock the card in ( and I have tested several different microSD cards with the same result).

 

I also haven't been able to install u-boot, so could you make the VIM2 Max default to boot from the flash drive if it is plugged in and default to the Android boot if it isn't plugged in?

 

I appreciate anything you can do to help me.

 

Thanks.

Link to comment
Share on other sites

On 14.04.2018 at 10:38 PM, colgeocol said:

I am using a Khadas VIM2 Max and need a version of Debian Stretch & LibreELEC (if necessary) to be able to use it.  It will be used as a headless controller/server.

 

As you know, it's 64-bit and uses S912, etc.  I'm not sure which kernel is needed.

 

I also need to use a 4K UHD 3840x2160 display.  Would it be possible to modify the configuration from the CLI when running it?

 

Would I have access to framebuffers?  This is a requirement.

 

Could I have access to direct control of the GPU?   This is an option.

 

The last part of this request is that it must be put on a USB flash drive.  The Molex socket for the microSD card will not lock the card in ( and I have tested several different microSD cards with the same result).

 

I also haven't been able to install u-boot, so could you make the VIM2 Max default to boot from the flash drive if it is plugged in and default to the Android boot if it isn't plugged in?

All this is possible, but it will take a lot of time, but in the near future I do not have free time.

Link to comment
Share on other sites

5 hours ago, balbes150 said:

All this is possible, but it will take a lot of time, but in the near future I do not have free time.

I understand.

 

Take all the time you need.  I can wait.

 

I really appreciate your help with this problem.

 

Have a good day.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...