All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 10471] New: Building a mipsel kernel format vmlinuz (+ gzip + initrd) generates non-compressed, non-bootable image
Date: Tue, 31 Oct 2017 16:16:19 +0000	[thread overview]
Message-ID: <bug-10471-163@https.bugs.busybox.net/> (raw)

https://bugs.busybox.net/show_bug.cgi?id=10471

            Bug ID: 10471
           Summary: Building a  mipsel kernel format vmlinuz (+ gzip +
                    initrd) generates non-compressed, non-bootable image
           Product: buildroot
           Version: 2017.02
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: a.enchevich at gmail.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

Created attachment 7376
  --> https://bugs.busybox.net/attachment.cgi?id=7376&action=edit
My buildroot's .config file

I have sources + images provided by Broadcom for their 7362a0 set top box
boards. The kernel image there is has initrd linked in and is:

$ ls -l 
-rw-r--r-- 1  me users  5669240 Sep 20 17:52 vmlinuz-initrd-7362a0

$ file vmlinuz-initrd-7362a0
vmlinuz-initrd-7362a0: gzip compressed data, last modified: Wed Sep 20 14:52:20
2017, max compression, from Unix

So the vmlinuz that works is about 5.7MB, gzipped, with the initrd.

 = = =

When I try generating a vmlinuz kernel in buildroot, however, I am getting a
file which is ELF and DOES NOT have the initrd and can not be booted:
-rw-r--r-- 1  me users  8814700 Oct 31 14:04 vmlinuz-from-BR2

$ file vmlinuz-from-BR2 
vmlinuz-from-BR2: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV),
statically linked, stripped

The reasons I am saying that initrd is not linked in, is because:
a) the vmlinuz image dies very early during the TFTP transfer (packet 8 or 9).
b) because I also tried compiling a vmlinux image+initrd. That one is about
21MB and about 8.8MB stripped and gzipped. I tried booting the gzipped vmlinux
and it works fine. I do not yet know the reason why it is so much bigger than
Broadcom's original vmlinuz image, but I suppose it is because I linked in
various packages to play with - DirectFB, SDL, SDL2, etc...

 = = =

So firstly, it seems that the option 'initial RAM filesystem linked into linux
kernel' from the Filesystem images menu is ignored in the case of vmlinuz.

Secondly, I was expecting a gzipped data (not and ELF binary) when option
'Kernel compression format (gzip compression)' is selected (regardless of
vmlinux/vmlinuz).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2017-10-31 16:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-31 16:16 bugzilla at busybox.net [this message]
2017-10-31 16:17 ` [Buildroot] [Bug 10471] Building a mipsel kernel format vmlinuz (+ gzip + initrd) generates non-compressed, non-bootable image bugzilla at busybox.net
2017-10-31 16:27 ` bugzilla at busybox.net
2017-10-31 16:33 ` bugzilla at busybox.net
2017-10-31 16:34 ` bugzilla at busybox.net
2017-10-31 16:44 ` bugzilla at busybox.net
2017-10-31 16:45 ` bugzilla at busybox.net
2017-10-31 16:46 ` bugzilla at busybox.net
2017-10-31 21:01 ` bugzilla at busybox.net
2018-01-10 21:27 ` bugzilla at busybox.net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-10471-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.