<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: XSysAce driver cant mount DOS part</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi,<BR>
<BR>
Thanks for your insight into the older code.<BR>
I tried your fix and came up with this.<BR>
I have run e2fsck and the cf card comes up clean with that.<BR>
<BR>
heres a boot sequence:<BR>
<BR>
Initializing Cryptographic API<BR>
io scheduler noop registered<BR>
io scheduler anticipatory registered (default)<BR>
io scheduler deadline registered<BR>
io scheduler cfq registered<BR>
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled<BR>
serial8250.0: ttyS0 at MMIO 0x40421003 (irq = 4) is a 16550A<BR>
serial8250.0: ttyS1 at MMIO 0x40401003 (irq = 5) is a 16550A<BR>
RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize<BR>
XSysAce driver v0771.<BR>
IDENTIFY: heads: 16, nsec: 63, cyls: 1011, size= 1019088<BR>
REGISTERED: major no.= 125 capacity= 1019088<BR>
xsa: xsa1 xsa2 xsa3<BR>
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2<BR>
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx<BR>
mice: PS/2 mouse device common for all mice<BR>
TCP bic registered<BR>
NET: Registered protocol family 1<BR>
VFS: Mounted root (ext2 filesystem) readonly.<BR>
Freeing unused kernel memory: 100k init<BR>
EXT2-fs error (device xsa2): ext2_check_page: bad entry in directory #32689: unaligned directory entry - offset=1024, inode=1713398885, rec_len=29295, name_len=109<BR>
Warning: unable to open an initial console.<BR>
init has generated signal 11 but has no handler for it<BR>
Kernel panic - not syncing: Attempted to kill init!<BR>
<BR>
<BR>
The only thing I notice is that the disk capacity is wrong, its a 512Mb, not a 1Gb as shown.<BR>
<BR>
Any thoughts about what to look into next?<BR>
<BR>
Thanks a lot.<BR>
<BR>
<BR>
Joe Robertson<BR>
Joseph.Robertson@sanmina-sci.com<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: urwithsudheer [<A HREF="mailto:urwithsudheer@gmail.com">mailto:urwithsudheer@gmail.com</A>]<BR>
Sent: Mon 7/16/2007 12:08 AM<BR>
To: Robertson, Joseph M.<BR>
Cc: linuxppc-embedded@ozlabs.org<BR>
Subject: Re: XSysAce driver cant mount DOS part<BR>
<BR>
Hi Joe Robertson,<BR>
<BR>
Thanks for the link.<BR>
<BR>
In the xsa_thread function, can u try changing the hardcoded coded value<BR>
"2" to "xsa_cur_req->current_nr_sectors "<BR>
<BR>
<BR>
The actual code in the given link.<BR>
<BR>
for(i = xsa_cur_req->current_nr_sectors; i > 0; i-=2){<BR>
+ xsa_device.req_done = 1;<BR>
+ while ((stat = cur_req(&SysAce, sector,<BR>
+ 2,<BR>
+ buffer)) == XST_DEVICE_BUSY)<BR>
+ xsa_short_delay();<BR>
<BR>
<BR>
Try changing it to ...<BR>
<BR>
for(i = xsa_cur_req->current_nr_sectors; i > 0;<BR>
i-=xsa_cur_req->current_nr_sectors ){ xsa_device.req_done = 1;<BR>
while ((stat = cur_req(&SysAce, sector,<BR>
xsa_cur_req->current_nr_sectors ,<BR>
buffer)) == XST_DEVICE_BUSY)<BR>
xsa_short_delay();<BR>
<BR>
<BR>
<BR>
Due to the hardcoded value, it gave problem while mounting but no issue<BR>
with fdisk. It mounts well but generated a kernel BUG. Tried changing<BR>
the value to '1' from '2' , fdisk crashed but mount is working well. So<BR>
removed the hardcode value and then placed the dynamic variable<BR>
xsa_cur_req->current_nr_sectors which is chosen by kernel. And now fdisk<BR>
and mount both are working fine.<BR>
<BR>
<BR>
Pl let me know the results in your setup.<BR>
<BR>
Thanks<BR>
Sudheer<BR>
<BR>
<BR>
Robertson, Joseph M. wrote:<BR>
><BR>
> Hi,<BR>
><BR>
> Yes, I got it from here.<BR>
> <A HREF="http://www.cs.york.ac.uk/rtslab/demos/amos/xupv2pro/patches/linuxppc-2.6.17.1-sysace-1.2.patch">http://www.cs.york.ac.uk/rtslab/demos/amos/xupv2pro/patches/linuxppc-2.6.17.1-sysace-1.2.patch</A><BR>
><BR>
> The 'official' one, yes?<BR>
><BR>
> Thanks,<BR>
><BR>
> Joe Robertson<BR>
> Joseph.Robertson@sanmina-sci.com<BR>
><BR>
><BR>
><BR>
> -----Original Message-----<BR>
> From: urwithsudheer [<A HREF="mailto:urwithsudheer@gmail.com">mailto:urwithsudheer@gmail.com</A>]<BR>
> Sent: Fri 7/13/2007 4:25 AM<BR>
> To: Robertson, Joseph M.<BR>
> Cc: linuxppc-embedded@ozlabs.org<BR>
> Subject: Re: XSysAce driver cant mount DOS part<BR>
><BR>
> Hi<BR>
><BR>
> Robertson, Joseph M. wrote:<BR>
> ><BR>
> > Hi all,<BR>
> ><BR>
> > I've been workig with this for a while but have made no progress.<BR>
> > Today I got the latest XSysAce patch for kernel 2.6.17.1 and applied<BR>
> > it to get clean code.<BR>
> > I inherited the previous code from another developer.<BR>
> ><BR>
> Can you send the link to xsysace driver source code from where you<BR>
> obtained.<BR>
><BR>
><BR>
> Thanks<BR>
> Sudheer<BR>
><BR>
><BR>
> ><BR>
> > My problem is that mounting the DOS partition always fails in a short<BR>
> > time with a kernel oops.<BR>
> ><BR>
> > ECAU-9999:# Oops: kernel access of bad area, sig: 11<BR>
> > [#1] <BR>
> ><BR>
> PREEMPT <BR>
> > NIP: C00701C8 LR: C0070C18 CTR:<BR>
> > 00000000 <BR>
> > REGS: c0391dd0 TRAP: 0300 Not tainted<BR>
> > (2.6.17.1) <BR>
> > MSR: 00021030 <ME,IR,DR> CR: 22028082 XER:<BR>
> > 0000000B <BR>
> > DAR: 00000000, DSISR:<BR>
> > 00800000 <BR>
> > TASK = c0373030[4] 'events/0' THREAD:<BR>
> > c0390000 <BR>
> > GPR00: 00000080 C0391E80 C0373030 C02CAC00 C0E03000 C0E03154 00000000<BR>
> > C02CAC00<BR>
> > GPR08: 00200200 00000000 00100100 00000000 00051A4B FFFFDE60 03BD4900<BR>
> > 007FFF3B<BR>
> > GPR16: 00400000 00000001 FFFFFFFF 03BCDC58 00000000 007FFF00 00000002<BR>
> > C0280000<BR>
> > GPR24: C0363A10 0000000B 00000000 00000000 00000000 C02CAC00 C035ED20<BR>
> > C0E03000<BR>
> > NIP [C00701C8]<BR>
> > free_block+0x8c/0x138 <BR>
> > LR [C0070C18]<BR>
> > drain_array+0xb8/0x124 <BR>
> > Call Trace: <BR>
> ><BR>
> > The setup:<BR>
> > My own build system.<BR>
> > Kernel 2.6.17.1 with lots of xilinx stuff, eth, i2c, xsysace.<BR>
> > Crosscompiled for PPC405.<BR>
> > Latest, clean XSysAce code. mods: major hardcoded to = 125. Polled<BR>
> > mode.<BR>
> > CF: 3 partitions,<BR>
> > 1: DOS FAT16<BR>
> > 2: Ext2 main<BR>
> > 3: Ext2 rescue<BR>
> ><BR>
> > This build boots up fine, mounts a ext2 as root fine. I can also<BR>
> > mount the rescue partition with no problems.<BR>
> ><BR>
> > Does anyone have any pointers of where I should look for problems?<BR>
> ><BR>
> > My next step is to go and set it up for interrupt service and see if<BR>
> > that changes anything.<BR>
> ><BR>
> > Thanks,<BR>
> ><BR>
> > Joe Robertson<BR>
> > Joseph.Robertson@sanmina-sci.com<BR>
> ><BR>
> ><BR>
> > CONFIDENTIALITY<BR>
> > This e-mail message and any attachments thereto, is intended only for<BR>
> > use by the addressee(s) named herein and may contain legally<BR>
> > privileged and/or confidential information. If you are not the<BR>
> > intended recipient of this e-mail message, you are hereby notified<BR>
> > that any dissemination, distribution or copying of this e-mail<BR>
> > message, and any attachments thereto, is strictly prohibited. If you<BR>
> > have received this e-mail message in error, please immediately notify<BR>
> > the sender and permanently delete the original and any copies of this<BR>
> > email and any prints thereof.<BR>
> > ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL<BR>
> > IS NOT INTENDED AS A SUBSTITUTE FOR A WRITING. Notwithstanding the<BR>
> > Uniform Electronic Transactions Act or the applicability of any other<BR>
> > law of similar substance and effect, absent an express statement to<BR>
> > the contrary hereinabove, this e-mail message its contents, and any<BR>
> > attachments hereto are not intended to represent an offer or<BR>
> > acceptance to enter into a contract and are not otherwise intended to<BR>
> > bind the sender, Sanmina-SCI Corporation (or any of its subsidiaries),<BR>
> > or any other person or entity.<BR>
> > ------------------------------------------------------------------------<BR>
> ><BR>
> > _______________________________________________<BR>
> > Linuxppc-embedded mailing list<BR>
> > Linuxppc-embedded@ozlabs.org<BR>
> > <A HREF="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</A><BR>
><BR>
><BR>
><BR>
> CONFIDENTIALITY<BR>
> This e-mail message and any attachments thereto, is intended only for<BR>
> use by the addressee(s) named herein and may contain legally<BR>
> privileged and/or confidential information. If you are not the<BR>
> intended recipient of this e-mail message, you are hereby notified<BR>
> that any dissemination, distribution or copying of this e-mail<BR>
> message, and any attachments thereto, is strictly prohibited. If you<BR>
> have received this e-mail message in error, please immediately notify<BR>
> the sender and permanently delete the original and any copies of this<BR>
> email and any prints thereof.<BR>
> ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL<BR>
> IS NOT INTENDED AS A SUBSTITUTE FOR A WRITING. Notwithstanding the<BR>
> Uniform Electronic Transactions Act or the applicability of any other<BR>
> law of similar substance and effect, absent an express statement to<BR>
> the contrary hereinabove, this e-mail message its contents, and any<BR>
> attachments hereto are not intended to represent an offer or<BR>
> acceptance to enter into a contract and are not otherwise intended to<BR>
> bind the sender, Sanmina-SCI Corporation (or any of its subsidiaries),<BR>
> or any other person or entity.<BR>
<BR>
<BR>
</FONT>
</P>
<BR>
CONFIDENTIALITY<BR>
This e-mail message and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail message, you are hereby notified that any dissemination, distribution or copying of this e-mail message, and any attachments thereto, is strictly prohibited. If you have received this e-mail message in error, please immediately notify the sender and permanently delete the original and any copies of this email and any prints thereof.<BR>
ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL IS NOT INTENDED AS A SUBSTITUTE FOR A WRITING. Notwithstanding the Uniform Electronic Transactions Act or the applicability of any other law of similar substance and effect, absent an express statement to the contrary hereinabove, this e-mail message its contents, and any attachments hereto are not intended to represent an offer or acceptance to enter into a contract and are not otherwise intended to bind the sender, Sanmina-SCI Corporation (or any of its subsidiaries), or any other person or entity.<BR>
</BODY>
</HTML>