On Dec 6, 2013, at 1:54 PM, "Niew, Sh." <shn...@gmail.com> wrote:
> On Wed, Dec 4, 2013 at 4:33 PM, Ian Campbell <i...@hellion.org.uk> wrote: >> On Wed, 2013-12-04 at 03:22 +0800, Niew, Sh. wrote: >>> On Wed, Dec 4, 2013 at 3:06 AM, Ian Campbell <i...@hellion.org.uk> wrote: >>>> >>>> I can't actually see any device tree which declare a device compatible >>>> with fsl,imx6q-ahciq, which is what the driver binds too. Very >>>> suspicious... >>>> >>>> I'm going to enable AHCI_IMX anyway, assuming it at least builds for me. >>>> The DTS thing is something which would be best resolved by you >>>> approaching the upstream developers directly. >>> >>> I checked the 3.12-1~exp1 which i get with `apt-get source linux` >>> the imx6* DTS do support SATA, probably has been mainline. >>> >>> I think AHCI_IMX is nothing use for imx6* in linux version 3.11, >>> it just a driver there but NO board support >>> >>> I'll test the 3.12-1~exp1 soon... >> >> I've only just pushed the enablement of AHCI_IMX to SVN trunk, so it >> won't be included in 3.12-1~exp1 which is already released. >> >> If you are able to rebuild from svn then please do give it a go, >> otherwise we can either wait for next week when this stuff should be >> uploaded or I could try and find somewhere to put some binaries for you. > > After i build from svn trunk and boot, it stuck at: > > [ 2.113650] ------------[ cut here ]------------ > [ 2.113681] WARNING: CPU: 2 PID: 120 at > /home/niew/linux/fs/sysfs/dir.c:526 sysfs_add_one+0x9c/0xac() > [ 2.113684] sysfs: cannot create duplicate filename > '/bus/platform/devices/ahci' > [ 2.113694] Modules linked in: sdhci(+) ahci_imx(+) micrel > [ 2.113704] CPU: 2 PID: 120 Comm: modprobe Not tainted > 3.12-trunk-armmp #1 Debian 3.12.3-1~exp1 > [ 2.113746] [<c001713c>] (unwind_backtrace+0x0/0xf4) from > [<c00125c4>] (show_stack+0x10/0x14) > [ 2.113762] [<c00125c4>] (show_stack+0x10/0x14) from [<c0486bb4>] > (dump_stack+0x80/0x90) > [ 2.113777] [<c0486bb4>] (dump_stack+0x80/0x90) from [<c0044e70>] > (warn_slowpath_common+0x70/0x8c) > [ 2.113788] [<c0044e70>] (warn_slowpath_common+0x70/0x8c) from > [<c0044ebc>] (warn_slowpath_fmt+0x30/0x40) > [ 2.113801] [<c0044ebc>] (warn_slowpath_fmt+0x30/0x40) from > [<c01922fc>] (sysfs_add_one+0x9c/0xac) > [ 2.113816] [<c01922fc>] (sysfs_add_one+0x9c/0xac) from > [<c0192ca0>] (sysfs_do_create_link_sd+0xd8/0x20c) > [ 2.113834] [<c0192ca0>] (sysfs_do_create_link_sd+0xd8/0x20c) from > [<c02af0bc>] (bus_add_device+0xfc/0x188) > [ 2.113846] [<c02af0bc>] (bus_add_device+0xfc/0x188) from > [<c02ad420>] (device_add+0x330/0x624) > [ 2.113861] [<c02ad420>] (device_add+0x330/0x624) from [<c02b12d4>] > (platform_device_add+0xb4/0x218) > [ 2.113883] [<c02b12d4>] (platform_device_add+0xb4/0x218) from > [<bf005368>] (imx_ahci_probe+0x190/0x1f0 [ahci_imx]) > [ 2.113901] [<bf005368>] (imx_ahci_probe+0x190/0x1f0 [ahci_imx]) > from [<c02b0f64>] (platform_drv_probe+0x18/0x1c) > [ 2.113913] [<c02b0f64>] (platform_drv_probe+0x18/0x1c) from > [<c02afd44>] (driver_probe_device+0x10c/0x228) > [ 2.113932] [<c02afd44>] (driver_probe_device+0x10c/0x228) from > [<c02ae2a8>] (bus_for_each_drv+0x58/0x8c) > [ 2.113945] [<c02ae2a8>] (bus_for_each_drv+0x58/0x8c) from > [<c02afc08>] (device_attach+0x74/0x88) > [ 2.113956] [<c02afc08>] (device_attach+0x74/0x88) from > [<c02af1cc>] (bus_probe_device+0x84/0xa8) > [ 2.113966] [<c02af1cc>] (bus_probe_device+0x84/0xa8) from > [<c02ad474>] (device_add+0x384/0x624) > [ 2.113977] [<c02ad474>] (device_add+0x384/0x624) from [<c02b12d4>] > (platform_device_add+0xb4/0x218) > [ 2.113992] [<c02b12d4>] (platform_device_add+0xb4/0x218) from > [<bf005368>] (imx_ahci_probe+0x190/0x1f0 [ahci_imx]) > [ 2.114015] [<bf005368>] (imx_ahci_probe+0x190/0x1f0 [ahci_imx]) > from [<c02b0f64>] (platform_drv_probe+0x18/0x1c) > [ 2.114031] [<c02b0f64>] (platform_drv_probe+0x18/0x1c) from > [<c02afd44>] (driver_probe_device+0x10c/0x228) > [ 2.114050] [<c02afd44>] (driver_probe_device+0x10c/0x228) from > [<c02aff30>] (__driver_attach+0x8c/0x90) > [ 2.114074] [<c02aff30>] (__driver_attach+0x8c/0x90) from > [<c02ae208>] (bus_for_each_dev+0x60/0x94) > [ 2.114095] [<c02ae208>] (bus_for_each_dev+0x60/0x94) from > [<c02af4d0>] (bus_add_driver+0x1d8/0x280) > [ 2.114109] [<c02af4d0>] (bus_add_driver+0x1d8/0x280) from > [<c02b052c>] (driver_register+0x78/0xf8) > [ 2.114128] [<c02b052c>] (driver_register+0x78/0xf8) from > [<c0008a38>] (do_one_initcall+0xf8/0x144) > [ 2.114160] [<c0008a38>] (do_one_initcall+0xf8/0x144) from > [<c00a2c88>] (load_module+0x1b50/0x2120) > [ 2.114177] [<c00a2c88>] (load_module+0x1b50/0x2120) from > [<c00a3300>] (SyS_init_module+0xa8/0xec) > [ 2.114201] [<c00a3300>] (SyS_init_module+0xa8/0xec) from > [<c000e760>] (ret_fast_syscall+0x0/0x30) > [ 2.114208] ---[ end trace 2f5e4fd664efe344 ]--- > [ 2.121855] ahci-imx: probe of ahci failed with error -17 > [ 2.122028] platform ahci: failed to claim resource 0 > [ 2.122041] ahci-imx: probe of ahci failed with error -16 > [ 2.433685] sdhci: Copyright(c) Pierre Ossman > [ 2.438962] sdhci-pltfm: SDHCI platform and OF driver helper > [ 2.447394] mmc0: no vqmmc regulator found > [ 2.489354] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] > using ADMA > [ 2.498128] mmc1: no vqmmc regulator found > [ 2.537348] mmc1: SDHCI controller on 219c000.usdhc [219c000.usdhc] > using ADMA > Begin: Loading essential drivers ... done. > Begin: Running /scripts/init-premount ... done. > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... > done. > Begin: Waiting for root file system ... > done. > Gave up waiting for root device. Common problems: > - Boot args (cat /proc/cmdline) > - Check rootdelay= (did the system wait long enough?) > - Check root= (did the system wait for the right device?) > - Missing modules (cat /proc/modules; ls /dev) > ALERT! /dev/sda2 does not exist. Dropping to a shell! > modprobe: module i8042 not found in mo[ 33.061916] ehci_hcd: USB 2.0 > 'Enhanced' Host Controller (EHCI) Driver > dules.dep > [ 33.069851] ehci-pci: EHCI PCI platform driver > [ 33.080615] ehci-orion: EHCI orion driver > modprobe: module uhci-hcd not found in modules.dep > [ 33.111836] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver > > > BusyBox v1.21.1 (Debian 1:1.21.0-1) built-in shell (ash) > Enter 'help' for a list of built-in commands. > > /bin/sh: can't access tty; job control turned off > (initramfs) cat /proc/version > Linux version 3.12-trunk-armmp (debian-kernel@lists.debian.org) (gcc > version 4.8.2 (Debian 4.8.2-5) ) #1 SMP Debian 3.12.3-1~exp1 > (2013-11-22) > (initramfs) lsmod > Module Size Used by Tainted: G > ohci_hcd 22139 0 > ehci_orion 2860 0 > ehci_pci 2914 0 > ehci_hcd 39021 2 ehci_orion,ehci_pci > sdhci_esdhc_imx 6303 0 > sdhci_pltfm 3262 1 sdhci_esdhc_imx > sdhci 29703 2 sdhci_esdhc_imx,sdhci_pltfm > ahci_imx 2482 0 > micrel 4793 0 > > And i tried run `modprobe ahci_platform`, it pops up: > > (initramfs) modprobe ahci_platform > [ 390.680268] SCSI subsystem initialized > [ 390.693822] ahci ahci: SSS flag set, parallel bus scan disabled > [ 390.699797] ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 > impl platform mode > [ 390.707567] ahci ahci: flags: ncq sntf stag pm led clo only pmp pio > slum part ccc apst > [ 390.716751] scsi0 : ahci_platform > [ 390.720376] ata1: SATA max UDMA/133 mmio [mem > 0x02200000-0x02203fff] port 0x100 irq 71 > [ 391.217362] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) > [ 391.224466] ata1.00: ATA-8: Hitachi HTS543225L9A300, FBEOC40C, max UDMA/133 > [ 391.231478] ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32) > [ 391.239280] ata1.00: configured for UDMA/133 > [ 391.244023] scsi 0:0:0:0: Direct-Access ATA Hitachi > HTS54322 FBEO PQ: 0 ANSI: 5 > (initramfs) [ 391.270610] sd 0:0:0:0: [sda] 488397168 512-byte > logical blocks: (250 GB/232 GiB) > [ 391.278349] sd 0:0:0:0: [sda] Write Protect is off > [ 391.283282] sd 0:0:0:0: [sda] Write cache: enabled, read cache: > enabled, doesn't support DPO or FUA > [ 391.350560] sda: sda1 sda2 sda3 > [ 391.355233] sd 0:0:0:0: [sda] Attached SCSI disk > [ 391.366913] sd 0:0:0:0: Attached scsi generic sg0 type 0 > > And when i exit in initramfs, debian boot up successfully... > > Is it ahci_imx need ahci_platform compile with yes? Hi there, The 3.12.3-1~exp1 are push to experimental and i have test with it, but there is still the problem to boot SATA drive with ahci_imx & ahci_platform as module… This, i had mention in the threads, maybe you missed… Linux 3.12.3-1~exp1 stop at boot with: ==== [ 2.110528] ------------[ cut here ]------------ [ 2.110562] WARNING: CPU: 2 PID: 119 at /build/linux-8DErAm/linux-3.12.3/fs/sysfs/dir.c:526 sysfs_add_one+0x9c/0xac() [ 2.110566] sysfs: cannot create duplicate filename '/bus/platform/devices/ahci' [ 2.110578] Modules linked in: ahci_imx(+) sdhci(+) micrel [ 2.110593] CPU: 2 PID: 119 Comm: modprobe Not tainted 3.12-trunk-armmp #1 Debian 3.12.3-1~exp1 [ 2.110635] [<c001713c>] (unwind_backtrace+0x0/0xf4) from [<c00125c4>] (show_stack+0x10/0x14) [ 2.110659] [<c00125c4>] (show_stack+0x10/0x14) from [<c0486b70>] (dump_stack+0x80/0x90) [ 2.110691] [<c0486b70>] (dump_stack+0x80/0x90) from [<c0044e70>] (warn_slowpath_common+0x70/0x8c) [ 2.110717] [<c0044e70>] (warn_slowpath_common+0x70/0x8c) from [<c0044ebc>] (warn_slowpath_fmt+0x30/0x40) [ 2.110741] [<c0044ebc>] (warn_slowpath_fmt+0x30/0x40) from [<c01922fc>] (sysfs_add_one+0x9c/0xac) [ 2.110773] [<c01922fc>] (sysfs_add_one+0x9c/0xac) from [<c0192ca0>] (sysfs_do_create_link_sd+0xd8/0x20c) [ 2.110811] [<c0192ca0>] (sysfs_do_create_link_sd+0xd8/0x20c) from [<c02af078>] (bus_add_device+0xfc/0x188) [ 2.110839] [<c02af078>] (bus_add_device+0xfc/0x188) from [<c02ad3dc>] (device_add+0x330/0x624) [ 2.110867] [<c02ad3dc>] (device_add+0x330/0x624) from [<c02b1290>] (platform_device_add+0xb4/0x218) [ 2.110898] [<c02b1290>] (platform_device_add+0xb4/0x218) from [<bf012368>] (imx_ahci_probe+0x190/0x1f0 [ahci_imx]) [ 2.110918] [<bf012368>] (imx_ahci_probe+0x190/0x1f0 [ahci_imx]) from [<c02b0f20>] (platform_drv_probe+0x18/0x1c) [ 2.110937] [<c02b0f20>] (platform_drv_probe+0x18/0x1c) from [<c02afd00>] (driver_probe_device+0x10c/0x228) [ 2.110951] [<c02afd00>] (driver_probe_device+0x10c/0x228) from [<c02ae264>] (bus_for_each_drv+0x58/0x8c) [ 2.110962] [<c02ae264>] (bus_for_each_drv+0x58/0x8c) from [<c02afbc4>] (device_attach+0x74/0x88) [ 2.110975] [<c02afbc4>] (device_attach+0x74/0x88) from [<c02af188>] (bus_probe_device+0x84/0xa8) [ 2.110992] [<c02af188>] (bus_probe_device+0x84/0xa8) from [<c02ad430>] (device_add+0x384/0x624) [ 2.111003] [<c02ad430>] (device_add+0x384/0x624) from [<c02b1290>] (platform_device_add+0xb4/0x218) [ 2.111018] [<c02b1290>] (platform_device_add+0xb4/0x218) from [<bf012368>] (imx_ahci_probe+0x190/0x1f0 [ahci_imx]) [ 2.111041] [<bf012368>] (imx_ahci_probe+0x190/0x1f0 [ahci_imx]) from [<c02b0f20>] (platform_drv_probe+0x18/0x1c) [ 2.111066] [<c02b0f20>] (platform_drv_probe+0x18/0x1c) from [<c02afd00>] (driver_probe_device+0x10c/0x228) [ 2.111091] [<c02afd00>] (driver_probe_device+0x10c/0x228) from [<c02afeec>] (__driver_attach+0x8c/0x90) [ 2.111110] [<c02afeec>] (__driver_attach+0x8c/0x90) from [<c02ae1c4>] (bus_for_each_dev+0x60/0x94) [ 2.111122] [<c02ae1c4>] (bus_for_each_dev+0x60/0x94) from [<c02af48c>] (bus_add_driver+0x1d8/0x280) [ 2.111138] [<c02af48c>] (bus_add_driver+0x1d8/0x280) from [<c02b04e8>] (driver_register+0x78/0xf8) [ 2.111163] [<c02b04e8>] (driver_register+0x78/0xf8) from [<c0008a38>] (do_one_initcall+0xf8/0x144) [ 2.111203] [<c0008a38>] (do_one_initcall+0xf8/0x144) from [<c00a2c88>] (load_module+0x1b50/0x2120) [ 2.111233] [<c00a2c88>] (load_module+0x1b50/0x2120) from [<c00a3300>] (SyS_init_module+0xa8/0xec) [ 2.111265] [<c00a3300>] (SyS_init_module+0xa8/0xec) from [<c000e760>] (ret_fast_syscall+0x0/0x30) [ 2.111273] ---[ end trace cfdefc233ba0b1d4 ]--- [ 2.111360] ahci-imx: probe of ahci failed with error -17 [ 2.111479] platform ahci: failed to claim resource 0 [ 2.111492] ahci-imx: probe of ahci failed with error -16 [ 2.432335] sdhci: Copyright(c) Pierre Ossman [ 2.437774] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.446256] mmc0: no vqmmc regulator found [ 2.487367] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA [ 2.496127] mmc1: no vqmmc regulator found [ 2.539360] mmc1: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Waiting for root file system ... done. Gave up waiting for root device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Check root= (did the system wait for the right device?) - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/sda2 does not exist. Dropping to a shell! modprobe: module i8042 not found in mo[ 33.063595] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver dules.dep [ 33.071104] ehci-pci: EHCI PCI platform driver [ 33.081867] ehci-orion: EHCI orion driver modprobe: module uhci-hcd not found in modules.dep [ 33.113003] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver BusyBox v1.21.1 (Debian 1:1.21.0-1) built-in shell (ash) Enter 'help' for a list of built-in commands. /bin/sh: can't access tty; job control turned off (initramfs) ==== Any idea? -- Sh. Niew -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/7d91c872-76e4-472c-b343-dcabd793c...@gmail.com