Donny9 opened a new pull request, #15802:
URL: https://github.com/apache/nuttx/pull/15802

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   1. Support cfi interface nor flash to work as mtd device.
   2. Support intel and amd command set for cfi
   3. Reading cfi resource by library libfdt on qemu platform(armv7-a) to 
simulate.
   
   ## Impact
   
   1. Support new interface for norflash
   2. Support for QEMU simulation of NOR Flash resources
    
   
   ## Testing
   
   verify on qemu-armv7-a:full
   ```
   ./tools/configure.sh boards/arm/qemu/qemu-armv7a/configs/full/ -j8
   make -j12
   ```
   
   boot and run fstest
   
   ```
   djz:nuttx$ qemu-system-arm -cpu cortex-a7 -nographic \
           -machine virt,gic-version=2 \
           -net none -chardev stdio,id=con,mux=on -serial chardev:con \
           -mon chardev=con,mode=readline -kernel ./nuttx
   nx_start: Entry
   uart_register: Registering /dev/console
   uart_register: Registering /dev/ttyS1
   work_start_highpri: Starting high-priority kernel worker thread(s)
   nxtask_activate: hpwork pid=1,TCB=0x402114e0
   work_start_lowpri: Starting low-priority kernel worker thread(s)
   nxtask_activate: lpwork pid=2,TCB=0x402125b8
   nxtask_activate: AppBringUp pid=3,TCB=0x40213690
   fdt_cfi_register: cfi flash0 has beed used to store text:[0,4000000], 
flash:[600000,3600000]
   lfs_dir_fetchmatch: Corrupted dir pair at {0x0, 0x1}
   nx_start_application: Starting init thread
   task_spawn: name=nsh_main entry=0x61194d file_actions=0 attr=0x40214720 
argv=0x4021471c
   nxtask_activate: nsh_main pid=4,TCB=0x4021c9b8
   nxtask_exit: AppBringUp pid=3,TCB=0x40213690
   lib_cxx_initialize: _sinit: 0x6c1fd8 _einit: 0x6c1fd8
   
   NuttShell (NSH) NuttX-12.8.0
   nsh> nx_start: CPU0: Beginning Idle Loop
   
   nsh> 
   nsh> ls
   /:
    data/
    dev/
    proc/
   nsh> fstest -m /data -n 10
   spawn_execattrs: Setting policy=2 priority=100 for pid=5
   nxtask_activate: fstest pid=5,TCB=0x402139a0
   === FILLING 1 =============================
   lfs_alloc: No more free space 507
   Filled file system
     Number of files: 287
     Number deleted:  0
   Directory:
    1. Type[4]: Error Name: .
    3. Type[4]: Error Name: ..
    4. Type[8]: File  Name: 08cP0dfeLw7F3
    5. Type[8]: File  Name: 0FFPVj7sIAMt2
    6. Type[8]: File  Name: 0Lrtmigq9
    
   ........
   
   Final memory usage:
   VARIABLE  BEFORE   AFTER    DELTA
   ======== ======== ======== ========
   arena     7deb000  7deb000        0
   ordblks         2        2        0
   mxordblk  7dd90c8  7dd90c8        0
   uordblks    11768    11768        0
   fordblks  7dd9898  7dd9898        0
   File system tests done... OK: 20, FAILED: 0
   nxtask_exit: fstest pid=5,TCB=0x402139a0
   
   ```
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to