TRI-BOOTING ON MEEGOPAD T01
https://plus.google....dZFRCybn?cfem=1
https://docs.google....=h.5lek242pn16u
AUTHOR: LINUXIUM
G+ https://plus.google.com/+IanMORRISON
Web linuxium.com.au
Twitter https://twitter.com/linuxium
Facebook https://www.facebook.com/pages/Linuxium/285917904920357
Donations gratefully accepted through http://goo.gl/nXWSGf
IMPORTANT
It is recommended to make a FULL backup of your device using these instructions as making a mistake could result in completely removing Windows and/or corrupting the file system and boot process
REQUIREMENTS
-
A MeeGoPad T01 device and Windows 8.1 with Bing installed
-
A connected USB HUB and a two USBs
-
A USB to Ethernet Adapter (ASIX is supported)
-
An external storage device (e.g. a USB connected external HDD with a minimum of 33GB free space)
-
An Ethernet connection to a DHCP server
* Anything else is possible but is not documented here!
CREATE PARTITIONS FOR UBUNTU AND ANDROID
-
Boot the device into Windows
-
Open “Disk Management”
-
Right click on volume “C:” and select “Shrink Volume”
-
Enter “10240” in “Enter the amount of space to shrink in MB” and select “Shrink”
-
Now right click on the newly created free space and select “New Simple Volume”
-
Enter “8192” in “Simple volume size in MB” and select “Next”
-
Now select “U” for “Assign the following drive letter” and select “Next”
-
Finally enter “Ubuntu” as “Volume label” and select “Next” then “Finish”
-
Repeat steps 5 to 8 using the maximum disk space (2GB) for size, “A” for drive letter and “Android” for label
CREATE A BOOTABLE UBUNTU LIVEUSB
-
Download Rufus from http://rufus.akeo.ie/
-
Download a “desktop-amd64.iso” Ubuntu ISO "ubuntu-12.04.5-desktop-amd64.iso " from http://releases.ubuntu.com/precise/
(Note: I'm using the older supported version of Ubuntu for compatibility with ARM-based
mini PCs because this is the last version where 2D-Unity works on the ARM devices)
-
Insert the USB into the USB HUB connected to device
-
Format the USB (quick format)
-
Run Rufus
-
Select ISO and select the downloaded Ubuntu ISO
-
Select “GPT partition scheme for UEFI computer”
-
Accept "FAT32"
-
Select "64 kilobytes" cluster size
-
Enter "LIVECD" as new volume label
-
Click "Start" then "OK" then "Close"
-
-
Download “bootia32.efi” from https://drive.google.com/file/d/0B99O3A0dDe67QWUtek9rdHptMjA or compile it from source - see https://github.com/jfwells/linux-asus-t100ta/tree/master/boot
-
Copy “bootia32.efi” to the USB (d:\EFI\BOOT)
-
Shutdown
INSTALL UBUNTU TO eMMC
-
Boot into BIOS by pressing “F7” after turning on the device
-
Select the “UEFI: USB device” option from the BIOS menu
-
Hit "Enter" which will select "Try Ubuntu" from grub menu to boot Ubuntu
-
Insert the USB into the USB HUB connected to device
-
Open a "terminal" window and enter:
-
sudo su -
-
umount /media/*
-
(e.g. /media/Android, /media/Ubuntu, /media/Recovery and /media/Windows)
-
Make a backup of the existing eMMC
-
connect the external storage device and identify the partition with the available space (hint: use “lsblk -f” or similar) e.g. /dev/sdb1
-
mount the external storage device (e.g. “mkdir /mnt/meegopad && mount /dev/sdb1 /mnt/meegopad”)
-
use “dd” to save the entire eMMC to the external storage device (e.g. “dd if=/dev/mmcblk0 of=/mnt/meegopad/meegopad-backup.dd bs=4M”
-
unmount the external storage device (e.g. umount /mnt/meegopad && rmdir /mnt/meegopad) and keep it safe!
-
-
Install Ubuntu on to the device's eMMC (click the “Install Ubuntu” desktop icon)
-
Select "Continue" (i.e. don't download updates or install proprietary drivers)
-
Accept "English" (or relevant language)
-
Perform manual partitioning (select "Something else")
-
Select “/dev/mmcblk0p4” and "Change"
-
Use as "Ext4 journaling file system
-
Select "Format the partition"
-
Mount point "/"
-
For "Device for boot loader installation" leave as "/dev/mmcblk0"
-
-
Ignore warning about swap
-
Select time zone, keyboard, user name, computer name, password
-
Wait for the installation to finish and select "continue testing"
-
Now create a grub entry on the USB to be able to boot the device so in a "terminal" window and enter:
-
mount -o remount,rw /dev/sda1 /cdrom
-
mount /dev/mmcblk0p4 /mnt
-
view /mnt/boot/grub/grub.cfg (and copy the menu item for booting Ubuntu)
-
vi /cdrom/boot/grub/grub.cfg (and insert the copied menu item as first menu item and comment out the “recordfail” and “gfxmode” lines)
-
umount /mnt
-
umount /media/*
-
-
CONFIGURE EFI TO BOOT UBUNTU
-
Reboot and press “F7” and select “UEFI: USB device” and then “Try Ubuntu” (from grub menu) to boot Ubuntu
-
Open a “terminal” window and enter:
-
sudo su -
-
umount /media/*
-
apt-get update
-
apt-get -y remove grub-efi-amd64
-
apt-get -y install grub-efi-ia32
-
cd /boot/efi/EFI
-
cp ubuntu/grubx64.efi ubuntu/grubx64.efi.orig
-
cp grub/grubia32.efi ubuntu/grubx64.efi
-
update-grub2
-
e2label /dev/mmcblk0p4 Ubuntu
-
-
Shutdown
-
Remove the USB
INSTALL ANDROID TO eMMC
-
Boot into BIOS by pressing “F7” after turning on the device and select the first “Ubuntu” that appears in the BIOS menu
-
Hit "Enter" which will select "Try Ubuntu" from grub menu to boot Ubuntu
-
Download "android-x86-4.4-r2.img" from http://www.android-x86.org/download
-
Insert a USB into the USB HUB connected to device
-
Open a "terminal" window and enter:
-
sudo su -
-
dd if=android-x86-4.4-r2.img of=/dev/sda bs=4M
-
-
Reboot and press “F7” and select “UEFI: USB device” and then “Try Ubuntu” (from grub menu) to boot Ubuntu
-
Open a "terminal" window and enter:
-
sudo su -
-
vi /media/Android-x86/efi/boot/grub.cfg
-
Now move the menuentry for “Android-x86 4.4-r2 Installation” to the first entry
-
Insert the other USB into the USB HUB connected to device (/dev/sdb) and enter:
-
fdisk /dev/sdb
-
enter “o”
-
enter “w”
-
Now remove this USB
-
-
Reboot and press “F7” and select “UEFI: USB device”
-
Select the “install” option
-
Insert the other USB back into the USB HUB connected to device
-
Select "Detect Devices"
-
Select "Create/Modify Partitions"
-
Select "sdb"
-
Select "New" to create a new partitiom
-
Select "Primary"
-
Select maximum size
-
Select "Write" and enter "yes"
-
Select "Quit"
-
Select sdb1" as partition to install Android-X86 on
-
Select "fat32" as format
-
Accept "yes" to confirm
-
Accept "skip" to skip installing grub
-
Accept "yes" to installing system as r/w
-
Accept "yes" to create a data image
-
Enter "1024" as size for data image
-
Select "reboot"
BOOT UBUNTU AND CONFIGURE GRUB
-
Reboot and press “F7” and select “UEFI: USB device” and then “Try Ubuntu” (from grub menu) to boot Ubuntu
-
Open a “terminal” window and enter:
-
sudo su -
-
apt-get update
-
apt-get upgrade
-
apt-get install aptitude
-
aptitude install ssh openssh-server tightvncserver p7zip-full chromium-browser gparted (adds useful software)
-
-
Boot device into BIOS and select the first “Ubuntu” that appears in the BIOS menu
-
Open a "terminal" window and enter:
-
-
sudo su -
-
cp -a /media/Android-x86_/android-4.4-r2/ /media/Android
-
cd /boot/efi/EFI
-
cp grub/grubia32.efi grub/grubia32.efi.orig
-
-
Download “grubia32.efi” from https://drive.google.com/file/d/0B99O3A0dDe67bEh6VUNTX0s4dEU
-
Copy to “/boot/efi/EFI/grub/grubia32.efi”
-
Then in the "terminal" window enter:
-
cp /boot/efi/EFI/grub/grubia32.efi /boot/efi/EFI/ubuntu/grubx64.efi
-
ln -s /boot/grub/i386-efi/video.lst /boot/grub/video.lst
-
update-grub2
-
-
Download “linuxium-grub-wrapper.sh” from https://drive.google.com/file/d/0B99O3A0dDe67Q3VrM2RIcjF3OVE
-
Copy to “/boot/grub/linuxium-grub-wrapper.sh”
-
Then in the "terminal" window enter:
-
cd /boot/grub
-
chown +x linuxium-grub-wrapper.sh
-
./linuxium-grub-wrapper.sh
-
-
Shutdown and remove the USBs
-
Reboot into BIOS by pressing “F7” and select "Enter "Setup"
-
Change the boot order to make “ubuntu” the first option
-
Reboot and enjoy
FURTHER INFORMATION
-
The SD card works on Ubuntu however wifi, BT and sound are still WIP.
-
Note that Android uses the first partition (Windows Recovery) as a mount for USB3.
REFERENCES
-
“Ubuntu (or other Linux) on the ASUS Transformer Book T100” by John Wells (see http://www.jfwhome.com/2014/03/07/perfect-ubuntu-or-other-linux-on-the-asus-transformer-book-t100/)