Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Running Android or Linux from an SD card on a RK3288 device - An easy way to dual boot

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by nogareth View Post
    Hi, again

    After some tries with different android roms (even the cs918ii stock Rom) which all could not be used with the android sdcard script, I've found a prebuild ca918ii kernel (among many others) in another forum http://www.arctablet.com/blog/forum/...140731/page-2/ that worked for the Linux script.
    The kernel loads,I can see penguins, and that's all.

    Is there any documentation about how those scripts can be used, and what to do if they don't work?
    Somehow all that was much more simple on my wandboard ! :-)

    Regards, Martin
    I had a look at the 'stock' firmware referenced here http://www.geekbuying.com/item/CS918...ue-332176.html which looks okay so perhaps something is going wrong during the execution of the 'create-android-sdcard' script.

    As all messages, including error messages, are suppressed during execution, try running the following to create a verbose version of the script:

    cp create-android-sdcard create-android-sdcard-debug
    sed -i 's?> /dev/null 2>&1??' create-android-sdcard-debug
    sed -i 's?2> /dev/null??' create-android-sdcard-debug

    and then run the new script like before:

    ./create-android-sdcard-debug chuangsiqi_CS918_AP6330_20140912.img

    and see if there are any error messages.

    Comment


      #17
      Error messages android script

      First, Thanks for your Help!!

      Ok, after modifying the script the way you wrote, here is some output and the error messages shown:

      ...image seems Ok.

      unpacking update.img
      ================================================== ==============================
      FIRMWARE_VER:4.4.2
      MACHINE_MODEL:rk30sdk
      MACHINE_ID:007
      MANUFACTURER:RK30SDK

      unpacking 12 files
      -------------------------------------------------------------------------------
      00000800-00000800 package-fileackage-file 627 bytes
      00001000-000010bd bootloader:RK3288Loader_uboot_V2.15.bin 387406 bytes
      00060000-00060000 parameter:rk3288-3.10-uboot-data1G.parameter.txt:0x4000@0x0 1429 bytes
      00060800-00060818 misc:Image/misc.img:0x2000@0x4000 49152 bytes
      0006d000-0006d038 resource:Image/resource.img:0x8000@0x6000 115200 bytes
      00089800-0008a303 kernel:Image/kernel.img:0x8000@0xe000 5774196 bytes
      0060b800-0060c550 boot:Image/boot.img:0x10000@0x16000 6979584 bytes
      00cb4000-00cb5330 recovery:Image/recovery.img:0x10000@0x26000 10059776 bytes
      0164c800-0169b1de system:Image/system.img:0x180000@0x92000 659484672 bytes
      00000000-ffffffff backup:RESERVED:0x1a000@0x36000 0 bytes
      28b3c000-28b3c000 update-script:update-script 933 bytes
      28b3c800-28b3c800 recover-script:recover-script 266 bytes
      -------------------------------------------------------------------------------
      ================================================== ==============================

      0005e9b4-28b9b9b7 ../chuangsiqi_CS918_AP6330_20140912.img-MD5 32 bytes
      unpacked
      done.


      but then this happens with all tested images...



      .
      .
      .
      ./create-android-sdcard-debug: Creating 'user' partition as '/dev/sdb5' using rest of space on '/dev/sdb' ... Warning: The kernel is still using the old partition table.
      The new table will be used at the next reboot.
      The operation has completed successfully.
      done.
      ./create-android-sdcard-debug: Making 'vfat' file system for 'user' partition on '/dev/sdb5' ... mkfs.fat 3.0.26 (2014-03-07)
      /dev/sdb5: No such file or directory
      done.
      ./create-android-sdcard-debug: Updating Android boot source ... egrep: res: Is a directory
      egrep: sbin: Is a directory
      egrep: res: Is a directory
      egrep: sbin: Is a directory
      done.
      ./create-android-sdcard-debug: Rebuilding Android boot image ... 4038 blocks

      ./create-android-sdcard-debug: Cannot create Android boot image ... exiting.

      .....


      maybe ill give it a try on another linux Distro. (Currently running Ubuntu 14.04 inside Vmware Player)

      Martin

      Comment


        #18
        no luck with booting from sdcard CS918II

        Originally posted by nogareth View Post
        First, Thanks for your Help!!

        Ok, after modifying the script the way you wrote, here is some output and the error messages shown:

        ...image seems Ok.

        unpacking update.img
        ================================================== ==============================
        FIRMWARE_VER:4.4.2
        MACHINE_MODEL:rk30sdk
        MACHINE_ID:007
        MANUFACTURER:RK30SDK

        unpacking 12 files
        -------------------------------------------------------------------------------
        00000800-00000800 package-fileackage-file 627 bytes
        00001000-000010bd bootloader:RK3288Loader_uboot_V2.15.bin 387406 bytes
        00060000-00060000 parameter:rk3288-3.10-uboot-data1G.parameter.txt:0x4000@0x0 1429 bytes
        00060800-00060818 misc:Image/misc.img:0x2000@0x4000 49152 bytes
        0006d000-0006d038 resource:Image/resource.img:0x8000@0x6000 115200 bytes
        00089800-0008a303 kernel:Image/kernel.img:0x8000@0xe000 5774196 bytes
        0060b800-0060c550 boot:Image/boot.img:0x10000@0x16000 6979584 bytes
        00cb4000-00cb5330 recovery:Image/recovery.img:0x10000@0x26000 10059776 bytes
        0164c800-0169b1de system:Image/system.img:0x180000@0x92000 659484672 bytes
        00000000-ffffffff backup:RESERVED:0x1a000@0x36000 0 bytes
        28b3c000-28b3c000 update-script:update-script 933 bytes
        28b3c800-28b3c800 recover-script:recover-script 266 bytes
        -------------------------------------------------------------------------------
        ================================================== ==============================

        0005e9b4-28b9b9b7 ../chuangsiqi_CS918_AP6330_20140912.img-MD5 32 bytes
        unpacked
        done.


        but then this happens with all tested images...



        .
        .
        .
        ./create-android-sdcard-debug: Creating 'user' partition as '/dev/sdb5' using rest of space on '/dev/sdb' ... Warning: The kernel is still using the old partition table.
        The new table will be used at the next reboot.
        The operation has completed successfully.
        done.
        ./create-android-sdcard-debug: Making 'vfat' file system for 'user' partition on '/dev/sdb5' ... mkfs.fat 3.0.26 (2014-03-07)
        /dev/sdb5: No such file or directory
        done.
        ./create-android-sdcard-debug: Updating Android boot source ... egrep: res: Is a directory
        egrep: sbin: Is a directory
        egrep: res: Is a directory
        egrep: sbin: Is a directory
        done.
        ./create-android-sdcard-debug: Rebuilding Android boot image ... 4038 blocks

        ./create-android-sdcard-debug: Cannot create Android boot image ... exiting.

        .....


        maybe ill give it a try on another linux Distro. (Currently running Ubuntu 14.04 inside Vmware Player)

        Martin
        Hi there,
        I tried to use the sdcard image I also (I did use Windows to change uboot to 2.17, which seems to work, because android still booting fine...)...but the sd card did start (Image with BIG/HUGE MAN on the screen is visible which is not wen i boot without dcard...) but after starting there is no more progress...

        Maybe an other image could be used ?
        Any help appreciated :-) I´d maybe want to exchange my banana pi based "server" with this low power machine...based on ubuntu and gb network...could be an option if it would work...

        kind regards
        arel

        Comment


          #19
          Originally posted by nogareth View Post
          First, Thanks for your Help!!

          Ok, after modifying the script the way you wrote, here is some output and the error messages shown:

          ...image seems Ok.

          unpacking update.img
          ================================================== ==============================
          FIRMWARE_VER:4.4.2
          MACHINE_MODEL:rk30sdk
          MACHINE_ID:007
          MANUFACTURER:RK30SDK

          unpacking 12 files
          -------------------------------------------------------------------------------
          00000800-00000800 package-fileackage-file 627 bytes
          00001000-000010bd bootloader:RK3288Loader_uboot_V2.15.bin 387406 bytes
          00060000-00060000 parameter:rk3288-3.10-uboot-data1G.parameter.txt:0x4000@0x0 1429 bytes
          00060800-00060818 misc:Image/misc.img:0x2000@0x4000 49152 bytes
          0006d000-0006d038 resource:Image/resource.img:0x8000@0x6000 115200 bytes
          00089800-0008a303 kernel:Image/kernel.img:0x8000@0xe000 5774196 bytes
          0060b800-0060c550 boot:Image/boot.img:0x10000@0x16000 6979584 bytes
          00cb4000-00cb5330 recovery:Image/recovery.img:0x10000@0x26000 10059776 bytes
          0164c800-0169b1de system:Image/system.img:0x180000@0x92000 659484672 bytes
          00000000-ffffffff backup:RESERVED:0x1a000@0x36000 0 bytes
          28b3c000-28b3c000 update-script:update-script 933 bytes
          28b3c800-28b3c800 recover-script:recover-script 266 bytes
          -------------------------------------------------------------------------------
          ================================================== ==============================

          0005e9b4-28b9b9b7 ../chuangsiqi_CS918_AP6330_20140912.img-MD5 32 bytes
          unpacked
          done.


          but then this happens with all tested images...



          .
          .
          .
          ./create-android-sdcard-debug: Creating 'user' partition as '/dev/sdb5' using rest of space on '/dev/sdb' ... Warning: The kernel is still using the old partition table.
          The new table will be used at the next reboot.
          The operation has completed successfully.
          done.
          ./create-android-sdcard-debug: Making 'vfat' file system for 'user' partition on '/dev/sdb5' ... mkfs.fat 3.0.26 (2014-03-07)
          /dev/sdb5: No such file or directory
          done.
          ./create-android-sdcard-debug: Updating Android boot source ... egrep: res: Is a directory
          egrep: sbin: Is a directory
          egrep: res: Is a directory
          egrep: sbin: Is a directory
          done.
          ./create-android-sdcard-debug: Rebuilding Android boot image ... 4038 blocks

          ./create-android-sdcard-debug: Cannot create Android boot image ... exiting.

          .....


          maybe ill give it a try on another linux Distro. (Currently running Ubuntu 14.04 inside Vmware Player)

          Martin
          Can you check whether 'gdisk' is installed? Easiest way is to install it as it is needed. Please enter:

          apt-get install gdisk

          If it displays the following message:

          The following NEW packages will be installed:
          gdisk
          ...
          Setting up gdisk (xxx) ...

          Then please try re-running the script.

          Comment


            #20
            Originally posted by arel View Post


            Hi there,
            I tried to use the sdcard image I also (I did use Windows to change uboot to 2.17, which seems to work, because android still booting fine...)...but the sd card did start (Image with BIG/HUGE MAN on the screen is visible which is not wen i boot without dcard...) but after starting there is no more progress...

            Maybe an other image could be used ?
            Any help appreciated :-) I´d maybe want to exchange my banana pi based "server" with this low power machine...based on ubuntu and gb network...could be an option if it would work...

            kind regards
            arel
            So you are using the 'create-linux-sdcard' script?

            As you get the image on the screen it shows that your device is booting correctly but if nothing further happens then it most likely indicates that similarly there is a problem in finding the root file system.

            Can you also make sure 'gdisk' is installed (simply enter 'apt-get install gdisk') in a terminal window and if it wasn't, can you regenerate the SD card using the script and try again?

            Comment


              #21
              gdisk

              Ive checked if gdisk is installed, and is getting used for the sdcard created is a GPT disk. dosfstools are also installed.

              The script somehow fails before or while trying to format /dev/sdb5 with mkfs.vfat . sdb5 is not formatted after the script exits.
              When i do "mkfs.vfat /dev/sdb5" manually afterwards it works fine and the partition shows up.

              Martin

              Comment


                #22
                Originally posted by nogareth View Post
                Ive checked if gdisk is installed, and is getting used for the sdcard created is a GPT disk. dosfstools are also installed.

                The script somehow fails before or while trying to format /dev/sdb5 with mkfs.vfat . sdb5 is not formatted after the script exits.
                When i do "mkfs.vfat /dev/sdb5" manually afterwards it works fine and the partition shows up.

                Martin
                Strange. Unless running in a VM is causing some latency? Perhaps try adding in 'sync; sync; sleep 10' immediately before the 'mkfs.vfat' command in the script just for good measure and see if this helps.

                Comment


                  #23
                  It is necessary to start a kodi-version via sd-card, as like a raspi-start?

                  Comment


                    #24
                    Originally posted by heiko123 View Post
                    It is necessary to start a kodi-version via sd-card, as like a raspi-start?

                    Comment


                      #25
                      Slowly I am beginning to give it up!
                      Until Now I've tried the android script with ubuntu 14.04 vmware, debian 7vmware and ubuntu 12.04 regular installation and no matter which android image I try it always fails after partitioning the sdcard.

                      @linuxium : what Linux distro do you use that makes the script work?

                      Thanks in advance , Martin

                      Comment


                        #26
                        Originally posted by nogareth View Post
                        Slowly I am beginning to give it up!
                        Until Now I've tried the android script with ubuntu 14.04 vmware, debian 7vmware and ubuntu 12.04 regular installation and no matter which android image I try it always fails after partitioning the sdcard.

                        @linuxium : what Linux distro do you use that makes the script work?

                        Thanks in advance , Martin
                        I use native Ubuntu 12.04 but there is nothing in the script to make it release dependent.

                        So assuming the correct device for the SD card is selected (I include this just for the sake of completeness) then perhaps the focus should be on the SD card itself. Some ideas include:

                        1. Have you tried a different SD card?
                        2. Is the SD card at least 8GB or larger?
                        3. Have you tried creating a new partition table on the SD card before using it (e.g. 'dd if=/dev/zero of=/dev/{SD card device} 1 bs=512 count=1' and then using gparted/fdisk etc to create a new empty DOS partition table)?

                        Comment


                          #27
                          Fixed It!

                          Originally posted by linuxium View Post
                          I use native Ubuntu 12.04 but there is nothing in the script to make it release dependent.

                          So assuming the correct device for the SD card is selected (I include this just for the sake of completeness) then perhaps the focus should be on the SD card itself. Some ideas include:

                          1. Have you tried a different SD card?
                          2. Is the SD card at least 8GB or larger?
                          3. Have you tried creating a new partition table on the SD card before using it (e.g. 'dd if=/dev/zero of=/dev/{SD card device} 1 bs=512 count=1' and then using gparted/fdisk etc to create a new empty DOS partition table)?

                          FOUND THE PROBLEM!!

                          After searching (almost desperatly ) for days i just found out what the Problem was!
                          If you are running a 64 Bit Ubuntu you have to install "ia32-libs" !!

                          now everything works as expected. But that doesnt change the fact that this script just wont run with Debian Wheezy...

                          anyway, Many thanks for your help!

                          Regards, Martin

                          Comment


                            #28
                            ia32-libs

                            => http://stackoverflow.com/questions/2...ts-trusty-tahr
                            RK3288 Devices
                            - Overview BOX (LINK !)
                            - Overview STICK (Dongle) (LINK !)

                            MINIX NEO: Z64 W/A - (Intel Z3735F); X8-H Plus - (Amlogic S812H); A2 Lite (sponsored by minix.com.hk)
                            UGOOS UT3S (4/32GB with fan) - FW 2.0.6 - (RK3288) (sponsored by GearBest.com)
                            Tronsmart Draco AW80 Meta (2/16GB) - FW v2.0rc3 - (Allwinner A80) (sponsored by GeekBuying.com)
                            Beelink / UBOX R89 - FW 111k4110_1219 - (RK3288) (sponsored by Netxeon (Beelink))

                            RK3188: pcb => "CH001 1332 TN-BX09_V2.1" (K-R42 / CS918...) => wasser KK 1.0.3 (old rev)
                            Fly Mouse Mini Wireless Keyboard with 2 mode learning IR remote 'iPazzPort KP-810-16'

                            Comment


                              #29
                              Not working

                              *****@*****-desktop:~/linuxium > lsblk
                              NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
                              sda 8:0 0 931,5G 0 disk
                              ├─sda1 8:1 0 807,3G 0 part /media/******/*****
                              ├─sda2 8:2 0 1K 0 part
                              ├─sda5 8:5 0 39,6G 0 part
                              ├─sda6 8:6 0 83G 0 part /
                              └─sda7 8:7 0 1,6G 0 part
                              sdb 8:16 1 15,4G 0 disk
                              └─sdb1 8:17 1 15,4G 0 part /media/*****/d05150a9-3070-4405-ac2b-921165d45cf5
                              sr0 11:0 1 1024M 0 rom
                              *****@*****-desktop:~/linuxium > ./create-linux-sdcard
                              ./create-linux-sdcard: Is your SD card loaded as '/dev/sdc' (y/n)? n
                              ./create-linux-sdcard: Do you want to use a different device? y
                              ./create-linux-sdcard: Enter new device name? /dev/sdb1
                              ./create-linux-sdcard: Is your SD card loaded as '/dev/sdb1' (y/n)? y
                              ./create-linux-sdcard: Unmounting partitions on '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Formatting SD card '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Flashing bootloader 'sdboot_rk3288.img' to '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Updating partition table on '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Calculating partition size for '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Creating 'linux' partition as '/dev/sdb11' on /dev/sdb1 ...done.
                              ./create-linux-sdcard: Making 'ext4' file system for 'linux' partition on '/dev/sdb11' ... done.
                              ./create-linux-sdcard: Creating 'parameter-linux.img' from 'parameter-linux' ... done.
                              ./create-linux-sdcard: Flashing parameter 'parameter-linux.img' to '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Flashing boot 'boot-linux.img' to '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Flashing kernel 'kernel-linux.img' to '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Flashing resource 'resource-linux.img' to '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Flashing Linux RFS 'linux-rfs.img' to '/dev/sdb11' ... done.
                              ./create-linux-sdcard: Flushing buffers for '/dev/sdb1' ... done.
                              ./create-linux-sdcard: Linux SD card created on '/dev/sdb1'.

                              Nothing gets written to SD-Card
                              Tried to format SD-Card as fat16/32/ext4/unallocated , nothing works.
                              Using Kubuntu 14.10 64bit and ia32-libs is alread installed.
                              Please help

                              Also how would you modify it to run from internal EMMC storage and not SD-Card like Firefly Ubuntu 14.04?
                              Want to use Lubuntu 14.10

                              Comment


                                #30
                                Originally posted by mo123 View Post
                                Not working

                                *****@*****-desktop:~/linuxium > lsblk
                                NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
                                sda 8:0 0 931,5G 0 disk
                                ├─sda1 8:1 0 807,3G 0 part /media/******/*****
                                ├─sda2 8:2 0 1K 0 part
                                ├─sda5 8:5 0 39,6G 0 part
                                ├─sda6 8:6 0 83G 0 part /
                                └─sda7 8:7 0 1,6G 0 part
                                sdb 8:16 1 15,4G 0 disk
                                └─sdb1 8:17 1 15,4G 0 part /media/*****/d05150a9-3070-4405-ac2b-921165d45cf5
                                sr0 11:0 1 1024M 0 rom
                                *****@*****-desktop:~/linuxium > ./create-linux-sdcard
                                ./create-linux-sdcard: Is your SD card loaded as '/dev/sdc' (y/n)? n
                                ./create-linux-sdcard: Do you want to use a different device? y
                                ./create-linux-sdcard: Enter new device name? /dev/sdb1
                                ./create-linux-sdcard: Is your SD card loaded as '/dev/sdb1' (y/n)? y
                                ./create-linux-sdcard: Unmounting partitions on '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Formatting SD card '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Flashing bootloader 'sdboot_rk3288.img' to '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Updating partition table on '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Calculating partition size for '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Creating 'linux' partition as '/dev/sdb11' on /dev/sdb1 ...done.
                                ./create-linux-sdcard: Making 'ext4' file system for 'linux' partition on '/dev/sdb11' ... done.
                                ./create-linux-sdcard: Creating 'parameter-linux.img' from 'parameter-linux' ... done.
                                ./create-linux-sdcard: Flashing parameter 'parameter-linux.img' to '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Flashing boot 'boot-linux.img' to '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Flashing kernel 'kernel-linux.img' to '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Flashing resource 'resource-linux.img' to '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Flashing Linux RFS 'linux-rfs.img' to '/dev/sdb11' ... done.
                                ./create-linux-sdcard: Flushing buffers for '/dev/sdb1' ... done.
                                ./create-linux-sdcard: Linux SD card created on '/dev/sdb1'.

                                Nothing gets written to SD-Card
                                Tried to format SD-Card as fat16/32/ext4/unallocated , nothing works.
                                Using Kubuntu 14.10 64bit and ia32-libs is alread installed.
                                Please help

                                Also how would you modify it to run from internal EMMC storage and not SD-Card like Firefly Ubuntu 14.04?
                                Want to use Lubuntu 14.10
                                Did you check whether 'gdisk' was installed? If not enter 'apt-get install gdisk' in a terminal window and try again.

                                If it still fails, then enter the following in a terminal window:

                                cp create-linux-sdcard create-linux-sdcard-debug
                                sed -i 's?2> /dev/null??' create-linux-sdcard-debug

                                and then run the new script like before:


                                ./create-linux-sdcard-debug

                                and post the results.

                                Comment

                                Working...
                                X