[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.
no way to compare when less than two revisions
Diferencias
Muestra las diferencias entre dos versiones de la página.
— | es:howtos:hardware:arm:olinuxinoa10s [2019/03/17 23:38 (UTC)] (actual) – creado rramp | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
+ | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
+ | ====== Setting up Slackware ARM 14.0 on the OLinuXino A10S Micro from scratch ====== | ||
+ | This document can also be found at [[http:// | ||
+ | |||
+ | NOTE: The documentation below needs updating. I recommend that you use the link I've just given above as it leads to updated documentation. I'll have the text below updated when time permits. | ||
+ | |||
+ | ====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. | ||
+ | * Download the Net Install ISO image for Debian 7.2.0 i386. Boot the mentioned ISO in the VirtualBox VM you've created. I used the " | ||
+ | * This set of instructions will work with everything deselected under " | ||
+ | * After the installation, | ||
+ | * As root in your guest OS: | ||
+ | < | ||
+ | # apt-get upgrade</ | ||
+ | * 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: | ||
+ | < | ||
+ | * As root in your guest OS: | ||
+ | < | ||
+ | # cd ~ | ||
+ | # wget https:// | ||
+ | # tar xjfv gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux.tar.bz2</ | ||
+ | * Add toolchain directory to $PATH in your guest OS(You may want to add this to / | ||
+ | < | ||
+ | * Restart your guest OS as root: | ||
+ | < | ||
+ | ====Compiling the kernel (Copied from http:// | ||
+ | * In the development environment you've made above, login as root. Then get the kernel source code: | ||
+ | < | ||
+ | # git clone https:// | ||
+ | * Note that I'm using the revision below: | ||
+ | < | ||
+ | # git rev-parse --verify HEAD | ||
+ | 9ee9fc5f0988df5677f0f142b5b88a8988d283d7</ | ||
+ | So, to checkout the mentioned revision: | ||
+ | < | ||
+ | # git checkout 9ee9fc5f0988df5677f0f142b5b88a8988d283d7</ | ||
+ | * Do a "make clean": | ||
+ | < | ||
+ | # make clean</ | ||
+ | * Download a10s_defconfig: | ||
+ | < | ||
+ | # wget http:// | ||
+ | * Move this file to ~/ | ||
+ | < | ||
+ | * Execute the following under the linux-sunxi directory in your development environment as root: | ||
+ | < | ||
+ | # make ARCH=arm a10s_defconfig</ | ||
+ | * Configure the kernel in your development environment as root: | ||
+ | < | ||
+ | * HINT: If you're having problems with Logitech wireless keyboards and mice, don't build the following (for Linux 3.4.61): | ||
+ | * Device Drivers-> | ||
+ | * HINT: To verify OTG is enabled(for Linux 3.4.61): | ||
+ | * Under Kernel Configuration, | ||
+ | * Device Drivers-> | ||
+ | * Also, this must be built in the kernel, too: | ||
+ | * Device Drivers-> | ||
+ | * And make sure of the following: | ||
+ | * Device Drivers-> | ||
+ | * HINT: To verify Ethernet is enabled(for Linux 3.4.61): | ||
+ | * Under Kernel Configuration, | ||
+ | * Device Drivers-> | ||
+ | * Note that before compiling kernel, you have to patch it: | ||
+ | * Download the patch hcd_axp-md.patch from http:// | ||
+ | < | ||
+ | # wget http:// | ||
+ | * Copy files: | ||
+ | < | ||
+ | # cp drivers/ | ||
+ | * Apply the patch: | ||
+ | < | ||
+ | * Copy a file again: | ||
+ | < | ||
+ | * Edit ~/ | ||
+ | < | ||
+ | #define I2C1_TRANSFER_SPEED (100000) | ||
+ | #define I2C2_TRANSFER_SPEED (100000) | ||
+ | #define I2C3_TRANSFER_SPEED (100000) | ||
+ | #define I2C4_TRANSFER_SPEED (100000)</ | ||
+ | * You can now compile the kernel and its modules in your development environment as root. | ||
+ | < | ||
+ | # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 uImage | ||
+ | # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 INSTALL_MOD_PATH=out modules | ||
+ | # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 INSTALL_MOD_PATH=out modules_install</ | ||
+ | * In your development environment, | ||
+ | ====Compiling Uboot (Copied from http:// | ||
+ | * Note: The Allwinner Linux-Sunxi community uboot is maintained by Henrik Nordstrom aka hno on Freenode irc. You can find him in # | ||
+ | * Download the uboot sources from GitHub repository. | ||
+ | < | ||
+ | # git clone https:// | ||
+ | * After the download, you should have a new directory. | ||
+ | < | ||
+ | * Note that I'm using the revision below: | ||
+ | < | ||
+ | 8a4621c488f33089d831168bfa5bae210a5684c8</ | ||
+ | * Edit ~/ | ||
+ | < | ||
+ | "if test -z \\\\\" | ||
+ | " if test \\\\\" | ||
+ | " root=\"/ | ||
+ | " else" \ | ||
+ | " root=\"/ | ||
+ | " fi;"\ | ||
+ | " fi;" | ||
+ | * Change " root=\"/ | ||
+ | * " root=\"/ | ||
+ | * With the following command, you can start the uboot build: | ||
+ | < | ||
+ | # make distclean CROSS_COMPILE=arm-linux-gnueabihf- | ||
+ | # make a10s-olinuxino-m CROSS_COMPILE=arm-linux-gnueabihf-</ | ||
+ | * At the end of the process, you can check if everything is OK by: | ||
+ | |||
+ | < | ||
+ | * If you got this file, well done so far. | ||
+ | ====Format and setup the SD-card (Copied from http:// | ||
+ | * We suggest that you use a 4GB class 10 micro SD card. But you can use any micro SD card between 2GB and 16GB. | ||
+ | * First, we have to make the correct card partitions. This is done with fdisk. | ||
+ | * Plug the micro SD card into your SD card reader. Then, enter in the terminal: | ||
+ | < | ||
+ | * Then press TAB twice. You will see a list of your sd devices like sda, sdb, sdc, etc. Note that some of these devices may be your hard disk, so make sure you know which one is your micro SD card before you proceed. You can damage your HDD if you choose the wrong sd device. You can do this by unplugging your micro SD card reader, and identify which ?sd? devices was removed from the list. | ||
+ | * Once you know which device is your micro SD card, use this text instead of the sdX name in the references below: | ||
+ | < | ||
+ | * Then do these steps: | ||
+ | * This will list your partitions: | ||
+ | * p | ||
+ | * If there are already partitions on your card, do: | ||
+ | * d 1 | ||
+ | * If you have more than one partitition, | ||
+ | * Create the first partition. It should start from 2048 and end at 34815: | ||
+ | * n p 1 | ||
+ | * Create the second partition: | ||
+ | * n p 2 enter enter | ||
+ | * List the created partitions: | ||
+ | * p | ||
+ | * If you did everything correctly on a 4GB card, you should see something like: | ||
+ | < | ||
+ | 123 heads, 62 sectors/ | ||
+ | Units = sectors of 1 * 512 = 512 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | Disk identifier: 0x00000000 | ||
+ | |||
+ | Device Boot Start End Blocks Id System | ||
+ | /dev/sdg1 2048 34815 16384 83 Linux | ||
+ | /dev/sdg2 34816 7774207 3869696 83 Linux</ | ||
+ | |||
+ | * Write changes to the micro SD card. | ||
+ | * w | ||
+ | * Now, we have to format the file system on the card: | ||
+ | * The first partition should be vfat as this is the FS which the Allwinner bootloader understands. | ||
+ | < | ||
+ | * The second partition should be a normal Linux EXT4 FS: | ||
+ | < | ||
+ | ====Installing the kernel, Slackware ARM 14.0 mini root filesystem, and kernel modules==== | ||
+ | * Proceed to copy the " | ||
+ | * Mount the first partition: | ||
+ | < | ||
+ | # mount /dev/sdX1 / | ||
+ | * Then copy the kernel uImage to the first filesystem of the micro SD card. | ||
+ | < | ||
+ | * Copy the script.bin file in / | ||
+ | * Or iff you need to compile your own script.bin, you can get the fex files here in a scripts_A10s.7z archive: https:// | ||
+ | * Unmount / | ||
+ | < | ||
+ | * Mount the second partition: | ||
+ | < | ||
+ | # mount /dev/sdX2 / | ||
+ | * Extract the Slackware ARM 14.0 mini root filesystem in / | ||
+ | * Delete all contents of / | ||
+ | * Extract this file in / | ||
+ | * Proceed to copy the generated kernel modules (" | ||
+ | * If the / | ||
+ | < | ||
+ | # cp -rf 3.x.xx+ / | ||
+ | * Append the following in / | ||
+ | < | ||
+ | * Unmount / | ||
+ | < | ||
+ | ====Write Uboot (Copied from http:// | ||
+ | * Note that you have to write u-boot-sunxi-with-spl.bin in /dev/sdX (not sdX1 or sdX2). | ||
+ | < | ||
+ | # sync</ | ||
+ | ====NB: When you boot OLinuXino using the micro SD card with Slackware 14.0 for ARM, the " | ||
+ | ====== Sources ====== | ||
+ | <!-- If you are copying information from another source, then specify that source --> | ||
+ | * Original source: [[http:// | ||
+ | * Original source: [[https:// | ||
+ | * Original source: [[http:// | ||
+ | <!-- Authors are allowed to give credit to themselves! --> | ||
+ | * Originally written by [[wiki: | ||
+ | <!-- * Contributions by [[wiki: | ||
+ | |||
+ | <!-- Please do not modify anything below, except adding new tags.--> | ||
+ | <!-- You must remove the tag-word " | ||
+ | {{tag> |