Jump to content

SteeMan

Moderators
  • Posts

    1647
  • Joined

  • Last visited

Posts posted by SteeMan

  1. 4 hours ago, hanguofu said:

    Thanks for sharing your knowledge !

     

    I am going to check out the branch linux-5.6.y  from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git  . But I had a problem to find out the   kernel source version for the 'stable', 'current' and 'dev' builds : when I checked  config/sources/families/meson-gxl.conf , I didnot find out the version name .  Which patch version ( meson64-current , meson64-dev , meson64-legacy ) should I apply to that branch please ?

    In the TV box builds, balbes150 is focusing most on the aml-s9xxx and arm-64 areas.  So if you look at config/sources/families/aml-s9xxx.conf or arm-64.conf you will see something like this:
     

    case $BRANCH in
    	legacy)
    	KERNELDIR='linux-aml-legacy'
    	KERNELSOURCE='https://github.com/150balbes/Amlogic_s905-kernel'
    	KERNELBRANCH='branch:5.3'
    	;;
    
    	current)
    	KERNELDIR='linux-aml-current'
    	KERNELSOURCE='https://github.com/150balbes/Amlogic_s905-kernel'
    	KERNELBRANCH='branch:5.6'
    	;;
    
    	dev)
    	KERNELDIR='linux-aml-dev'
    	KERNELSOURCE='git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git'
    	KERNELBRANCH='branch:master'
    	;;
    esac

    From here you can see that 'current' is on the 5.6 branch. So if you look in patch/kernel/aml-s9xxxx-current you will see the packages-current.patch which is what you want.  (I just realized in my instructions I called this patch by the wrong name, in my instructions I say build-?????.patch, but the name really is packages-?????.patch).  You will notice that balbes150 maintains his own patched kernels that he builds from (KERNELSOURCE).  I have been generally using unpatched kernels from kernel.org so I know exactly what I am building.  But once you understand what is going on, you can experiment with different kernel sources and find what works best for you.  Because in this case balbes150 kernel tree is already patched, there isn't in this patch directory the other required patch (text-offset.patch).  You can find that patch in the 'dev' build (patch/kernel/aml-s9xxx-dev/text-offset.patch) as that build is against a non-patched kernel tree.

     

    You mentioned looking at meson-gxl, which I assume means you are working with an aml s905 based tv box.  I use and build kernels for TX3mini boxes that have the s905w cpu (meson-gxl-s905w-tx3-mini.dtb) and yesterday I built and installed both the 5.4.30 and 5.6.2 releases that came out yesterday on my TX3minis.

     

    My recommendation is to start simple, learn, and then experiment with more things.  I find that the 5.4 and higher kernels have good support for the amlogic chips (at least up through the s905x3) and as long as I am using these boxes for servers they work fine for my needs.  (i.e. I don't care about wifi, bluetooth, etc).  But if you need more than the base kernel supports, you can start looking at the kernel patches that are around and finding things that you want to experiment with and add them into your build environment.  I find this is a good way to explore the evolving support of these arm based TV boxes.

  2. 9 hours ago, vipk31 said:

    I install armabian success on SD card

    and make guid https://docs.armbian.com/User-Guide_Getting-Started/#how-to-install-to-emmc-nand-sata-usb

     

    but error command not found

    I used armbian :  Armbian_20.02.0-rc1.037_Aml-s9xxx_bionic_current_5.5.0-rc6_20200205.img.xz

    Can current armbian be installed on eMMC?

    please help me .

    The standard armbian documentation only applies to the standard armbian builds.  The builds by @balbes150 are a fork of the standard armbian code for Android TV boxes (instead of standard SBC boards) and therefore you can't use the standard documentation as there are a number of differences.  To install into emmc look in your /root directory and you will see a set of install scripts.  Choose the one appropriate for your CPU and run it for installation into emmc.  The current active thread of discussion for the @balbes150 builds is: 

    Please carefully read the first posting in this thread as it goes over many of the specifics that are unique or different for these android tv box builds.

  3. 38 minutes ago, psxsnake said:

    Yes this i know via apt

    but If I wanna change from buster to bionic or focal?

    You would repeat the process you just completed.  Create a new sdcard with the desired distribution, then copy that to internal emmc with the provided scripts in the /root directory.  If you boot the box with the sd card inserted, the box will boot from the sd card, thus allowing you to overwrite the contents of the internal emmc.

  4. 19 minutes ago, psxsnake said:

    If I wanna change build, i cannot do update from sd as before so how i proceed?

    I'm not sure what you mean by change build.  So I will try to answer the best I can.  Once you have installed a build onto internal storage, you would use the distribution tools to get updates for all of the software packages (i.e. apt update/upgrade).  This will get you patches for everything except the linux kernel.  You are currently stuck at the linux kernel you installed as there aren't currently kernel updates automatically provided via apt for the Armbian TV builds  So to get kernel updates you would either need to completely reinstall everything from a new sd card build, or build your own kernel from source and install it manually.

  5. 3 minutes ago, psxsnake said:

    what you mean? becouse the "appropriate script" should be armbian-config, in according with document page

    https://docs.armbian.com/User-Guide_Armbian-Config/

    but this 20.05 version doesnt have the part with INSTALL ON NAND

    The standard armbian documentation only applies to the standard armbian builds.  The builds by balbes150 in this thread are a fork of the standard armbian code and therefore you can't use the standard documentation.  Look in your /root directory as I indicated and you will see the install script you need to run for installation into emmc.

  6. 5 hours ago, gabe5000 said:

    Now I'd like to install the system on the eMMC. I started to follow  the Armbian documentation, but the 'nand-sata-install' command is not recognized.

    Could you please help me what to do?

    For the Armbian TV box builds, there is a script in the /root folder that you need to run to install into emmc.  There will likely be multiple scripts in this directory, you run the one named appropriately for your device.

  7. As I have been watching the development of Armbian for TV boxes, there is one area that my needs haven't been addressed yet.  And since this is open source that means I needed to read a lot of posts and get into the code to understand how things are working.  I have been doing that over the last six months or so and wanted to report back on what I am now doing to solve my issue as it may help others.

     

    I have a number of TV boxes running as headless servers for a variety of projects.  Once I install Armbian on them I then get OS updates through ubuntu (I am using Ubuntu Bionic on my boxes).  That gives me bug fixes and patches for the software running on these boxes via apt update/upgrade.  However the linux kernel generally stays unpatched at the point in time that I installed one of balbes150's TV box builds.  What I wanted was to be able to build and update kernels so that I can apply new kernel versions to my servers.

     

    I am now able to do that successfully across a number of TV boxes ( TX3mini, TX3 X3, H96 Max X2) (Note I only have amlogic based boxes that I test with).  I am building kernels from kernel.org sources, building .deb files and then installing those files across my servers as new kernel versions are released.  My goal was to simply stick with the 5.4 kernel as it is a long term support kernel, but I find that I have moved to 5.6 as I wanted native wireguard support.  Another goal I have is to do all this with as few patches as possible (i.e. running stock base unmodified linux).  And a final goal was to build natively on my arm based boxes.

     

    Below are my notes that explain what I have done and hopefully provides others with some of the knowledge I have built up over time to be able to get what I needed working.

     

    I hope this is helpful to others who want to get their hands into armbian a little deeper than just installing and running it.

     

     

    build-debs.txt

  8. 17 hours ago, flagadajones said:

    hi,

    i've made many other tests.

    I've installed Coreelec on my eachlink X3mini  ( S905X3)  with the dtb sm1_s905x3_2g. It boot and all is ok.

     

    how Is  possible to adapt this dtb for armbian ?

     

    regard

    The short answer to your question, is you can't, or at least you can't if you are not the device manufacturer or possess skills that very few people have.

     

    The longer answer is that coreelec and Armbian are very different projects with very different goals.  Coreelec's goal is to provide a basic linux environment to run kodi using the vendor supplied linux kernels.  I believe that for your device that would be a 4.9 kernel.  Armbian on the other hand provides a full linux distribution on mainline linux kernels (currently 5.6.x). 

     

    So instead of using a heavily modified custom vendor supplied kernel that never gets any security updates or bugfixes (coreelec case), with Armbian you get a fully community supported kernel with the most current security and bug fixes available.  The problem is that if the device manufacturer and cpu manufacturer don't care about getting support for their devices and chips into the mainline kernel, then Armbian can't support them very well.  And if the source code isn't available to others to port to the mainline kernel it is practically impossible to ever get good support for these devices in the mainline kernel and thus armbian.

  9. 5 hours ago, flagadajones said:

    Hi,

     

    i try  to install Armbian  on  a eachlink X3mini and i have always the same error with different dtd file.

    i try this for get dtb file

     

    It looks like you are trying to use a dtb from your android installation.  dtb's are very much tied to specific kernel versions and an android dtb based on an older android kernel will not work with a current armbian built kernel.  You need to be using one of the dtb's that are part of the armbian build you are using (or are building a dtb that will work with the armbian kernel you are using).

  10. 50 minutes ago, zanfi said:

    Right, but... I should see some boot on screen I believe...or am I wrong?

    I do not see anything at all, that's why I believe I'm doing something wrong.

    Cheers.

    It depends what you mean by screen.  It you mean a terminal program listening on the uart port, yes you should see something, if you are expecting to see something via the HDMI port then no.  HDMI is initialized late in the process and depends on most things working/configured properly to see anything.

  11. I am still not able to use the u-boot-fix described above to address the hdmi color issues.  I have a TX3 s905x3 box using the meson-sm1-sei610.dtb.  When I boot from the SD card with the patch applied (boot.ini, s905_autoscript, u-boot.ext) the boot fails and I am left with a green screen.  In attempting to figure this out myself, I have captured console logs from both a successful boot without the patch and the failed boot with the patch (see attached).  Any ideas why this is not working for me?  I have tried booting from both usb and sdcard and both are failing with the patch applied.

     

    screenlog.ok.txt screenlog.fail.txt

  12. I tested the fix for the color issue and it wasn't successful for my box (TX3 x905x3).  Using Armbian_19.11.3_Rk3399-tv_bionic_dev_5.4.1_20191208.img with the downloaded u-boot.ext the box fails to boot.  If I remove the u-boot.ext file the box boots but with the faulty colors.

     

    Earlier in this thread it was mentioned the option of installing a newer u-boot to solve the color problem.  Are there relatively simple instructions on how to build a mainline u-boot and install it on an amlogic tv box?  I am assuming you need to replace the shipped u-boot on mmc?

    In looking at the mainline u-boot tree, it looks like support for the s905x3 (sm1) has only recently been included, so my thinking is I would likely want to try the latest: v2020.01-rc4.

  13. I noticed that the Build_Armbian git tree had a new set of changes merged in a couple of days ago.  I tried it out last night and there is one issue that I have seen so far.  I did a build of 'Armbian_19.11.3_Aml-g12_bionic_current_5.4.0.img and the debs and img are missing the dtb files.  I will copy the dtb's from another build to further test, but wanted to let you know of this issue.  I noticed a lot of code restructuring in this set of build changes, and since it hasn't been announced yet, I suspect I am trying things before they are ready.

     

  14. I have a new TX3 box with the s905x3 chip and that box boots with the meson-sm1-sei610.dtb file.  It works fine as a server (i.e. boots, wired ethernet, usb working).  No wifi or bluetooth.  I did also try to install a desktop build and the hdmi output isn't correct, colors are messed up, and sound isn't working. 

  15. I just received a new TX3 box with the s905x3 chipset.  I was able to successfully install Armbian_5.99_Aml-g12_Ubuntu_bionic_dev_5.4.0-rc6_20191110.img using the meson-sm1-sei610.dtb

    The box boots with HDMI and ethernet working.  No WIFI or Bluetooth.

    I was able to install on both an SD card and internal mmc.

    I haven't yet tried running a GUI desktop.

    I also tried using the dtb from 5.4 in a 5.3 environment and that does not boot.  So it would appear that 5.4 is the first kernel version that supports the s905x3 chipset.

  16. H96 Max X2 (with S905X2 cpu) 4GB Ram ad 32GB Emmc

     

    I purchased this box thinking I was getting an X96 Max (the naming of all these different boxes is very confusing).  But it turns out that it works well with current builds of balbes150's Armbian.  It works with the meson-g12a-x96-max-rmii.dtb.  It works well installed to eMMC.  The wifi does not work, and I haven't tried bluetooth or hdmi audio.

  17. 3 hours ago, Reddwarf said:

    I would appreciate some tip about what and where to look. I have done exactly as described, not changed any config and still it does not work.

    I did a build last night of Armbian_5.91_Aml-s905_Ubuntu_disco_default_5.2.0.img without any problems.  So it isn't that case that as you said "the script for building Armbial is obviously useless," because it works fine for me.  So there is something in your environment that is causing a failure as balbes150 stated.  Have you tried building on a different host?

  18. 22 hours ago, trulyliu said:

    I have installed 5.80 on EMMC,  how can I update it to the latest version without reinstall?

    You will need to build the .deb files from source in order to upgrade.  I have been doing this for the last couple of months and things seem stable enough for this work fairly smoothly.  You will need to use the build environment fork from balbes150's git repository (https://github.com/150balbes/Build-Armbian).  It is quite simple to do a build from source if you have an intel based machine running Ubuntu18.04.  (Note there is one mistake in the instructions, when is says to "cd build" after "git clone https://github.com/150balbes/Build-Armbian", it should say "cd Build-Armbian")

    Once you have built the .debs you can use apt to upgrade them in your installation.  Look at what packages you have installed and upgrade to the newer versions you have built.

    I would recommend doing a image backup before you attempt the upgrade until you are comfortable with the process.  To make a backup, burn an Armbian image to SD or USB, boot from it and run the 'ddbr' command to backup the eMMC. Then you will have a backup image to restore from if something goes wrong during an upgrade.

     

  19. 19 hours ago, anonymox said:

    Hey, I'm using TX3 mini type A (2019 edition - new hardware). I can't install Armbian to eMMC

    I think you have run into the same issue I recently did.  I have purchased four TX3 mini boxes (2G/16G) over time from different vendors.  Two of the boxes work perfectly (i.e. I can install to the built in eMMC.  However on the other two boxes, I can not.  The two boxes that can't install to eMMC, do work in all other ways.  So I can run armbian from the SD card if I want.

     

    In attempting to diagnose the problem, I noticed that the kernel wasn't detecting the internal storage at boot time.  So I opened up the cases of a box that worked and a box that didn't and discovered a difference.  The two boxes have different storage chips (the chips are actually located in different locations on the board as well).  In googling the part markings on the chips, it appears that the box that works correctly has an eMMC memory chip installed, and the box that doesn't has a NAND chip installed.  I recall reading somewhere that there isn't currently support in these kernels for nand storage.  So it would seem that some manufacturers in order to cut costs are installing nand storage on some of the TX3 mini's.  I don't know how to tell at ordering time, what type of storage might be used and therefore I no longer am purchasing the TX3 mini's for my purposes.  I really like the boxes and if I could be assured of getting boxes with eMMC I would use them for a number of projects.

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines