Jump to content

Armbian for Amlogic S912


chocho

Recommended Posts

On 5/8/2018 at 6:59 PM, balbes150 said:

There are no such options.

 

 

Balbes

 

Ia m running S912 Armbian latest version regularly updating,

 

Can I change the screen resolution . 1080p on my TV makes everything small. I can not find any way of doing this.

 

The "sudo apt-get update" command brings down 40mb of files each time is this correct?

 

I have added a small 5volt raspberry pi fan to the S912 CPU using cable ties. It brings the idle temperature down to 39 Celsius on Armbianmonitor. Basically a 10 degree drop. I think I will do it to my 2 other Mecool s912 boards.

 

How would you describe the s912 version of Armbian. Could it be described as experimental or stable?

 

Thanks so much for your work.

 

Seasalt.

Link to comment
Share on other sites

3 hours ago, Seasalt said:

Ia m running S912 Armbian latest version regularly updating,

 

Can I change the screen resolution . 1080p on my TV makes everything small. I can not find any way of doing this.

 

The "sudo apt-get update" command brings down 40mb of files each time is this correct?

 

I have added a small 5volt raspberry pi fan to the S912 CPU using cable ties. It brings the idle temperature down to 39 Celsius on Armbianmonitor. Basically a 10 degree drop. I think I will do it to my 2 other Mecool s912 boards.

 

How would you describe the s912 version of Armbian. Could it be described as experimental or stable?

 

Thanks so much for your work.

I don't know what exactly version it is.

Link to comment
Share on other sites

46 minutes ago, balbes150 said:

I don't know what exactly version it is.

 

Hi Balbes,

i installed this Armbian_5.41_S9xxx_Debian_stretch_3.14.29_xfce_20180305 3 weeks ago on my Mecool km8 S912 TV Box.and have been upgrading it using apt-get update and upgrade.

 

Seasalt.

Link to comment
Share on other sites

1 hour ago, balbes150 said:

Can I change the screen resolution . 1080p on my TV makes everything small. I can not find any way of doing this.

 

4 hours ago, Seasalt said:

The "sudo apt-get update" command brings down 40mb of files each time is this correct?

That's okay. Packet base network reach quickly updated. But this does not mean that you need all the time to put new versions. If everything works as it should, you can not update.

 

4 hours ago, Seasalt said:

How would you describe the s912 version of Armbian. Could it be described as experimental or stable? 

It's all relative.

 

Link to comment
Share on other sites

@balbes150,

 

Sorry to bother you again but I have another dumb question.

 

I downloaded and burned to a microSD card the Armbian_5.41.1_S9xxx_Debian_stretch_4.16.1_server_20180508.img.

 

It came up great.

 

I thought I modified all required files/scripts but the framebuffer directories are not being created.

 

Are there other scripts that need to be modified?

 

If yes, which ones and where?

 

If no, what did I do wrong?

 

Link to comment
Share on other sites

7 hours ago, colgeocol said:

Sorry to bother you again but I have another dumb question.

 

I downloaded and burned to a microSD card the Armbian_5.41.1_S9xxx_Debian_stretch_4.16.1_server_20180508.img.

 

It came up great.

 

I thought I modified all required files/scripts but the framebuffer directories are not being created.

 

Are there other scripts that need to be modified?

 

If yes, which ones and where?

 

If no, what did I do wrong?

What directories are you trying to create and for what ?

Link to comment
Share on other sites

My VIM2 Max running your Armbian server needs to be able to display to a 4K UHD monitor through HDMI.

 

What I am looking for is everything that I need to install or modify to handle framebuffer (/dev/fb0) graphics.

 

I think the problem is how I am handling the setup.

 

I copied the kvim2_linux.dtb to BOOT and renamed it dtb.img.

 

This is my hdmi.sh.

 

-----------------------

 

#!/bin/sh

bpp=32
mode=2160p60hz

for x in $(cat /proc/cmdline); do
        case ${x} in
                m_bpp=*) export bpp=${x#*=} ;;
                hdmimode=*) export mode=${x#*=} ;;
        esac
done

HPD_STATE=/sys/class/amhdmitx/amhdmitx0/hpd_state
DISP_CAP=/sys/class/amhdmitx/amhdmitx0/disp_cap
DISP_MODE=/sys/class/display/mode

echo $mode > $DISP_MODE

# required X and Y for 3840x2160 4K UHD

export X=3840
export Y=2160

common_display_setup() {
        M="0 0 $(($X - 1)) $(($Y - 1))"
        Y_VIRT=$(($Y * 2))
        fbset -fb /dev/fb0 -g $X $Y $X $Y_VIRT $bpp
        fbset -fb /dev/fb1 -g 32 32 32 32
        echo $mode > /sys/class/display/mode
        echo 0 > /sys/class/graphics/fb0/free_scale
        echo 1 > /sys/class/graphics/fb0/freescale_mode
        echo $M > /sys/class/graphics/fb0/free_scale_axis
        echo $M > /sys/class/graphics/fb0/window_axis

        echo 0 > /sys/class/graphics/fb1/free_scale
        echo 1 > /sys/class/graphics/fb1/freescale_mode
}

# run this subroutine

common_display_setup

# Enable framebuffer device

echo 0 > /sys/class/graphics/fb0/blank

# Blank fb1 to prevent static noise

echo 1 > /sys/class/graphics/fb1/blank

# Make cursor invisible

echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink

exit 0

 

-----------------------

 

Is my hdmi.sh okay?  If not, what do you suggest I modify?

 

Are there other scripts that I need to modify?

 

Do I have to install some App?

 

Thanks

 

Link to comment
Share on other sites

Hello. I'm trying to make some tests in the VIM2 (image Armbian_5.44_S9xxx_Ubuntu_xenial_3.14.29_mate_20180515.img by @balbes150), and I need to limit the available physical memory size to 1G. However, creating the file "/boot/armbianEnv.txt" and setting the parameter "mem=1G" seems not to have any effect. Is there a different way to set kernel parameters in your images? Thanks.

Link to comment
Share on other sites

31 minutes ago, JMCC said:

setting the parameter "mem=1G" seems not to have any effect

 

You would do it that way:

extraargs="maxcpus=4"
extraargs="mem=1G"
extraargs="maxcpus=1 mem=1G"

 

Link to comment
Share on other sites

No way. Tried with single, double, and no quotes, and it doesn't have any effect.

 

[EDIT: /var/log/armhwinfo.log shows the parameter as being passed to the kernel. It is the same with quotes:]

Spoiler

### boot environment:

extraargs=mem=1G
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

 

 

### meminfo:

MemTotal:        2754696 kB

 

 

Link to comment
Share on other sites

14 hours ago, JMCC said:

I need to limit the available physical memory size to 1G.

I'm not sure that will help.

Change the size of the DTS file and collect the desired dtb.

 

https://github.com/150balbes/Amlogic_s905-kernel/blob/khadas-3.14/arch/arm64/boot/dts/kvim2_multios.dts#L9

 

You may have to build a new u-boot with the desired memory size value.

 

https://github.com/150balbes/u-boot/blob/Nougat-Ubuntu/board/khadas/configs/kvim2.h#L310

Link to comment
Share on other sites

5 hours ago, JMCC said:

Thank you very much. Do you think the kernel parameter approach will work on a mainline kernel image?

I don't know, I haven't tested these modes. You may need to make changes to the kernel and system configuration.

Link to comment
Share on other sites

I have also added a 5volt raspberry Pi fan to the s912 chip.

 

Using Armbian monitor I can see that adding the fan has taken the standby temperature from 53 Celsius to 37 Celsius. Also under load it still appears to be lower than 60 Celsius unlike before when it was up in the 75 range.

 

I strongly recommend adding a small fan to the s912.

Link to comment
Share on other sites

Hello any tip for me here with a H96 Pro Dongle (2GB + 8GB ROM) I can't find option to boot from sd card from update menu just check online for updates don't have option from local or sd card I have opened and see they have a label: "CZ - S47 - V3" so this means version 3 ? I only found info from V1 and V2 

 

 

Link to comment
Share on other sites

On 5/28/2018 at 6:06 PM, colgeocol said:

Will you create a version of your latest Armbian server that has the framebuffer directories installed?

 

I do not create any catalogs manually. This is done by the kernel or software (with appropriate support).

 

9 hours ago, Alecsandro said:

Hello any tip for me here with a H96 Pro Dongle (2GB + 8GB ROM) I can't find option to boot from sd card from update menu just check online for updates don't have option from local or sd card I have opened and see they have a label: "CZ - S47 - V3" so this means version 3 ? I only found info from V1 and V2  

What version of Android ?

Link to comment
Share on other sites

2.) At Android/Settings/About Device/System/updates. Note: You may have the Update and Backup app in the App Drawer.
-From the Update and Backup App, under the UpdateLocale section, click Select, select aml_autoscript.zip, click update.

 

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

 

http://forum.khadas.com/t/instructions-installation-multios-3in1-android-libreelec-linux-from-balbes150/2107

Link to comment
Share on other sites

 

7 hours ago, balbes150 said:

2.) At Android/Settings/About Device/System/updates. Note: You may have the Update and Backup app in the App Drawer.
-From the Update and Backup App, under the UpdateLocale section, click Select, select aml_autoscript.zip, click update.

 

My bad I don't checked at app's installed tried the lastest image (5.44) don't boot but with 5.37 booted and I am start the test here when download the  5.41 image :)

 

Thank you

Link to comment
Share on other sites

@balbes150

 

I don't understand why you can't create a version of an Armbian server for the S912 that has the (frame buffer/frame-buffer/framebuffer) installed/enabled.

 

On 5/30/2018 at 12:03 AM, balbes150 said:

I do not create any catalogs manually. This is done by the kernel or software (with appropriate support).

 

What does "catalogs manually" mean?

 

Link to comment
Share on other sites

15 hours ago, colgeocol said:

I don't understand why you can't create a version of an Armbian server for the S912 that has the (frame buffer/frame-buffer/framebuffer) installed/enabled.

 

I don't know what you're writing. All images have /dev/fb0 and /dev/fb1.

Link to comment
Share on other sites

I've learned lots about the framebuffer.  What is messing things up is that I have no access to /dev/fb0 etc.  The only thing I find in /dev is fbcon.

 

It doesn't matter if I am root or a general user.  They do not show up with ls or any other command that can directly work with /dev/fb0.  The responses are always directories don't exist or can't find display.

 

I can tell whether my HDMI is connected or not.  I can get the EDID data of the monitor driver directly.

 

I only modified two files: armbian_first_run.txt and hdmi.sh.  I copied the kvim2_linux.dtb into the boot directory and renamed it dtb.img.

 

I need direct access to the framebuffer so I can finish the monitor setup.

 

Could it be other configuration files that I need to modify?  If so, which ones?  I appreciate your help.

 

 

Edited by colgeocol
Link to comment
Share on other sites

15 hours ago, colgeocol said:

I've learned lots about the framebuffer.  What is messing things up is that I have no access to /dev/fb0 etc.  The only thing I find in /dev is fbcon.

 

It doesn't matter if I am root or a general user.  They do not show up with ls or any other command that can directly work with /dev/fb0.  The responses are always directories don't exist or can't find display.

 

I can tell whether my HDMI is connected or not.  I can get the EDID data of the monitor driver directly.

 

I only modified two files: armbian_first_run.txt and hdmi.sh.  I copied the kvim2_linux.dtb into the boot directory and renamed it dtb.img.

 

I need direct access to the framebuffer so I can finish the monitor setup.

 

Could it be other configuration files that I need to modify?  If so, which ones?  I appreciate your help.

1. What is your exact model of TV box ?

2. Which version of the image are you using ?

3. What exactly did you change in the files ?

Link to comment
Share on other sites

19 hours ago, colgeocol said:

2.  Armbian_5.44_S9xxx_Debian_stretch_4.16.1_server_20180515.img

Use a version with kernel 3.14. Kernel " 4.xx " is a test build, they use other drivers. See the kernel documentation for their description "4.xx".

Link to comment
Share on other sites

I burned the Armbian_5.44_S9xxx_Debian_stretch_3.14.29_server_20180601.img to a microSD card.  The Etcher burn had no problems.

 

It kept freezing halfway through the boot.  It didn't show up on the local web.

 

I burned the same image to a new microSD card and got the same results.

 

I burned the same image to a USB flash drive and was able to log on once.  However, during an apt-get update it just froze again and now I can't log in to it either.  So I may have to burn it again.

 

One thing positive is I did notice an improvement on the display screen so I think the hdmi.sh is okay.

 

I'm going to burn another microSD card.  I will let you know if I can get it going.

 

Anything else you could recommend?

 

Thanks.

Link to comment
Share on other sites

6 hours ago, colgeocol said:

I burned the Armbian_5.44_S9xxx_Debian_stretch_3.14.29_server_20180601.img to a microSD card.  The Etcher burn had no problems.

 

It kept freezing halfway through the boot.  It didn't show up on the local web.

 

I burned the same image to a new microSD card and got the same results.

 

I burned the same image to a USB flash drive and was able to log on once.  However, during an apt-get update it just froze again and now I can't log in to it either.  So I may have to burn it again.

 

One thing positive is I did notice an improvement on the display screen so I think the hdmi.sh is okay.

 

I'm going to burn another microSD card.  I will let you know if I can get it going.

 

Anything else you could recommend? 

What power supply do you use ? All Armbian images are guaranteed to work with SD card and USB flash drive with the correct dtb file. What dtb file do you use in the 3.14 kernel image ? What firmware is installed in the VIM2 itself ?

Link to comment
Share on other sites

I use a separate power supply.  I don't power it from the USB-C connector.  The Khadas VIM2 Max works fine.

 

I used the kvim2_linux.dtb from the dtb folder.  I didn't use the dtb-3.14.29 folder because I assumed it had the same contents as the dtb folder.  Is this the mistake I made?

 

I only have Android in the eMMC.

 

As I mentioned a few weeks ago, I have had problems with the microSD socket.  It doesn't always keep the microSD card inserted.

 

I will burn new images to the USB flash drive and the microSD card using the kvim2_linux.dtb from the dtb-3.14.29 folder.

 

I'll let you know as soon as I have time to work on it.  Really busy today and tomorrow.

 

Thanks.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines