=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2016.07.12 11:00:45 =~=~=~=~=~=~=~=~=~=~=~=
flash_eraseall /dev/smart0
smart_open: Entry
smart_geometry: Entry
smart_geometry: available: true mediachanged: false writeenabled: true
smart_geometry: nsectors: 7168 sectorsize: 1024
smart_ioctl: Entry
smart_close: Entry
nsh> mksmartfs /dev/smart0
smart_open: Entry
smart_geometry: Entry
smart_geometry: available: true mediachanged: false writeenabled: true
smart_geometry: nsectors: 7168 sectorsize: 1024
smart_ioctl: Entry
smart_llformat: Entry
smart_ioctl: Entry
smart_getformat: Entry
smart_scan: Entry
smart_scan: Scan sector 0
smart_scan: Scan sector 1
...
smart_scan: Scan sector 7166
smart_scan: Scan sector 7167
smart_readsector: Entry
smart_readsector: Entry
smart_scan: SMART Scan
smart_scan: Erase size: 4096
smart_scan: Erase count: 1792
smart_scan: Sect/block: 4
smart_scan: MTD Blk/Sect: 4
smart_ioctl: Entry
smart_allocsector: Alloc: log=3, phys=4, erase block=1, free=7167, released=536903968
smart_write_alloc_sector: Write MTD block 16
smart_ioctl: Entry
smart_writesector: Entry
smart_close: Entry
nsh> mount -t smartfs /dev/smart0 /m
smart_open: Entry
smart_geometry: Entry
smart_geometry: available: true mediachanged: false writeenabled: true
smart_geometry: nsectors: 7168 sectorsize: 1024
smart_ioctl: Entry
smart_getformat: Entry
smartfs_mount: SMARTFS:
smartfs_mount: Sector size: 1024
smartfs_mount: Bytes/sector 1019
smartfs_mount: Num sectors: 7168
smartfs_mount: Free sectors: 7158
smartfs_mount: Max filename: 16
smartfs_mount: RootDirSector: 3
nsh> ls /m
/m:
smart_ioctl: Entry
smart_readsector: Entry
nsh> echo "hello1" > /m/test.txt
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_allocsector: Alloc: log=12, phys=8, erase block=2, free=7166, released=536903968
smart_write_alloc_sector: Write MTD block 32
smart_ioctl: Entry
smart_writesector: Entry
smart_ioctl: Entry
smart_writesector: Entry
smart_ioctl: Entry
smart_writesector: Entry
smartfs_sync_internal: Syncing sector 12
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_writesector: Entry
nsh> echo "hello2" >> /m/test.txt
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_writesector: Entry
smartfs_sync_internal: Syncing sector 12
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_writesector: Entry
nsh> umount /dev/smart0
nsh: umount: umount failed: 22
nsh> umount /m
smart_close: Entry
nsh> #poweroff
nsh> �ABCD
grxbetastamp 3689ec1
Copyright (c) 2016 by Sebastien F4GRX
F
uart_register: Registering /dev/console
uart_register: Registering /dev/ttyS0
uart_register: Registering /dev/ttyS1
stm32l4_rnginitialize: Initializing RNG
ee25xx_initialize: EEPROM device /dev/eeprom, 262144 bytes, 256 per page, addrlen 24, readonly 0
/dev/eeprom initialized
sst26_readid: manufacturer: bf memory: 26 capacity: 43
mtd0 initialized
/dev/mtdblock0 initialized for fw update
smart_scan: Entry
smart_scan: Scan sector 0
smart_scan: Scan sector 1
...
smart_scan: Scan sector 7166
smart_scan: Scan sector 7167
smart_readsector: Entry
smart_readsector: Entry
smart_scan: SMART Scan
smart_scan: Erase size: 4096
smart_scan: Erase count: 1792
smart_scan: Sect/block: 4
smart_scan: MTD Blk/Sect: 4
/dev/smart0 initialized for storage
stm32l4can_initialize: CAN1
stm32l4can_reset: CAN1
can_register: Registering /dev/can0
NuttShell (NSH)
nsh> mount -t smartfs /dev/smart0 /s
smart_open: Entry
smart_geometry: Entry
smart_geometry: available: true mediachanged: false writeenabled: true
smart_geometry: nsectors: 7168 sectorsize: 1024
smart_ioctl: Entry
smart_getformat: Entry
smartfs_mount: SMARTFS:
smartfs_mount: Sector size: 1024
smartfs_mount: Bytes/sector 1019
smartfs_mount: Num sectors: 7168
smartfs_mount: Free sectors: 7157
smartfs_mount: Max filename: 16
smartfs_mount: RootDirSector: 3
nsh> ls /s
/s:
smart_ioctl: Entry
smart_readsector: Entry
test.txt
smart_ioctl: Entry
smart_readsector: Entry
nsh> cat /s/test.txt
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_readsector: Entry
hello1
hello2
nsh> echo "after reboot" >> /s/test.txt
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_writesector: Entry
smartfs_sync_internal: Syncing sector 12
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_writesector: Entry
nsh> cat /s/test.txt
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_readsector: Entry
smart_readsector: ERROR: Error in logical sector 12 header, phys=16
smartfs_finddirentry: ERROR: Error in sector chain at 12!
smart_ioctl: Entry
smart_readsector: Entry
smart_readsector: ERROR: Error in logical sector 12 header, phys=16
smartfs_read: ERROR: Error -5 reading sector 12 data
nsh: cat: read failed: 5
nsh> umount /s
smart_close: Entry
nsh> mount -t smartfs /dev/smart0 /sm
smart_open: Entry
smart_geometry: Entry
smart_geometry: available: true mediachanged: false writeenabled: true
smart_geometry: nsectors: 7168 sectorsize: 1024
smart_ioctl: Entry
smart_getformat: Entry
smartfs_mount: SMARTFS:
smartfs_mount: Sector size: 1024
smartfs_mount: Bytes/sector 1019
smartfs_mount: Num sectors: 7168
smartfs_mount: Free sectors: 7157
smartfs_mount: Max filename: 16
smartfs_mount: RootDirSector: 3
nsh> ls /sm
/sm:
smart_ioctl: Entry
smart_readsector: Entry
test.txt
smart_ioctl: Entry
smart_readsector: Entry
nsh> cat /sm/test/txt
smart_ioctl: Entry
smart_readsector: Entry
nsh: cat: open failed: 2
nsh> cat /sm/test.txt
smart_ioctl: Entry
smart_readsector: Entry
smart_ioctl: Entry
smart_readsector: Entry
smart_readsector: ERROR: Error in logical sector 12 header, phys=16
smartfs_finddirentry: ERROR: Error in sector chain at 12!
smart_ioctl: Entry
smart_readsector: Entry
smart_readsector: ERROR: Error in logical sector 12 header, phys=16
smartfs_read: ERROR: Error -5 reading sector 12 data
nsh: cat: read failed: 5
nsh> umount /sm
smart_close: Entry
nsh> #poweroff
nsh>