Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

K1 S805 and Ubuntu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    K1 S805 and Ubuntu

    Hi

    I have a K1 S805. Has anyone managed to successfully load Ubuntu on this box?

    I tried to load ubuntu odroid c1 images on the box without any success. I used 150balbes S805 u-boot and autoscripts, but the ubuntu images do not boot from a SD card. Also tried to remove the serial console part from the autoscript and re-built it, but still no luck. Not sure if the 150balbes scripts have been tested on the K1 S805.
    Amlogic_s905 - SRC for Amlogic S905 (Tronsmart Vega S95 Telos Meta Pro) etc.

    #2
    Do I understand correctly that You have connected the console UART and You can log the boot process on the device with chip S805\S802\S812 ?

    Comment


      #3
      I do apologise for not being too clear in my first post. I did not connect UART serial console.

      The K1 S805 (not K1 plus S905 box) by default kan boot another OS from a SD card. So the way I understand it there should be no need to update the U-boot of the K1. Here is an example of the SD card portion of the aml_autoscript from an Vitmod Openelec version.

      Code:
      if mmcinfo
       then
       if fatexist mmc 0:1 kernel.img
        then
        if fatload mmc 0:1 12000000 kernel.img
         then
         echo @@@@@@@@@@ boot from sdcard... @@@@@@@@@@
         bootm
        fi
       fi
      fi
      This works fine and boots Openelec from SD card and the way I understand it the U-boot should look for aml_autoscript on the fat partition of SD card at boot-up?

      Now I want to boot Ubuntu from a SD card. Lets take the Ubuntu Odroid minimal for the C1 odroid as an example. It does have a boot.ini, but I believe this file is ignored by the U-boot as it will look for an aml_autoscript on the SD card. So I downloaded your s805_autoscript script and renamed it to aml_autoscript. I can see the many similarities between your s805_autoscript and the odroid s805 c1 boot.ini.

      I then saved it on the fat partion of the sd card and tried to boot from it, but it does not work.

      I then read on a forum somewhere that this line:
      Code:
      setenv condev "console=tty0 console=ttyS0,115200n8"
      can prevent the sd card image to load. So I then went and removed this line and ${condev} variable from your s805_autoscript and rebuilt the s805_autoscript using

      Code:
      mkimage -A arm -O linux -T script -C none -d s805_autoscript.txt s805_autoscript
      Copied it to the fat partition again and renamed it to aml_autoscript. Still not booting from SD card. It is still booting the default Android image on the NAND.

      I hope I was able to give enough info given my limited knowledge of these images and scripts. I can find any reference of someone booting an Odroid Ubuntu image on a K1 S805 box, but I can not see why it should not work. I can try and get more info from the box if it would help. I think I do have UART to USB cable somewhere.

      Comment


        #4
        aml_autoscript is a utility file that is run during the transition from normal boot mode updates. I.e. at normal boot this script is not run. To run this script, use either the dedicated button (the so-called floss), or turn the mode programmatically (via terminal, adb, through the choice of firmware updates, etc.). Usually, the boot loader u-boot, written procedure before the start of the rest of the procedures in the update, launches the script with the same name. The Odroid boot loader is modified so that can use a plain text file (easy to edit and debug) with a set of commands as a script. Bootloaders TV box do not have such functionality and have to use a specially compiled binary scripts. Reasons why not a normal boot very much. That would work, could really help the console UART. If You have the opportunity, it is much easier to debug.

        Comment


          #5
          Before the box did not even try to boot from SD card. Had to create an empty unlock_autoscript file to the fat partition as well. At least it is trying to boot from SD card now and no longer just loads NAND image.

          Managed to get UART connected. Using your default S805 autoscript and ubuntu-16.04-mate-odroid-c1-20160727.img. Attached is the boot console log.

          Everything seems fine until kernel loads. So it could be that the odroid s805 kernel will not work on the Videostrong K1 S805 box? Not sure where I can get a working ubuntu kernel for the K1 S805. I suppose I would have to try and compile my own kernel using the Amlogic Source Kernel. Unless you are able to see something else that is wrong?
          Attached Files

          Comment


            #6
            You have multiboot enabled ? If activated , you can try these versions of the images.

            Посмотреть и скачать с Яндекс Диска

            Comment

            Working...
            X