Hi,
We got a P2020RDB-PC board, and now we want to change some configuration of it.
From P2020RM, we know we need to write to configutation, control, and status registers (CCSRs).
Now we can read the value of CCSR in the uboot by command md ffe00000+offset address.
And we try to use command mw in uboot to write to CCSR. It seems not working or the value is back to default after reset the board.
Is there a way we can change the value in CCSR permenantly? How can we do it?
Thanks in advance.
Regards,
Hu
Solved! Go to Solution.
Hi Hu,
There are two possibilities to permanently keep the changes.
1. Rebuild the u-boot. You can modify function board_early_init_f (before relocation in DDR) or board_early_init_r(after relocation in DDR) with desired modification. These functions are present in board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c.
2. You can update “boot_cmd” command in u-boot env.
Adrian
Hi Hu,
Please provide more details about what you are trying to do. You try to change the ccsr default address, or you want to write in ccsr address space and change the
value of some registers (what registers)?
Adrian
Hi Adrian,
We want to write in ccsr address space and change the value of some register.
We want to do some test about ethernet port, so we want to change the value of GUTS_PMUXCR(TSEC1\TSEC2 clock source) and the value of ETSECx_MACCFG2(I_F_Mode and duplex mode).
How can we change that permamently? From uboot or from codewarrior?
Thanks.
Hu
You need rebuild the u-boot, using the new values for the registers you want to change.
Adrian
I'm afraid we are not familiar of u-boot building.
Is there any other way we can change the value of it or it can't be done without rebuilding it?
Thanks.
Hu
Hi Hu,
There are two possibilities to permanently keep the changes.
1. Rebuild the u-boot. You can modify function board_early_init_f (before relocation in DDR) or board_early_init_r(after relocation in DDR) with desired modification. These functions are present in board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c.
2. You can update “boot_cmd” command in u-boot env.
Adrian