howtos:devboards

Ceci est une ancienne révision du document !


Boards de développement

Buildroot c'est bien !

## Pandaboard

Pour la Panda, il y a un fichier de configuration pré-disponible : ``` git clone git:git.buildroot.net/buildroot make pandaboard_defconfig make ``` Lancer ensuite le script suivant (attention à la locale !) : ``` #!/bin/sh if [ ! “$1” = “/dev/sda” ] ; then DRIVE=$1 if [ -b “$DRIVE” ] ; then dd if=/dev/zero of=$DRIVE bs=1024 count=1024 SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'` echo DISK SIZE - $SIZE bytes CYLINDERS=`echo $SIZE/255/63/512 | bc` echo CYLINDERS - $CYLINDERS { echo ,9,0x0C,* echo ,,,- } | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE mkfs.vfat -F 32 -n “boot” ${DRIVE}1 mke2fs -j -L “rootfs” ${DRIVE}2 fi fi ``` (trouvé ici http://elinux.org/Panda_How_to_buildroot) Pour tester que la SD est bien formatée, compiler et lancer : ``` #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main( int argc, char **argv ) { if ( argc < 2 ) { printf(“check /dev/sdX you must be root too \n”); return 1; } int fd = open( argv[1], O_RDONLY ); lseek( fd, 0 + 446 + 8, SEEK_SET ); int start; int num_mbr; read( fd, &start, 4 ); read( fd, &num_mbr, 4 ); int num_bpb = 0; lseek( fd, start * 512 + 0x13, SEEK_SET ); read( fd, &num_bpb, 2 ); if( num_bpb == 0 ) { lseek( fd, start * 512 + 0x20, SEEK_SET ); read( fd, &num_bpb, 4 ); } printf( “start: %d mbr: %d bpb: %d → %s\n”, start, num_mbr, num_bpb, num_mbr == num_bpb ? “PASS” : “FAIL!” ); return num_mbr == num_bpb; } ``` (même source) Copier MLO, u-boot.bin, uImage et le fichier .dtb sur la première partition et faire un dd du fichier .ext2 sur la deuxième partition. J'ai eu un bug avec la partition système en ext2, qui provoquait un Kernel panic, cf https://bugs.busybox.net/post_bug.cgi. Utiliser tune2fs pour passer en ext3 ou éditer la configuration pour utiliser un fs en ext3. ### Alimentation From : http://omappedia.org/wiki/PandaBoard_FAQ#What_are_the_specs_of_the_Power_supply_I_should_use_with_a_PandaBoard.3F The recommended power supply is rated at 5V (max) @ 4A. Power Supply: 5V Barrel Measurements: 2.1mm ID, 5.5mm OD - Tip Positive ^ L'extérieur du câble est à la masse, l'intérieur est à 5V.

  • howtos/devboards.1414630666.txt.gz
  • Dernière modification : 2022/05/05 07:40
  • (modification externe)