Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Linuxium's Bootloader software to dualboot Android and Linux

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

    #46
    Originally posted by no_spam_for_me View Post
    adb pull /system/bin/toolbox toolbox

    FTP toolbox to /home/linuxium

    linuxium@LINUXIUMONE:~$ ls -al t*
    -rw------- 1 linuxium users 134976 Mar 4 01:18 toolbox
    linuxium@LINUXIUMONE:~$ sudo chmod a+x toolbox
    [sudo] password for linuxium:
    linuxium@LINUXIUMONE:~$ ls -al t*
    -rwx--x--x 1 linuxium users 134976 Mar 4 01:18 toolbox

    BUT
    linuxium@LINUXIUMONE:~$ sudo toolbox reboot recovery
    sudo: toolbox: command not found
    linuxium@LINUXIUMONE:~$ sudo toolbox
    sudo: toolbox: command not found

    If I don't forget something or do a mistake, it don't work...

    @linuxium: how do you handle it?
    try sudo ./toolbox reboot recovery
    or
    ln -s toolbox reboot
    sudo ./reboot recovery
    if it still doesn't work, try ldd ./toolbox and see if it requires any libraries

    Comment


      #47
      Originally posted by linuxium View Post
      Simply because I don't know of a command to reboot and substitute the current kernel for another one other than the command 'reboot recovery' which requires the "recovery" kernel to be located in the 'recovery' partition.

      If there are better ways of storing an alternative kernel and then being able to boot it this would be great.
      kexec will do exactly that - replace current kernel with new one:

      you just need to compile kernel with kexec support enabled, and install kexec tools.

      Comment


        #48
        lol... You're kidding? At the other thread I wrote "Compared to my knowing about "error-soft" (micro-soft) I'm a really newbie at linux..." AND now you write "you just need to compile kernel with kexec support enabled" yeeees
        It's something for the next few weeks...

        In earnest, first I have to learn buildup enviroment (git clone, rk tools, and so on), compilig, pack/unpack imgs (boot, recovery) ...
        And if I've a basic understanding of what to do, I will give it a chance... but THX
        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


          #49
          Originally posted by mmm123 View Post
          if it still doesn't work, try ldd ./toolbox and see if it requires any libraries
          BTW
          Code:
          linuxium@LINUXIUMONE:~$ ldd ./toolbox
                  not a dynamic executable
          linuxium@LINUXIUMONE:~$ file ./toolbox
          ./toolbox: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
          linuxium@LINUXIUMONE:~$ strace ./toolbox
          execve("./toolbox", ["./toolbox"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
          dup(2)                                  = 3
          fcntl64(3, F_GETFL)                     = 0x20002 (flags O_RDWR|O_LARGEFILE)
          fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
          mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
          _llseek(3, 0, 0xbee86328, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
          write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
          ) = 40
          close(3)                                = 0
          munmap(0x4001c000, 4096)                = 0
          exit_group(1)                           = ?
          linuxium@LINUXIUMONE:~$ strace ./toolbox reboot
          execve("./toolbox", ["./toolbox", "reboot"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
          dup(2)                                  = 3
          fcntl64(3, F_GETFL)                     = 0x20002 (flags O_RDWR|O_LARGEFILE)
          fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
          mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40059000
          _llseek(3, 0, 0xbe856318, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
          write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
          ) = 40
          close(3)                                = 0
          munmap(0x40059000, 4096)                = 0
          exit_group(1)                           = ?
          linuxium@LINUXIUMONE:~$ strace ./toolbox reboot recovery
          execve("./toolbox", ["./toolbox", "reboot", "recovery"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
          dup(2)                                  = 3
          fcntl64(3, F_GETFL)                     = 0x20002 (flags O_RDWR|O_LARGEFILE)
          fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
          mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40046000
          _llseek(3, 0, 0xbeabb318, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
          write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
          ) = 40
          close(3)                                = 0
          munmap(0x40046000, 4096)                = 0
          exit_group(1)                           = ?
          linuxium@LINUXIUMONE:~$
          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


            #50
            Originally posted by no_spam_for_me View Post
            BTW
            Code:
            linuxium@LINUXIUMONE:~$ ldd ./toolbox
                    not a dynamic executable
            linuxium@LINUXIUMONE:~$ file ./toolbox
            ./toolbox: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
            linuxium@LINUXIUMONE:~$ strace ./toolbox
            execve("./toolbox", ["./toolbox"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
            dup(2)                                  = 3
            fcntl64(3, F_GETFL)                     = 0x20002 (flags O_RDWR|O_LARGEFILE)
            fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
            device it tries to open (136,2) should be /dev/pts/2 Check if it is there.
            Also run as root - e.g. "sudo bash -login" and then ./toolbox ... or strace

            Comment


              #51
              Originally posted by no_spam_for_me View Post
              lol... You're kidding? At the other thread I wrote "Compared to my knowing about "error-soft" (micro-soft) I'm a really newbie at linux..." AND now you write "you just need to compile kernel with kexec support enabled" yeeees
              It's something for the next few weeks...

              In earnest, first I have to learn buildup enviroment (git clone, rk tools, and so on), compilig, pack/unpack imgs (boot, recovery) ...
              And if I've a basic understanding of what to do, I will give it a chance... but THX
              This was not for you
              But compiling kernel is quite simple nowdays, just find proper guide and follow steps.

              Comment


                #52
                Originally posted by mmm123 View Post
                kexec will do exactly that - replace current kernel with new one:

                you just need to compile kernel with kexec support enabled, and install kexec tools.
                Thanks for the info. Unfortunately my original post was overley simplified: besides 'replaceing' the kernel it needs to reboot by loading the Android initramfs as well as the Android kernel. 'kexec' doesn't reboot which is what I am using the Android 'reboot recovery'.

                Comment


                  #53
                  Originally posted by linuxium View Post
                  Thanks for the info. Unfortunately my original post was overley simplified: besides 'replaceing' the kernel it needs to reboot by loading the Android initramfs as well as the Android kernel. 'kexec' doesn't reboot which is what I am using the Android 'reboot recovery'.
                  kexec boots new kernel with new initramfs without hard reset. What you eventualy need is to extract initramfs from boot.img, which is trivial.

                  Comment


                    #54
                    Maybe A simpel question

                    Linuxium,


                    I got a simple maybe stupid question, but I installed everything and it works fine.
                    but with booting Linux he has a linuxium user, what is the password to get in?
                    I am using the xubuntu image.


                    thanks

                    Comment


                      #55
                      Originally posted by Killerdude View Post
                      Linuxium,


                      I got a simple maybe stupid question, but I installed everything and it works fine.
                      but with booting Linux he has a linuxium user, what is the password to get in?
                      I am using the xubuntu image.


                      thanks
                      If it's the same as ubuntu, password is p (and root password is blank).
                      I'd recommend typing sudo passwd into terminal and settting a root password and similarly you can run sudo passwd linuxium to change that password from p to one of your choosing.

                      Alternatively set up a new user and set passwords as you see fit for it.
                      Last edited by enrique66_35; 06 March 2014, 16:35. Reason: Clarification

                      Comment


                        #56
                        Thanks inks for the quick reply Enrique



                        Originally posted by enrique66_35 View Post
                        If it's the same as ubuntu, password is p (and root password is blank).
                        I'd recommend typing sudo passwd into terminal and settting a root password and similarly you can run sudo passwd linuxium to change that password from p to one of your choosing.

                        Alternatively set up a new user and set passwords as you see fit for it.

                        Comment


                          #57
                          I can't understand if it is possible for a real noob as I am, to make it work on a T-R42..
                          is this supported?
                          Do I have only to flash things and copy files or there is to insert command or compile something etc?
                          thank so much

                          Comment


                            #58
                            Originally posted by kayak1987 View Post
                            I can't understand if it is possible for a real noob as I am, to make it work on a T-R42..
                            is this supported?
                            Do I have only to flash things and copy files or there is to insert command or compile something etc?
                            thank so much
                            No, because of the "build in" Android this solution is only for the 'Radxa Rock', 'Minix Neo X7' and 'Rikomagic MK802IV (latest model)'...
                            Generally the 'Linux root file system' can use with every rk3188 device (it is like the system.img), but you need a matching/fitting kernel&boot for your device installed at your device (kernel.img + boot.img or recovery.img (which include kernel+boot))...
                            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


                              #59
                              Originally posted by mmm123 View Post
                              device it tries to open (136,2) should be /dev/pts/2 Check if it is there.
                              Also run as root - e.g. "sudo bash -login" and then ./toolbox ... or strace
                              Hi,

                              for me it is a really mysteries how you can identify /dev/pts/2

                              Code:
                                linuxium@LINUXIUMONE:~$ ls -al /dev/pts/
                                total 0
                                drwxr-xr-x  2 root     root      0 Jan  1  1970 .
                                drwxr-xr-x 12 root     root  13980 Jan  1 22:32 ..
                                crw--w----  1 root     tty  136, 0 Jan  1 22:28 0
                                crw--w----  1 linuxium tty  136, 1 Jan  3 15:03 1
                                crw--w----  1 root     tty  136, 2 Jan  1 22:28 2
                                crw--w----  1 root     tty  136, 4 Jan  1 22:28 4
                                c---------  1 root     root   5, 2 Jan  1  1970 ptmx
                                 
                                linuxium@LINUXIUMONE:~$ sudo bash -login
                                 
                                root@LINUXIUMONE:~# ./toolbox reboot recovery
                                bash: ./toolbox: No such file or directory
                                 
                                root@LINUXIUMONE:~# sudo ./toolbox reboot recovery
                                root@LINUXIUMONE:~# 
                                 
                                root@LINUXIUMONE:~# strace sudo ./toolbox reboot recovery
                              Attached Files
                              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


                                #60
                                Originally posted by no_spam_for_me View Post
                                Hi,

                                for me it is a really mysteries how you can identify /dev/pts/2
                                It is quite obvious:
                                crw--w---- 1 root tty 136, 2 Jan 1 22:28 2

                                strace of sudo is useless. capture strace of toolbox
                                e.g.:
                                1) sudo bash -login
                                2) strace ./toolbox reboot recovery 2>file
                                Still this is waste of time, i am sure this "toolbox" is available somewhere as source. Look for it and compile.

                                Comment

                                Working...
                                X