installing_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
installing_linux [2013/11/26 20:54] – salantrax | installing_linux [2013/11/29 00:27] – salantrax | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | + | ====== Installing Linux on your AC100 ====== | |
- | TODO | + | |
- | + | ||
- | ====== | + | |
- | {{: | + | |
^ :!: 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:// | ||
- | 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:// | ||
- | * Start AC100 into developer mode (CTRL + ESC + POWER). | ||
- | * nvflash -r --download 6 boot-installer-2.6.37-1-ac100.img | ||
- | * Download [[http:// | ||
- | * 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' | ||
- | * 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:// | ||
- | |||
- | Install instructions can be found here: | ||
- | https:// | ||
- | |||
- | Note on suspend: | ||
- | It works out of box if you're running Android 2.1 bootloader, otherwise you'll need either revert to [[https:// | ||
- | - remove lp0_vec option from cmdparam line in / | ||
- | - < | ||
- | - execute sudo [[abootimg]] -u / | ||
- | |||
- | Examples: | ||
- | <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: | ||
- | </ | ||
- | <file txt aboot-update.sh > | ||
- | sudo abootimg -u / | ||
- | </ | ||
- | |||
- | |||
- | linux-ac100 package is provided in Oneiric repositories, | ||
- | |||
- | Continue installing properitary video driver (see L4T drivers [[http:// | ||
- | |||
- | 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/ | ||
- | |||
- | See [[ubuntu_deubuntuization]] on how to cleanup your installation. | ||
- | ===== More installation HOWTOs ===== | ||
- | |||
- | * [[http:// | ||
- | * [[https:// | ||
- | * [[http:// | ||
- | * [[fedora|Fedora]] | ||
- | * [[gentoo|Gentoo]] | ||
- | * [[ArchLinux]] - Status 2011/10/01: latest zram support. More in [[http:// | ||
- | * [[http:// | ||
- | |||
- | ===== 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 " | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
Line 120: | Line 25: | ||
- | You may follow the dedicated [[ubuntu|Ubuntu]] installation guide, or keep reading, for general | + | You may follow the dedicated |
=== Arch Linux ARM === | === Arch Linux ARM === | ||
Line 130: | Line 35: | ||
Users of (regular/ | Users of (regular/ | ||
- | You may follow the dedicated [[archlinux|Arch]] installation guide, or keep reading, for general | + | You may follow the dedicated |
=== Gentoo === | === Gentoo === | ||
Line 152: | Line 57: | ||
===== Choice of kernel ===== | ===== Choice of kernel ===== | ||
- | Once you've settled for a distribution, | + | Once you've settled for a distribution, |
For a complete comparison of kernels for the AC100, along with their status and requirements, | For a complete comparison of kernels for the AC100, along with their status and requirements, | ||
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 / |
< | < | ||
- | sosboot # mkfs.ext4 $TARGET | + | sosboot # export TARGET="/ |
+ | sosboot # mkfs.ext4 $TARGET | ||
</ | </ | ||
- | There are different choices of $TARGET depending on your setup: | ||
- | == Fastboot case == | ||
- | |||
- | - Use the largest partition of the internal eMMC (usually / | ||
- | sosboot # export TARGET="/ | ||
- | sosboot # mkfs.ext4 $TARGET TODO: This isn't possible. | ||
- | </ | ||
- | - 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 / | ||
- | sosboot # export TARGET="/ | ||
- | sosboot # mkfs.ext4 $TARGET TODO: This probably isn't possible. | ||
- | </ | ||
- | * ... | ||
=== Step 5 === | === Step 5 === | ||
Line 300: | Line 185: | ||
sosboot # mount $TARGET /target | sosboot # mount $TARGET /target | ||
sosboot # tar xvf / | sosboot # tar xvf / | ||
+ | sosboot # umount /target | ||
</ | </ | ||
- | 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, |
< | < | ||
Line 312: | Line 198: | ||
Unmount the medium: | Unmount the medium: | ||
< | < | ||
- | sosboot # umount | + | sosboot # umount /medium |
</ | </ | ||
Line 321: | Line 207: | ||
Once you're in your new system, you may compile a different kernel - natively - on your AC100 and deploy this in place of the precompiled one. | Once you're in your new system, you may compile a different kernel - natively - on your AC100 and deploy this in place of the precompiled one. | ||
- | You may also cross-compile a kernel from sources (see kernels# | + | You may also compile or cross-compile a kernel from sources (see kernels# |
Line 337: | Line 223: | ||
== Step 2 == | == Step 2 == | ||
- | In sosboot, mount the medium: | + | In sosboot, mount the medium |
< | < | ||
sosboot # mount $MEDIUM /medium | sosboot # mount $MEDIUM /medium | ||
Line 354: | Line 240: | ||
if you want the kernel on the " | if you want the kernel on the " | ||
+ | Now unmount the medium: | ||
+ | < | ||
+ | sosboot # umount /medium | ||
+ | </ | ||
+ | |||
+ | , 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/ | + | If you installed Uboot, the kernel and initramfs images are loaded directly from an ext2/ |
Line 428: | Line 321: | ||
== Step 6 == | == Step 6 == | ||
- | Finally check that the following files exist and are accessible to uboot: | + | Finally, check 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 |
+ | < | ||
+ | cd / | ||
+ | </ | ||
+ | < | ||
+ | umount /mnt | ||
+ | </ | ||
+ | |||
+ | remove the drive and switch off your AC100. | ||
+ | |||
+ | Installation complete. | ||
Line 461: | Line 364: | ||
If the boot script fails to execute, you should be presented with a uboot shell. You may use this to manually set the kernel parameters, load the kernel and boot. This procedure is illustrated with an example: Load a kernel located on an ext4 filesystem on the " | If the boot script fails to execute, you should be presented with a uboot shell. You may use this to manually set the kernel parameters, load the kernel and boot. This procedure is illustrated with an example: Load a kernel located on an ext4 filesystem on the " | ||
- | Uboot PAZ00 # setenv bootargs | + | < |
- | Uboot PAZ00 # ext2load mmc 0:1 0x1000000 / | + | PAZ00 # setenv bootargs |
- | Uboot PAZ00 # ext2load mmc 0:1 0x2000000 / | + | PAZ00 # ext2load mmc 0:1 0x1000000 / |
- | Uboot PAZ00 # bootz 0x1000000 0x2000000 | + | PAZ00 # ext2load mmc 0:1 0x2000000 / |
+ | PAZ00 # bootz 0x1000000 0x2000000 | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== 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 " | ||
- | ===== Problems | + | ===== 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" | + | * "I forgot to create backups" |
- | * "My AC100 doesn' | + | * "My AC100 doesn' |
etc. | etc. | ||
/END OF GUIDE | /END OF GUIDE |
installing_linux.txt · Last modified: 2013/11/29 00:29 by salantrax