RK3328-SOM204

Revision as of 02:53, 13 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: