Hi,
Our target board has 4MB BootFlash (Intel 28F320C3T) device.
I started my development from “artesyn” source.
After some modifications driver starts, creates socket but
any flashctl operation like erase, format,… fails at the
“intel_read_status.c: 29 program protect error” function.
What can be a reason of that behaviour?
On what should I give attention to?
Here is a some additional info from my terminal session:
devf-mip -vvvvvvvv &
53255 running devf-mip
calloc /src/lib/fs-flash/start.c, 59: 0x80
calloc /src/lib/fs-flash/start.c, 96: 0x40
calloc /src/lib/fs-flash/start.c, 128: 0x30
calloc /src/lib/fs-flash/start.c, 152: 0x48
calloc /src/lib/fs-flash/start.c, 167: 0x98
devf: fs0 socket mip
trying device width = 1
devf: bus width = 1
devf: trying chip inter = 1
devf: bus width = 2
devf: trying chip inter = 2
devf: bus width = 4
devf: trying chip inter = 4
devf: bus width = 8
devf: trying chip inter = 8
trying device width = 2
devf: bus width = 2
devf: trying chip inter = 1
query string = QRY
devf: chip total = 1
devf: bus width = 2
devf: chip interleave = 1
calloc /src/lib/fs-flash/array_alloc.c, 41: 0x1c
calloc /src/lib/fs-flash/array_alloc.c, 45: 0x100
calloc /src/lib/fs-flash/array_alloc.c, 49: 0x80
calloc /src/lib/fs-flash/array_alloc.c, 51: 0x40
calloc /src/lib/fs-flash/array_alloc.c, 55: 0x40
calloc /src/lib/fs-flash/array_alloc.c, 59: 0x100
malloc /src/lib/fs-flash/array_alloc.c, 61: 0x900
devf: fs0 array CFI U: 40 S: 010000
malloc /src/lib/fs-flash/array_attach.c, 59: 0x10
calloc /src/lib/fs-flash/array_attach.c, 70: 0x80
calloc /src/lib/fs-flash/array_attach.c, 71: 0x80
calloc /src/lib/fs-flash/array_attach.c, 75: 0x98
calloc /src/lib/fs-flash/array_attach.c, 79: 0x30
calloc /src/lib/fs-flash/array_attach.c, 80: 0x30
devf: fs0p0 raw U: 40
53255 exited with status 0
els /dev
console fs0p0 fs0 tty
slog hd0t77 hd0 pipe
ser2 ser1 shmem mem
zero text null
flashctl -p/dev/fs0p0 -v -l2M -e -f -n/ -m
Erasing device /dev/fs0p0
…/…/intel/intel_read_status.c: 29 program protect error
DCMD_F3S_ERASE failed (errno 5)
flashctl: erase failed
flashctl -p/dev/fs0p0 -v -l2M -f -n/ -m
Formatting device /dev/fs0p0
…/…/intel/intel_read_status.c: 29 program protect error
…/…/intel/intel_read_status.c: 29 program protect error
devf: fs0p0 bad H[00] P[00] # 000014 (3)
DCMD_F3S_FORMAT failed (errno 5)
flashctl: format failed
Regards,
Jacek