<DIV>Hi,Dear All,<BR>&nbsp; I tried to add a Rocket 133s card and a harddisk into the <BR>CSB272&nbsp; card which is a demo card with PPC405GP and montavisa linux 3.0. I inserted&nbsp; the Rocket 133s card(pci-to-ide card with hpt371 chip on it)to the CSB272&nbsp; board PCI slot, and connected the IDE harddisk to it with special IDE line&nbsp; and turn on the power.<BR>&nbsp;&nbsp; First I cross-compiled the hpt371 chip linux driver with <BR>ppc_405-gcc&nbsp; and ppc_405-ld.Second I compiled the embedded linux kernel again with&nbsp;&nbsp;ATA/IDE and SCSI supports(scsi harddisk support).Because the hpt371 driver is&nbsp;written by scsi mode, to insmod hpt371.o must modprobe sd_mod which&nbsp; needed scsi.o and sd_mod.o. Then I started the embedded linux,but when I ran&nbsp; the order: #insmod hpt371.o the error appeared.<BR>&nbsp;&nbsp; The system chocked at Partition check.The screen appear: <BR>Partition&nbsp; check<BR>sda:<BR>but the driver can get some harddisk information at the
 beginnig of insmod hpt371.o,such as VenderID,DeviceID,and harddisk capacity(40G).I have compiled scsi&nbsp; support,partition support,file type on the harddisk,but it didn't work. The&nbsp; driver is good when I used it in the linux on my PC,it can find the partition information and files on the harddisk.I cannot find what problem in the kernel or the driver. Please tell me some important supports on compiling kernel or&nbsp; selections about driver.</DIV>
<DIV>I have did as the HPT371 supporting worker told me(type the hdx=noprobe to avoid two <BR>driver loaded&nbsp; for hpt371), but it didn't work.<BR>The debug infomation follows below,my Linux version is &gt; 2.4.18_mvl30-walnut.<BR>&gt; <BR>&gt; U-Boot 1.1.1 (Sep&nbsp; 6 2004 - 11:32:49)<BR>&gt; <BR>&gt; CPU:&nbsp;&nbsp; IBM PowerPC 405GP Rev. E at 198 MHz (PLB=66, OPB=16, EBC=33 <BR>MHz)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PCI sync clock at 33 MHz, internal PCI arbiter enabled<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16 kB I-Cache 8 kB D-Cache<BR>&gt; BOARD: Cogent CSB272<BR>&gt; I2C:&nbsp;&nbsp; ready<BR>&gt; DRAM:&nbsp; 64 MB<BR>&gt; FLASH: erase_region_count = 128 erase_region_size = 131072<BR>&gt; 32 MB<BR>&gt; In:&nbsp;&nbsp;&nbsp; serial<BR>&gt; Out:&nbsp;&nbsp; serial<BR>&gt; Err:&nbsp;&nbsp; serial<BR>&gt; BEDBUG:ready<BR>&gt; Hit any key to stop autoboot:&nbsp; 5 <BR>&gt; u-boot=&gt; run bootcmd<BR>&gt; ENET Speed is 100 Mbps - HALF duplex
 connection<BR>&gt; TFTP from server 10.96.10.215; our IP address is 10.96.10.216<BR>&gt; Filename 'zImage_scsi.bin'.<BR>&gt; Load address: 0x200000<BR>&gt; Loading: <BR>&gt; *#################################################################<BR>&gt; &nbsp; #################################################################<BR>&gt; &nbsp; ################################<BR>&gt; done<BR>&gt; Bytes transferred = 829146 (ca6da hex)<BR>&gt; ## Booting image at 00200000 ...<BR>&gt;&nbsp;&nbsp;&nbsp; Image Name:&nbsp;&nbsp; Linux kernel Image<BR>&gt;&nbsp;&nbsp;&nbsp; Created:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2004-09-14&nbsp;&nbsp; 8:22:26 UTC<BR>&gt;&nbsp;&nbsp;&nbsp; Image Type:&nbsp;&nbsp; PowerPC Linux Kernel Image (gzip compressed)<BR>&gt;&nbsp;&nbsp;&nbsp; Data Size:&nbsp;&nbsp;&nbsp; 829082 Bytes = 809.7 kB<BR>&gt;&nbsp;&nbsp;&nbsp; Load Address: 00000000<BR>&gt;&nbsp;&nbsp;&nbsp; Entry Point:&nbsp; 00000000<BR>&gt;&nbsp;&nbsp;&nbsp; Verifying Checksum ... OK<BR>&gt;&nbsp;&nbsp;&nbsp;
 Uncompressing Kernel Image ... OK<BR>&gt; Linux version 2.4.18_mvl30-walnut (<A href="mailto:root@Redhat">root@Redhat</A>) (gcc version 3.2.1 <BR>20020930 <BR>&gt; (MontaVista)) #40 Tue Sep 14 16:19:49 CST 2004<BR>&gt; CSB272 (IBM405GP) Platform<BR>&gt; Port by MontaVista Software, Inc. (<A href="mailto:source@mvista.com">source@mvista.com</A>)<BR>&gt; On node 0 totalpages: 15360<BR>&gt; zone(0): 15360 pages.<BR>&gt; zone(1): 0 pages.<BR>&gt; zone(2): 0 pages.<BR>&gt; Kernel command line: console=ttyS0,38400 hda=noprobe root=/dev/nfs rw <BR>&gt; mem=60M nfsroot=10.96.10.215:/home/mvkit/ppc405/target <BR>&gt; ip=10.96.10.216:10.96.10.215:10.96.10.254:255.255.255.0:red::off<BR>&gt; ide_setup: hda=noprobe -- BAD OPTION<BR>&gt; Calibrating delay loop... 197.83 BogoMIPS<BR>&gt; Memory: 58520k available (1376k kernel code, 468k data, 92k init, 0k <BR>&gt; highmem)<BR>&gt; Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)<BR>&gt; Inode-cache hash table entries: 4096 (order: 3,
 32768 bytes)<BR>&gt; Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)<BR>&gt; Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)<BR>&gt; Page-cache hash table entries: 16384 (order: 4, 65536 bytes)<BR>&gt; POSIX conformance testing by UNIFIX<BR>&gt; PCI: Probing PCI hardware<BR>&gt; PCI: Cannot allocate resource region 0 of device 00:01.0<BR>&gt; PCI: Cannot allocate resource region 1 of device 00:01.0<BR>&gt; PCI: Cannot allocate resource region 2 of device 00:01.0<BR>&gt; PCI: Cannot allocate resource region 3 of device 00:01.0<BR>&gt; PCI: Cannot allocate resource region 4 of device 00:01.0<BR>&gt; Linux NET4.0 for Linux 2.4<BR>&gt; Based upon Swansea University Computer Society NET3.039<BR>&gt; Initializing RT netlink socket<BR>&gt; OCP uart ver 1.2 init complete<BR>&gt; Starting kswapd<BR>&gt; Disabling the Out Of Memory Killer<BR>&gt; Journalled Block Device driver loaded<BR>&gt; EFS: 1.0a - <A
 href="http://aeschi.ch.eu.org/efs/">http://aeschi.ch.eu.org/efs/</A><BR>&gt; i2c-core.o: i2c core module version 2.6.2 (20011118)<BR>&gt; i2c-dev.o: i2c /dev entries driver module version 2.6.2 (20011118)<BR>&gt; i2c-proc.o version 2.6.2 (20011118)<BR>&gt; initialize_kbd: Keyboard reset failed, no ACK<BR>&gt; Detected PS/2 Mouse Port.<BR>&gt; pty: 256 Unix98 ptys configured<BR>&gt; Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ <BR>&gt; SERIAL_PCI enabled<BR>&gt; ttyS00 at 0xef600300 (irq = 0) is a 16550A<BR>&gt; ttyS01 at 0xef600400 (irq = 1) is a 16550A<BR>&gt; IBM gpio driver version 02.01.21.d<BR>&gt; GPIO #0 at 0xef600700<BR>&gt; PPC 405 watchdog driver v0.5<BR>&gt; block: 128 slots per queue, batch=32<BR>&gt; RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize<BR>&gt; Uniform Multi-Platform E-IDE driver Revision: 6.31<BR>&gt; ide: Assuming 33MHz system bus speed for PIO modes; override with <BR>idebus=xx<BR>&gt; eth0: Phy @ 0x0, type
 LXT971A (0x001378e2)<BR>&gt; Reset ethernet interfaces<BR>&gt; SCSI subsystem driver Revision: 1.00<BR>&gt; request_module[scsi_hostadapter]: Root fs not mounted<BR>&gt; request_module[scsi_hostadapter]: Root fs not mounted<BR>&gt; IBM On-chip iic (i2c) algorithm module 2002.30.04<BR>&gt; iic_ibmocp_init: IBM on-chip iic adapter module<BR>&gt; NET4: Linux TCP/IP 1.0 for NET4.0<BR>&gt; IP Protocols: ICMP, UDP, TCP, IGMP<BR>&gt; IP: routing cache hash table of 512 buckets, 4Kbytes<BR>&gt; TCP: Hash tables configured (established 4096 bind 8192)<BR>&gt; opening eth0 on emac 0<BR>&gt; eth0: IBM EMAC: link up, 100 Mbps Half Duplex, auto-negotiation <BR>complete.<BR>&gt; eth0: IBM EMAC: MAC 00:0b:db:65:36:1f.<BR>&gt; eth0: IBM EMAC: open completed<BR>&gt; IP-Config: Complete:<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; device=eth0, addr=10.96.10.216, mask=255.255.255.0, <BR>gw=10.96.10.254,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host=red, domain=,
 nis-domain=(none),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bootserver=10.96.10.215, rootserver=10.96.10.215, rootpath=<BR>&gt; NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.<BR>&gt; Looking up port of RPC 100003/2 on 10.96.10.215<BR>&gt; Looking up port of RPC 100005/1 on 10.96.10.215<BR>&gt; V/FS: Mounted rooeing unused kernel memory: 92k init<BR>&gt; INIT: version 2.78 booting<BR>&gt; nfs_refresh_inode: inode number mismatch<BR>&gt; expected (0x303/0x1e4109), got (0x303/0x7456b)<BR>&gt; Activating swap...<BR>&gt; Checking all file systems...<BR>&gt; Parallelizing fsck version 1.22 (22-Jun-2001)<BR>&gt; Calculating module dependencies... nfs_refresh_inode: inode number <BR>mismatch<BR>&gt; expected (0x303/0x22c67f), got (0x303/0x22c682)<BR>&gt; nfs_refresh_inode: inode number mismatch<BR>&gt; expected (0x303/0x22c680), got (0x303/0x22c683)<BR>&gt; depmod: *** Unrenfs_refresh_inode: inode number mismatch<BR>&gt; expected (0x303/0x22c681), got (0x303/0x22c684)<BR>&gt;
 nfs_refresh_inode: inode number mismatch<BR>&gt; expected (0x303/0x22c682), got (0x303/0x22c685)<BR>&gt; solved symbols infs_refresh_inode: inode number mismatch<BR>&gt; expected (0x303/0x22c683), got (0x303/0x22c67e)<BR>&gt; n /lib/modules/2.4.18_mvl30-walnut/kernel/fs/ext3/ext3.o<BR>&gt; depmod: *** Unresolved symbols in <BR>&gt; /lib/modules/2.4.18_mvl30-walnut/kernel/fs/jbd/jbd.o<BR>&gt; depmod: *** Unresolved symbols in <BR>&gt; /lib/modules/2.4.18_mvl30-walnut/kernel/fs/reiserfs/reiserfs.o<BR>&gt; done.<BR>&gt; Loading modules: <BR>&gt; mkdir: cannot create directory `/dev/pts': File exists<BR>&gt; Mounting local filesystems...<BR>&gt; nothing was mounted<BR>&gt; Cleaning: /etc/network/ifstate.<BR>&gt; Setting up IP spoofing protection: rp_filter.<BR>&gt; Disable TCP/IP Explicit Congestion Notification: done.<BR>&gt; Configuring network interfaces: done.<BR>&gt; Starting portmap daemon: portmap.<BR>&gt; Cleaning: /tmp /var/lock /var/run.<BR>&gt; nfs_refresh_inode: inode number
 mismatch<BR>&gt; expected (0x303/0x1a868a), got (0x303/0x1a8aad)<BR>&gt; INIT: Entering runlevel: 3<BR>&gt; Starting system log daemon: syslogd klogd.<BR>&gt; Starting internet superserver: inetd.<BR>&gt; nfs_refresh_inode: inode number mismatch<BR>&gt; expected (0x303/0x7456e), got (0x303/0x7456b)<BR>&gt; <BR>&gt; MontaVista Linux 3.0, Professional Edition<BR>&gt; <BR>&gt; red login: root<BR>&gt; Last login: Thu Jan&nbsp; 1 00:00:15 1970 on console<BR>&gt; Linux red 2.4.18_mvl30-walnut #40 Tue Sep 14 16:19:49 CST 2004 ppc <BR>unknown<BR>&gt; <A href="mailto:root@red">root@red</A>:~# ls<BR>&gt; chris&nbsp; hello1&nbsp; lichen&nbsp; lily<BR>&gt; <A href="mailto:root@red">root@red</A>:~# cd prog      /programs/<BR>&gt; <A href="mailto:root@red:/programs">root@red:/programs</A># ls<BR>&gt; chenny&nbsp; hello.exe&nbsp;&nbsp;&nbsp;&nbsp; hpt1.2&nbsp; ldd2-samples-1.0.1&nbsp; scsi.o<BR>&gt; demux&nbsp; hello1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hpt371&nbsp;
 mmap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sd_mod.o<BR>&gt; hello&nbsp; hello2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hpt371.o&nbsp; pro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v5series<BR>&gt; hello.c&nbsp; helloworld.c&nbsp; info.txt&nbsp; replex&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v6series<BR>&gt; <A href="mailto:root@red:/programs">root@red:/programs</A># cd hpt1.2<BR>&gt; <A href="mailto:root@red:/programs/hpt1.2">root@red:/programs/hpt1.2</A># ls<BR>&gt; Makefile&nbsp;&nbsp; command.h&nbsp;&nbsp; glbdata.c&nbsp; hpt3xx.c&nbsp;&nbsp;&nbsp; idevice.c&nbsp;&nbsp; readme.txt<BR>&gt; atapi.h&nbsp;&nbsp;&nbsp; compiler.h&nbsp; global.h&nbsp;&nbsp; hpt3xx.h&nbsp;&nbsp;&nbsp; ihpt3xx.c&nbsp;&nbsp; stypes.h<BR>&gt; channel.c&nbsp; device.c&nbsp;&nbsp;&nbsp; hpt.c&nbsp;&nbsp; hptproc.c&nbsp;&nbsp; init.c&nbsp;&nbsp; vdevice.c<BR>&gt; channel.h&nbsp; device.h&nbsp;&nbsp;&nbsp; hpt.o&nbsp;&nbsp; hpttempl.h&nbsp; osheader.h&nbsp; vdevice.h<BR>&gt; chip.h&nbsp;&nbsp;&nbsp;
 entry.c&nbsp;&nbsp;&nbsp;&nbsp; hpt371.o&nbsp;&nbsp; ichip.c&nbsp;&nbsp;&nbsp;&nbsp; oslinux.h<BR>&gt; <A href="mailto:root@red:/programs/hpt1.2">root@red:/programs/hpt1.2</A># insmod hpt37` 1.o<BR>&gt; HPT371 UDMA/ATA133 Controller driver<BR>&gt; Version 1.1, Compiled Sep 14 2004 16:34:33<BR>&gt; Scan for chips...<BR>&gt; hpt3xx: detected 33Mhz PCI clock<BR>&gt; Scan for devices...<BR>&gt; scsi0 : hpt371<BR>&gt; <BR>&gt; hpt3xx_QueueCommand() 0/0/0 cdb=(12000000-ff000000-13560ae8)<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt;&nbsp;&nbsp; Vendor: MAXTOR 6&nbsp; Model: L040J2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rev: AR1.<BR>&gt;&nbsp;&nbsp; Type:&nbsp;&nbsp; Direct-Access&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANSI SCSI revision: 00<BR>&gt; <BR>&gt; hpt3xx_QueueCommand() 0/1/0 cdb=(12000000-ff000000-13560ae8)<BR>&gt; <BR>&gt; -----
 Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt; <BR>&gt; hpt3xx_QueueCommand() 0/2/0 cdb=(12000000-ff000000-13560ae8)<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt; <BR>&gt; hpt3xx_QueueCommand() 0/3/0 cdb=(12000000-ff000000-13560ae8)<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt; <BR>&gt; hpt3xx_QueueCommand() 0/4/0 cdb=(12000000-ff000000-13560ae8)<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt; <BR>&gt; hpt3xx_QueueCommand() 0/5/0 cdb=(12000000-ff000000-13560ae8)<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt; <BR>&gt; hpt3xx_QueueCommand() 0/6/0 cdb=(12000000-ff000000-13560ae8)<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt; <BR>&gt; hpt3xx_QueueCommand() 0/7/0 cdb=(12000000-ff000000-13560ae8)<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt; Attached scsi disk sda at scsi0, channel 0, id 0, lun 0<BR>&gt;
 <BR>&gt; hpt3xx_QueueCommand() 0/0/0 cdb=(0-0-7db0)<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt; <BR>&gt; hpt3xx_QueueCommand() 0/0/0 cdb=(25000000-0-7db0)<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; <BR>&gt; SCSI device sda: 78177791 512-byte hdwr sectors (40027 MB)<BR>&gt; Partition check:<BR>&gt;&nbsp; sda:<BR>&gt; hpt3xx_QueueCommand() 0/0/0 cdb=(28000000-0-8007db0)<BR>&gt; <BR>&gt; //============<BR>&gt; <BR>&gt; ----- Leaving hpt3xx_queueCommand() -----<BR>&gt; </DIV>
<DIV>&nbsp;By the way,<BR>&nbsp;&nbsp; Linux version is 2.4.18_mvl30-walnut on Power PC 405GP<BR>&nbsp;&nbsp; HPT371 Driver Opensouce Version is hpt371 1.1 attached in the accessory <BR>&nbsp;&nbsp; I used ppc_405-gcc and ppc_405-ld for cross-compiling .<BR>&nbsp;&nbsp; Please help me to find where is the problem in compiling embedded linux<BR>&nbsp;&nbsp; kernel or U-boot or CSB272 board or hpt371 driver .Thank you very much!<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Zheng Hongchao<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2004.9.16</DIV><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://cn.rd.yahoo.com/mail_cn/tag/10m/*http://cn.mail.yahoo.com/event/10m.html" target=blank>ÏÓÓÊÏä̫С£¿ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡</a>