[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

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
Next revisionBoth sides next revision
howtos:hardware:arm:olinuxinoa10s [2013/11/07 05:43 (UTC)] – [Write Uboot (Copied from http://olimex.wordpress.com/2013/06/19/building-linux-for-a10s-from-scratch/ and http://olimex.wordpress.com/2013/10/28/building-debian-sd-card-for-linux-with-kernel-3-4-from-scratch-for-a10s-olinuxino-micro/ with some modificati balkyhowtos:hardware:arm:olinuxinoa10s [2013/11/12 10:09 (UTC)] – [Compiling the kernel (Copied from http://olimex.wordpress.com/2013/06/19/building-linux-for-a10s-from-scratch/ and http://olimex.wordpress.com/2013/10/28/building-debian-sd-card-for-linux-with-kernel-3-4-from-scratch-for-a10s-olinuxino-micro/ with some m balky
Line 3: Line 3:
  
 This document can also be found at [[http://www.malaya-digital.org/setting-up-slackware-arm-14-0-on-the-olinuxino-a10s-from-scratch/]] This document can also be found at [[http://www.malaya-digital.org/setting-up-slackware-arm-14-0-on-the-olinuxino-a10s-from-scratch/]]
- 
-NOTE: Please use the aforementioned link for the latest documentation. The documentation below is dated. I will update the documentation below when time allows. 
 ====Setup of development environment==== ====Setup of development environment====
   * Create a VirtualBox VM for Debian 7.2.0 i386. I allocated 1024MB of RAM to it. As for the virtual hard drive space, I allocated 8GB. I also recommend that you disable audio support for the VM.   * Create a VirtualBox VM for Debian 7.2.0 i386. I allocated 1024MB of RAM to it. As for the virtual hard drive space, I allocated 8GB. I also recommend that you disable audio support for the VM.
Line 15: Line 13:
   * Install OpenSSH client and server software as root in your guest OS if this will make file transfers and access to your development environment convenient for you:   * Install OpenSSH client and server software as root in your guest OS if this will make file transfers and access to your development environment convenient for you:
 <code># apt-get install openssh-client openssh-server</code> <code># apt-get install openssh-client openssh-server</code>
-   * As root in your guest OS:+  * As root in your guest OS:
 <code># apt-get install ncurses-dev uboot-mkimage build-essential git <code># apt-get install ncurses-dev uboot-mkimage build-essential git
 # cd ~ # cd ~
Line 35: Line 33:
 <code># cd ~/linux-sunxi/ <code># cd ~/linux-sunxi/
 # git checkout 9ee9fc5f0988df5677f0f142b5b88a8988d283d7</code> # git checkout 9ee9fc5f0988df5677f0f142b5b88a8988d283d7</code>
 +  * Do a "make clean":
 +<code># cd ~/linux-sunxi
 +# make clean</code>
   * Download a10s_defconfig:   * Download a10s_defconfig:
 <code># cd ~/linux-sunxi <code># cd ~/linux-sunxi
Line 59: Line 60:
         * Device Drivers->Network device support->Ethernet driver support-><*> Allwinner Ethernet MAC support         * Device Drivers->Network device support->Ethernet driver support-><*> Allwinner Ethernet MAC support
   * Note that before compiling kernel, you have to patch it:   * Note that before compiling kernel, you have to patch it:
-    * Download the patch hcd_axp-md.patch from <a href="http://www.malaya-digital.org/hcd_axp-md.patch">http://www.malaya-digital.org/hcd_axp-md.patch</a>:+    * Download the patch hcd_axp-md.patch from http://www.malaya-digital.org/hcd_axp-md.patch :
 <code># cd ~/linux-sunxi/ <code># cd ~/linux-sunxi/
 # wget http://www.malaya-digital.org/hcd_axp-md.patch</code> # wget http://www.malaya-digital.org/hcd_axp-md.patch</code>
Line 156: Line 157:
     * Then copy the kernel uImage to the first filesystem of the micro SD card.     * Then copy the kernel uImage to the first filesystem of the micro SD card.
 <code># cp uImage /mnt/olinuxino0 # Get the uImage file from the environment you've compiled the kernel.</code> <code># cp uImage /mnt/olinuxino0 # Get the uImage file from the environment you've compiled the kernel.</code>
-  * Copy the script.bin file in /mnt/olinuxino0 . The mentioned file can be found here: <a href="https://drive.google.com/file/d/0B-bAEPML8fwlYkItdU1TTm1VN0E/edit?usp=sharing">https://drive.google.com/file/d/0B-bAEPML8fwlYkItdU1TTm1VN0E/edit?usp=sharing</a> +  * Copy the script.bin file in /mnt/olinuxino0 . The mentioned file can be found here: https://drive.google.com/file/d/0B-bAEPML8fwlYkItdU1TTm1VN0E/edit?usp=sharing 
-    * Or iff you need to compile your own script.bin, you can get the fex files here in a scripts_A10s.7z archive: <a href="https://drive.google.com/file/d/0B-bAEPML8fwlY3llVDJxelY3d28/edit?usp=sharing">https://drive.google.com/file/d/0B-bAEPML8fwlY3llVDJxelY3d28/edit?usp=sharing</a>+    * Or iff you need to compile your own script.bin, you can get the fex files here in a scripts_A10s.7z archive: https://drive.google.com/file/d/0B-bAEPML8fwlY3llVDJxelY3d28/edit?usp=sharing
   * Unmount /mnt/olinuxino0 :   * Unmount /mnt/olinuxino0 :
 <code># umount /mnt/olinuxino0</code> <code># umount /mnt/olinuxino0</code>
Line 163: Line 164:
 <code># mkdir /mnt/olinuxino1 <code># mkdir /mnt/olinuxino1
 # mount /dev/sdX2 /mnt/olinuxino1 # Substitute the appropriate value for X in /dev/sdX1</code> # mount /dev/sdX2 /mnt/olinuxino1 # Substitute the appropriate value for X in /dev/sdX1</code>
-  * Extract the Slackware ARM 14.0 mini root filesystem in /mnt/olinuxino1 . Slackware mini root filesystem can be found here: <a href="ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/roots">ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/roots</a>+  * Extract the Slackware ARM 14.0 mini root filesystem in /mnt/olinuxino1 . Slackware mini root filesystem can be found here: ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/roots
   * Delete all contents of /mnt/olinuxino1/dev/*   * Delete all contents of /mnt/olinuxino1/dev/*
-  * Extract this file in /mnt/olinuxino1/dev : <a href="http://www.malaya-digital.org/dev.tar.gz">http://www.malaya-digital.org/dev.tar.gz</a>+  * Extract this file in /mnt/olinuxino1/dev : http://www.malaya-digital.org/dev.tar.gz
   * Proceed to copy the generated kernel modules ("~/linux-sunxi/out/lib/modules/3.x.xx" in the development environment where you've compiled the kernel) in the second filesystem of the micro SD card.   * Proceed to copy the generated kernel modules ("~/linux-sunxi/out/lib/modules/3.x.xx" in the development environment where you've compiled the kernel) in the second filesystem of the micro SD card.
     * If the /mnt/olinuxino1/lib/modules directory does not exist, create it.     * If the /mnt/olinuxino1/lib/modules directory does not exist, create it.
Line 183: Line 184:
   * Original source: [[http://olimex.wordpress.com/2013/06/19/building-linux-for-a10s-from-scratch/]]   * Original source: [[http://olimex.wordpress.com/2013/06/19/building-linux-for-a10s-from-scratch/]]
   * Original source: [[https://github.com/linux-sunxi/u-boot-sunxi/wiki]]   * Original source: [[https://github.com/linux-sunxi/u-boot-sunxi/wiki]]
 +  * Original source: [[http://olimex.wordpress.com/2013/10/28/building-debian-sd-card-for-linux-with-kernel-3-4-from-scratch-for-a10s-olinuxino-micro/]]
 <!-- Authors are allowed to give credit to themselves! --> <!-- Authors are allowed to give credit to themselves! -->
   * Originally written by [[wiki:user:balky | Michael Balcos]]   * Originally written by [[wiki:user:balky | Michael Balcos]]
 howtos:hardware:arm:olinuxinoa10s ()