[EXT] Issue with saveenv() and the QSPI NOR memory MICRON MT25QU01GBBB

Kuldeep Singh kuldeep.singh at nxp.com
Sat Jan 25 09:05:15 CET 2020


Good to hear this :)

________________________________
From: florian.manoel at siemens.com <florian.manoel at siemens.com>
Sent: Friday, January 24, 2020 12:30 AM
To: Kuldeep Singh <kuldeep.singh at nxp.com>
Cc: daniel.schertler at siemens.com <daniel.schertler at siemens.com>; u-boot at lists.denx.de <u-boot at lists.denx.de>
Subject: AW: [EXT] Issue with saveenv() and the QSPI NOR memory MICRON MT25QU01GBBB

Caution: EXT Email

Hi Kuldeep,

After bringing my local U-Boot to the v2020.01, applied your series of patch and do the necessary modifications. Our U-Boot is now correctly working with the QSPI NOR Flash.
Even better, it's now compatible with the 2 variants of our board (32MiB <=> 128MiB QSPI NOR Flash) without any particular modification.
Of course, we still need to perform more test but it is already looking better than before.

Thanks for your support and your reactivity.

Regards,
Florian

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 at siemens.com

https://eur01.safelinks.protection.outlook.com/?url=www.siemens.com%2Fingenuityforlife&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175687852&sdata=RARuHnI1bjuFOWvxIvRzA%2FqqFB6SMCBt1qZV%2BeR4CAE%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
-----Ursprüngliche Nachricht-----
Von: Kuldeep Singh <kuldeep.singh at nxp.com>
Gesendet: Donnerstag, 23. Januar 2020 07:39
An: Manoel, Florian (DI PA CI R&D 2) <florian.manoel at siemens.com>
Cc: Schertler, Daniel (DI PA CI R&D 2) <daniel.schertler at siemens.com>; u-boot at lists.denx.de
Betreff: RE: [EXT] Issue with saveenv() and the QSPI NOR memory MICRON MT25QU01GBBB

Hi Florian,

> -----Original Message-----
> From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of
> florian.manoel at siemens.com
> Sent: Wednesday, January 22, 2020 7:13 PM
> To: u-boot at lists.denx.de
> Cc: daniel.schertler at 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://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fproject%2Fuboot%2Flist%2F%3Fseries%3D152743&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175687852&sdata=gfDG%2FslYyeAIdzFZzQ4T8wX5Deo7%2B5HjaH7uZOIXW2g%3D&reserved=0
Detail of this series:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F1221983%2F&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175687852&sdata=coTEZ%2BUtTVGp5%2Bfx2IQUh3G1uiY4Q5YnMINq8sh71pY%3D&reserved=0
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F1221977%2F&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175687852&sdata=8ev5TtAnUs5YHohbW01SnBPChpj%2FqXonfnOvy4EojBQ%3D&reserved=0
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F1221979%2F&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175687852&sdata=vb503j8avAMRXcHa926%2BLnUgp0Gjz4dZjyuZIriVIes%3D&reserved=0
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F1221978%2F&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175687852&sdata=1xceRQHicJcB1%2BMm3tetG%2BAyX2%2FKWfUZSenyW4fJQZg%3D&reserved=0
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F1221980%2F&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175697848&sdata=gd6p%2FKXa5%2BTSIzFfdaKrLScHvjqidh%2BO8XLcLrxjU54%3D&reserved=0
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F1221981%2F&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175697848&sdata=y%2FvOulHAjeiymyrhvpFICSu1YzeuLEugcjrNa%2Ba1ufo%3D&reserved=0
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F1221982%2F&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175697848&sdata=CB38KisZ6DO3%2FSpoa8mhd%2BbD5j3cnfcs1s2LeU5J6Ps%3D&reserved=0

> "
>
> => 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 at siemens.com
> https://eur01.safelinks.protection.outlook.com/?url=www.siemens.com%2F
> ing
> enuityforlife&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C2fa80e44
> 8dc24ad8ed1308d79f411443%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%
> 7C1%7C637152974174541907&sdata=naUNOT%2FqfND%2B7uEMPDvzmi
> HK33QsGZZsfYUy2hNAiJw%3D&reserved=0<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Feur01.safelinks.protec&data=02%7C01%7Ckuldeep.singh%40nxp.com%7C572e4abec26e414bb37c08d7a0a7a39f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637154514175697848&sdata=VLZE4Vf4girjfrRcmfWbSoLfENyTU36PxKdg9I1eMWs%3D&reserved=0
> tion.outlook.com/?url=https%3A%2F%2Feur01.safelinks.prote&data=02%
> 7C01%7Cflorian.manoel%40siemens.com%7C702732098f074629b05d08d79fcef40a
> %7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637153583514800964&s
> data=X81VpYTXzlq4TxlTOxtQzpngcmMGCIQoS6FselIToUU%3D&reserved=0
> 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



More information about the U-Boot mailing list