Z3 DM8148 - andreimironenko/oe-davinci GitHub Wiki

Z3 DM8148 Home page

Pre-requisites

Here I assume that Windows machine is in use. Install the following programs:

The tftpd is used as a DHCP and TFTP server. TeraTerm is used as a hyper-terminal.

Flashing procedure

In TeraTerm configure the serial port in "Setup/Serial Port" to 115200, 8bit, parity: none, stop: 1bit, flow control: none. Create root directory for TFTP server for example c:/tftp, then copy the files from the export folder

/opt/exports/oeadmin/gstplayer.r04/rel/dm814x-z3/img

where

Sub-directory Description
/opt/exports destination export for all users and releases
oeadmin / release Ubuntu user name or release (if -f : freeze option was used)
gstplayer.r04 product gstplayer, release 04
rel release build
dm814x-z3 machine
img destination folder for all exported images

Important! When you copy the img folder to c:\tftp keep the directory structure shown above, i.e.:

c:\tftp\oeadmin\gstplayer.r04\rel\dm814x-z3\img.

To enable DHCP/TFTP server start tftpd.32 as administrator and disable or configure Windows firewall to enable DCHP/TFTP protocols. Configure Windows machine Ethernet port to static IP address, I use 192.168.137.1 for example but it can be any. This interface will be used to configure tftpd.32. The tftpd.32 configuration is trivial. Got "Settings", then enable in "Global" tab: "TFTP Server", "TFTP Client", "Syslog Server", "DHCP Server".

In "TFTP" tab, add "c:\tftp" as a "Base Directory". Set "TFTP Security" to "None" and "Bind TFTP to this address" to the IP address assigned to Ethernet port.

In "DHCP" tab, add "IP pool start address", "Size of the pool", "Lease(minutes)" to desirable value. You must also specify "Def.router (Opt 3)" to the Ethernet port IP address, and mask to "255.255.255.0" if you are going to use type "C" network. Change "Bind DHCP to this address" to the Ethernet port IP address. Push "Ok", then close tftpd.32 application and start it again. Don't forget to start it as administrator. Now DHCP/TFTP server should be up and running.

Connect ethernet cable and serial cable to your PC and Z3. Switch off Z3.

Open TeraTerm and go to "File"/"Transfer"/"XMODEM"/"Send" and navigate to

c:\tftp\release\gstplayer.r04\rel\dm814x-z3\img\u-boot.min.uart 

Switch on Z3 and observe that u-boot.min.uart is uploading via serial interface. Once u-boot.min.uart is started it queries DHCP IP address and erases entire NAND flash and starts loading images from TFTP server as u-boot.nand.min, u-boot, u-boot.env, uImage and root file system image then it flashes each of the image to NAND flash.

It takes about 15 minutes to reflash Z3 and in the end you should see on TeraTerm "Arago Project" prompt. This indicates that the flash process completes successfully.

Boot options

Updating system images from linux

Manual creation of the ubifs image

In Ubuntu from the built rootfile system create a ubifs.img

    sudo mkfs.ubifs -r rootfs/ -o ubifs.img -m 2048 -e 124KiB -c 1601

then the final image ubi.img is generated by ubinize util

    ubinize -o ubi.img -m 2048 -p 128KiB -s 512 -O 2048 ubinize.cfg