User Tools

Site Tools


tutorials:ct1:installation:install_lubuntu_desktop_server_to_sd_card

Differences

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

Link to this comparison view

tutorials:ct1:installation:install_lubuntu_desktop_server_to_sd_card [2013/11/05 16:11]
119.132.97.248 [Partitioning]
tutorials:ct1:installation:install_lubuntu_desktop_server_to_sd_card [2014/04/02 20:05] (current)
benn [Partitioning]
Line 1: Line 1:
-====== ​CT Lubuntu Desktop/​Server SD Card Installation ======+====== Lubuntu Desktop/​Server SD Card Installation ​for Cubietruck ​======
  
 <WRAP noprint><​WRAP left box 60%> <WRAP noprint><​WRAP left box 60%>
Line 13: Line 13:
      
 ===== Prerequisites =====  ​ ===== Prerequisites =====  ​
-   * Any Linux environment,​​ we want sfdisk, dd, wget commands  +   * Any Linux environment,​​ we want fdisk, dd, tar, wget commands
    * An SD Card(at least 2GB)      * An SD Card(at least 2GB)  
      
Line 29: Line 29:
  
  
-==== Cleaning ====+==== Cleaning ​SD Card ====
   $card=/​dev/​sdd   $card=/​dev/​sdd
   $sudo dd if=/​dev/​zero of=${card} bs=1024 seek=544 count=128   $sudo dd if=/​dev/​zero of=${card} bs=1024 seek=544 count=128
Line 39: Line 39:
 ==== Partitioning ==== ==== Partitioning ====
  
- $ sudo fdisk /dev/sdd +  ​$ sudo fdisk $card
-   +
-  Command (m for help): p +
-   +
-  Disk /dev/sdd: 7822 MB, 7822376960 bytes +
-  241 heads, 62 sectors/​track,​ 1022 cylinders, total 15278080 sectors +
-  Units = sectors of 1 * 512 = 512 bytes +
-  Sector size (logical/​physical):​ 512 bytes / 512 bytes +
-  I/O size (minimum/​optimal):​ 512 bytes / 512 bytes +
-  Disk identifier: 0x7b720c4c+
   ​   ​
 +
 +Using the fdisk command to create 2 partitions on the SD Card, e.g.
 +  * 1st partitions start from 2048 sectors, 64MB in size
 +  * 2nd partitions just keep it all default
 +
 +Show bellow
 +
    ​Device Boot      Start         ​End ​     Blocks ​  ​Id ​ System    ​Device Boot      Start         ​End ​     Blocks ​  ​Id ​ System
-  ​ +  ​/​dev/​sdd1 ​           ​2048      ​133119 ​      ​65536 ​  ​83  Linux 
-  Command (m for help): n +  ​/​dev/​sdd2 ​         ​133120 ​   15278079 ​    7572480 ​  ​83 ​ Linux 
-  Partition type: + 
-   ​p ​  ​primary (0 primary, 0 extended, 4 free) +Also we recommend you to look at [[http://linux-sunxi.org/​Bootable_SD_card |Bootable_SD_card]]
-   ​e ​  ​extended +
-  Select (default p): **p** +
-  Partition number (1-4, default 1): 1 +
-  First sector (2048-15278079, default 2048):  +
-  Using default value 2048 +
-  Last sector, +sectors or +size{K,​M,​G} (2048-15278079,​ default 15278079): +64M +
-  Command (m for help): n +
-   +
-  Partition type: +
-   ​p   ​primary (1 primary, 0 extended, 3 free) +
-   ​e ​  ​extended +
-  Select (default p): p +
-  ​Partition number (1-4, default 2):  +
-  Using default value 2 +
-  First sector (133120-15278079, default 133120):  +
-  Using default value 133120 +
-  Last sector, +sectors or +size{K,​M,​G} (133120-15278079,​ default 15278079): ​ +
-  Using default value 15278079 +
-   +
-  Command (m for help)+
-  The partition table has been altered! +
-   +
-  Calling ioctl() to re-read partition table. +
-  Syncing disks.+
  
  
Line 97: Line 71:
  
  
 +===== Customizing ( optional )====
 +
 +==== Change your own kernel ====
 +
 +
 +==== Move Rootfs to Hard Drive====
 +
 +  * Mount rootfs partitions
 +After login to lubuntu system on Cubietruck with linaro, ​
 +  $sudo su - root   ​-->​ change to root user
 +  #mkdir /tmp/1 /tmp/target
 +  #mount /​dev/​mmcblk0p2 /tmp/1
 +  #mkfs.ext4 /dev/sda1
 +  #mount /dev/sda1 /tmp/target
 +
 +  * Moving rootfs
 +
 +  #(cd /tmp/1; tar --backup -c *) |tar -C /tmp/target -xv
 +
 +  * Changing Kernel Parameters
 +
 +  #mount /​dev/​mmcblk0p1 /mnt/
 +  #vi /​mnt/​uEnv.txt
 +  (Change root=/​dev/​sda1)
 +
 +So the file's content would like bellow ​
 +
 +  cat /​mnt/​uEnv.txt
 +  root=/​dev/​sda1
 +  extraargs=console=tty0 hdmi.audio=EDID:​0 disp.screen0_output_mode=EDID:​1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard
 +
 +  * Sync to disk, and reboot to your hard drive
 +
 +  #sync
 +  #umount /mnt
 +  #reboot
 +
 +After installing rootfs to SSD, we will get much more better experience. ​
 +
 +  * Performance (R:106MB/s, W: 148MB/s)
 +
 +  root@cubietruck:​~#​ cat /​sys/​block/​sda/​device/​model ​
 +  SAMSUNG SSD 830
 +
 +  root@cubietruck:​~#​ dd if=/​dev/​sda2 of=/​dev/​null bs=1M count=10000
 +  10000+0 records in
 +  10000+0 records out
 +  10485760000 bytes (10 GB) copied, 98.9637 s, 106 MB/s
 +
 +  root@cubietruck:​~#​ dd if=/​dev/​zero of=/​dev/​sdb2 bs=1M count=5000
 +  dd: writing `/​dev/​sdb2':​ No space left on device
 +  913+0 records in
 +  912+0 records out
 +  956919808 bytes (957 MB) copied, 6.45456 s, 148 MB/s
  
 ===== Tips ===== ===== Tips =====
Line 109: Line 137:
  
  
-====Kernel====+====Kernel ​Source====
   * http://​github.com/​cubieboard/​linux-sunxi (cubie/​sunxi-3.4 branch)   * http://​github.com/​cubieboard/​linux-sunxi (cubie/​sunxi-3.4 branch)
  
-====Wifi====+====Wifi ​Module==== 
 + 
 +Cubietruck have AP6210 wifi/bt module combo on board, to load the module,
  
   #modprobe bcmdhd   #modprobe bcmdhd
 +
 +====Default User/​Password====
 +  linaro/​linaro
 +
  
  
  
tutorials/ct1/installation/install_lubuntu_desktop_server_to_sd_card.1383639108.txt.gz · Last modified: 2013/12/23 14:50 (external edit)