RK3328-SOM204

Revision as of 22:22, 16 June 2019 by StefanM (talk | contribs) (Flash image)

Software

Armbian

FAQ

Use alarm clock

You can schedule power-on event using alarm clock.

Set the alarm 1 minute in the future

 echo $(date '+%s' -d '+ 1 minutes') > /sys/class/rtc/rtc0/wakealarm

Now power-off the board and wait for the wake-up alarm:

 poweroff

Flash image to eMMC via USB

Prepare rkdeveloptool

Get sources:

 git clone https://github.com/rockchip-linux/rkdeveloptool

Install requirements:

 sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf

Build rkdeveloptool

 cd rkdeveloptool
 autoreconf -i
 ./configure
 make

Prepare loader

Get rkbin:

 git clone https://github.com/rockchip-linux/rkbin

Edit configuration:

 cd rkbin
 cat > RKBOOT/RK3328MINIALL.ini << __EOF__
 [CHIP_NAME]
 NAME=RK322H
 [VERSION]
 MAJOR=2
 MINOR=49
 [CODE471_OPTION]
 NUM=1
 Path1=bin/rk33/rk3328_ddr_333MHz_v1.14.bin
 Sleep=1
 [CODE472_OPTION]
 NUM=1
 Path1=bin/rk33/rk322xh_usbplug_v2.49.bin
 [LOADER_OPTION]
 NUM=2
 LOADER1=FlashData
 LOADER2=FlashBoot
 FlashData=bin/rk33/rk3328_ddr_333MHz_v1.14.bin
 FlashBoot=bin/rk33/rk322xh_miniloader_v2.49.bin
 [OUTPUT]
 PATH=rk3328_loader_v1.14.249.bin
 __EOF__

Generate loader image:

 ./tools/boot_merger RKBOOT/RK3328MINIALL.ini

Flash image

Put device into loader mode. Plug USB-mini cable, hold recovery button and press reset. Check the with:

 lsusb

You should see:

 Bus 002 Device 035: ID 2207:330a

Go to rkdevelop folder:

 cd /path/to/rkdeveloptool

Check devices:

 sudo rkdeveloptool ld
 DevNo=1	Vid=0x2207,Pid=0x330a,LocationID=208	Maskrom

Upload loader:

 sudo rkdeveloptool db /path/to/rk3328_loader_v1.14.249.bin

In the terminal you should see (baudrate is 1500000):

 DDR version 1.14 20190328
 ID:0x805 N
 In
 LPDDR3
 333MHz
 Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB
 ddrconfig:6
 OUT
 Boot1 Release Time: Sep  7 2018 15:48:25, version: 2.49
 SdmmcInit=0 NOT PRESENT
 mmc Ext_csd, ret=0 ,
  Ext[226]=20, bootSize=2000, 
  			Ext[215]=1, Ext[214]=d1, Ext[213]=f0, Ext[212]=0,cap=1d1f000 REL=1f
 mmc2:cmd19,100
 SdmmcInit=2 0
 BootCapSize=2000
 UserCapSize=14910MB
 FwPartOffset=2000 , 2000
 UsbHook 736999
 powerOn 737075