Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
howtos:hardware:arm:olinuxinoa10s [2013/11/07 05:47 (UTC)] – [Setup of development environment] balky | howtos:hardware:arm:olinuxinoa10s [2013/11/11 03:07 (UTC)] – [Installing the kernel, Slackware ARM 14.0 mini root filesystem, and kernel modules] balky |
---|
* 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> |
* 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> |
<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. |