Hello joanxie, the board is a custom design derived from 8QM-MEK.
We have some boards with the pre-production SoC and other boards with the serie SoC, and I would like to detect at runtime which SoC the board mounts.
Thank you!
Francesco
when the board boot up, did you see anything board information in the log file? or could you send the log file to me ?
Which log file are you talking about?
when the board boot up, you get the information from the uart debug port
There is no such information in the debug UARTs.
what's you mean? your board doesn't have such port? how could you confirm if your board boot up successfully or not?
I try to keep my tone as polite as possible.
"There is no such information" means that there is no print on a serial port that indicates if the board mounts a pre-production SoC or not. How did you understand that there is no serial port?
Probably there is linguistic barrier. Otherwise I do not understand all your replies on this "discussion", starting from asking pictures of a board.
I don't know your status,maybe I misunderstand this, I thought you have two different customized board on your hands, you couldn't distinguish them, in fact, when the board boot up, you can read the cpu information from the uboot, so I ask for the log file, the source code from
u32 get_cpu_rev(void) { u32 id = 0, rev = 0; int ret; ret = sc_misc_get_control(-1, SC_R_SYSTEM, SC_C_ID, &id); if (ret) return 0; rev = (id >> 5) & 0xf; id = (id & 0x1f) + MXC_SOC_IMX8; /* Dummy ID for chip */ /* 8DXL uses A1/A2, so generate dummy rev to differentiate with B/C */ if (id == MXC_CPU_IMX8DXL && rev != 0) rev = 0x10 + rev; return (id << 12) | rev; }
The iMX8QM uses the same masks (B0) among engineering samples and production SoCs. So all boards are reporting 8QM B0. This does not allow distinguishing eng samples.
yes, customer just needs to care about the last "B" in part number which stands for silicon version can be read by uboot
Both engineering samples and production units are B0. How do you differentiate them?
no register to differentiate them
do you have board picture or schematic which posted back of the board? if yes, send to me, let me confirm this