Fedora Linux Support Community & Resources Center
  #1  
Old 23rd July 2017, 12:39 PM
PtolemyHoratius Offline
Registered User
 
Join Date: Jul 2017
Location: Australia
Posts: 1
windows_7chrome
OLPC Sugar with Android Dual Boot

The Plan

So I'm trying to get a stable OS on my OLPC XO-4, running build 20 of release 13.2.8 of Sugar with a dual boot option for Android.

There are two things I can't seem to be able to do properly;
1) I am interested in setting up a dual boot for my xo-4.
2) I am interested in using a root version of the Android build.

At the moment I am running the Fedora 18 based Sugar build 20 of release 13.2.8 for OLPC XO-4 (Sourced from http://wiki.laptop.org/go/Release_no...Offline_Update) running on Openfirmware Q7C06 and EC Firmware 0.5.01.

I also have a copy of the Android build I want to put on. (Sourced from: http://wiki.laptop.org/go/Android)

Where I'm at
1)
I am interested in using this method, found at http://wiki.laptop.org/go/Android/Building

Alternative Method

To merge an already published Android build with an already published OLPC OS derived build:
1) download the system.img, ramdisk.img, and kernel files from the Android build directory,
2) download the build derived from OLPC OS, e.g. 41008o4.zd or 4_0b125.zd,
3) download the mkzd.sh tool (from http://dev.laptop.org/git/users/ben/...ndor_olpc_xo4/ ), and edit it to match file names,
4) run mkzd.sh
Using an Android build before 2015 on XO-4 produced in 2015 requires a special kernel, contact OLPC for details.

I have the system.img, ramdisk.img, and kernel files for Android, along with the build derived from OLPC that I want to use (32020o4.zd). I have also downloaded the mkzd.sh tool (from http://dev.laptop.org/git/users/ben/...9c653adaf791f7), but I'm not sure how to run this tool. (I'm pretty new to linux) I'm also unsure where I need to match the file names within mkzd.sh and whether I just do this in notepad or in some other file editor.

I have previously run an earlier version (32014a4.zd) which had the dual boot built in which I found at http://build.laptop.org/android/2014-09-01/ but since installing build 20 of release 13.2.8 of Sugar, I can't seem to reinstall the older version and get it working. I think there's something funny going on with the kernel but I'm not sure what is stopping a reinstall of 32014a4.zd from working, it just hangs at the boot screen. (Shows the XO logo with a single grey dot below it. If I startup and view the processes, it hangs at the 'RD found' point.) I'm hoping that making a build using build 20 with the Android boot option gets me around this problem.

2) The second thing I'd like to do, which would be more of a bonus than anything, is I'd like to have root access in the Android version I'm running.

I've read that there are a few ways of getting this done, but am not sure of the mechanics of some of the methods.

From a response by Youxin Su <ben@morphoss.com> at http://comments.gmane.org/gmane.linu...pc.devel/38040

Alternatively,
* Serial port has root access.
* Rebuild Android in engineer mode gives you root access out of box.
http://wiki.laptop.org/go/Android/Building/Variants
* XO-4 special secure hole, boot to sugar, unpack the Android ramdisk in boot partition, change secure configuration, repack ramdisk and replace it.

My preference would be using the third option to unpack the android ramdisk.img and change the secure configuration, and whilst I can unpack the image and find where to change the variables:
ro.secure=1
ro.debuggable=1

to:
ro.secure=0
ro.debuggable=1
ro.kernel.android.checkjni=1

Once again, I'm not sure whether this is something I just need to do in notepad or some other file editor. I'm also unsure of whether if I just use this image with the above mkzd.sh whether this will leave me with a *.zd file that I can use the fs-update command with in order to install the overall OS.

Any light anyone can shed on these issues would be most appreciated.
Reply With Quote
Reply

Tags
android , boot , dual , olpc , sugar , xo4

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Change Sugar Boot Screen jsandys Using Fedora 1 1st April 2012 08:19 PM
How to create a dual-boot (dual boot) with Windows XP Home Edition and Fedora Core 5: Genecks Guides & Solutions (Not For Questions) 5 18th October 2011 01:05 PM
Fedora 10 on OLPC gregdek Alpha, Beta & Snapshots Discussions (Fedora 10 Only) 6 23rd November 2008 01:28 AM
OLPC news JN4OldSchool Linux Chat 4 26th December 2007 01:11 AM
OLPC launched! JN4OldSchool Linux Chat 21 22nd May 2007 12:40 AM


Current GMT-time: 05:32 (Thursday, 19-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat