RAM specifications? Oc?

Post Reply
Northstar
Posts: 5
Joined: Tue Apr 16, 2019 7:32 pm
languages_spoken: english
ODROIDs: n2 x4
Has thanked: 1 time
Been thanked: 0
Contact:

RAM specifications? Oc?

Unread post by Northstar » Tue Apr 16, 2019 9:41 pm

Hi
Anyone Know wich DDR4 RAM is on N2(Cl, trcd,trp,tras) And give it a way to OC or optimized then?

Greetings

User avatar
odroid
Site Admin
Posts: 32146
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 297 times
Contact:

Re: RAM specifications? Oc?

Unread post by odroid » Wed Apr 17, 2019 9:23 am

The timing was well optimized already. If you see the MBW test result, you might agree.
Refer this DDR4 datasheet page 5. We used Samsung K4A8G165WB-BCTD which is DDR4-2666 (19-19-19).
https://www.samsung.com/semiconductor/g ... v1_6-1.pdf

We have no plan to support any DRAM overclocking.
These users thanked the author odroid for the post:
Northstar (Sat Aug 03, 2019 11:18 pm)

koschi
Posts: 17
Joined: Tue Mar 22, 2016 4:32 am
languages_spoken: english
ODROIDs: 8 x C2
4 x N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RAM specifications? Oc?

Unread post by koschi » Thu May 02, 2019 6:44 am

Hi odroid!

do the 2 and 4GB variants have the same memory bandwidth, considering the use of 2 vs. 4 chips?
I have just the 4GB version, so can't check it myself :-)

Thanks!

User avatar
odroid
Site Admin
Posts: 32146
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 297 times
Contact:

Re: RAM specifications? Oc?

Unread post by odroid » Thu May 02, 2019 8:29 am

There is no bandwidth difference between 2GB and 4GB.

koschi
Posts: 17
Joined: Tue Mar 22, 2016 4:32 am
languages_spoken: english
ODROIDs: 8 x C2
4 x N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RAM specifications? Oc?

Unread post by koschi » Fri May 03, 2019 2:50 am

Thank you!

Northstar
Posts: 5
Joined: Tue Apr 16, 2019 7:32 pm
languages_spoken: english
ODROIDs: n2 x4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: RAM specifications? Oc?

Unread post by Northstar » Sat Aug 03, 2019 11:26 pm

odroid wrote:
Wed Apr 17, 2019 9:23 am
The timing was well optimized already. If you see the MBW test result, you might agree.
Refer this DDR4 datasheet page 5. We used Samsung K4A8G165WB-BCTD which is DDR4-2666 (19-19-19).
https://www.samsung.com/semiconductor/g ... v1_6-1.pdf

We have no plan to support any DRAM overclocking.
Hi
I will optimized my Odroid for Mining. i Have undervolted it and it run stable with the mining Programm.
Give a way to change ddr settings an that? u-boot? i need no OC, most it is better lower freq with better latency. this help a little to save powerconsuption.
i have see "config_ddr_clk" on odroid C2 to set freq in Uboot source, but for N2 look nothing?

greetings

joy
Posts: 881
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 11 times
Been thanked: 47 times
Contact:

Re: RAM specifications? Oc?

Unread post by joy » Mon Aug 05, 2019 3:19 pm

Northstar wrote:
Sat Aug 03, 2019 11:26 pm
I will optimized my Odroid for Mining. i Have undervolted it and it run stable with the mining Programm.
Give a way to change ddr settings an that? u-boot? i need no OC, most it is better lower freq with better latency. this help a little to save powerconsuption.
i have see "config_ddr_clk" on odroid C2 to set freq in Uboot source, but for N2 look nothing?
Hi Northstar,
You can adjust DDR4 clock by modifying the following code and compiling u-boot.
This code is included in acs binary of a part of BL2.

- u-boot/board/hardkernel/odroidn2/firmware/timing.c
https://github.com/hardkernel/u-boot/bl ... ming.c#L76
https://github.com/hardkernel/u-boot/bl ... ming.c#L86

#define CONFIG_DDR4_DEFAULT_CLK 1320

Code: Select all

#define CONFIG_DDR4_DEFAULT_CLK		1320

ddr_set_t __ddr_setting[] = {
{
	/* odroid-n2 ddr4 : (4Gbitx2)x2, (8Gbitx2)x2 */
	.board_id			= CONFIG_BOARD_ID_MASK,
	.version			= 1,
	.dram_rank_config		= CONFIG_DDR0_32BIT_RANK01_CH0, /* bus width 32bit, use cs0 cs1 */
	.DramType			= CONFIG_DDR_TYPE_DDR4,
	/* 912 (DDR4-1866) / 1056 (DDR4-2133) / 1200 (DDR4-2400)/ 1320 (DDR4-2666) */
	.DRAMFreq			= {CONFIG_DDR4_DEFAULT_CLK, 0, 0, 0},
	.ddr_rfc_type			= DDR_RFC_TYPE_DDR4_2Gbx8,
	.ddr_base_addr			= CFG_DDR_BASE_ADDR,
	.ddr_start_offset		= CFG_DDR_START_OFFSET,
	.imem_load_addr			= 0xFFFC0000,
	.dmem_load_size			= 0x1000,
	.....
	.....
The available clock values which I've tested are
  • 912 (DDR4-1866)
    1056 (DDR4-2133)
    1200 (DDR4-2400)
    1320 (DDR4-2666) <--- current default value

Build rule is as following.
https://wiki.odroid.com/odroid-n2/softw ... oot#u-boot

Code: Select all

$ cd u-boot
$ make distclean
$ make odroidn2_defconfig
$ make
To check the current DDR clock, please check the booting log of early boot loader through serial console message.

Code: Select all

G12B:BL:6e7c85:7898ac;FEAT:E0F83180:2000;POC:F;RCY:0;EMMC:0;READ:0;0.4
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02

BL2 Built : 06:17:13, Jun 28 2019. g12b gf0505d7-dirty - qi.duan@droid13
.....
.....
DDR4 probe
ddr clk to 1320MHz      <<<<<<<<<<<---------------------------------------
.....
.....

U-Boot 2015.01 (Aug 05 2019 - 14:54:00)

DRAM:  3.5 GiB
Relocation Offset is: d6ef3000
Here is a simple DDR benchmark result for three cases of DDR4 clock.
1. DDR4 clock 1320MHz

Code: Select all

root@odroid:~# mbw 100 | grep AVG
AVG     Method: MEMCPY  Elapsed: 0.02830        MiB: 100.00000  Copy: 3533.544 MiB/s
AVG     Method: DUMB    Elapsed: 0.02809        MiB: 100.00000  Copy: 3559.416 MiB/s
AVG     Method: MCBLOCK Elapsed: 0.01253        MiB: 100.00000  Copy: 7980.400 MiB/s
2. DDR4 clock 1200MHz

Code: Select all

root@odroid:~# mbw 100 | grep AVG
AVG     Method: MEMCPY  Elapsed: 0.03439        MiB: 100.00000  Copy: 2907.822 MiB/s
AVG     Method: DUMB    Elapsed: 0.03470        MiB: 100.00000  Copy: 2882.135 MiB/s
AVG     Method: MCBLOCK Elapsed: 0.01394        MiB: 100.00000  Copy: 7176.124 MiB/s
3. DDR4 clock 912MHz

Code: Select all

root@odroid:~# mbw 100 | grep AVG
AVG     Method: MEMCPY  Elapsed: 0.05146        MiB: 100.00000  Copy: 1943.340 MiB/s
AVG     Method: DUMB    Elapsed: 0.05170        MiB: 100.00000  Copy: 1934.266 MiB/s
AVG     Method: MCBLOCK Elapsed: 0.02708        MiB: 100.00000  Copy: 3693.267 MiB/s
From this test data, you can confirm this code modification works to change DDR4 clock. ;)

If you need more information or pre-built u-boot binary, please let me know here.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest