Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a Galaxy Note 10.1 (n8010) and I want to make it boot Arch Linux natively. I mean boot Arch Linux instead of android. All that I need is to alter the initramfs, which I can't find anywhere in the world. My questions:

  • Do I need to alter only the initramfs, or I have to cope with other things too? (such as the kernel itself)
  • [DONE] Where an I get the CyanogenMod 10.1's official initramfs (github maybe)? Or I have to self-compile the CyanogenMod's kernel and extract it from the zImage?
  • [PROBABLY] Can I have the Arch linux root inside the android data partition? (e.g. /data/linux) Or I have to buy an SD card?
  • What else do I need to know/do?

Edit: I found how to alter the initramfs :)

  1. unzip rom (CM10.1 for n8013 used)
  2. wget http://whiteboard.ping.se/uploads/Android/unmkbootimg.gz
  3. gunzip unmkbootimg.gz
  4. ./unmkbootimg boot.img (save the command given with mkbootimg!)
  5. mkdir initramfs && cd initramfs
  6. gzip -cd initramfs.cpio.gz | cpio -i
  7. Alter the init scripts <- testing that right now, I'll post the correct once done
  8. find . | cpio -o -H newc | gzip > ../initramfs.cpio.gz (not sure if the command is right...)
  9. cd .. && clean the directory so that only initramfs.cpio.gz and zImage is left...
  10. execute the mkbootimg command you saved before...
  11. flash the new boot.img :)

For those that don't have mkbootimg (you get that by compiling a kernel) I found a precompiled one

Links:

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Not sure if this helps buts it's a howto for Arch Linux http://forum.xda-developers.com/showthread.php?t=2195778

share|improve this answer
3  
Welcome to Unix & Linux! Generally we like answers on the site to be able to stand on their own - Links are great, but if that link ever breaks the answer should have enough information to still be helpful. Please consider editing your answer to include more detail. See the FAQ for more info. –  slm Apr 20 '13 at 4:54
    
yes! you're right!! Now, I want to find a way to alter the recovery to be able to boot from an sdcard partition... –  ttouch Apr 20 '13 at 8:38
add comment

I found a tutorial for a similar task, How to Install Ubuntu Linux on Your Google Nexus 7 Android Tablet, maybe it could be adapted to suit your project? It uses fastboot to unlock the bootloader and reboot with a different bootloader. HTH, I've never played with an Android.

share|improve this answer
    
well, ubuntu for phone is not... real ubuntu :P it's based on cm10 (an android "distro"). so it's android with different layout... –  ttouch Mar 4 '13 at 19:45
    
Good to know, when I get my first tablet / smartphone, I will want a familiar Linux distro, installed cleanly. I know this isn't quite what you were asking for, but since there has been no response to the question, I hoped this Ubuntu example could be adapted for Arch. Maybe the files / bootloader installed by fastboot could be replaced? Or maybe I'm in over my head here. Good luck, and be careful! –  Dan Ross Mar 5 '13 at 18:30
    
no, ubuntu uses the Java VM, which has to do with booting etc. –  ttouch Mar 6 '13 at 13:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.