AT91Bootstrap 3.8.8 on sama5d2 QUAD/DUAL mode NOT supported for Micron N25Q032A NOR Flash qspi

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

queifaro
Posts: 14
Joined: Fri Dec 20, 2013 11:19 am

AT91Bootstrap 3.8.8 on sama5d2 QUAD/DUAL mode NOT supported for Micron N25Q032A NOR Flash qspi

Tue Feb 27, 2018 12:15 pm

Hello,
I’m working on a System base don SAMA5D2 (Acmesystem Roadrunner board) board to realize a battery powered Linux embedded System able to boot in less than 1 second, start user application and go to sleep in backup mode (4/6 microampere). In this way i can reduce power consumption and at the same time i will be able to boot very fast.

I already build the Linux system (using buildroot framework) with AT91Bootstrap 3.8.8-00033-ge63c7c2-dirty, 4.9.40 dt kernel zImage initramfs embedded all in qspi flash (16 MB Micron serial NOR Flash N25Q032A)
The main timing problems seams into at91bootstrap that spend around 2 seconds to copy dt and kernel zImage from qspi to ram (qspi clock = 133MhZ)
Micron datasheet report that quad or dual mode of working is provided but inspecting at91bootstrap source code seams that Micron serial NOR Flash N25Q032A QUAD mode is not supported (and probably also DUAL is not...)

time log:
[19/02/18 - 17:03:09:631] AT91Bootstrap 3.8.8-00033-ge63c7c2-dirty (lun 19 feb 2018, 14.04.17, CET)
[19/02/18 - 17:03:09:631]
[19/02/18 - 17:03:09:631] SF: Got Manufacturer and Device ID: 20ba18
[19/02/18 - 17:03:09:633] SF: dt blob: Copy 0x59af bytes from 0x8400 to 0x21000000
[19/02/18 - 17:03:09:634] SF: Copy 0x91bc18 bytes from 0x40000 to 0x22000000
[19/02/18 - 17:03:11:710]
[19/02/18 - 17:03:11:712] Booting zImage ......
[19/02/18 - 17:03:11:712]
[19/02/18 - 17:03:11:712] Using device tree in place at 0x21000000
[19/02/18 - 17:03:11:727]
[19/02/18 - 17:03:11:727] Starting linux kernel ..., machid: 0xffffffff
[19/02/18 - 17:03:11:727]
[19/02/18 - 17:03:13:660] Starting logging: OK
[19/02/18 - 17:03:13:724] Initializing random number generator... done.
[19/02/18 - 17:03:13:820] Starting network: OK
[19/02/18 - 17:03:13:852] Starting ntpd: OK
[19/02/18 - 17:03:13:988]
[19/02/18 - 17:03:13:989] Welcome to Buildroot
[19/02/18 - 17:03:13:989] buildroot login:

Is my analisys right ?

Could you suggest some any usefull indication in order to speed up flash to ram copy over qspi ?

Also seams that 4.9.40 Kernel do not support kernel XIP production using sama5d2 board.

Thanks in advance
Best Regards
blue_z
Location: USA
Posts: 1784
Joined: Thu Apr 19, 2007 10:15 pm

Re: AT91Bootstrap 3.8.8 on sama5d2 QUAD/DUAL mode NOT supported for Micron N25Q032A NOR Flash qspi

Wed Feb 28, 2018 2:33 am

queifaro wrote:I already build the Linux system (using buildroot framework) with AT91Bootstrap 3.8.8-00033-ge63c7c2-dirty, ...
It probably won't solve the issue, but you'd probably be better off using version 3.8.9 of AT91Bootstrap, since support for serial NOR flash seems to be a work-in-progress.
And a 3.8.10 release is due soon, since rc1 is available as of yesterday.

queifaro wrote:... inspecting at91bootstrap source code seams that Micron serial NOR Flash N25Q032A QUAD mode is not supported (and probably also DUAL is not...)
...
Is my analisys right ?
...
Also seams that 4.9.40 Kernel do not support kernel XIP production using sama5d2 board.
Why do you make an assertion in the title, but then ask if it's true?
What's the basis for all of these guesses? I.E. show your work. What did you find in the code?

Regards
queifaro
Posts: 14
Joined: Fri Dec 20, 2013 11:19 am

Re: AT91Bootstrap 3.8.8 on sama5d2 QUAD/DUAL mode NOT supported for Micron N25Q032A NOR Flash qspi

Wed Feb 28, 2018 11:04 pm

Also 3.8.9 not solve.

I will test using 3.8.10 RC.

Probably my post title is not so celar compared to the contents but i thinks that the issue is celar. However if you are involved in at91bootstrap development probably you are able to understand wath i mean.

If also 3.8.10 rc will not solve the issue i will post the involved source code sections.
Regards

Return to “LINUX”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests