buildrootschalter/board/cubietech/cubieboard
Andi Shyti 2257e36a57 cubieboard: mkcubiecard: use the right command for checking user privilege
On some shell environments the EUID variable, which checks the
user id, is not defined. Use `id -u` instead.

This patch mutes the following error:

./board/cubietech/cubieboard/mkcubiecard.sh: 31: [: -ne: unexpected operator

Signed-off-by: Andi Shyti <andi@etezian.org>
Reviewed-by: Arvid Picciani <aep@exys.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-12-03 12:17:20 +01:00
..
boot.cmd cubieboard: add support 2013-05-29 12:52:53 +02:00
linux-cubieboard2.config board: add cubieboard2 support 2013-09-19 00:28:25 +02:00
mkcubiecard.sh cubieboard: mkcubiecard: use the right command for checking user privilege 2013-12-03 12:17:20 +01:00
post-build.sh cubieboard: add support 2013-05-29 12:52:53 +02:00
readme.txt board: add cubieboard2 support 2013-09-19 00:28:25 +02:00

readme.txt

cubieboard and cubieboard2

-----
Intro
-----

To be able to use your cubieboard board with the images generated by
Buildroot you have to correctly setup the SD card.

For more information, please see http://linux-sunxi.org/FirstSteps

---------------
How to build it
---------------

You need to use the cubieboard_defconfig or cubieboard2_defconfig, to do so:
 * make cubieboard_defconfig
or
 * make cubieboard2_defconfig

And to compile:
 * make

-----------------
What is generated
-----------------

After building, you should obtain this tree:

    output/images/
    +-- rootfs.tar
    +-- boot.scr
    +-- script.bin
    +-- sunxi-spl.bin
    +-- u-boot.bin
    +-- u-boot-sunxi-with-spl.bin (optional)
    `-- uImage

--------------------------
How setting up the SD card
--------------------------

Depending on the rootfs size, you might want to use a 2GB or larger SD-card.
The script mkcubiecard.sh will take care of partitioning and formatting
the SD-card.

BEWARE! This process will erase your SD card.

Use dmesg to find out where the SD card is attached in the /dev tree
(<device>) and then:

# sudo ./mkcubiecard.sh <images_dir> <device>

where:
 - <images_dir> is the directory containing the generated files (usually
   output/images)
 - <device> is the device file of the SD card (usually /dev/sdX)



--
Carlo Caione <carlo.caione@gmail.com>