Author Topic: How To Use Android And Lubuntu Dual Os  (Read 13843 times)

Offline benn

  • Newbie
  • *
  • Posts: 40
  • Karma: +4/-0
    • View Profile
How To Use Android And Lubuntu Dual Os
« on: May 14, 2014, 05:06:08 am »
Some people complain that, after booting Linux from TF card, the Android OS on Nandflash get damaged somehow. Here we give a solution to run dual OS (Android@Nand, Lubuntu@Card). The reason for the issue, is that the sunxi nand driver is quite different with the close sourced one. After loading the sunxi nand driver, it will damage the partition table for Android on nand. Currently, It seems that disabling the sunxi nand driver is the only way.

Steps

1. Making Lubuntu Card Image

Please look at these tutorials

    http://docs.cubieboard.org/tutorials/cb2/installation/cb2_lubuntu_card_install
    http://docs.cubieboard.org/tutorials/ct1/installation/install_lubuntu_desktop_server_to_sd_card

2. Disabling Nand Driver

After making Card Image successfully, insert the SD card on your host. You will see the script.bin file on the 1st partition.

#bin2fex script.bin script.fex
#vi script.fex
Change 'nand_used=1' to 'nand_used=0'
#fex2bin script.fex script.bin

3. Installing Android on Nandflash

Please look at these tutorials

    http://docs.cubieboard.org/tutorials/cb2/installation/cb2_android_4.2.2_nand_install

Offline actkk2000

  • Hero Member
  • *****
  • Posts: 572
  • Karma: +2/-11
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #1 on: May 14, 2014, 09:36:25 am »
Wow! It's this for real?
I certainly will have to give it a try! [emoji3]
Thank you very much!

Offline rgmhtt

  • Full Member
  • ***
  • Posts: 191
  • Karma: +4/-1
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #2 on: June 01, 2014, 08:16:31 pm »
2. Disabling Nand Driver

After making Card Image successfully, insert the SD card on your host. You will see the script.bin file on the 1st partition.

#bin2fex script.bin script.fex
#vi script.fex
Change 'nand_used=1' to 'nand_used=0'
#fex2bin script.fex script.bin

Help me here....

I have already boot up with my Fedora 20 SD.  Was I suppose to make these changes before that first boot?

How do I now set nand_used=0 ??

Quote

3. Installing Android on Nandflash

Please look at these tutorials

    http://docs.cubieboard.org/tutorials/cb2/installation/cb2_android_4.2.2_nand_install

Easier said than done.  Still trying to puzzle them out...


Offline jiv

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #3 on: June 02, 2014, 06:15:44 am »
i was wondering why i cant boot android from nand :) +1

Offline johndoe_71rus

  • Full Member
  • ***
  • Posts: 242
  • Karma: +3/-1
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #4 on: June 02, 2014, 07:47:44 am »
benn
Why this situation has become possible? Android v1.05 perfectly coexists with linux on sd cards.
Cubieboard2 / Android 4.2.2 / Cubieez 7.4@3.4.79+patwood

Offline benn

  • Newbie
  • *
  • Posts: 40
  • Karma: +4/-0
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #5 on: June 03, 2014, 06:44:55 am »
allwinner have upgraded the nand driver (close source) to fix data corruption issue, but cause this new issue :(

Offline NewGuy885

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #6 on: June 05, 2014, 11:09:27 am »
Can't i just flash new version of Android 4.2_v1.06 and be done with it? or does this brick it permenantly?

Offline actkk2000

  • Hero Member
  • *****
  • Posts: 572
  • Karma: +2/-11
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #7 on: June 05, 2014, 05:28:45 pm »
You can flash with any Android image, but it will brick every time you boot linux on SD, and then go back to Android, unless you follow this script.bin procedure...

Offline johndoe_71rus

  • Full Member
  • ***
  • Posts: 242
  • Karma: +3/-1
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #8 on: June 08, 2014, 12:58:36 am »
benn
This new nand driver (closed source) in which source, android or linux? If i use android 1.05 (3.3 kernel) nand, can i use any linux 3.4 kernel at SD card. Can i get trouble?
Cubieboard2 / Android 4.2.2 / Cubieez 7.4@3.4.79+patwood

Offline NewGuy885

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #9 on: June 14, 2014, 09:27:05 am »
You can flash with any Android image, but it will brick every time you boot linux on SD, and then go back to Android, unless you follow this script.bin procedure...

I see, but i can't get step 2 to work i tried mounting mmcblk0p1 nand,but no script.bin anywhere
« Last Edit: June 14, 2014, 09:29:32 am by NewGuy885 »

Offline benn

  • Newbie
  • *
  • Posts: 40
  • Karma: +4/-0
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #10 on: June 15, 2014, 09:03:30 am »
benn
This new nand driver (closed source) in which source, android or linux? If i use android 1.05 (3.3 kernel) nand, can i use any linux 3.4 kernel at SD card. Can i get trouble?

Android

Offline benn

  • Newbie
  • *
  • Posts: 40
  • Karma: +4/-0
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #11 on: June 15, 2014, 09:06:01 am »
2. Disabling Nand Driver

After making Card Image successfully, insert the SD card on your host. You will see the script.bin file on the 1st partition.

#bin2fex script.bin script.fex
#vi script.fex
Change 'nand_used=1' to 'nand_used=0'
#fex2bin script.fex script.bin

Help me here....

I have already boot up with my Fedora 20 SD.  Was I suppose to make these changes before that first boot?

How do I now set nand_used=0 ??

Quote
If you have android on nand, then yes.
to change 'nand_used':

1. get sunxi-tools
https://github.com/linux-sunxi/sunxi-tools
2. compile it on your fedora, the you will get the tools: fex2bin, bin2fex

3. find out the script.bin on your fedora, change it with fex2bin/bin2fex




3. Installing Android on Nandflash

Please look at these tutorials

    http://docs.cubieboard.org/tutorials/cb2/installation/cb2_android_4.2.2_nand_install

Easier said than done.  Still trying to puzzle them out...

seppel

  • Guest
Re: How To Use Android And Lubuntu Dual Os
« Reply #12 on: July 10, 2014, 06:47:48 am »
question:

is it possible to change

nand_used=0

over uEnv.txt?

I often use new Images with my SD-Cards and dont have another Linux System than Cubietruck.
When its possible to change this value over uEnv.txt -> I can change them on my Windows System before running on Cubietruck the first time ( -> destroying android).

greeting
seppel

Offline morpheusmat

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #13 on: September 16, 2014, 03:01:18 pm »
hey guys, its possible someone help me to compile this on ubuntu to chage script.bin, i have no idea how to, tks a lot...

Offline johndoe_71rus

  • Full Member
  • ***
  • Posts: 242
  • Karma: +3/-1
    • View Profile
Re: How To Use Android And Lubuntu Dual Os
« Reply #14 on: September 16, 2014, 03:32:16 pm »
share you script.bin
Cubieboard2 / Android 4.2.2 / Cubieez 7.4@3.4.79+patwood