This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Root access on Pandaboard

I am working on Pandaboard with android ICS.I need to copy some files(e.g.log2) to /system/libs using adb.

My SD card having two partition 1.boot and 2.rootfs

I am working on Linux PC host and followed all the instruction given on "http://www.omappedia.com/wiki/Adb_over_USB" for ADB over USB.

I am using command "./adb push /home/brijesh/Desktop/ICS\ \ Log\ +\ bootargs/log2 /system/libs" to copy this file(log2) but getting error "failed to copy '/home/brijesh/Desktop/ICS  Log + bootargs/log2' to '/system/libs': Read-only file system"

I have already edited  the rootfs/init.rc file and adjust permissions as given below.

service console /system/bin/sh
   -
class core
   - console
   - disabled
   + user root
   +
group root

Still i am not able to copy any file to /system directory on SD Card.

How to get root access in Android ICS on pandaboard.
  • Brijesh,

    I think that the change you made to init.rc will only affect permissions for the serial console, not ADB.  Try these commands before the "adb push":

    $ ./adb root

    $ ./adb remount

    Regards,
    Gina 

  • Hi Gina Glaser

    I have already tried this commands but not having any change in error.

    $ ./adb root

    adbd is already running as root

    $ ./adb remount

    remount failed: Success

    Still having same error.

  • Hi there,

    I found that there was an issue regarding file system r/w permission.

    So i did change in init.rc as given below

    ================== init.rc ===================

    on post-fs
        # once everything is setup, no need to modify /
        mount rootfs rootfs / rw remount

    ==========================================

    This will give full access on android ICS file system.

  • You can try next commands from your computer,

    $ sudo ./adb kill-server
    $ sudo ./adb start-server
    $ sudo ./adb root
    $ sudo ./adb remount
    $ sleep 1
    $ sudo ./adb kill-server
    $ sudo ./adb start-server
    $ sudo ./adb root
    $ sudo ./adb remount

    I am using those in a script to get remounted the device and to use ./adb push, seems what makes the difference is the sudo command at the start of the line.

    Somebody told me that it worked ok just by running it one time only this in ICS, but I haven't check it. And probably removing the sleep should not affect.

  • Hi Manuel,

    Actually ./adb push is working on /data directory of my rootfs but it was giving "Read-only file system" error when i was trying to copy any file to /system folder.

    This issue is fixed by doing change in init.rc  as "mount rootfs rootfs / ro remount" with  "mount rootfs rootfs / rw remount"

    Now even i don't have to use ./adb root and ./adb remount commands.

    I can directly push my any file to any location in file system.

    =============================================

    $ sudo ./adb kill-server

    $ sudo ./adb start-server

    $ sudo ./adb push /home/abc.log /system/

    =============================================

  • Brijesh;

    It is great to know that issue is addressed by modifying the init.rc to include remount commands and it worked for you.

    In my case when I tried to modify init.rc to modify system/mount from a mounted system it is not possible since it is in root directory,

    then I need to follow the procedure in

    http://omapedia.org/wiki/Android_eMMC_Booting

    to modify the respective image, I am using emmc like described in 4AI releases then it is easier to use root and remount commands.

    http://omapedia.org/wiki/4AI.1.7_OMAP4_Icecream_Sandwich_Release_Notes#Preparing_eMMC_images

    Of course modifying the image before creating it is an option to me, thanks.