Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #53291

Bug#818598: src:linux: MTD device probe failed after migrating kernel variant from -orion5x to -marvell

From Roger Shimizu <rogershimizu@gmail.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#818598: src:linux: MTD device probe failed after migrating kernel variant from -orion5x to -marvell
Date 2016-03-23 10:40 +0100
Message-ID <rfNqG-1nu-3@gated-at.bofh.it> (permalink)
References <re3pU-6Yy-1@gated-at.bofh.it> <reNM5-pp-1@gated-at.bofh.it> <rftBE-4jp-13@gated-at.bofh.it> <rfuem-4Pn-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[add Ben to CC list]

Dear Arnaud,

My apology to my previous email.
You were absolutely right!

On Tue, Mar 22, 2016 at 10:07 PM, Roger Shimizu <rogershimizu@gmail.com> wrote:
> Dear Arnaud,
>
> Thanks for your information!
>
> On Tue, Mar 22, 2016 at 9:25 PM, Arnaud Patard
> <arnaud.patard@rtp-net.org> wrote:
>> Roger Shimizu <rogershimizu@gmail.com> writes:
>>
>> Hi,
>>
>>> Dear Ian, Martin,
>>>
>>> May I know your comment regarding to this armel/orion5x related bug?
>>> I don't know whether qnap also uses MTD to store u-boot related stuff
>>> or not. Just guessing it may have the same issue.
>>
>> From a quick look at your logs, your mtd device is needing support for
>> cmdset 2, provided by cfi_cmdset_0002.ko (CONFIG_MTD_CFI_AMDSTD). Maybe
>> it's not available when the mtd chip is probed ?
>> Eg missing in the initrd or should be built-in or something like that ?

Yes. After appending "cfi_cmdset_0002" to /etc/initramfs-tools/modules,
do an "update-initramfs -u", then the MTD becomes probing OK.

And -kirkwood flavour usually takes CONFIG_MTD_CFI_AMDSTD=m
while -orion5x flavour usually takes CONFIG_MTD_CFI_AMDSTD=y

After merging to -marvell, it should take the superset [0],
and set CONFIG_MTD_CFI_AMDSTD=y

I'll make this change if nobody is against with it.

> I haven't tried your idea yet.
> But I did confirm that for 4.4.0-trunk-orion5x (4.4-1~exp1),
> cfi_cmdset_0002.ko is never loaded, but MTD is OK.
>
> Please also be noted that both kernel (-orion5x and -marvell) are
> doing the MTD probe in around 1.7-1.8 second after kernel boots, at
> which time the modules are not loaded yet.
> So the driver compiled in the module should be irrelevant. I think the
> root cause may be something else.

Sorry for my bad human memory.
And thanks again for your favour!

[0] https://lists.debian.org/debian-arm/2016/03/msg00036.html

-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 17B3ACB1

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#818598: src:linux: MTD device probe failed after migrating kernel variant from -orion5x to -marvell Roger Shimizu <rogershimizu@gmail.com> - 2016-03-18 15:20 +0100
  Processed: src:linux: MTD device probe failed after migrating  kernel variant from -orion5x to -marvell owner@bugs.debian.org (Debian Bug Tracking System) - 2016-03-18 15:20 +0100
  Bug#818598: src:linux: MTD device probe failed after migrating kernel variant from -orion5x to -marvell Roger Shimizu <rogershimizu@gmail.com> - 2016-03-20 16:50 +0100
    Bug#818598: src:linux: MTD device probe failed after migrating kernel variant from -orion5x to -marvell Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> - 2016-03-22 13:30 +0100
      Bug#818598: src:linux: MTD device probe failed after migrating kernel variant from -orion5x to -marvell Roger Shimizu <rogershimizu@gmail.com> - 2016-03-22 14:10 +0100
        Bug#818598: src:linux: MTD device probe failed after migrating kernel variant from -orion5x to -marvell Roger Shimizu <rogershimizu@gmail.com> - 2016-03-23 10:40 +0100
          Bug#818598: src:linux: MTD device probe failed after migrating kernel variant from -orion5x to -marvell Ben Hutchings <ben@decadent.org.uk> - 2016-03-23 19:20 +0100
            Bug#818598: src:linux: MTD device probe failed after migrating kernel variant from -orion5x to -marvell Roger Shimizu <rogershimizu@gmail.com> - 2016-03-24 00:40 +0100
  Processed: Re: Bug#818598: src:linux: MTD device probe failed  after migrating kernel variant from -orion5x to -marvell owner@bugs.debian.org (Debian Bug Tracking System) - 2016-03-30 12:40 +0200

csiph-web