2015年10月23日 星期五

Numonyx M29EW devices report incorrect write buffer


http://datasheet.octopart.com/PC28F256M29EWLA-Micron-datasheet-11738582.pdf
p.114, CFI query return data x16 offset 0x2A and 0x2B, both x16 and x8 return 1024,

For X16/X8 mode, the maximum buffer size is 1024 bytes/256 bytes respectively.
http://git.denx.de/?p=u-boot.git;a=commit;h=c502321c4a1bc8d859ecf19b22f9d0ce03954fd6
From c502321c4a1bc8d859ecf19b22f9d0ce03954fd6 Mon Sep 17 00:00:00 2001
From: Jagannadha Sutradharudu Teki
Date: Fri, 1 Mar 2013 16:54:26 +0530
Subject: [PATCH] mtd: cfi_flash: Write buffer size adjustment for M29EW
 Numonyx devices

This patch addjusted the write buffer size for M29EW devices those
are operated in 8-bit mode.

The M29EW devices seem to report the CFI information wrong when
it's in 8 bit mode.

There's an app note from Numonyx on this issue and there's a patch
in the open source as well for Linux, but it doesn't seem to be in mainline.

Signed-off-by: Jagannadha Sutradharudu Teki
Tested-by: Jagannadha Sutradharudu Teki

CFI doens't have info for read buffer size(page size in M29EW)

2015年10月22日 星期四

tshark: cannot save captured file to a file

Cannot capture packet in uaual user, while cannot save file in privilege mode
tshark -i 1 -a duration:10 -w x.pcap

tshark: Lua: Error during loading:
 [string "/usr/share/wireshark/init.lua"]:46: dofile has been disabled due to running Wireshark as superuser. See http://wiki.wireshark.org/CaptureSetup/CapturePrivileges for help in running Wireshark as an unprivileged user.
Running as user "root" and group "root". This could be dangerous.
Capturing on 'wlan0'
tshark: The file to which the capture would be saved ("x.pcap") could not be opened: Permission denied.

http://anonscm.debian.org/viewvc/collab-maint/ext-maint/wireshark/trunk/debian/README.Debian?view=markup
groupadd wireshark
useradd -G wireshark <username>
usermod -a -G wireshark
<username>
Always remember to reboot or logout to have the change take effect!!!

https://wiki.wireshark.org/CaptureSetup/CapturePrivileges
setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap