Debian Buster installer on qnap ts-21x / Fujitsu Q700 : /dev/mtdblock* missing

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Debian Buster installer on qnap ts-21x / Fujitsu Q700 : /dev/mtdblock* missing

Lukas Straub
Package: linux
Version: 4.19.12-1

Hello Everyone,
I tried the latest Buster Installer on my Fujitsu Q700 (rebranded
qnap ts-21x) and Everything works except that /dev/mtdblock* devices
are missing so flashing the kernel and initrd fails.

Regards,
Lukas Straub

dmesg.txt (11K) Download Attachment
shell.txt (1K) Download Attachment
syslog.txt (27K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Debian Buster installer on qnap ts-21x / Fujitsu Q700 : /dev/mtdblock* missing

Uwe Kleine-König-7
On 1/27/19 12:13 PM, Lukas Straub wrote:
> Package: linux
> Version: 4.19.12-1
>
> Hello Everyone,
> I tried the latest Buster Installer on my Fujitsu Q700 (rebranded
> qnap ts-21x) and Everything works except that /dev/mtdblock* devices
> are missing so flashing the kernel and initrd fails.

I see the spi-orion-Driver is not loaded. Does /dev/mtd* appear if you do

        modprobe spi-orion
        modprobe m25p80

? If not, can you please provide the output of

        ls /sys/bus/{platform,spi}/{devices,drivers}

?

BTW: flash-kernel shouldn't need mtdblock* but only mtd*.

Best regards
Uwe


signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Bug#920607: Debian Buster installer on qnap ts-21x / Fujitsu Q700 : /dev/mtdblock* missing

Bernhard Übelacker-3
Hello Everyone,
I also tried to install current testing to a qnap ts-119P II.

On Tue, 29 Jan 2019 21:43:50 +0100 =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= <[hidden email]> wrote:

> On 1/27/19 12:13 PM, Lukas Straub wrote:
> > Package: linux
> > Version: 4.19.12-1
> >
> > Hello Everyone,
> > I tried the latest Buster Installer on my Fujitsu Q700 (rebranded
> > qnap ts-21x) and Everything works except that /dev/mtdblock* devices
> > are missing so flashing the kernel and initrd fails.
>
> I see the spi-orion-Driver is not loaded. Does /dev/mtd* appear if you do
>
> modprobe spi-orion
> modprobe m25p80

Unfortunately I found just the m25p80.ko right after boot,
the spi-orion.ko is missing.
Should that be downloaded by the installer later or
already included in the initrd?

By following commands one should be able to get the
missing spi-orion.ko for the debian installer from 20190118:

    cd $(mktemp -d)
    wget http://deb.debian.org/debian/pool/main/l/linux/linux-image-4.19.0-1-marvell_4.19.12-1_armel.deb
    udpkg --unpack linux-image-4.19.0-1-marvell_4.19.12-1_armel.deb
    depmod -a

    modprobe spi-orion
    modprobe m25p80

And after that dmesg got following additional lines:

        ...
        [ 1112.557570] m25p80 spi0.0: m25p128 (16384 Kbytes)
        [ 1112.567777] 6 fixed-partitions partitions found on MTD device spi0.0
        [ 1112.567783] Creating 6 MTD partitions on "spi0.0":
        [ 1112.567793] 0x000000000000-0x000000080000 : "U-Boot"
        [ 1112.568533] 0x000000200000-0x000000400000 : "Kernel"
        [ 1112.569407] 0x000000400000-0x000000d00000 : "RootFS1"
        [ 1112.569653] 0x000000d00000-0x000001000000 : "RootFS2"
        [ 1112.569877] 0x000000080000-0x0000000c0000 : "U-Boot Config"
        [ 1112.570090] 0x0000000c0000-0x000000200000 : "NAS Config"

After that I could successfully finish a buster installation,
and boot the installed system.

If there is something more to test I have the serial console
connected and it is not yet in "production".

Kind regards,
Bernhard

Reply | Threaded
Open this post in threaded view
|

Re: Bug#920607: Debian Buster installer on qnap ts-21x / Fujitsu Q700 : /dev/mtdblock* missing

Uwe Kleine-König-5
Control: retitle -1 spi-orion not included in any udeb for armel-marvell

Hello,

On Wed, Jan 30, 2019 at 07:04:51PM +0100, Bernhard Übelacker wrote:

> Hello Everyone,
> I also tried to install current testing to a qnap ts-119P II.
>
> On Tue, 29 Jan 2019 21:43:50 +0100 =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= <[hidden email]> wrote:
> > On 1/27/19 12:13 PM, Lukas Straub wrote:
> > > Package: linux
> > > Version: 4.19.12-1
> > >
> > > Hello Everyone,
> > > I tried the latest Buster Installer on my Fujitsu Q700 (rebranded
> > > qnap ts-21x) and Everything works except that /dev/mtdblock* devices
> > > are missing so flashing the kernel and initrd fails.
> >
> > I see the spi-orion-Driver is not loaded. Does /dev/mtd* appear if you do
> >
> > modprobe spi-orion
> > modprobe m25p80
>
> Unfortunately I found just the m25p80.ko right after boot,
> the spi-orion.ko is missing.
> Should that be downloaded by the installer later or
> already included in the initrd?

Ah, I missed this bug is about the installer, not the regular
(installed) system. Indeed spi-orion is not included in any udeb.

Maybe adding spi-orion to
debian/installer/modules/armel-marvell/mtd-modules is the right fix
here, but I don't understand enough about the generation of udebs to
judge if this is right.

Best regards
Uwe

--
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

Reply | Threaded
Open this post in threaded view
|

Re: Bug#920607: Debian Buster installer on qnap ts-21x / Fujitsu Q700 : /dev/mtdblock* missing

Uwe Kleine-König-5
Control: tag -1 + pending

On Wed, Jan 30, 2019 at 09:42:32PM +0100, Uwe Kleine-König wrote:
> Maybe adding spi-orion to
> debian/installer/modules/armel-marvell/mtd-modules is the right fix
> here, but I don't understand enough about the generation of udebs to
> judge if this is right.

After getting some feedback off-list I committed this to linux.git
(https://deb.li/i78Aj).

Best regards
Uwe

--
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |