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


Groups > linux.debian.kernel > #58565

Bug#870185: FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II

From "Robert Schlabbach" <Robert.Schlabbach@gmx.net>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#870185: FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II
Date 2017-07-31 18:20 +0200
Message-ID <u9lAe-8rv-7@gated-at.bofh.it> (permalink)
References <u92xA-4C8-19@gated-at.bofh.it> <u974d-7xK-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Ok, I figured it out. I noticed that the 4.11 kernel has a more "generous" memory layout than the 4.9 one:

kernel 4.9:

[    0.000000] Memory: 504492K/524288K available (3777K kernel code, 371K rwdata, 1128K rodata, 296K init, 247K bss, 19796K reserved, 0K cma-reserved, 0K highmem)

kernel 4.11:

[    0.000000] Memory: 502648K/524288K available (4096K kernel code, 398K rwdata, 1132K rodata, 1024K init, 248K bss, 21640K reserved, 0K cma-reserved, 0K highmem)

So I suspected that the 4.11 kernel might be overwriting/corrupting the initrd.img provided in memory before it gets to unpack it, and changed the memory location from 0xa00000 to 0xc00000:

Marvell>> tftpboot 0x800000 C0A80802.img-4.11-bpo
[...]
Marvell>> cp.l 0xf8400000 0xc00000 0x240000
Marvell>> setenv bootargs earlycon console=ttyS0,115200 root=/dev/ram initrd=0xc00000,0x900000 ramdisk=34816 coherent_pool=1M
Marvell>> bootm 0x800000
## Booting image at 00800000 ...
   Image Name:   kernel 4.11.0-0.bpo.1-marvell
   Created:      2017-07-30  23:17:11 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076472 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.11.0-0.bpo.1-marvell (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 Debian 4.11.6-1~bpo9+1 (2017-07-09)
[...]
[    0.267272] Unpacking initramfs...
[    0.597766] Freeing initrd memory: 9216K
[...]
Welcome to Debian GNU/Linux 9 (stretch)!

Voila! It's finally booting!

So, was the 4.11 kernel compiled/linked with a wrong alignment padding setting? Or should the bootloader environment be changed to permanently use the higher address for passing initrd.img to the kernel?

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


Thread

Bug#870185: FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II "Robert Schlabbach" <Robert.Schlabbach@gmx.net> - 2017-07-30 22:00 +0200
  Bug#870185: Acknowledgement (FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II) "Robert Schlabbach" <Robert.Schlabbach@gmx.net> - 2017-07-31 02:50 +0200
  Bug#870185: Acknowledgement (FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II) "Robert Schlabbach" <Robert.Schlabbach@gmx.net> - 2017-07-31 12:10 +0200
  Bug#870185: Acknowledgement (FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II) "Robert Schlabbach" <Robert.Schlabbach@gmx.net> - 2017-07-31 17:50 +0200
  Bug#870185: FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II "Robert Schlabbach" <Robert.Schlabbach@gmx.net> - 2017-07-31 18:20 +0200
    Bug#870185: FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II Ben Hutchings <ben@decadent.org.uk> - 2017-08-12 23:10 +0200
      Bug#870185: FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II Ian Campbell <ijc@debian.org> - 2017-08-13 11:00 +0200
        Bug#870185: FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II "Robert Schlabbach" <Robert.Schlabbach@gmx.net> - 2017-08-13 12:10 +0200
          Bug#870185: FATAL: kernel 4.11.0-0.bpo.1-marvell does not boot on QNAP TS-219P II Ian Campbell <ijc@debian.org> - 2017-08-13 12:10 +0200
  Processed: Re: Bug#870185: armel/marvell kernel size owner@bugs.debian.org (Debian Bug Tracking System) - 2017-08-21 18:30 +0200

csiph-web