Open main menu

DAVE Developer's Wiki β

Changes

Software Manual (Diva)

1 byte added, 09:18, 17 May 2013
m
no edit summary
Please refer to [http://wiki.dave.eu/index.php/Category:DVDK DVDK page on Dave Developer's Wiki] for further information on DVDK.
 
== Quick start ==
 
=== DivaEVB-Lite ===
 
This section describes how to quick start a DivaEVB-Lite system, provided that it is programmed according to DIVELK configuration.
 
# connect the serial cable, provided with the board, to J6
# connect this cable to PC COM port through a NULL-modem cable (not provided)
# start your favourite terminal software on PC; communication parameters are:
#* baud rate: 115200 Bps
#* data bits: 8
#* stop bits: 1
#* parity: none
# (optional) to connect the system to Ethernet LAN, please plug cable on connector J7
# connect a 12Vcc power supply to J8
 
Once power has been applied, U-Boot bootloader will be executed and the following messages will be printed on serial console (please note that messages may vary for different U-Boot releases)
 
<pre class="board-terminal">
U-Boot 2010.06-dirty (May 29 2012 - 16:02:39) [nelk-0.9.0-min]
 
TI8148-GP rev 2.1
 
ARM clk: 600MHz
DDR clk: 400MHz
 
DRAM: 512 MiB
Using default environment
 
Hit any key to stop autoboot: 0
8192 KiB AT45DB642D at 0:0 is now current device
## Starting application at 0x81000000 ...
 
 
U-Boot 2010.06-dirty (May 29 2012 - 15:57:21) [nelk-0.9.0]
 
TI8148-GP rev 2.1
 
ARM clk: 600MHz
DDR clk: 400MHz
 
I2C: ready
DRAM: 512 MiB
NAND: HW ECC Hamming Code selected
1024 MiB
MMC: OMAP SD/MMC: 0
Net: Detected MACID:d4:94:a1:8e:68:24
cpsw
Hit any key to stop autoboot: 0
NAON#
</pre>
 
These messages are printed by U-Boot, which has a serial console that allows basic interaction with the system.
 
At the end of its boot sequence, U-Boot prints <code style="board-terminal">DIVA#</code> prompt and waits for user commands.
 
The default u-boot environment can be printed using the <code style="board-terminal">print</code> command:
 
<pre class="board-terminal">
NAON#print
bootcmd=run net_nfs
bootdelay=3
baudrate=115200
autoload=yes
verify=yes
bootfile=naon/uImage
ramdisk_file=ramdisk.gz
loadaddr=0x81000000
spi_update_1st=sf probe 0:0; sf erase 0x0 0x20000; sf write ${loadaddr} 0x0 0x20000
spi_update=sf probe 0:0; sf erase 0x20000 0x40000; sf write ${loadaddr} 0x20000 0x40000
loadk=tftp ${loadaddr} ${bootfile}
spi_updatek=sf probe 0:0; sf erase 0x80000 0x300000; sf write ${loadaddr} 0x80000 0x300000
console=ttyO0
addcons=setenv bootargs ${bootargs} console=${console},115200n8 earlyprintk
addmem=setenv bootargs ${bootargs} mem=${mem} vram=${vram} notifyk.vpssm3_sva=${notify_mem}
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gateway}:${netmask}:${hostname}:${ethdev}
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} panic=5
net_nfs=run loadk nfsargs addip addcons addmem; bootm ${buf}
nandargs=setenv bootargs root=/dev/mtdblock12 rw rootfstype=jffs2
spi_nand=run nandargs addip addcons addmem; sf probe 0:0; sf read ${loadaddr} 0x80000 0x300000; bootm ${loadadd}
mmcargs=setenv bootargs root=/dev/mmcblk0p1 rw
spi_mmc=run mmcargs addip addcons addmem; sf probe 0:0; sf read ${loadaddr} 0x80000 0x300000; bootm ${loadaddr}
ipaddr=192.168.0.77
serverip=192.168.0.23
netmask=255.255.255.0
gateway=192.168.0.254
hostname=naon
rootpath=/home/shared/devel/dave/naon-DAA/sw/linux/sdk/rfs/nelk
ethdev=eth0
mem=176M
vram=46M
notify_mem=0xBF900000
ethaddr=d4:94:a1:8e:68:24
ethact=cpsw
spi_load_1st=tftp ${loadaddr} naon/u-boot.min.spi
load=tftp ${loadaddr} naon/u-boot_new.bin
stdin=serial
stdout=serial
stderr=serial
 
Environment size: 1588/65532 bytes
</pre>
== Build system ==
</pre>
Next time the system boots, U-Boot will wait for three seconds (to stop the wait just press any key in the console) before executing the commands stored in the bootcmd variable. This time can be changed by setting the bootdelay variable. Generally speaking the whole boot process can be further and heavily customized. For more details please refer to the doc/README.autoboot file in the U-Boot sources.
 
== Quick start ==
 
=== DivaEVB-Lite ===
 
This section describes how to quick start a DivaEVB-Lite system, provided that it is programmed according to DIVELK configuration.
 
# connect the serial cable, provided with the board, to J6
# connect this cable to PC COM port through a NULL-modem cable (not provided)
# start your favourite terminal software on PC; communication parameters are:
#* baud rate: 115200 Bps
#* data bits: 8
#* stop bits: 1
#* parity: none
# (optional) to connect the system to Ethernet LAN, please plug cable on connector J7
# connect a 12Vcc power supply to J8
 
Once power has been applied, U-Boot bootloader will be executed and the following messages will be printed on serial console (please note that messages may vary for different U-Boot releases)
 
<pre class="board-terminal">
U-Boot 2010.06-dirty (May 29 2012 - 16:02:39) [nelk-0.9.0-min]
 
TI8148-GP rev 2.1
 
ARM clk: 600MHz
DDR clk: 400MHz
 
DRAM: 512 MiB
Using default environment
 
Hit any key to stop autoboot: 0
8192 KiB AT45DB642D at 0:0 is now current device
## Starting application at 0x81000000 ...
 
 
U-Boot 2010.06-dirty (May 29 2012 - 15:57:21) [nelk-0.9.0]
 
TI8148-GP rev 2.1
 
ARM clk: 600MHz
DDR clk: 400MHz
 
I2C: ready
DRAM: 512 MiB
NAND: HW ECC Hamming Code selected
1024 MiB
MMC: OMAP SD/MMC: 0
Net: Detected MACID:d4:94:a1:8e:68:24
cpsw
Hit any key to stop autoboot: 0
NAON#
</pre>
 
These messages are printed by U-Boot, which has a serial console that allows basic interaction with the system.
 
At the end of its boot sequence, U-Boot prints <code style="board-terminal">DIVA#</code> prompt and waits for user commands.
 
The default u-boot environment can be printed using the <code style="board-terminal">print</code> command:
 
<pre class="board-terminal">
NAON#print
bootcmd=run net_nfs
bootdelay=3
baudrate=115200
autoload=yes
verify=yes
bootfile=naon/uImage
ramdisk_file=ramdisk.gz
loadaddr=0x81000000
spi_update_1st=sf probe 0:0; sf erase 0x0 0x20000; sf write ${loadaddr} 0x0 0x20000
spi_update=sf probe 0:0; sf erase 0x20000 0x40000; sf write ${loadaddr} 0x20000 0x40000
loadk=tftp ${loadaddr} ${bootfile}
spi_updatek=sf probe 0:0; sf erase 0x80000 0x300000; sf write ${loadaddr} 0x80000 0x300000
console=ttyO0
addcons=setenv bootargs ${bootargs} console=${console},115200n8 earlyprintk
addmem=setenv bootargs ${bootargs} mem=${mem} vram=${vram} notifyk.vpssm3_sva=${notify_mem}
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gateway}:${netmask}:${hostname}:${ethdev}
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} panic=5
net_nfs=run loadk nfsargs addip addcons addmem; bootm ${buf}
nandargs=setenv bootargs root=/dev/mtdblock12 rw rootfstype=jffs2
spi_nand=run nandargs addip addcons addmem; sf probe 0:0; sf read ${loadaddr} 0x80000 0x300000; bootm ${loadadd}
mmcargs=setenv bootargs root=/dev/mmcblk0p1 rw
spi_mmc=run mmcargs addip addcons addmem; sf probe 0:0; sf read ${loadaddr} 0x80000 0x300000; bootm ${loadaddr}
ipaddr=192.168.0.77
serverip=192.168.0.23
netmask=255.255.255.0
gateway=192.168.0.254
hostname=naon
rootpath=/home/shared/devel/dave/naon-DAA/sw/linux/sdk/rfs/nelk
ethdev=eth0
mem=176M
vram=46M
notify_mem=0xBF900000
ethaddr=d4:94:a1:8e:68:24
ethact=cpsw
spi_load_1st=tftp ${loadaddr} naon/u-boot.min.spi
load=tftp ${loadaddr} naon/u-boot_new.bin
stdin=serial
stdout=serial
stderr=serial
 
Environment size: 1588/65532 bytes
</pre>
 
== DIVELK Updates ==