April 03, 2020, 06:33:45 am

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


ArchLinuxARM Installation Guide

Started by Andre, January 25, 2013, 01:28:03 pm

Previous topic - Next topic

Andre


admin


GeorgeIoak

Can we start a Wiki here to add useful instructions like this that are designed specifically for the Cubie?

GeorgeIoak

@Andre I read your blog and you mentioned perhaps testing out VGA. I've designed the Cubie Baseboard and have been debugging the hardware this past week. One of the final items I need to solve is that VGA is not working properly and I believe it has something to do with the kernel not being configured properly.

If you go on the Google Groups Cubieforum you find a thread where we have been discussing this (https://groups.google.com/forum/?fromgroups=#!searchin/cubieboard/vga$20header/cubieboard/vSdUzKoY6S0/3lRYNz-cEU8J

Perhaps if you have time you can take a look and let me know your thoughts.

Andre

I will have a look at it soon. I can't promise get when this will be. Also. my oscilloscope is broken so I can't do any serious hardware debugging.

dariuszb

I don't know why, but in script you use this code doesn't work for me:
title "Format Partition 1 to VFAT"
sudo mkfs.vfat -I ${subdevice}1 ||
die "${subdevice}1: failed to format partition"


After changing it to  all works as a charm:
title "Format Partition 1 to VFAT"
sudo mkfs.vfat -I ${subdevice}1

Andre

@dariuszb: thanks for the info. btw. what shell are you using? and what distro?

@GeorgeIoak: My exams are done, and so I had some time and make a little board to try to interface the VGA.  I have built it according to the schematic posted by lawrence http://www.cubieforums.com/index.php/topic,6.msg10.html#msg10

So far, I can say the monitor recognises the resolution, therefore I believe the SYNC signals are fine using the proposed schematic.  Yet, it randomly displays a white horizontal line, that's all. I think some time next week I will have another look at it.  (also, there has been a new hwpack releasaed, which I'll also try. As you say it might be in the kernel. Maybe it will fix the problem?)



dariuszb

@Andre I was using a default shell, but i don't remember exactly on what OS. I am sure that it was on RPi, probably Arch.

Andre

So I suppose it was bash.  As you said it worked, I assume mkfs.vfat was present (package dosfsutils), so that isn't the problem I guess.
I have to clue either. I will add this information to my blog.

GeorgeIoak

Quote from: Andre on February 02, 2013, 07:54:11 pm

@GeorgeIoak: My exams are done, and so I had some time and make a little board to try to interface the VGA.  I have built it according to the schematic posted by lawrence http://www.cubieforums.com/index.php/topic,6.msg10.html#msg10


That link was for CVBS, this is the design that most people are referring to when implementing VGA:

Andre

This looks like the circuit from Olimex. I have been looking at that circuit as well. The analog part with 75 Ω termination looks the same. The main difference is the IC used for the buffer, AND ports vs NOT ports.  Would that make so much of a difference?

Hmmm.... I seem to have overlooked the BAT54S in the Olimex circuit. 

galiclick

Hello!!

I have a problem with the script,

sudo ./scripts/sunxi-media-create.sh /dev/sdb cubieboard_hwpack.tar.xz linaro-quantal-server-20130130-258.tar.gz

===
=== Partitioning /dev/sdb ===
===
1+0 registros leídos
1+0 registros escritos
1048576 bytes (1,0 MB) copiados, 0,42075 s, 2,5 MB/s
Comprobando que nadie esté utilizando este disco en este momento...
Correcto

Disco /dev/sdb: 1019 cilindros, 63 cabezas, 62 sectores/pista

sfdisk: ERROR: el sector 0 no tiene una firma msdos
/dev/sdb: tipo de tabla de particiones no reconocido
Situación anterior:
No se ha encontrado ninguna partición
Situación nueva:
Unidades = sectores de 512 bytes, contando desde 0

   Disp.  Inicio  Principio   Fin   Nº sect.  Id  Sistema
/dev/sdb1          2048    133119     131072   c  W95 FAT32 (LBA)
/dev/sdb2        133120   3981311    3848192  83  Linux
/dev/sdb3             0         -          0   0  Vacía
/dev/sdb4             0         -          0   0  Vacía
Atención: no hay ninguna partición primaria marcada como iniciable (activa).
Esto no es problema para LILO, pero el MBR de DOS no iniciará con este disco.
La nueva tabla de particiones se ha escrito correctamente

Volviendo a leer la tabla de particiones...

Si ha creado o modificado una partición DOS, como /dev/foo7, utilice dd(1)
para poner a cero los 512 primeros bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(Véase fdisk(8).)

===
=== Format Partition 1 to VFAT ===
===
mkfs.vfat 3.0.13 (30 Jun 2012)

===
=== Format Partition 2 to EXT4 ===
===
mke2fs 1.42.5 (29-Jul-2012)
Etiqueta del sistema de ficheros=
OS type: Linux
Tamaño del bloque=4096 (bitácora=2)
Tamaño del fragmento=4096 (bitácora=2)
Stride=0 blocks, Stripe width=0 blocks
120480 inodes, 481024 blocks
24051 blocks (5.00%) reserved for the super user
Primer bloque de datos=0
Número máximo de bloques del sistema de ficheros=494927872
15 bloque de grupos
32768 bloques por grupo, 32768 fragmentos por grupo
8032 nodos-i por grupo
Respaldo del superbloque guardado en los bloques:
   32768, 98304, 163840, 229376, 294912

Allocating group tables: hecho                           
Escribiendo las tablas de nodos-i: hecho                           
Creating journal (8192 blocks): hecho
Escribiendo superbloques y la información contable del sistema de ficheros:  0/1hecho


===
=== Extracting HW Pack ===
===

===
=== Extracting RootFS ===
===

===
=== Copy U-Boot/SPL to SD Card ===
===
20+0 registros leídos
20+0 registros escritos
20480 bytes (20 kB) copiados, 0,704201 s, 29,1 kB/s
169+1 registros leídos
169+1 registros escritos
173412 bytes (173 kB) copiados, 0,524006 s, 331 kB/s
Copy VFAT partition files to SD Card

===
=== Copy rootfs partition files to SD Card ===
===
Linaro rootfs
cp: no se puede efectuar `stat' sobre «/tmp/.sunxi-media-create.3352/rootfs/binary/boot/filesystem.dir/*»: No existe el archivo o el directorio
Failed to copy rootfs partition data to SD Card

Please can you help me?