Skip to content

Commit

Permalink
Merge pull request #37 from Ippo343/patch-1
Browse files Browse the repository at this point in the history
Fixes raw downloads
  • Loading branch information
DanKoloff committed Apr 21, 2016
2 parents 5a9b0dd + a4beaf1 commit 538bd84
Showing 1 changed file with 13 additions and 13 deletions.
Expand Up @@ -4,7 +4,7 @@ How to make a bootable SD card for Olimex's A20-SOM, A20-OLinuXino-MICRO, A20-OL

1. Setup of the toolchain
-------------------------
You should make sure that you have the tools needed for building the Linux Kernel. You'd have to install them if you dont have them already installed. To install new software you should be logged to a user with super user rights on your Linux machine. Type in the terminal:
You should make sure that you have the tools needed for building the Linux Kernel. You'd have to install them if you dont have them already installed. To install new software you should be logged to a user with super user rights on your Linux machine. Type in the terminal:

$ sudo su

Expand Down Expand Up @@ -40,7 +40,7 @@ First let's make the directory where we would build the A20 Linux:
# mkdir a20-olimex
# cd a20-olimex

Then lets download the mainline uboot sources from GitHub repository
Then lets download the mainline uboot sources from GitHub repository

git clone git://git.denx.de/u-boot.git

Expand Down Expand Up @@ -182,7 +182,7 @@ After the download go to the kernel directory:

3.3 configure the system

Here you need from a20 configuration file A20-linux-3.4.103_defconfig . The file contains all kernel module settings.
Here you need from a20 configuration file A20-linux-3.4.103_defconfig . The file contains all kernel module settings.

Download A20-linux-3.4.103_defconfig using wget command

Expand Down Expand Up @@ -221,7 +221,7 @@ Now you can continue with kernel image compiling

# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 uImage

when this finishs you will have uImage ready and the result should be:
when this finishs you will have uImage ready and the result should be:

LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Expand Down Expand Up @@ -325,7 +325,7 @@ Note that you have to write u-boot-sunxi-with-spl.bin in /dev/sdX (not sdX1 or s

Type:

# dd if=u-boot-sunxi/u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
# dd if=u-boot/u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8

6. Write kernel uImage you build to the SD-card
-----------------------------------------------
Expand All @@ -344,31 +344,31 @@ script.bin is a file with very important configuration parameters like port GPIO
According to the A20 board you use you have to download and write different script.bin file.

7.1.1 for A20-OLinuXino_Lime2 board with NAND support download the script.bin file using wget command
# wget https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20_Lime2_NAND_rel_2/script.bin
# wget -O script.bin https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20_Lime2_NAND_rel_2/script.bin?raw=true

7.1.2 for A20-OLinuXino_Lime2 board with EMMC support download the script.bin file using wget command
# wget https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20_lime2_emmc/script.bin
# wget -O script.bin https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20_lime2_emmc/script.bin?raw=true

7.2 for A20-SOM board download the script.bin file using wget command
# wget https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20-SOM_rel_3/script_a20_SOM_HDMI_720p50/script.bin
# wget -O script.bin https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20-SOM_rel_3/script_a20_SOM_HDMI_720p50/script.bin?raw=true

7.3 for A20-OLinuXino-MICRO board download the script.bin file using wget command
# wget https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20_OLinuXino-micro_rel_10/script.bin
# wget -O script.bin https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20_OLinuXino-micro_rel_10/script.bin?raw=true

7.4 for A20-OLinuXino-LIME board download the script.bin file using wget command
# wget https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20_lime_rel_3/script.bin
# wget -O script.bin https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/scripts/script_a20_lime_rel_3/script.bin?raw=true

then copy the downloaded script.bin file to the mounted first partition of the SD card
# cp script.bin /mnt/sd

Download boot.scr and uEnv.txt files

#wget https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/boot.scr
#wget https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/uEnv.txt
#wget -O boot.scr https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/boot.scr?raw=true
#wget -O uEnv.txt https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/uEnv.txt?raw=true

You have to copy in first sd card partition where script.bin file is located
# cp boot.scr /mnt/sd
# cp uEnv.txt.bin /mnt/sd
# cp uEnv.txt /mnt/sd
# sync
# umount /dev/sdX1

Expand Down

0 comments on commit 538bd84

Please sign in to comment.