Hi All,
'take II' as Matthieu seems to be a trend setter...
For anyone with some time, if they could try my new NAND driver[1] for the
TS-7xxx platforms that would be great. Do not worry if some of the diffs
fail[2] as we only care about the bits applicable to the TS-72[056]0 (the
stuff lurking in arch/arm/mach-ep93xx/).
As I was grumbled at, and rightly so, for not giving a suitable 'test' for
traditional NAND access and my driver for NAND access. So here is an
all-in-wonder job that should suffice for this:
# seq 0 <S> | xargs -t -I{} /bin/sh -c 'echo dd if=/dev/mtdblock<X> bs=1M
count=1 skip={} 2> /dev/null | md5sum -'
Of course to be run as root, replace '<S>' with the size of the partition in
MiB and '<X>' is the partition. Once done cut'n'paste the two outputs into
separate textfiles and 'diff -u' them. There *should* be some differences if
you are doing this on a filesystem that has been mounted/changed since you
ran the last test.
To be honest, if it detects the NAND and lists the partition tables
correctly, then there should not really be any other problems and the
difficult bit of the code is out of the way.
For those curious about what makes this driver more special than the previous
one[4]. I had to change the platform drivers to pass physical addresses
rather than already ioremap()'ed virtual ones so that later on I can add DMA
support. The ECC HW support for the TS-7800 has also been added, although I
would not trust it until Jesse from TS gets back to me[5] regarding
inconsistencies between their technical textfile of the NAND[6] and what they
actually do in their driver implementation. :-/
Cheers for those who can spare the time to help out.
Alex
[1] http://www.digriz.org.uk/files/ts7800/orion-ts7800/ts78xx-nand.diff
[2] as you probably are not using the orion5x tree or have my TS-78xx
patch[3] applied
[3]
http://www.digriz.org.uk/files/ts7800/orion-ts7800/orion5x-ts78xx.20080607.patch
[4] http://tech.groups.yahoo.com/group/ts-7000/message/11616
[5] hint hint if you are reading this... :)
[6]
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7800-linux/docs/ts-7800-nand-regmap.txt
--
________________________________________
/ The course of true anything never does \
| run smooth. |
| |
\ -- Samuel Butler /
----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|