JoeyJiao/CustomMTD — comment on commit f68dbc8f1d51a7be10973ceed01911010ca009a6
File:  line 0
By JoeyJiao:

Hi Firerat,
Your concept works on my device, but I have to calculate something
manually as I have different /proc/mtd devices and different dmesg.
Several different points:
1. I don't have /dev/mtdpartmap; so I redirect to sdcard and it works.
2. different dmesg; so adjust "$dmesg|awk '/0x.+: "/ {sub(/-/,"
");gsub(/"/,"");gsub(/0x/,"");printf $8" 0x"toupper ($5)" 0x"toupper
($6)"\n"}' > $dmesgmtdpart"
3. different cache partition; so modify to mtdblock5
4. I have extra partition after userdata, so make userdata to bigger
enough and there after partitions disappeared. Haven't updated into
the script.

Your work is very good. And can you tell me in which kernel source
file reads the mtdpart from Cmdline?

在 2011年12月19日 下午5:22，Firerat

写道：
> Nice to see someone adapting for their device :)
>
> I see that your dmesg is slightly different having some 'extra' fields
> Just wondering If I can re-write the awk
>
> awk '/0x.*-0x.*:.*"$/ {for(i=1; i <= NF; i++) if ( $i ~ /0x/) { sub(/-/," ",$i) gsub(/\"/,"",$NF); printf "%s %s",$NF,$i"\n"}}'
>
> should do the trick
> it doesn't fix the CaSe, tbh I can't remember if case actually mattered
>
> Oh, I've dropped the BindCache script in later versions ( unstable branch )
> since later versions of CM6 and CM7 have better handling of DOWNLOAD_CACHE
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/JoeyJiao/CustomMTD/commit/f68dbc8f1d51a7be10973ceed01911010ca009a6#commitcomment-805494

--
-Joey Jiao