Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

Re: gpio-addr-flash: probe of gpio-addr-flash.0 failed with error -22

$
0
0

Aaronwu,

 

Thank you for looking at this.

I am making progress

 

The biggest issue was in:

static struct platform_device ezbrd_flash_device = {

.num_resources = 1, should have been  .num_resources = ARRAY_SIZE(ezbrd_flash_resource),

 

Then:

/*.name  = "cfi_probe",*/ mattered and needed to be un-commented.

 

After that the MTD Driver installed along with GPIIO Address Mapping with some issues because my partition allocations did not end up on erase sector boundaries once I fixed that the Driver installed and mapped all three partitions.

 

The first thing my code does is try to open a file in /dev/mtd2.   This caused a CPLB miss exception when that partition was mapped above 0x203fffff.  When I moved it below 0x203fffff all is fine.

 

Anything I try above 0x203fffff causes a CPLB miss,That would be flash_eraseall, cp etc.


I think I saw it say that the address that was above 0x203ffff is reserved, I will now look into how to change that, I would appreciate any pointers.

 

Jeff


Viewing all articles
Browse latest Browse all 36216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>