≡
Difference between revisions of "RK3328-SOM204"
m (→Flash image) |
m (→Flash image) |
||
Line 77: | Line 77: | ||
Upload loader: | Upload loader: | ||
− | sudo rkdeveloptool db | + | sudo rkdeveloptool db /path/to/rk3328_loader_v1.14.249.bin |
− | DDR version 1.14 20190328 | + | |
− | ID:0x805 N | + | In the terminal you should see (baudrate is '''1500000'''): |
− | In | + | DDR version 1.14 20190328 |
− | LPDDR3 | + | ID:0x805 N |
− | 333MHz | + | In |
− | Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB | + | LPDDR3 |
− | ddrconfig:6 | + | 333MHz |
− | OUT | + | Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB |
− | Boot1 Release Time: Sep 7 2018 15:48:25, version: 2.49 | + | ddrconfig:6 |
− | SdmmcInit=0 NOT PRESENT | + | OUT |
− | mmc Ext_csd, ret=0 , | + | Boot1 Release Time: Sep 7 2018 15:48:25, version: 2.49 |
− | + | SdmmcInit=0 NOT PRESENT | |
− | + | mmc Ext_csd, ret=0 , | |
− | mmc2:cmd19,100 | + | Ext[226]=20, bootSize=2000, |
− | SdmmcInit=2 0 | + | Ext[215]=1, Ext[214]=d1, Ext[213]=f0, Ext[212]=0,cap=1d1f000 REL=1f |
− | BootCapSize=2000 | + | mmc2:cmd19,100 |
− | UserCapSize=14910MB | + | SdmmcInit=2 0 |
− | FwPartOffset=2000 , 2000 | + | BootCapSize=2000 |
− | UsbHook 736999 | + | UserCapSize=14910MB |
− | powerOn 737075 | + | FwPartOffset=2000 , 2000 |
+ | UsbHook 736999 | ||
+ | powerOn 737075 |
Revision as of 22:22, 16 June 2019
Contents
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