Re: [OpenWrt-Devel] MTD rework

2010-05-03 Thread Bernhard Loos
Olmari from irc tested it, but I don't remember, which device he had. But I don't see, how this could be a problem. The bootloader only calculates the crc over trx->len, which gets also fixed up. I don't think he runs any additional checks or uses the value in some way The only place I know of, whe

Re: [OpenWrt-Devel] MTD rework

2010-05-03 Thread Felix Fietkau
On 2010-05-03 1:27 AM, Bernhard Loos wrote: > Ok, I did split the patch in two parts. > The first one introduces libmtd.c and moves the mtd open/close > functions there and the second one contains the rest of the rework. > The second patch is still rather big, but it's not so easy to separate > it

Re: [OpenWrt-Devel] MTD rework

2010-04-30 Thread Bernhard Loos
I tried to, but it didn't work out very well in the first version of the patch. It should be easier in the current version, but I kinda forgot about it, sorry. Bernhard 2010/4/30 Felix Fietkau : > On 2010-04-30 6:45 PM, Bernhard Loos wrote: >> Hello >> While trying to add a crc fixup similia

Re: [OpenWrt-Devel] MTD rework

2010-04-30 Thread Felix Fietkau
On 2010-04-30 6:45 PM, Bernhard Loos wrote: > Hello > While trying to add a crc fixup similiar to the one for the wrt160nl > to the ar525w, I stumbled over a number of problems in the mtd code. > Primarily, the current system will not work with sysupgrade. Also, > it's pretty hard to add new fixups

[OpenWrt-Devel] MTD rework

2010-04-30 Thread Bernhard Loos
Hello While trying to add a crc fixup similiar to the one for the wrt160nl to the ar525w, I stumbled over a number of problems in the mtd code. Primarily, the current system will not work with sysupgrade. Also, it's pretty hard to add new fixups and there are a number of devices which could use the