Welcome! Log In Create A New Profile

Advanced

compile kernel, integrate sata driver, detected but no sda,why?

Posted by youxiaojie 
compile kernel, integrate sata driver, detected but no sda,why?
September 18, 2020 12:19AM
I compile kernel of new openwrt 5.4 for pogo plug,
[    1.159142] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.166279] ata1.00: ATA-7: Hitachi HTS541640J9SA00, SB1OC70P, max UDMA/100
[    1.173260] ata1.00: 78140160 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    1.180961] ata1.00: configured for UDMA/100
[    1.185830] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HTS54164 C70P PQ: 0 ANSI: 5

disk is detected but no sda appear. what driver I miss?
this is your correct log:
[    3.407137] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    3.414295] ata1.00: ATA-7: Hitachi HTS541640J9SA00, SB1OC70P, max UDMA/100
[    3.421283] ata1.00: 78140160 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    3.428999] ata1.00: configured for UDMA/100
[    3.433809] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HTS54164 C70P PQ: 0 ANSI: 5
[    3.443691] sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.3 GiB)
[    3.451399] sd 0:0:0:0: [sda] Write Protect is off
[    3.456181] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    3.456384] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

your kenel and rootfs missing b43 wireless driver realtek net phy driver, so I compiled from openwrt integrate sata diver ,no sda appear, so which driver I miss?



Edited 1 time(s). Last edit at 09/18/2020 12:19AM by youxiaojie.
Re: compile kernel, integrate sata driver, detected but no sda,why?
September 18, 2020 01:28AM
youxiaojie,

> I compile kernel of new openwrt 5.4 for pogo
> plug,

Which pogoplug? the Pogo V3 OXNAS or the Pogo E02 Kirkwood?

> your kenel and rootfs missing b43 wireless driver
> realtek net phy driver, so I compiled from openwrt
> integrate sata diver ,no sda appear, so which
> driver I miss?

You could have requested that the b43 Wifi be included, and I'll be glad to add that :) Probably just a minor addition to the kernel config.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: compile kernel, integrate sata driver, detected but no sda,why?
September 18, 2020 01:58AM
pogov3,
1.I just feel strange that why there is no sda appear, what I did is try to compile kernel to include oxnas disk driver so that I can mount harddisk as root and boot from it.for now harddisk recognized but sda not appear. could you give me some viewpoint?

2do you have your kernel's source code? could you please add b43 wifi driver and realtek.ko from drivers/net/phy?
thanks.
Re: compile kernel, integrate sata driver, detected but no sda,why?
September 18, 2020 04:30AM
youxiaojie,

> 1.I just feel strange that why there is no sda
> appear, what I did is try to compile kernel to
> include oxnas disk driver so that I can mount
> harddisk as root and boot from it.for now harddisk
> recognized but sda not appear. could you give me
> some viewpoint?

On top of my head, I can't think of any reason. But do check these SATA config options, see if they are configured in:

CONFIG_SATA_PMP=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_AHCI_PLATFORM=y
CONFIG_SATA_OXNAS=y

> 2do you have your kernel's source code? could you
> please add b43 wifi driver and realtek.ko from
> drivers/net/phy?
> thanks.

The kernel source is basically the patch and config file in the tarball. Apply it to kernel 4.14.180 source from mainline tree.


Quote
https://forum.doozan.com/read.php?2,16044
Updated 14 May 2020:

Kernel linux-4.14.180-oxnas-tld-1 package was uploaded.

.....

This tarball contains 6 files:

Quote

linux-image-4.14.180-oxnas-tld-1_1.0_armel.deb
linux-headers-4.14.180-oxnas-tld-1_1.0_armel.deb
config-4.14.180-oxnas-tld-1
zImage-4.14.180-oxnas-tld-1
linux-dtb-4.14.180-oxnas-tld-1.tar
linux-4.14.180-oxnas-tld-1.patch

Sure, I will add this b43 Wifi driver in the next release (probably 5.4.66).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: compile kernel, integrate sata driver, detected but no sda,why?
September 18, 2020 11:51AM
thanks.
also add realtek network phy, which is used in pogo v3. thanks!
Re: compile kernel, integrate sata driver, detected but no sda,why?
September 18, 2020 11:55AM
and to tell you a good news spl 2015.10 is ok, I am testing and polishing. and then I want to upgrade it to the newest version. does it help to you?
Re: compile kernel, integrate sata driver, detected but no sda,why?
September 18, 2020 04:25PM
youxiaojie,

> and to tell you a good news spl 2015.10 is ok, I
> am testing and polishing.

Cool! will keep that in mind.

I don't have any plan to upgrade u-boot for this device for (the current version could be the last, since we don't have a lot of OXNAS users).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: compile kernel, integrate sata driver, detected but no sda,why?
September 24, 2020 05:58PM
youxiaojie,

A little busy but I did not forget this :) will release kernel 4.14.198 soon.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: compile kernel, integrate sata driver, detected but no sda,why?
October 02, 2020 09:20PM
youxiaojie,

Please see:
https://forum.doozan.com/read.php?2,16044,108834#msg-108834

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: