balbes150

Moderators
  • Content count

    836
  • Joined

  • Last visited


Reputation Activity

  1. balbes150 liked a post in a topic by bitz in ARMBIAN for Amlogic S905 and S905X   
    My mx-plus (p200-board) does boot with the 2018-01-16 image.
    network+wifi+ Bluetooth works.
    Shutdown works only if called before logon (from lightdm). Shutdown from mate hangs. Filesystem seems OK when reboot after hang.
     
    Image Form 2017-12-26 works fine.
     
    Bitz
  2. manuti liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    https://yadi.sk/d/e4krIyQW3RW89c
  3. manuti liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    Uploaded the site to the directory Armbian a test version of the Ubuntu image Mate 20180116 with the new version of the kernel 3.14.29. In this manner significantly extended the list of dtb files.
    Request to all, to try to run this image with different dtb files (including groups on the model of your TV box). If this kernel will work fine, I will upload the remaining images (Ubuntu\Debian server\DE).
  4. fatugazuhati liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    While it is not. Soon will release a new image with the updated kernel. Perhaps it will be possible to add BT.
  5. manuti liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    Image works with SD cards and USB drives. Regular firmware in the device is NOT CHANGED. When you replace the dtb file can be run on any device with Amlogic chip S905 s905x s912   When you first start the system, the root user password is 1234   The minimum media size - 4 GB   https://yadi.sk/d/pHxaRAs-tZiei     Option how to start (Activation multi-boot).  
    ****************************************** Manual run Systems ******************************************

    Now all images Armbian and LE has all the files for activate the multi-boot. Anything in addition to download and copy to media is not required.

    1. Download the desired image
    2. Unpack
    3. Record an image on the medium
    4. to run Android
    5. open the app "Update&Backup"
    6. Select local update and an archive on removable media (aml_update.zip)
    7. Run update
    8. System twice to reboot and start running the system from external media.
    9. If after 7-10 minutes on the monitor not to receive any messages on system startup. Turn off TV box and add in manual in the first partition (FAT) the file "dtb.img". On the media there is a directory dtb from where you can take the files and copy them to the root of the renaming of "dtb.img".

    Need to pick up the option for the file system will run. Pay attention, after you add\change the dtb file, you need to try to run the system and waiting to run 7-10 minutes. If not happened, repeat with a different dtb file.


    Attention !!!! On models with S802 S805 S812. Activation multi-boot is possible ONLY with SD card (activation of the USB stick is NOT WORKING). After a one-time activation procedure is multi-boot, run a variety of systems is possible from ANY storage media (SD cards and USB storage devices).

    http://freaktab.com/forum/tv-player-support/amlogic-based-tv-players/606133-linux-images-for-s802-s805-s812-s905-s905x-s912-sd-usb-emmc   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  
    ************************************************** ************************************************** *******
     
    The choice of shell to start (Mate\XFCE or KODI).
     
    On the screen enter username and password (in lightdm) in the upper right corner of the screen there is a menu where you choose which GUI to run. The list will be three items (two rows with kodi) and the last line mate. Select mate (something opposite mate was the point), then enter the username and password. The system remembers the last selected mode. If at the next login or what not to choose in this menu, system at the entrance will trigger the option that was turning off in the previous session.
     
     
    Install to eMMC (NAND)
     
        To install Armbian in the internal memory, you must execute multiple commands. We strongly recommend TO PreRUN create a full backup of the entire contents of the internal memory. This will allow you to return to the current state of the firmware at any time. To create a complete backup you need to execute commands.
     
    su -
    (enter passwd root)
    ddbr
     
    The running tip backup script
     
    After creating the backup, to install to internal memory (eMMC) of the command being executed
    Pay attention, if you not are sure that you will be able to solve possible problems from the installation of the internal memory (eMMC), do NOT PERFORM these commands.
     
    su -
    (enter passwd root)
    ./install.sh
    or
    nand_sata_install
     
     
    Setup HDMI out.
     
    The configure script video output hdmi.sh reside in a directory on a FAT partition (on a running system, this partition is automatically mounted to the /boot directory). This script can be changed. To change the screen resolution from 720p to 1080p, you need to uncomment the line "#mode=1080p60hz" and comment out the line "mode=720p60hz". Similarly, you can change the color depth from the default 24 to 32 (bpp=24). Note that with 32 bit color significantly changes the desktop. In this script you can place the commands you want to run WebMin , Doker, ask line to run the USB port (if necessary), configure, sound card, etc.
     
    On Wifi.
     
    run as root user one of these commands in the terminal
    An example command to load module “dhd” or “wifi_dummy”
     
    modprobe dhd
     
    or
     
    modprobe wifi_dumm
     
    After verification of the selected module, if everything is working correctly, you can add it to the autorun list (add string name of the module in the file /etc/modules).
     
     
    Remote control.
     
    Added support for remote control. To use it you need to add the correct file “remote.conf” in the /boot directory or /etc/amremote. By default, a part of the image includes several predefined files (in the /boot directory). To use it you need to rename one of the files in “remote.conf”. Additionally uploaded the site to the directory the deb package “amremote.deb” , which can be installed in the old system (do not download the whole image). After installing this package you need to run service “amlogic-remotecfg” and add (rename) the correct file 'remote.conf".
     
    Auto login
     
    Add line to /etc/lightdm/lightdm.conf.d/11-armbian.conf
     
    [SeatDefaults]
    autologin-user=username
    autologin-user-timeout=delay
     
     
    Additional information
    http://forum.khadas.com/t/armbian-kodi-ubuntu-debian-for-sd-usb-emmc/825
     
     
     
    Wiki Information to enable multi-boot on the WiKi is outdated, use to activate the multi-boot description from this post in the beginning. https://github.com/150balbes/Amlogic_s905/wiki  
     Other versions of images with different Linux systems.
     
    https://yadi.sk/d/5_32km_EsCV2A
  6. manuti liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    All the entry works correctly, cause in Your system.
     
    If the main task is watching a video, you better use LE as the main OS in eMMC. KODI in Armbian is designed for simple playback , without additional functions.
    1. A major upgrade of the system through the standard procedure of apt upgrade), the kernel is not updated often. You can upgrade it through installation of the finished kernel packages, which are laid out with substantial changes.
    2. You can use your build KODI from official sources. The instructions are on the official website of KODI.
    3. This cusp (reference to former name for special occasions).
    4. Yes, it is normal behavior MATE (there's no support for HW acceleration).
    5. New kernel 4.x does not yet have support for video playback in full screen.
    6. The opportunity is there, but you need to patch the kernel sources.
  7. manuti liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    All the entry works correctly, cause in Your system.
     
    If the main task is watching a video, you better use LE as the main OS in eMMC. KODI in Armbian is designed for simple playback , without additional functions.
    1. A major upgrade of the system through the standard procedure of apt upgrade), the kernel is not updated often. You can upgrade it through installation of the finished kernel packages, which are laid out with substantial changes.
    2. You can use your build KODI from official sources. The instructions are on the official website of KODI.
    3. This cusp (reference to former name for special occasions).
    4. Yes, it is normal behavior MATE (there's no support for HW acceleration).
    5. New kernel 4.x does not yet have support for video playback in full screen.
    6. The opportunity is there, but you need to patch the kernel sources.
  8. manuti liked a post in a topic by balbes150 in Armbian for Amlogic S805   
    Image update S805 20180112.
    Updated kernel to version 3.10.99. Added screen mode 1080p. This mode is enabled by default. To switch to 720p you need to edit first line of script /boot/hdmi.sh. For smooth playback of test video I recommend to reduce the window size of the reproduced video to the size that would have enough system resources for smooth video playback.
  9. manuti liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    Added control files for MD5.
     
    Added the files to MEGA. Try this link.
     
    https://mega.nz/#F!Xw4WVBqY!xgPbJkJkfMUIVoCAX2hBlQ
  10. manuti liked a post in a topic by balbes150 in Armbian for Amlogic S912   
    Added the files to MEGA. Try this link.
     
    https://mega.nz/#F!Xw4WVBqY!xgPbJkJkfMUIVoCAX2hBlQ
  11. TonyMac32 liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    I leave for vacation. All the answers after the holidays.
  12. balbes150 liked a post in a topic by La Otra Cuenta in ARMBIAN for Amlogic S905 and S905X   
    Hello balbes150, I found problems when activating the UFW firewall in Armbian_5.34_S9xxx_Ubuntu_xenial_3.14.29_mate_20171104. Here is a list of the problems detected in the checkup, in case it helps to compile the kernel and include the necessary modifications for UFW to work properly. Thank you so much for the effort.

     
    $ sudo /usr/share/ufw/check-requirements Has python: pass (binary: python2.7, version: 2.7.12, py2) Has iptables: pass Has ip6tables: pass Has /proc/net/dev: pass Has /proc/net/if_inet6: pass This script will now attempt to create various rules using the iptables and ip6tables commands. This may result in module autoloading (eg, for IPv6). Proceed with checks (Y/n)? y == IPv4 == Creating 'ufw-check-requirements'... done Inserting RETURN at top of 'ufw-check-requirements'... done TCP: pass UDP: pass destination port: pass source port: pass ACCEPT: pass DROP: pass REJECT: pass LOG: FAIL error was: iptables: No chain/target/match by that name. hashlimit: pass limit: pass ctstate (NEW): pass ctstate (RELATED): pass ctstate (ESTABLISHED): pass ctstate (INVALID): pass ctstate (new, recent set): FAIL (no runtime support) error was: iptables: No chain/target/match by that name. ctstate (new, recent update): FAIL (no runtime support) error was: iptables: No chain/target/match by that name. ctstate (new, limit): pass interface (input): pass interface (output): pass multiport: FAIL error was: iptables: No chain/target/match by that name. comment: pass addrtype (LOCAL): pass addrtype (MULTICAST): pass addrtype (BROADCAST): pass icmp (destination-unreachable): pass icmp (source-quench): pass icmp (time-exceeded): pass icmp (parameter-problem): pass icmp (echo-request): pass == IPv6 == Creating 'ufw-check-requirements6'... done Inserting RETURN at top of 'ufw-check-requirements6'... done TCP: pass UDP: pass destination port: pass source port: pass ACCEPT: pass DROP: pass REJECT: pass LOG: FAIL error was: ip6tables: No chain/target/match by that name. hashlimit: pass limit: pass ctstate (NEW): pass ctstate (RELATED): pass ctstate (ESTABLISHED): pass ctstate (INVALID): pass ctstate (new, recent set): FAIL (no runtime support) error was: ip6tables: No chain/target/match by that name. ctstate (new, recent update): FAIL (no runtime support) error was: ip6tables: No chain/target/match by that name. ctstate (new, limit): pass interface (input): pass interface (output): pass multiport: FAIL error was: ip6tables: No chain/target/match by that name. comment: pass icmpv6 (destination-unreachable): pass icmpv6 (packet-too-big): pass icmpv6 (time-exceeded): pass icmpv6 (parameter-problem): pass icmpv6 (echo-request): pass icmpv6 with hl (neighbor-solicitation): pass icmpv6 with hl (neighbor-advertisement): pass icmpv6 with hl (router-solicitation): pass icmpv6 with hl (router-advertisement): pass ipv6 rt: FAIL error was: ip6tables: No chain/target/match by that name. FAIL: check your kernel and that you have iptables >= 1.4.0 FAIL: check your kernel and iptables for additional runtime support  
  13. s0nik liked a post in a topic by balbes150 in Armbian for Amlogic S802/S812   
    A new version of the image with IceWM DE. 20171215
     
    Features of this image. This is the minimum graphic system in which there are only a few programs - browser, Synaptic, and a few GUI tools for management. This way you can use to create your own system, with its own set of programs and settings (you can add your favorite graphic DE). After you create your system, you can distribute it as an image for cloning to other TV boxes.
  14. balbes150 liked a post in a topic by TonyMac32 in ARMBIAN for Amlogic S905 and S905X   
    Ffs there is a Google search function built into this website, use it.

    Sent from my Pixel using Tapatalk


  15. fatugazuhati liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    I'll try to check, but it will not be soon (I now have a little time on it).
  16. balbes150 liked a post in a topic by MOHAMMAD HADI in Multiboot selector for your tv box   
    Hi,
    This is my quick and dirty solution to multiboot any amlogic device(actually it can be used on any device that uses u-boot with slight modification):

     

    ***Warning: the following method was only tested on one device which is KII PRO, I made this method for my own use ,it is a long and a bit complicated to setup for non-experienced users if you want to try it you are trying it at your own risk, I take no responsibility for any damage that may occur to your device.
     
     
     
    Preparing the sd card for multiboot:
    1- Download the zip file from the attachments multiboot.zip
    2-wipe everything in your sdcard (i used a 16 gb card) and create 2 partitions:
    -The first one is a fat32 partition, this can be small partition (for me i made it 1gb) it will contain the boot files for the main multiboot system and for any other distributions,i labeled this partition "BOOT".
    -The second partition is ext4 partition which will contain the rootfs of your distributions in raw image format, this need to be a big partition i suggest you assign all remaining available space to this partition, also you need to label it "ROOTFS" (this is mandatory).
    you can use whatever tools you want(gparted,fdisk...etc)
     

     
    3-mount the partitions and extract the zip file to the root of your boot partition(the fat32 partition) and create an empty folder called ‘multiboot’ inside the root of the first and second partitions, so the first partition content should  look like this
    ▶ tree . ├── aml_autoscript ├── aml_autoscript.zip ├── multiboot ├── config.txt ├── dtb.img ├── s905_autoscript ├── s905_autoscript.cmd ├── umbInitrd └── zImage and the second partition should look like this
    ▶ tree /run/media/mohammad/ROOTFS/ └── multiboot the ‘multiboot’ folder in the first partition should contains folders with the name of the distro and inside them are the bootfiles of that distro(kernel,dtb,initramfs and s905_autoscript file) the ‘multiboot’ folder in the second partition should contain the same folders as in the first partition and inside the folder there should be an ext4 image of the rootfs of the distro
    4- The dtb file i used is for kii pro tv box and you should replace that with the dtb of your device, you can get that from any of balbes150 distributions(3.14.29 kernel).
     
    Now you'r ready to boot, all you need is some distros
    Preparing the distros:
    You can make a partition for each distro on your sd card and use it to store the rootfs but i chose a more portable solution by making a raw partition image for each distro and pass it to the initramfs to be mounted as a loop device.
    I will be using one of balbes150 distros as an example (Armbian_5.32_S9xxx_Ubuntu_xenial_3.14.29_mate_20170907.img.xz)
    1-First extract the file 
    ▶xz -k -v -d Armbian_5.32_S9xxx_Ubuntu_xenial_3.14.29_mate_20170907.img.xz 2- Now mount the resulting file partitions to some directories, I use kpartx to do it for me automatically
    ▶sudo kpartx -av Armbian_5.32_S9xxx_Ubuntu_xenial_3.14.29_mate_20170907.img add map loop0p1 (254:0): 0 262144 linear 7:0 2048 add map loop0p2 (254:1): 0 8812544 linear 7:0 264192 now mount the loop devices (i use udiskctl)
     
    ▶ udisksctl mount -b /dev/mapper/loop0p1 Mounted /dev/dm-0 at /run/media/mohammad/BOOT1. ▶ udisksctl mount -b /dev/mapper/loop0p2 Mounted /dev/dm-1 at /run/media/mohammad/ROOTFS1.  
    df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb1 2.0G 215M 1.8G 11% /run/media/mohammad/BOOT #this is my sd card #1 partition /dev/sdb2 13G 6.8G 4.8G 59% /run/media/mohammad/ROOTFS #this is my sd card #2 partition /dev/mapper/loop0p1 128M 53M 76M 42% /run/media/mohammad/BOOT1 #this is the mounted distro image #1 partition /dev/mapper/loop0p2 4.1G 2.9G 1.1G 75% /run/media/mohammad/ROOTFS1 #this is the mounted distro image #2 partition
     
    3- create a folder with the name of the distro in the multiboot folder you created earlier (in the first and second partitions of your sd card) then copy all the boot files of your distro to the folder in the first partition
    ▶ mkdir /run/media/mohammad/BOOT/multiboot/armbian-3.14.29-mate #this is the first(fat32)partition ▶ mkdir /run/media/mohammad/ROOTFS/multiboot/armbian-3.14.29-mate #this is the second (ext4) partition ▶ cp /run/media/mohammad/BOOT1/* /run/media/mohammad/BOOT/multiboot/armbian-3.14.29-mate/ 4- now you need to create an ext4 partition image to contain the rootfs of your distro for me I made a 4GB image
    fallocate -l 4G system.img mkfs.ext4 system.img  
    5-mount the image
     
    ▶ sudo losetup $(losetup -f) system.img ▶ udiskctl mount -b /dev/loop1 Mounted /dev/loop1 at /run/media/mohammad/71545ae9-33c7-4d99-963e-a5a915464078. 6-copy all the files from the rootfs of your distro image to the newly created image
     
    ▶ cp /run/media/mohammad/ROOTFS1/* /run/media/mohammad/71545ae9-33c7-4d99-963e-a5a915464078/ UPDATE: edit the "/etc/fstab" inside the system.img file
    nano /run/media/mohammad/71545ae9-33c7-4d99-963e-a5a915464078/etc/fstab and comment out the lines that start with "LABEL=ROOTFS" and "LABEL=BOOT" by adding a hash at start of each line
    then add these lines to the file :
    /dev/mmcblk1p1 /mnt vfat defaults 0 2 /mnt/multiboot/armbian-3.14.29-mate/ /boot none bind this will fix the 0hdmi.service problem
     
     
    7- unmount everything
     
    ▶ umount /dev/loop1 ▶ umount /dev/mapper/loop0p1 ▶ umount /dev/mapper/loop0p2  
    8-copy the system.img file to your distro folder in the second partition of your sd card
    ▶ cp system.img /run/media/mohammad/ROOTFS/multiboot/armbian-3.14.29-mate 9- move to your distro folder in the first partition of your sdcard:
     
    ▶ cd /run/media/mohammad/BOOT/multiboot/armbian-3.14.29-mate  
    10- now you need to edit the s905_autoscript.cmd file ( I use nano editor, you can use any text editor you like), you need to make two types of edits in this file
      - add loop=${mbpath}/system.img to the kernel arguments
      - add ${mbpath}/ before each of uInitrd, zImage and dtb.img
    so this
     
     
    becomes this
     
     
    Note that I removed the lines of booting from usb to decrease the boot time because I know that I’m booting from the sd card, you can leave them if you want.
     
    11- compile the script
    ▶ mkimage -A arm64 -O linux -T script -C none -d s905_autoscript.cmd s905_autoscript 12-copy the dtb file of your device
    ▶ cp dtb/gxbb_p200_2G.dtb dtb.img  
    Modifying u-boot and booting:
    insert the sd card in the tvbox and then go to the update and backup app and select zip file to update from and choose aml_autoscript.zip that is on the root of the sd card, the device should reboot and you should now be able to use the multiboot function
     
    UPDATE: after booting into the distro disable the resize2fs service using the following command
     
    sudo systemctl disable resize2fs Notes(mostly for other developers):
    1-I’m a very bad shell programmer, I mostly used snippet from stackoverflow to write the main script (bin/wselector) if you could improve the script or anything in my method that would be appreciated.
    2-boot time is very good but there is always a possibility to improve it, somethings that I can think of are:
    -buiding a smaller kernel by disabling everything in the kernel except for the framebuffer,mmc and nand driver, fat32 and ext4 filesystem,unfortunately whenever I disable something in the kernel it fails to build
    -maybe building a minimum dtb file so that the kernel doesn’t spend time initializing peripherals we don’t need.
    -building all binaries in umbInitrd staticaly
     
  17. pfeerick liked a post in a topic by balbes150 in multiboot selector (grub like menu),install multiple os on one sd card ;)   
    The interest is there, upload the file and description.
  18. Nofan Tasi liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    New image Armbian 20171211 with a light shell IceWM DE.
  19. balbes150 liked a post in a topic by TonyMac32 in ARMBIAN for Amlogic S905 and S905X   
    Also remember these TV boxes are not usually cooled very well, so they go into thermal throttling quickly.
     
    As you'll see reading below, the closed-source Amlogic bootloader blobs may also have a say in the quality of your experience, they seem to vary significantly.  I'm experimenting with a TV box right now which runs horribly no matter what "ROM" I put on it, so I'm starting to suspect the bootloader.  If the Khadas VIM was a Bugatti Veyron, the mini M8S II is currently a Volkswagen Rabbit with a dead cylinder and bad fuel...
     
     
  20. Davide De Carlo liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    1. In current versions of LE (at startup LE from the media) in the shutdown menu, it is possible to choose to reload the system, which is located in the internal memory ("Rebot from NAND flash\Android"). Ie if you set Armbian in eMMC and when you run the LE from external media, you can choose a LE to restart the system , which is in the eMMC.
    2. What version of LE are you using ?
     
    In image Stretch not use a test repository.
  21. Davide De Carlo liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    I apologize for the delay in response. Before upgrading, I recommend doing a full backup (utility ddbr).
    1. Then you can try updating via apt. If the system fails to start, you will have to perform a clean installation.
    2. I haven't tested the packs mount in x86.
     
     
    The start order of systems in the presence of external media. If you have a bootable system on a USB , it runs first USB -> if USB is no system (or no USB), checks the system on the SD and if there is, it runs SD -> if there is no system on the SD card , run system from eMMC.
  22. Davide De Carlo liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    You can use unlimited number of systems on external media. When you connect together several media, always run the same system in order of priority - USB -> SD. To run from SD card, you need to be sure to turn the system off USB.
  23. Davide De Carlo liked a post in a topic by balbes150 in ARMBIAN for Amlogic S905 and S905X   
    I already replied earlier to this question. At the time of assembling the images in the standard repositories Jessi didn't have the right versions of packages. Now there have been many changes in the repositories (test disabled) and now I am collecting images of Debian using the official branches Stretch. By the way, to all , I will repeat for the, at the moment (when I checked last time) in the thread Jessi broken packages, which are responsible for mounting a label, so when you try to upgrade from Jessi you risk to not run from external media system.
     
    Video hardware acceleration is only in KODI. Therefore, any other program (including browsers) use softbuy processing, which need all the resources of the processor (the more powerful the processor, the better the video quality).
    If you want to get a full-screen video in the browser - it can be assembled using the library libMali.
  24. tkaiser liked a post in a topic by balbes150 in Armbian for Amlogic S912   
    Wrapped in a warm hat is one of my TV boxes (Tronsmart Vega S96) .
    Run test for a couple of hours. Here is the result at the end of the second hour. Such a conclusion in the console, no change for end hours, so stopped the test.
     
     
  25. tkaiser liked a post in a topic by balbes150 in Armbian for Amlogic S912   
    Wrapped in a warm hat is one of my TV boxes (Tronsmart Vega S96) .
    Run test for a couple of hours. Here is the result at the end of the second hour. Such a conclusion in the console, no change for end hours, so stopped the test.