
Hi Florian,
-----Original Message----- From: U-Boot u-boot-bounces@lists.denx.de On Behalf Of florian.manoel@siemens.com Sent: Wednesday, January 22, 2020 7:13 PM To: u-boot@lists.denx.de Cc: daniel.schertler@siemens.com Subject: [EXT] Issue with saveenv() and the QSPI NOR memory MICRON MT25QU01GBBB
Caution: EXT Email
Hello U-Boot team,
I am Florian, working at Siemens in Germany.
I am in charge of bringing up a custom board based on the processor NXP QorIQ LS1043a.
So far, I have been able to bring U-Boot on the board without too much troubles.
However I can not get the command 'saveenv' to work. Our environment variables are stored in the QSPI NOR memory that is also used as boot memory.
The 'saveenv' command always ends up in a
Please apply patch series [1] on top of denx tree. Please let me know in case of any failure.
Thanks Kuldeep [1] https://patchwork.ozlabs.org/project/uboot/list/?series=152743 Detail of this series: https://patchwork.ozlabs.org/patch/1221983/ https://patchwork.ozlabs.org/patch/1221977/ https://patchwork.ozlabs.org/patch/1221979/ https://patchwork.ozlabs.org/patch/1221978/ https://patchwork.ozlabs.org/patch/1221980/ https://patchwork.ozlabs.org/patch/1221981/ https://patchwork.ozlabs.org/patch/1221982/
"
=> saveenv
Saving Environment to SPI Flash... Erasing SPI flash...flash operation timed out
Failed (-110)
"
Few more information:
No issue with a Lauterbach debugger
I noticed that the NOR memory at offset address 0 get erased during the
operation. The normal offset of the env variable is normally 0x900000.
- The memory used is the 'MT25QU01GBBB' from MICRON (Device ID
0x20bb21). I can provide the datasheet.
- the NOR memory is correctly discovered, 'sf probe => SF: Detected n25q00a
with page size 256 Bytes, erase size 64 KiB, total 128 MiB'
- I have tried to activate the debug logs but they didn't bring any interesting
information.
- current version :
"
=> version
U-Boot 2019.10-00062-gc71ef945eb-dirty (Jan 22 2020 - 14:14:26 +0100)
aarch64-linux-gnu-gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
"
Can you provide support to fix this issue ?
Of course, I can provide more info/logs.
Regards,
Mit freundlichen Grüßen Florian Manoël
Siemens AG Digital Industries Process Automation Software House Khe DI PA CI R&D 2 Östliche Rheinbrückenstr. 50 76187 Karlsruhe, Deutschland Tel.: +49 721 595-1433 mailto:florian.manoel@siemens.com https://eur01.safelinks.protection.outlook.com/?url=www.siemens.com%2Fing enuityforlife&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C2fa80e44 8dc24ad8ed1308d79f411443%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0% 7C1%7C637152974174541907&sdata=naUNOT%2FqfND%2B7uEMPDvzmi HK33QsGZZsfYUy2hNAiJw%3D&reserved=0https://eur01.safelinks.prote ction.outlook.com/?url=https%3A%2F%2Fsiemens.com%2Fingenuityforlife&am p;data=02%7C01%7Ckuldeep.singh%40nxp.com%7C2fa80e448dc24ad8ed1308 d79f411443%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C6371529 74174541907&sdata=d41afMBGhTOC8mskURQ4vrXZR205s9TitKxjzeIqy% 2FQ%3D&reserved=0
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Cedrik Neike, Michael Sen, Ralf P. Thomas; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322