#

#

  • AllWinnerTech SOC A20,ARM® Cortex™-A7 Dual-Core ARM® Mali400 MP2 Complies with OpenGL ES 2.0/1.1
  • 1GB DDR3 @480M
  • 3.4GB internal NAND flash, up to 64GB on SD slot, up to 2T on 2.5 SATA disk
  • 5VDC input 2A or USB otg input
  • 1x 10/100 ethernet, support usb wifi
  • 2x USB 2.0 HOST, 1x mini USB 2.0 OTG, 1x micro sd
  • 1x HDMI 1080P display output
  • 1x IR, 1x line in, 1x line out
  • 96 extend pin interface, including I2C, SPI, RGB/LVDS, CSI/TS, FM-IN, ADC, CVBS, VGA, SPDIF-OUT, R-TP, and more

#

gpio_defination_large.jpg?700

#

#

  • Host PC ejecutando Slackware 14.1 con multi-lib habilitado
  • Toolchain arm-none-linux-gnueabi CodeSourcery arm-2012.03 (GCC 4.6)
  • Cubieboard2 esta conectado a la PC via UART SRS-232 convertidor USB
  • Todos los comandos se ejecutan como root

#

  • Tarjeta mSD de 1GB para instalación de mini-root
  • Tarjeta mSD de >8GB para instalación de distro completa

#

  • git clone https://github.com/linux-sunxi/u-boot-sunxi.git
  • git clone https://github.com/linux-sunxi/linux-sunxi.git
  • git clone https://github.com/linux-sunxi/sunxi-tools.git
  • git clone https://github.com/linux-sunxi/sunxi-boards.git
  • wget ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/roots/slack-14.1-miniroot_04Nov13.tar.xz

mkdir rootfs cd rootfs export ROOTFS=$(pwd) tar xvJf slack-14.1-miniroot_04Nov13.tar.xz cd $ROOTFS/.. wget http://sourcery.mentor.com/public/gnu_toolchain/arm-none-linux-gnueabi/arm-2012.03-57-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 tar xvjf arm-2012.03-57-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 export PATH=$ROOTFS/../arm-2012.03/bin:$PATH cd $ROOTFS/../sunxi-tools make CROSS_COMPILE=arm-none-linux-gnueabi- clean make CROSS_COMPILE=arm-none-linux-gnueabi- cd $ROOTFS/../u-boot-sunxi git checkout sunxi make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- distclean make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- Cubieboard2_config make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j4 cd tools export PATH=$(pwd):$PATH cd $ROOTFS/../linux-sunxi make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- distclean make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- sun7i_defconfig make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j4 uImage make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j4 modules make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j4 INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$ROOTFS modules_install cp $ROOTFS/../linux-sunxi/arch/arm/boot/uImage $ROOTFS/boot cp $ROOTFS/../linux-sunxi/.config $ROOTFS/boot/uImage.config cp $ROOTFS/../sunxi-boards/sys_config/a20/cubieboard2.fex $ROOTFS/boot $ROOTFS/../sunxi-tools/fex2bin cubieboard2.fex script.bin cp $ROOTFS/../../scripts/boot.cmd . cp $ROOTFS/../../scripts/uEnv.txt . mkimage -C none -A arm -T script -d $ROOTFS/boot/boot.cmd $ROOTFS/boot/boot.scr dd if=/dev/zero of=/dev/sdb bs=1M count=1 dd if=$ROOTFS/../u-boot-sunxi/u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8 sync fdisk /deb/sdb sync mkfs.ext4 /dev/sdb1 mount /dev/sdb1 /mnt vi $ROOTFS/etc/fstab cp -a $ROOTFS/* /mnt

#

SD Card Layout start size usage 0 8KB Unused, available for partition table etc. 8 24KB Initial SPL loader 32 512KB u-boot 544 128KB environment 672 352KB reserved 1024 - Free for partitions

#

  • [[http://linux-sunxi.org/Cubieboard]]
  • [[http://linux-sunxi.org/FirstSteps Linux Sunxi First Steps]]
  • [[http://linux-sunxi.org/Toolchain Linux Sunxi Toolchain]]
  • [[http://linux-sunxi.org/U-Boot UBoot]]
  • [[http://linux-sunxi.org/Installing_to_NAND Installing to NAND]]
  • [[http://linux-sunxi.org/A20/PIO Programable pins]]
  • [[http://linux-sunxi.org/Cubieboard/ExpansionPorts GPIO pinout]]
  • [[http://elinux.org/Interfacing_with_I2C_Devices I2C Interface]]
  • [[http://linux-sunxi.org/Fex_Guide Fex guide]]
  • [[https://sourcery.mentor.com/sgpp/lite/ia32/portal/kbentry62]]
  • [[http://wiringpi.com/ Biblioteca GPIO c y Python]]
  • [[https://wiki.freebsd.org/FreeBSD/arm/Cubieboard]]

Librería para GPIO en C (y Python)

Compilar: sudo gcc -o test test.c -lwiringPi -lpthread

  • AllWinnerTech SOC A20 ARM® Cortex™-A7 Dual-Core ARM® Mali400 MP2 Complies with OpenGL ES 2.0/1.1
  • 1GB/2GB DDR3@480MHz
  • HDMI&VGA 1080P display output on-board
  • 10M/100M/1G Ethernet
  • Wifi+BT wireless connection with antenna on-board
  • SATA 2.0 interface support 2.5’ HDD (for 3.5’ HDD, only need another 12V power input)
  • Storage solution NAND+MicroSD or TSD+ MicroSD or 2*MicroSD
  • 2 x USB HOST 1 x OTG 1 x SPDIF 1 x IR 4 x LEDs 1 Headphone 3 x Keys
  • Power DC5V @ 2.5A with HDD support Li-battery & RTC
  • 54 extended pins including I2S, I2C, SPI, CVBS, LRADC x2,UART, PS2, PWMx2, TS/CSI, IRDA, LINEIN&FMIN&MICIN, TVINx4 with 2.0 pitch connectors
  • PCB size 11cm 8cm1.4mm very suitable for installing a 2.5’ HDD

yum -y install uboot-tools libguestfs-tools

xzcat /home/ecelis/Dropbox/Valk/Fedora-19-a10-armhfp-r3.img.xz > /dev/sdc </code>

/uboot/uEnv.txt disp.screen0_output_type=4 disp.screen0_output_mode=1024x768

#

  • [[http://linux-sunxi.org/Cubietruck]]

Cable RX --> Cubieboard TX Cable TX --> Cubieboard RX

#

Red --> Vcc Black --> GND White --> RX Green --> TX

#

cu is an utitlity that comes with popular system distributions like Fedora, Debian, Ubuntu, NetBSD, etc. It can be used to talk to a device connected to a serial port. On Linux with the serial cable as the only USB serial port

stty -F /dev/ttyUSB0 -crtscts # turn off hardware flow control - the cable has no wires for that cu -s 115200 -l /dev/ttyUSB0

should show the u-boot and kernel messages from cubieboard.

Another option is GNU screen

screen /dev/ttyUSB0 115200

With gtkterm, a serial terminal tool with minimum graphic interface :

gtkterm -p /dev/ttyUSB0 -s 115200

#

  • http://linux-sunxi.org/Cubieboard/TTL Cubieboard TTL

Truckboard

  CPU   Dual core ARM Cortex A7 processor, NEON, VFPv4, 512KB L2-Cache  
  GPU   Dual core ARM Mali400 MP2, 1 vertex shader, 2 fragment shaders, OpenGL ES 2.0  
  Memory   2GB DDR3 @480MHz  
  Video output   HDMI 1080p, VGA  
  Networking   10/100M/1G Ethernet, WiFi, Bluetooth  
  Internal storage   8GB NAND Flash  
  IO   2 x USB Host, 1 x MicroSD slot, 1 x SATA, 1 x IR sensor  
  Extended interfaces   54 extend pin interfaces to low level SOC functionality  
  Software   Android 4.2, Official Linux distribution available (not pre-installed)  
  Power   Requires regulated 5VDC 2A power supply with a 4.0mm(ext. diameter) x 1.7mm (int. diameter) barrel plug. Extra power may be required for some HDD  

Partición Almacenamiento microSD/SATA

’'’Linaro/Lubuntu’’’

Sin iniciar sesión en el modo gráfico, presiona ‘'’CTRL+ALT+F1’’’ para cambiar a la primera terminal virtual (tty1) y ejecuta los siguientes comandos como root

Crea las particiones que necesites, ‘'’en este ejemplo reemplaza X’’’ por el dispositivo correspondiente en tu sistema, en el sistema de pruebas este era ‘‘/dev/sda’’ conectado al puerto SATA. Para este ejemplo también se considera crear una partición de intercambio de memoria ‘‘swap’’, por tanto crea 3 particiones, de 2G para swap (tipo 82), 8G para /usr y el resto para /home.

sudo fdisk /dev/sdX }}}

Antes de utilizar las particiones hay que darles formato.

sudo mkswap /dev/sdX1 sudo mkfs.ext4 /dev/sdX2 sudo mkfs.ext4 /dev/sdX3 }}}

Copia el contenido de ‘‘/usr’’, ‘‘/home’’ a las particiones correspondientes en el dispositivo de almacenamiento libera el espacio correpondiente y reinicia.

sudo mount /dev/sdX2 /mnt sudo cp -rp /usr/* /mnt sudo umount /mnt sudo mount /dev/sdX3 /mnt cp -rp /home/linaro /mnt sudo umount /mnt }}}

Agrega las entradas correspondienten en ‘’‘/etc/fstab’’’ para montar las particoines al momento de iniciar el Cubietruck.

echo “/dev/sdX1 none swap defaults 0 0” » /etc/fstab echo “/dev/sdX2 /usr ext4 defaults 0 1” » /etc/fstab echo “/dev/sdX3 /home ext4 defaults 0 2” » /etc/fstab rm -rf /home/linaro rm -rf /usr/* reboot }}}

Referencia

  • [[http://cubieboard.org/]]
  • [[http://linux-sunxi.org/Cubietruck]]

    CategoryValkEye

CategoryHardware