Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
installing_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
installing_linux [2013/11/26 20:59] salantraxinstalling_linux [2013/11/29 00:29] (current) salantrax
Line 1: Line 1:
- +====== Installing Linux on your AC100 ======
-TODO  +
- +
-====== Old guide: Installing Linux on your AC100 ====== +
-{{:woa_outdated.gif?nolink&200|}} Having problems with the old guide? Ask around on [[links|IRC]].+
 ^ :!: Before doing anything else, please, help yourself, help people who would like to help you: Make Backups !\\ [[backups|How to backup and restore your AC100]]^ ^ :!: Before doing anything else, please, help yourself, help people who would like to help you: Make Backups !\\ [[backups|How to backup and restore your AC100]]^
  
-===== Which Linux or rather which kernel should I use ? ===== 
- 
-There is number of options available, but generally Ubuntu Oneiric Ocelot is what you are looking for.\\  
-\\ [[https://wiki.ubuntu.com/ARM/TEGRA/AC100#Installer| 
-GET UBUNTU 11.10 NOW!]] 
- 
-Ubuntu is definitely the easiest way to get Linux onto a AC100. However - if you are a Linux-User with more experience - or - if you want to learn more about how Linux works - then Gentoo might be an interesting alternative. All software is compiled during installation (interesting for all NON-X86 architectures) and therefore the assortment of software is bigger and your are not dependent on the choice the distribution made for you. Another advantage of Gentoo is shurely the possibility to get the smallest Linux running (light-weight) which fits exactly to your demands. 
-But WARNING: This stuff is not for Linux-Newbies!   
-===== Preparation - Common steps ===== 
- 
-  * install [[nvflash|nvflash]] or [[putusb]] (warning: with putusb you're on your own, it's not fully tested and you might have problems restoring your backups) 
-  * [[backups|backup]] your AC100. Did I already say it ?  
-  * you might want to [[repartition_mmc|repartion your internal MMC]] 
- 
-===== How to install: ===== 
-==== Ubuntu (Natty) ==== 
- 
-=== Please note that natty is not supported, nor should be used. === 
- 
- 
-  * First install [[nvflash|nvflash]] and make a [[backups|backup]]. 
-  * Download [[http://people.canonical.com/~ogra/tegra/2.6.37/boot-installer-2.6.37-1-ac100.img|boot-installer-2.6.37-1-ac100.img]]. 
-  * Start AC100 into developer mode (CTRL + ESC + POWER). 
-  * nvflash -r --download 6 boot-installer-2.6.37-1-ac100.img 
-  * Download [[http://people.canonical.com/~ogra/tegra/2.6.37/ubuntu-natty-netbook-2.6.37-1-ac100-rootfs.tgz|ubuntu-natty-netbook-2.6.37-1-ac100-rootfs.tgz]] to a usb stick and put it into the AC100. 
-  * Restart the AC100 normal.  
-  * Installation to mmcblk0p7? => yes [it is the biggest partition 14, the storage-partition of android] 
-  * After a automatical reboot some error message ocurrs (plymouth...). But it doesn't matter. 
-  * Now go through the normal installation process. 
-  * If the mouse pointer freezes please unplug the usb stick and plug in a usb mouse. 
-  * If all finished, please upgrade with the following: sudo apt-get update && sudo apt-get install linux-ac100 
- 
-==== Ubuntu Oneiric ==== 
- 
-Same as the above but use the rootfs from here: 
-http://cdimage.ubuntu.com/releases/oneiric/release/ 
- 
-Install instructions can be found here: 
-https://wiki.ubuntu.com/ARM/TEGRA/AC100 
- 
-Note on suspend: 
-It works out of box if you're running Android 2.1 bootloader, otherwise you'll need either revert to [[https://lists.launchpad.net/ac100/msg00297.html | 2.1]] or tweak /boot/bootimg.cfg: 
-  - remove lp0_vec option from cmdparam line in /boot/bootimg.cfg 
-  - <ctrl-C> whole line with resulting cmdline 
-  - execute sudo [[abootimg]] -u /dev/mmcblk0p2 -c "<ctrl-V>" 
- 
-Examples:((these are examples from ac100-116 machine, yours may differ in values)) 
-<file txt bootimg.cfg> 
-bootsize = 0x800000 
-pagesize = 0x800 
-kerneladdr = 0x10008000 
-ramdiskaddr = 0x11000000 
-secondaddr = 0x10f00000 
-tagsaddr = 0x10000100 
-name = Ubuntu Boot Img 
-cmdline = mem=448M@0M tegrapart=recovery:300:a00:800,boot:d00:1000:800,mbr:1d00:200:800 root=UUID=3aee423d-d428-4e01-9804-0aa1948099e8 quiet splash 
-</file> 
-<file txt aboot-update.sh > 
-sudo abootimg -u /dev/mmcblk0p2 -c "cmdline = mem=448M@0M  tegrapart=recovery:300:a00:800,boot:d00:1000:800,mbr:1d00:200:800 root=UUID=3aee423d-d428-4e01-9804-0aa1948099e8 quiet splash" 
-</file> 
- 
- 
-linux-ac100 package is provided in Oneiric repositories, not need to add ppa. Atomatic kernel update is supported. 
- 
-Continue installing properitary video driver (see L4T drivers [[http://ac100.grandou.net/links | linked here]]), [[http://ac100.grandou.net/apps#flash | flash support]] and further [[apps]] 
- 
-With Beta 2 release and kernel 2.6.38-1000-ac100 as provided in the Oneiric repository since 2011/09/24 all the features of previous versions are supported (suspend, headphone sound, lid events) and we recommend an Oneiric install instead of Natty. 
- 
-Anyway, it is adviseable to use some lightweight desktop environment. I can recommend LXDE on the Ubuntu basis. It is much faster regarding boot time, tool launch, file manager, etc and uses less RAM/eMMC in contrast to Ubuntu Unity/Gnome. --- //[[pibach@web.de|Peter Ibach]] 2011/10/02 15:58// 
- 
-See [[ubuntu_deubuntuization]] on how to cleanup your installation. 
-===== More installation HOWTOs ===== 
- 
-  * [[http://ac100.tunk.org/wiki/phh/|phh]] (ubuntu with kernel version 2.6.32, working suspend and headphones audio) 
-  * [[https://wiki.ubuntu.com/ARM/TEGRA/AC100|ubuntu]] (offical ubuntu page with install instructions for kernel version 2.6.38 and later. Automatic kernel updates through Oneiric repositories or PPA ((ppa:ac100/ppa)) for Natty. Status 2011/10/01, Ubuntu Oneiric Ocelot Beta 2 with kernel 2.6.38-1000-ac100: suspend works with Android 2.1 bootloader, audio working over headphones 
-  * [[http://wiki.debian.org/InstallingDebianOn/Toshiba/AC100|debian]] 
-  * [[fedora|Fedora]] 
-  * [[gentoo|Gentoo]] 
-  * [[ArchLinux]] - Status 2011/10/01: latest zram support. More in [[http://archlinuxarm.org/forum/viewtopic.php?f=27&t=1626 | this thread]]. 
-  * [[http://www.redsleeve.org/|RedSleeve Enterprise Linux (RSEL)]] soon-to-be-released RHEL6 port by [[http://www.altechnative.net/|Gordan Bobic]]. 
- 
-===== SOSBoot ===== 
- 
-[[sosboot|SOSBoot]] 
- 
- 
- 
- 
-====== New guide: Installing Linux on your AC100 ====== 
-^ :!: Before doing anything else, please, help yourself, help people who would like to help you: Make Backups !\\ [[backups|How to backup and restore your AC100]]^ 
  
-This guide is not complete yet. For now, follow the "old" guide above. 
  
 ===== Prerequisites ===== ===== Prerequisites =====
Line 120: Line 25:
  
  
-You may follow the dedicated [[ubuntu|Ubuntu]] installation guide, or keep reading, for general instructions.+You may follow the dedicated "quick" [[ubuntu|Ubuntu]] installation guide, or keep reading, for detailed instructions.
  
 === Arch Linux ARM === === Arch Linux ARM ===
Line 130: Line 35:
 Users of (regular/x86) Arch Linux will feel very much at home with ALARM; there isn't really any difference from user point of view. The vast majority of packages from x86 Arch repositories are available in ALARM's armv7h counterparts, and ABS and the AUR are fully at your service. Users of (regular/x86) Arch Linux will feel very much at home with ALARM; there isn't really any difference from user point of view. The vast majority of packages from x86 Arch repositories are available in ALARM's armv7h counterparts, and ABS and the AUR are fully at your service.
  
-You may follow the dedicated [[archlinux|Arch]] installation guide, or keep reading, for general instructions.+You may follow the dedicated "quick" [[archlinux|Arch]] installation guide, or keep reading, for detailed instructions.
  
 === Gentoo ===  === Gentoo === 
Line 152: Line 57:
 ===== Choice of kernel ===== ===== Choice of kernel =====
  
-Once you've settled for a distribution, you need to choose a Linux kernel adapted to the AC100. This is provided mainly by the [[https://gitorious.org/ac100/marvin24s-kernel/|marvin24s-kernel]] project on gitorious.org. Except for the case of Ubuntu (?), you will not find compiled kernel packages for the AC100 in the official distribution repositories.+Once you've settled for a distribution, you need to choose a Linux kernel adapted to the hardware platform of the AC100 . This is provided mainly by the [[https://gitorious.org/ac100/marvin24s-kernel/|marvin24s-kernel]] project on gitorious.org. Except for the case of Ubuntu (?), you will not find compiled kernel packages for the AC100 in the official distribution repositories.
  
 For a complete comparison of kernels for the AC100, along with their status and requirements, check [[kernels|kernels]]. Here's a condensed list of marvin24s-kernel branches: For a complete comparison of kernels for the AC100, along with their status and requirements, check [[kernels|kernels]]. Here's a condensed list of marvin24s-kernel branches:
Line 172: Line 77:
 ===== Bootloader and partition table ===== ===== Bootloader and partition table =====
  
-The stock bootloader (Fastboot) works only with the proprietary partition scheme (tegrapart) present on a stock AC100.+The stock bootloader (Fastboot) works only with the proprietary partition scheme (tegrapart) present on a stock AC100. TODO Correct this
  
 If your plan is to install Linux to the internal eMMC, please keep in mind that kernel support for tegrapart varies (see [[kernels|kernels]]). Generally, kernel versions > 3.1 do not have tegrapart support. At this point you need to decide whether to keep using tegrapart or to switch over ("upgrade") to a standard GPT partition scheme, which works with all kernels. If your plan is to install Linux to the internal eMMC, please keep in mind that kernel support for tegrapart varies (see [[kernels|kernels]]). Generally, kernel versions > 3.1 do not have tegrapart support. At this point you need to decide whether to keep using tegrapart or to switch over ("upgrade") to a standard GPT partition scheme, which works with all kernels.
Line 266: Line 171:
 === Step 4 === === Step 4 ===
  
-Create a new filesystem on the target root partition. If unsure, use ext4: TODO: This probably isn't possible.+Create a new filesystem on the target root partition. If unsure, use ext4 on /dev/mmcblk0p7
 <code> <code>
-sosboot # mkfs.ext4 $TARGET TODO: This probably isn't possible.+sosboot # export TARGET="/dev/mmcblk0p7"  
 +sosboot # mkfs.ext4 $TARGET 
 </code> </code>
-There are different choices of $TARGET depending on your setup:  
  
-== Fastboot case == 
- 
-  - Use the largest partition of the internal eMMC (usually /dev/mmcblk0p7):<code> 
-sosboot # export TARGET="/dev/mmcblk0p7" 
-sosboot # mkfs.ext4 $TARGET TODO: This isn't possible. 
-  </code> 
-  - Use an SD card\\ 
-(Instructions missing) TODO: Add this 
-  - Use a USB drive 
-  (Instructions missing) TODO: Add this 
-  - ... 
- 
- 
-== Uboot case == 
- 
-  * Use the largest partition of the internal eMMC (usually /dev/mmcblk0p7):<code> 
-  sosboot # export TARGET="/dev/mmcblk0p7" 
-  sosboot # mkfs.ext4 $TARGET TODO: This probably isn't possible. 
-  </code> 
-  * ... 
 === Step 5 === === Step 5 ===
  
Line 300: Line 185:
 sosboot # mount $TARGET /target sosboot # mount $TARGET /target
 sosboot # tar xvf /medium/rootfs.tar.gz -C /target sosboot # tar xvf /medium/rootfs.tar.gz -C /target
 +sosboot # umount /target
 </code> </code>
  
-For a rootfs package in the form of an image, just flash this image to $TARGET:+For a rootfs package in the form of an image, instead just flash this image to $TARGET:
  
 <code> <code>
Line 312: Line 198:
 Unmount the medium: Unmount the medium:
 <code> <code>
-sosboot # umount /dev/medium+sosboot # umount /medium
 </code> </code>
  
Line 337: Line 223:
 == Step 2 == == Step 2 ==
  
-In sosboot, mount the medium:+In sosboot, mount the medium again:
 <code> <code>
 sosboot # mount $MEDIUM /medium sosboot # mount $MEDIUM /medium
Line 354: Line 240:
 if you want the kernel on the "SOS" partition. if you want the kernel on the "SOS" partition.
  
 +Now unmount the medium:
 +<code>
 +sosboot # umount /medium
 +</code>
 +
 +, remove the drive and switch off your AC100. 
  
 +Installation complete.
  
 === Uboot ===  === Uboot === 
  
-If you installed Uboot, the kernel and initramfs images are loaded directly from an ext2/ext3/ext4 partition anywhere on the internal eMMC, an SD card or a USB device, or via a network connection.+If you installed Uboot, the kernel and initramfs images are loaded directly from an ext2/ext3/ext4 partition anywhere on the internal eMMC, an SD card or a USB device, or via a network connection. TODO fact?
  
  
Line 428: Line 321:
 == Step 6 == == Step 6 ==
  
-Finally check that the following files exist and are accessible to uboot:+Finallycheck that the following files exist and are accessible to uboot:
  
   # zImage [on an ext filesystem on eMMC, SD or USB drive]   # zImage [on an ext filesystem on eMMC, SD or USB drive]
Line 434: Line 327:
   # boot.scr [In /boot of an ext filesystem on the 1:st partition of eMMC/SD/USB   # boot.scr [In /boot of an ext filesystem on the 1:st partition of eMMC/SD/USB
      
-Then cd /, umount /mnt and switch off your AC100.+Then do
  
 +<code>
 +cd / 
 +</code>
 +<code>
 +umount /mnt 
 +</code>
 +
 +remove the drive and switch off your AC100. 
 +
 +Installation complete.
  
  
Line 468: Line 371:
 </code> </code>
  
-===== Problems =====+ 
 + 
 +===== Now what? ===== 
 + 
 +If everything went well, you will now be in the middle of a (more or less) basic Linux system running on your AC100.  
 + 
 +Well done. 
 + 
 +You may continue to "[[configure the system]]" to really get things going. 
 + 
 + 
 +===== Common problems =====
  
 Problems that can't be helped / corrected in the guide. Problems that can't be helped / corrected in the guide.
 E.g. E.g.
-  * "I gave away my AC100" A: Don't. +  * "I gave away my AC100" A: This has nothing to do with this guide! :D 
-  * "I forgot to create backups" A: Don't. +  * "I forgot to create backups" A: Don't. Don't!  
-  * "My AC100 doesn't hover with this kernel" A: That's a known bug+  * "My AC100 doesn't hover with this kernel" A: That's a known bug.
 etc. etc.
  
  
 /END OF GUIDE /END OF GUIDE
installing_linux.1385495982.txt.gz · Last modified: 2013/11/26 20:59 by salantrax