LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   cannot load image from hdd. (http://www.linuxquestions.org/questions/linux-kernel-70/cannot-load-image-from-hdd-677106/)

vv40in 10-17-2008 10:25 AM

cannot load image from hdd.
 
Hello! Help me please to load my linux!
Problem :
The log shows the 3th port on SATA is lived (ST940813AM). there is SATA to PATA converter on SiL3114.

Config: sparc32;linux2.6;root=/dev/hdc1.

There is log below (i added some strings to soures):

sil_init_once SIL(3114)
...
ata3 port frozen
DEV: registering device: ID = 'host2'
kobj_set_name : host2
kobject host2: registering. parent: 0000:00:12.0, set: devices
create_dir host2
CLASS: registering class device: ID = 'host2'
kobj_set_name : host2
kobject host2: registering. parent: scsi_host, set: class_obj
create_dir host2
fill_kobj_path: path = '/class/scsi_host/host2'
class_uevent - name = host2
fill_kobj_path: path = '/devices/pci0000:00/0000:00:12.0/host2'
port EH scheduled
ENTER
ENTER
flush #1
ENTER
ENTER
ata3 port frozen
ENTER
about to softreset, devmask=1
ata3: bus reset via SRST
found ATA device by sig
EXIT, classes[0]=1 [1]=0
ENTER ata_std_post_reset classes 1 5
<6>ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
EXIT
ata3 port thawed
ENTER
ata_exe_int_sg n 1
ata3: cmd 0xEC
ata_pio_task f033a28c
ata3: protocol 2 task_state 2 (dev_stat 0x58)
ata_pio_sect data read
ata_data_xfer(r) len 200
//ata_data_xfer done. buflen 200
ata3: protocol 2 task_state 3 (dev_stat 0x50)
ata3: dev 0 command complete, drv_stat 0x50
ENTER
flush #1
<7> to probe
exec tfs
dev_conf &nsect f0338454
dev_conf
dev_conf
ATA_DEV_ATA
<6><6>ata3.00: ATA-6: ST940813AM, 5.03, max UDMA/100
<6>ata3.00: 78140160 sectors, multi 0: LBA48
<6>ata3.00: applying bridge limits
set features - xfer mode
ata_exe_int_sg n 0
ata3: cmd 0xEF
ata3: protocol 1 task_state 3 (dev_stat 0x50)
ata3: dev 0 command complete, drv_stat 0x50
ENTER
flush #1
EXIT, err_mask=0
ata_exe_int_sg n 1
ata3: cmd 0xEC
ata3: protocol 2 task_state 2 (dev_stat 0x58)
ata_pio_sect data read
ata_data_xfer(r) len 200
ata3: protocol 2 task_state 3 (dev_stat 0x50)
ata3: dev 0 command complete, drv_stat 0x50
ENTER
flush #1
<7> to probe
exec tfs
dev_conf
dev_conf
ATA_DEV_ATA
<6><6>ata3.00: ATA-6: ST940813AM, 5.03, max UDMA/100
<6>ata3.00: 78140160 sectors, multi 0: LBA48
xfer_shift=12, xfer_mode=0x45
<6>ata3.00: configured for UDMA/100
EXIT, rc=0
EXIT
...
/sil_init_once SIL(3114) OK
...
bound device '0000:00:12.0' to driver 'sata_sil'
pci: Bound Device 0000:00:12.0 to Driver sata_sil
...
VFS: Cannot open root device "hdc1" or unknown-block(0,0)
Please append a correct "root=" boot option
====

Also, as i see - there are no any of:
/sys/block/hd* or /sys/block/sd*
files(directories). Why?

amani 10-17-2008 11:13 AM

Use the boot-time kernel parameter

all_generic_ide=1

and others


Also root=...??

SATA FAQ: http://linux-ata.org/driver-status.html

vv40in 10-17-2008 12:10 PM

Quote:

Originally Posted by amani (Post 3313565)
Use the boot-time kernel parameter

all_generic_ide=1

and others


Also root=...??

SATA FAQ: http://linux-ata.org/driver-status.html

1)root=/dev/hdc1
2) and others ?
2)what is all_generic_ide=1? i tryed it (with CONFIG_ATA_GENERIC). nothing changed.
my controller is SATA(sil3114) with SATAtoPATA converter on 3rd port.

vv40in 10-19-2008 06:37 AM

i must add that controller is on the PCI bus. Is it has a very importance?


also, i tried to configure as below:

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
CONFIG_ATACTRL=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_OFFBOARD=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_IDEDMA=y

#
# Serial ATA (prod) and Parallel ATA (experimental) drivers
#
CONFIG_ATA=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_SIL=y
CONFIG_ATA_GENERIC=y


and as i see in logs: add_disk() was never called !!! :(

vv40in 10-19-2008 11:39 AM

i added
CONFIG_BLK_DEV_SD=y
and it started work ! (but dma not working yet :( )


All times are GMT -5. The time now is 01:30 AM.