
Dear "sywang",
In message E1A60D3A6B5245C9B642C3CC81EACF61@sywangPC you wrote:
In my scenario, I want to write the panic info into the flash, but the panic
If the system panics, you must not assume that there is any working code left that is capable of writing to flash memory.
is caused by interrupt routine, I cannot access the flash, so I think that if the flash-write function from u-boot can be called, the issue should be resolved.
I told you before that there is no U-Boot code available anywhere once Linux started execution.
You may look into the shared log buffer feature - if Linux dumps it's log messages into it's log buffer, this information can be picked up by U-Boot from there, and even passed on to the next booting Linux kernel.
Best regards,
Wolfgang Denk