154a17cb1STang Yun ping1. modify "ddrbin_param.txt", choose ddr frequency, uart info. 254a17cb1STang Yun ping2. run "ddrbin_tool" with argument 1: ddrbin_param.txt, argument 2: ddr bin file. 354a17cb1STang Yun ping like: ./ddrbin_tool ddrbin_param.txt px30_ddr_333MHz_v1.13.bin 454a17cb1STang Yun ping 554a17cb1STang Yun pingsupport following chip: 62820321cSZhihuan HePX30: ddr bin version should be released later than V1.11. Support modify uart info only. The ddr bin version V1.12 and later support DDR 2t info modification, only DDR3 support. 72820321cSZhihuan HeRK1808: ddr bin version should be released later than V1.03. Support modify uart info and ddr frequency. ddr freq should be one of 333,400,533,666,786,933. The ddr bin version V1.03 and later support DDR 2t info modification, only DDR2/DDR3/DDR4 support. 82820321cSZhihuan HeRK322x: ddr bin version should be released later than V1.08. Support modify uart info and ddr frequency. These is no limit to ddr frequency. The ddr bin version V1.09 and later support DDR 2t info modification, only DDR2/DDR3 support. 92820321cSZhihuan HeRK322xh: ddr bin version should be released later than V1.14. Support modify uart info only. The ddr bin version V1.16 and later support DDR 2t info modification, only DDR3 support. 102820321cSZhihuan HeRK3288: ddr bin version should be released later than V1.07. Support modify uart info only. The ddr bin version V1.08 and later support DDR 2t info modification, only DDR3 support. 112820321cSZhihuan HeRK3308: ddr bin version should be released later than V1.28. Support modify uart info and ddr frequency. ddr freq should be one of 225,294,393,451,589. The ddr bin version V1.29 and later support DDR 2t info modification, only DDR2/DDR3 support. 122820321cSZhihuan HeRK3326: ddr bin version should be released later than V1.11. Support modify uart info only. The ddr bin version V1.12 and later support DDR 2t info modification, only DDR3 support. 132820321cSZhihuan HeRK3368: ddr bin version should be released later than V2.04. Support modify uart info and ddr frequency. These is no limit to ddr frequency. The ddr bin version V2.05 and later support DDR 2t info modification, only DDR3 support. 142820321cSZhihuan HeRK3328: ddr bin version should be released later than V1.14. Support modify uart info only. The ddr bin version V1.16 and later support DDR 2t info modification, only DDR3 support. 1554a17cb1STang Yun pingRK3399: ddr bin version should be released later than V1.20. Support modify uart info only. 162820321cSZhihuan HeRK3399PRO NPU: ddr bin version should be released later than V1.03. Support modify uart info and ddr frequency. ddr freq should be one of 333,400,533,666,786,933. The ddr bin version V1.03 and later support DDR 2t info modification, only DDR2/DDR3/DDR4 support. 17*eea48410SZhihuan HeRV1126/RV1109: all of version. Support modify uart info and ddr frequency. ddr freq should be one of 330,396,528,664,784,924,1056. Support DDR 2t info modification, only DDR3/DDR4 support. 1854a17cb1STang Yun ping 1954a17cb1STang Yun pingddrbin_param.txt: 2054a17cb1STang Yun pingstart tag: keep default value. Do not modify it. 212820321cSZhihuan Heddr2_freq: ddr2 frequency, unit:MHz. 222820321cSZhihuan Help2_freq: lpddr2 frequency, unit:MHz. 232820321cSZhihuan Heddr3_freq: ddr3 frequency, unit:MHz. 242820321cSZhihuan Help3_freq: lpddr3 frequency, unit:MHz. 252820321cSZhihuan Heddr4_freq: ddr4 frequency, unit:MHz. 262820321cSZhihuan Help4_freq: lpddr4 frequency, unit:MHz. 2754a17cb1STang Yun ping 282820321cSZhihuan HeIf ddr*_freq/lp*_freq is no value, it's frequency will keep the same with the ddr bin frequency. 29558a25b2STang Yun ping 3054a17cb1STang Yun pinguart id:uart number. 0 for uart0, 1 for uart1, 2 for uart2..., 0xf will disable uart. 31558a25b2STang Yun pinguart iomux:uart iomux info, 0 for uartn_m0, 1 for uartn_m1, 2 for uartn_m2...(like uart2_m0, uart2_m1,uart2_m2), 32558a25b2STang Yun pingOr 1 for uartn_a, 2 for uartn_b, 3 for uartn_c.(like uar2a, uart2b, uart2c). 3354a17cb1STang Yun pinguart baudrate:uart baudrate should be 115200 or 1500000. 34558a25b2STang Yun ping 352820321cSZhihuan HeIf uart id/iomux/baudrate is no value, uart info will keep the same with ddr bin config. 362820321cSZhihuan He 372820321cSZhihuan Heddr_2t: ddr 2T timing mode. 1: enable ddr 2T, 0: disable ddr 2T. 382820321cSZhihuan HeIf 'ddr_2t' is no value, ddr_2t info will keep the same with ddr bin config. 39*eea48410SZhihuan He 40*eea48410SZhihuan Heddrx_fx_freq_mhz/lpx_fx_freq_mhz: ddr init will preinit these ddr frequencies. These frequencies correspond to the kernel frequency table. 41