Re: Can not get PATA to work for Compact Flash with 2.6.28 kernel

2009-02-04 Thread Steven A. Falco
Lixin Yao wrote: > I redefined io functions in libata-sff.c, byte operations are converted > to 16bit word operations. Maybe I should ask for HW changes in new > revisions of the board. > I do recommend that. We got it wrong on our first board too. :-) It is much better to get the hardware righ

RE: Can not get PATA to work for Compact Flash with 2.6.28 kernel

2009-02-02 Thread Lixin Yao
mount -t msdos /dev/sda1 /mnt Thanks. Lixin -Original Message- From: Steven A. Falco [mailto:sfa...@harris.com] Sent: Monday, February 02, 2009 4:52 PM To: Lixin Yao Cc: Aaron Pace; linuxppc-dev@ozlabs.org Subject: Re: Can not get PATA to work for Compact Flash with 2.6.28 kernel

Re: Can not get PATA to work for Compact Flash with 2.6.28 kernel

2009-02-02 Thread Steven A. Falco
Lixin Yao wrote: > Steven/Aaron, > > I found the problem. On my board, the CF is on a 16 bit interface on bus > of MPC8248. The HW is connected in Big Endian format. PPC Bit D0 is > connected to CF Bit D15, and PPC D1 to CF Bit D14, till PPC D0 to CF > D15. I had to swap the bytes in u-boot. I for

RE: Can not get PATA to work for Compact Flash with 2.6.28 kernel

2009-02-02 Thread Lixin Yao
efine iowrite16_rep(X, Y, Z) ide_write16_rep(X, Y, Z) #endif Thanks very much! Lixin -----Original Message- From: Steven A. Falco [mailto:sfa...@harris.com] Sent: Monday, February 02, 2009 11:38 AM To: Lixin Yao Cc: linuxppc-dev@ozlabs.org Subject: Re: Can not get PATA to work for Compact

Re: Can not get PATA to work for Compact Flash with 2.6.28 kernel

2009-02-02 Thread Aaron Pace
> > I use a San Disk compact flash (CF) card on a board with MPC8248 > processor. The CF is connected to data and address bus of the processor > and operates in TRUE IDE mode. The registers are memory mapped. I can > read the file system on the CF in u-boot (1.3.4). U-boot can identify > the CF and

Re: Can not get PATA to work for Compact Flash with 2.6.28 kernel

2009-02-02 Thread Steven A. Falco
Lixin Yao wrote: > Hello, Steven, > > I realized that and made change, I use reg-shift of 1 which u-boot uses > and works for the CF. > > local...@f0010100 { > #address-cells = <2>; > #size-cells = <1>; > compatible = "fsl,mpc8248-localbus", >

RE: Can not get PATA to work for Compact Flash with 2.6.28 kernel

2009-02-02 Thread Lixin Yao
rnel memory: 164k init ### Application running ... The San Disk CF is still not found. Any more insights/ideas? Thank you and I appreciate your help! Lixin -Original Message- From: Steven A. Falco [mailto:sfa...@harris.com] Sent: Monday, February 02, 2009 10:00 AM To: Lixin Yao Cc: l

Re: Can not get PATA to work for Compact Flash with 2.6.28 kernel

2009-02-02 Thread Steven A. Falco
Lixin Yao wrote: > > > I use a San Disk compact flash (CF) card on a board with MPC8248 > processor. The CF is connected to data and address bus of the processor > and operates in TRUE IDE mode. The registers are memory mapped. I can > read the file system on the CF in u-boot (1.3.4). U-boot can