This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DVSDK OMAPL138 Software Developer

Other Parts Discussed in Thread: OMAPL138
I want to develop and run a program on the development kit "Zoom™ OMAP-L138 EVMwith the DVSDK, but I can not boot the Linux image from the SD Card.
 
As the guide says, before running the script "setup.sh" to configure the card and Ubuntu, I tried creating a SD card with the appropriate file system by following the "How to create an SD card" of "OMAPL138 Software Developers Guide" (our kits come without SD Card).
 
The problem is that when I run the "mksdboot.sh" on the SD card, I get the following error, even creating a partition table with GParted MS-DOS before:
 
The disk /dev/sdc does not contain a valid partition table
(standard_in) 1: syntax error
 
The error occurs when executing the following statements of "mksdboot.sh"
 
# get the partition information.
total_size=`fdisk -l $device | grep Disk | awk '{print $5}'`
total_cyln=`echo $total_size/255/63/512 | bc

I changed the script code "mksdboot.sh" fixing the size of the card ("A-Data 2GB Speedy Secure Digital Memory Card") to avoid error
 
# get the partition information.
total_size=`fdisk -l $device | grep Disk | awk '{print $5}'`
total_cyln=`echo 1999872/255/63/512 | bc` 
 
Although it seems to complete successfully creating FAT32 partitions, and Linux, when I put the SD Card in the Development Kit, I turn on and try to do a boot from the SD Card, it is not done properly (log3. txt). It can not read the kernel image of the SD Card because it is not recorded properly. Do you have any idea what is wrong?

************************************************************
* THIS WILL DELETE ALL THE DATA ON /dev/sdc *
* *
* WARNING! Make sure your computer does not go *
* in to idle mode while this script is *
* running. The script will complete, *
* but your SD card may be corrupted. *
* *
* Press <ENTER> to confirm.... *
************************************************************

unmounting device '/dev/sdc1'
unmounting device '/dev/sdc2'
1024+0 registros de entrada
1024+0 registros de salida
1048576 bytes (1,0 MB) copiados, 3,33788 s, 314 kB/s
El disco /dev/sdc no contiene una tabla de particiones válida
Comprobando que nadie esté utilizando este disco en este momento...
Correcto

Disco /dev/sdc: 1010 cilindros, 255 cabezas, 63 sectores/pista

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

Disp. Inic. Princ. Fin Nºcil Nºbloq. Id Sistema
/dev/sdc1 20 29 10 80325 b W95 FAT32
/dev/sdc2 30 244 215 1726987+ 83 Linux
/dev/sdc3 0 - 0 0 0 Vacía
/dev/sdc4 0 - 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).)


Thanks and regards