All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ulrich Teichert <krypton@ulrich-teichert.org>
To: torvalds@linux-foundation.org (Linus Torvalds)
Cc: krypton@ulrich-teichert.org (Ulrich Teichert),
	mcree@orcon.net.nz (Michael Cree),
	linux@roeck-us.net (Guenter Roeck),
	rth@twiddle.net (Richard Henderson),
	ink@jurassic.park.msu.ru (Ivan Kokshaysky),
	mattst88@gmail.com (Matt Turner),
	James.Bottomley@hansenpartnership.com (James E . J . Bottomley),
	deller@gmx.de (Helge Deller),
	davem@davemloft.net (David S . Miller),
	kuba@kernel.org (Jakub Kicinski),
	linux-alpha@vger.kernel.org (alpha),
	geert@linux-m68k.org (Geert Uytterhoeven),
	linux-kernel@vger.kernel.org (Linux Kernel Mailing List),
	linux-parisc@vger.kernel.org, netdev@vger.kernel.org (Netdev),
	linux-sparse@vger.kernel.org (Sparse Mailing-list)
Subject: Re: [PATCH v2 0/4] Introduce and use absolute_pointer macro
Date: Tue, 21 Sep 2021 21:13:49 +0200 (CEST)	[thread overview]
Message-ID: <202109211913.18LJDnXp031134@valdese.nms.ulrich-teichert.org> (raw)
In-Reply-To: <CAHk-=wibRWoy4-ZkSVXUoGsUw5wKovPvRhS7r6VM+_GeBYZw1A@mail.gmail.com>

Hi,

[del]
> > The main trouble is that my system has only 64MB of memory and the smallest
> > kernel image with all drivers I need was about 105MB big.
> 
> Are you sure you aren't looking at some debug image?
> 
> I just tried building something based on your Jensen config (lots of
> new questions, you sent your old config from 4.18.0-rc5 time), and I
> get
> 
>   [torvalds@ryzen linux]$ ll -h arch/alpha/boot/vmlinux*
>   -rwxr-xr-x. 1 torvalds torvalds 5.4M Sep 20 11:32 arch/alpha/boot/vmlinux
>   -rw-r--r--. 1 torvalds torvalds 2.3M Sep 20 11:32 arch/alpha/boot/vmlinux.gz
> 
> so yeah, it's not exactly tiny, but at 5.4MB it's certainly not 105MB.

Right, I had DEBUG_INFO set. Stupid me. Now it looks much better:

valdese:~/soft/linux/kernel-git> ls -lh arch/alpha/boot/vmlinux*
-rwxr-xr-x 1 ut ut 6.4M Sep 21 18:12 arch/alpha/boot/vmlinux*
-rw-r--r-- 1 ut ut 3.0M Sep 21 18:12 arch/alpha/boot/vmlinux.gz

But it still dies before the first message from the kernel shows up.

[del]
> It would be very interesting to hear whether this all still boots. I
> do think people still occasionally boot-test some other alpha
> configurations, but maybe not.

I'm sure that other Alpha configurations are still working, but the
Jensen is a bit special. So far I know it's the only Alpha which needs
aboot and not milo as second stage bootloader. aboot itself seems to
be OK, as I can boot the ancient kernel just fine, but when I'm trying
to boot other kernels, I'm coming as far as:

aboot: loading compressed vmlinux-5-15-rc2

and that's it. I don't think I have to do something special with the
compressed image and according to https://tldp.org/HOWTO/SRM-HOWTO/aboot.html
I don't have to. But why do I have the feeling I am doing something
fundamentally wrong? Was there something with a different kernel
jumping in point or a special build option? I remember something like
that, but can't grasp it nor find it on the web.

I would try the SRM bootimage (make bootimage), but the build is broken:

valdese:~/soft/linux/kernel-git> make -j8 ARCH=alpha CROSS_COMPILE=alpha-linux- bootimage
...
  SYSMAP  System.map
  AS      arch/alpha/boot/head.o
  CC      arch/alpha/boot/stdio.o
  HOSTCC  arch/alpha/boot/tools/objstrip
arch/alpha/boot/stdio.c: In function ‘vsprintf’:
arch/alpha/boot/stdio.c:249:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
    flags |= LARGE;
          ^
arch/alpha/boot/stdio.c:250:3: note: here
   case 'x':
   ^~~~
arch/alpha/boot/tools/objstrip.c: In function ‘main’:
arch/alpha/boot/tools/objstrip.c:151:36: warning: implicit declaration of function ‘str_has_prefix’ [-Wimplicit-function-declaration]
     if (elf->e_ident[0] == 0x7f && str_has_prefix((char *)elf->e_ident + 1, "ELF")) {
                                    ^~~~~~~~~~~~~~
arch/alpha/boot/tools/objstrip.c:191:52: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘long long unsigned int’ [-Wformat=]
      fprintf(stderr, "%s: extracting %#016lx-%#016lx (at %lx)\n",
                                                    ^
arch/alpha/boot/tools/objstrip.c:200:12: error: ‘struct exec’ has no member named ‘fh’
  if (!(aout->fh.f_flags & COFF_F_EXEC)) {
            ^~
arch/alpha/boot/tools/objstrip.c:206:10: error: ‘struct exec’ has no member named ‘fh’
  if (aout->fh.f_opthdr != sizeof(aout->ah)) {
          ^~
arch/alpha/boot/tools/objstrip.c:206:38: error: ‘struct exec’ has no member named ‘ah’
  if (aout->fh.f_opthdr != sizeof(aout->ah)) {
                                      ^~
arch/alpha/boot/tools/objstrip.c:218:17: error: ‘struct exec’ has no member named ‘ah’
  fil_size = aout->ah.tsize + aout->ah.dsize;
                 ^~
arch/alpha/boot/tools/objstrip.c:218:34: error: ‘struct exec’ has no member named ‘ah’
  fil_size = aout->ah.tsize + aout->ah.dsize;
                                  ^~
arch/alpha/boot/tools/objstrip.c:219:28: error: ‘struct exec’ has no member named ‘ah’
  mem_size = fil_size + aout->ah.bsize;
                            ^~
arch/alpha/boot/tools/objstrip.c:223:22: error: ‘struct exec’ has no member named ‘ah’
       prog_name, aout->ah.text_start,
                      ^~
arch/alpha/boot/tools/objstrip.c:224:11: error: ‘struct exec’ has no member named ‘ah’
       aout->ah.text_start + fil_size, offset);
           ^~
scripts/Makefile.host:95: recipe for target 'arch/alpha/boot/tools/objstrip' failed

Was that the target used to get bootable CDROMs? Could that be broken since
the move from aout to ELF? Ugh, sorry for raising so much trouble,

CU,
Uli
-- 
Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@gmx.de | Listening to:
Stormweg 24               |Eat Lipstick: Dirty Little Secret, The Baboon Show:
24539 Neumuenster, Germany|Work Work Work, The Bellrays: Bad Reaction

WARNING: multiple messages have this Message-ID (diff)
From: Ulrich Teichert <krypton@ulrich-teichert.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ulrich Teichert <krypton@ulrich-teichert.org>,
	Michael Cree <mcree@orcon.net.nz>,
	Guenter Roeck <linux@roeck-us.net>,
	Richard Henderson <rth@twiddle.net>,
	Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
	Matt Turner <mattst88@gmail.com>,
	"James E . J . Bottomley" <James.Bottomley@hansenpartnership.com>,
	Helge Deller <deller@gmx.de>,
	"David S . Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	alpha <linux-alpha@vger.kernel.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-parisc@vger.kernel.org, Netdev <netdev@vger.kernel.org>,
	Sparse Mailing-list <linux-sparse@vger.kernel.org>
Subject: Re: [PATCH v2 0/4] Introduce and use absolute_pointer macro
Date: Tue, 21 Sep 2021 21:13:49 +0200 (CEST)	[thread overview]
Message-ID: <202109211913.18LJDnXp031134@valdese.nms.ulrich-teichert.org> (raw)
In-Reply-To: <CAHk-=wibRWoy4-ZkSVXUoGsUw5wKovPvRhS7r6VM+_GeBYZw1A@mail.gmail.com>

Hi,

[del]
> > The main trouble is that my system has only 64MB of memory and the smallest
> > kernel image with all drivers I need was about 105MB big.
> 
> Are you sure you aren't looking at some debug image?
> 
> I just tried building something based on your Jensen config (lots of
> new questions, you sent your old config from 4.18.0-rc5 time), and I
> get
> 
>   [torvalds@ryzen linux]$ ll -h arch/alpha/boot/vmlinux*
>   -rwxr-xr-x. 1 torvalds torvalds 5.4M Sep 20 11:32 arch/alpha/boot/vmlinux
>   -rw-r--r--. 1 torvalds torvalds 2.3M Sep 20 11:32 arch/alpha/boot/vmlinux.gz
> 
> so yeah, it's not exactly tiny, but at 5.4MB it's certainly not 105MB.

Right, I had DEBUG_INFO set. Stupid me. Now it looks much better:

valdese:~/soft/linux/kernel-git> ls -lh arch/alpha/boot/vmlinux*
-rwxr-xr-x 1 ut ut 6.4M Sep 21 18:12 arch/alpha/boot/vmlinux*
-rw-r--r-- 1 ut ut 3.0M Sep 21 18:12 arch/alpha/boot/vmlinux.gz

But it still dies before the first message from the kernel shows up.

[del]
> It would be very interesting to hear whether this all still boots. I
> do think people still occasionally boot-test some other alpha
> configurations, but maybe not.

I'm sure that other Alpha configurations are still working, but the
Jensen is a bit special. So far I know it's the only Alpha which needs
aboot and not milo as second stage bootloader. aboot itself seems to
be OK, as I can boot the ancient kernel just fine, but when I'm trying
to boot other kernels, I'm coming as far as:

aboot: loading compressed vmlinux-5-15-rc2

and that's it. I don't think I have to do something special with the
compressed image and according to https://tldp.org/HOWTO/SRM-HOWTO/aboot.html
I don't have to. But why do I have the feeling I am doing something
fundamentally wrong? Was there something with a different kernel
jumping in point or a special build option? I remember something like
that, but can't grasp it nor find it on the web.

I would try the SRM bootimage (make bootimage), but the build is broken:

valdese:~/soft/linux/kernel-git> make -j8 ARCH=alpha CROSS_COMPILE=alpha-linux- bootimage
...
  SYSMAP  System.map
  AS      arch/alpha/boot/head.o
  CC      arch/alpha/boot/stdio.o
  HOSTCC  arch/alpha/boot/tools/objstrip
arch/alpha/boot/stdio.c: In function ‘vsprintf’:
arch/alpha/boot/stdio.c:249:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
    flags |= LARGE;
          ^
arch/alpha/boot/stdio.c:250:3: note: here
   case 'x':
   ^~~~
arch/alpha/boot/tools/objstrip.c: In function ‘main’:
arch/alpha/boot/tools/objstrip.c:151:36: warning: implicit declaration of function ‘str_has_prefix’ [-Wimplicit-function-declaration]
     if (elf->e_ident[0] == 0x7f && str_has_prefix((char *)elf->e_ident + 1, "ELF")) {
                                    ^~~~~~~~~~~~~~
arch/alpha/boot/tools/objstrip.c:191:52: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘long long unsigned int’ [-Wformat=]
      fprintf(stderr, "%s: extracting %#016lx-%#016lx (at %lx)\n",
                                                    ^
arch/alpha/boot/tools/objstrip.c:200:12: error: ‘struct exec’ has no member named ‘fh’
  if (!(aout->fh.f_flags & COFF_F_EXEC)) {
            ^~
arch/alpha/boot/tools/objstrip.c:206:10: error: ‘struct exec’ has no member named ‘fh’
  if (aout->fh.f_opthdr != sizeof(aout->ah)) {
          ^~
arch/alpha/boot/tools/objstrip.c:206:38: error: ‘struct exec’ has no member named ‘ah’
  if (aout->fh.f_opthdr != sizeof(aout->ah)) {
                                      ^~
arch/alpha/boot/tools/objstrip.c:218:17: error: ‘struct exec’ has no member named ‘ah’
  fil_size = aout->ah.tsize + aout->ah.dsize;
                 ^~
arch/alpha/boot/tools/objstrip.c:218:34: error: ‘struct exec’ has no member named ‘ah’
  fil_size = aout->ah.tsize + aout->ah.dsize;
                                  ^~
arch/alpha/boot/tools/objstrip.c:219:28: error: ‘struct exec’ has no member named ‘ah’
  mem_size = fil_size + aout->ah.bsize;
                            ^~
arch/alpha/boot/tools/objstrip.c:223:22: error: ‘struct exec’ has no member named ‘ah’
       prog_name, aout->ah.text_start,
                      ^~
arch/alpha/boot/tools/objstrip.c:224:11: error: ‘struct exec’ has no member named ‘ah’
       aout->ah.text_start + fil_size, offset);
           ^~
scripts/Makefile.host:95: recipe for target 'arch/alpha/boot/tools/objstrip' failed

Was that the target used to get bootable CDROMs? Could that be broken since
the move from aout to ELF? Ugh, sorry for raising so much trouble,

CU,
Uli
-- 
Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@gmx.de | Listening to:
Stormweg 24               |Eat Lipstick: Dirty Little Secret, The Baboon Show:
24539 Neumuenster, Germany|Work Work Work, The Bellrays: Bad Reaction

  parent reply	other threads:[~2021-09-21 19:14 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-15  3:52 [PATCH v2 0/4] Introduce and use absolute_pointer macro Guenter Roeck
2021-09-15  3:52 ` [PATCH v2 1/4] compiler.h: Introduce " Guenter Roeck
2021-09-15  7:07   ` Geert Uytterhoeven
2021-09-15  7:13   ` Geert Uytterhoeven
2021-09-15  7:13     ` Geert Uytterhoeven
2021-09-15 14:03     ` Guenter Roeck
2021-09-15 14:03       ` Guenter Roeck
2021-09-15  3:52 ` [PATCH v2 2/4] net: i825xx: Use absolute_pointer for memcpy from fixed memory location Guenter Roeck
2021-09-15  7:08   ` Geert Uytterhoeven
2021-09-15  3:52 ` [PATCH v2 3/4] alpha: Move setup.h out of uapi Guenter Roeck
2021-09-15  3:52 ` [PATCH v2 4/4] alpha: Use absolute_pointer to define COMMAND_LINE Guenter Roeck
2021-09-15 19:18 ` [PATCH v2 0/4] Introduce and use absolute_pointer macro Linus Torvalds
2021-09-15 19:35   ` Guenter Roeck
2021-09-15 19:47     ` Linus Torvalds
2021-09-15 19:50       ` Linus Torvalds
2021-09-15 21:19         ` Linus Torvalds
2021-09-16  7:02           ` Anders Larsen
2021-09-16 16:25             ` Linus Torvalds
2021-09-15 20:30       ` Helge Deller
2021-09-15 22:33       ` Guenter Roeck
2021-09-16 18:35         ` Linus Torvalds
2021-09-18  9:51           ` Michael Cree
2021-09-18 13:11             ` Ulrich Teichert
2021-09-18 13:11               ` Ulrich Teichert
2021-09-18 17:04               ` Linus Torvalds
2021-09-18 17:17                 ` Thorsten Glaser
2021-09-18 17:21                   ` Linus Torvalds
2021-09-18 17:28                 ` Linus Torvalds
2021-09-18 20:26                 ` Ulrich Teichert
2021-09-18 20:26                   ` Ulrich Teichert
2021-09-18 20:46                   ` Linus Torvalds
2021-09-18 21:12                     ` Linus Torvalds
2021-09-18 22:09                   ` Linus Torvalds
2021-09-19 15:13                     ` Dave Taht
2021-09-19 15:13                       ` Dave Taht
2021-09-20 18:25                     ` Ulrich Teichert
2021-09-20 18:25                       ` Ulrich Teichert
2021-09-20 18:46                       ` Linus Torvalds
2021-09-20 18:59                         ` Matt Turner
2021-09-20 19:45                           ` Linus Torvalds
2021-09-21 19:13                         ` Ulrich Teichert [this message]
2021-09-21 19:13                           ` Ulrich Teichert
2021-09-21 20:42                           ` Linus Torvalds
2021-09-21 21:39                           ` Linus Torvalds
2021-09-22 20:50                             ` Ulrich Teichert
2021-09-22 20:50                               ` Ulrich Teichert
2021-09-23 19:57                               ` Newer kernels on the Jensen (was: [PATCH v2 0/4] Introduce and use absolute_pointer macro) Ulrich Teichert
2021-09-25 21:01                                 ` John Paul Adrian Glaubitz
2021-09-26 11:26                                   ` Newer kernels on the Jensen (was: [PATCH v2 0/4] Introduce and Ulrich Teichert
2021-09-26 11:35                                     ` John Paul Adrian Glaubitz
2021-09-26 11:55                                       ` John Paul Adrian Glaubitz
2021-09-26 17:12                                         ` Ulrich Teichert
2021-09-26 17:16                                           ` John Paul Adrian Glaubitz
2021-10-02 15:30                                             ` John Paul Adrian Glaubitz
2021-10-18 15:37                                     ` John Paul Adrian Glaubitz
2021-10-19 19:46                                       ` Ulrich Teichert
2021-10-22  8:46                                         ` John Paul Adrian Glaubitz
2021-10-24  3:41                                           ` Maciej W. Rozycki
2021-09-16 19:47         ` [PATCH v2 0/4] Introduce and use absolute_pointer macro Linus Torvalds
2021-09-16  0:34   ` Michael Cree

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=202109211913.18LJDnXp031134@valdese.nms.ulrich-teichert.org \
    --to=krypton@ulrich-teichert.org \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=davem@davemloft.net \
    --cc=deller@gmx.de \
    --cc=geert@linux-m68k.org \
    --cc=ink@jurassic.park.msu.ru \
    --cc=kuba@kernel.org \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=linux-sparse@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mattst88@gmail.com \
    --cc=mcree@orcon.net.nz \
    --cc=netdev@vger.kernel.org \
    --cc=rth@twiddle.net \
    --cc=torvalds@linux-foundation.org \
    /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.