[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: aboot unzip "unknown compression method" on recent (post 6.4) kernels?



Following up on your suggestion, I downloaded the mattst88 github version of aboot, built it successfully (once realizing the need for libext2fs-dev!), swriteboot'ed it, and ... no difference. Same unzip error.

Note that the upstream version has files that were updated ~3 years ago (consistent with being pre20200212), but I found that aboot's hello-world string still says 1.0_pre20040408, so your boot console won't tell you which version you actually have written to the partition.

    See: include/config.h:#define ABOOT_VERSION "1.0_pre20040408"

https://github.com/mattst88/aboot/blob/master/include/config.h

I wasn't able to build the debian version from the "aboot" source package. "debian/rules build" seems to fail at the linking stage due to multiple definitions. Errors below.

    Thanks,
    -Alex


errors from "debian/rules build" of aboot:
ld -static -N -Taboot.lds --relax head.o aboot.o cons.o utils.o zip/misc.o zip/unzip.o zip/inflate.o disk.o fs/ext2.o fs/ufs.o fs/dummy.o fs/iso.o -o aboot lib/libaboot.a ld: cons.o:./include/utils.h:22: multiple definition of `free_mem_ptr'; aboot.o:./include/utils.h:22: first defined here
ld: disabling relaxation; it will not work with multiple definitions
ld: utils.o:././utils.c:13: multiple definition of `free_mem_ptr'; aboot.o:./include/utils.h:22: first defined here ld: zip/misc.o:./include/utils.h:22: multiple definition of `free_mem_ptr'; aboot.o:./include/utils.h:22: first defined here ld: zip/unzip.o:./zip/gzip.h:34: multiple definition of `inbuf'; zip/misc.o:./zip/gzip.h:34: first defined here ld: zip/unzip.o:./zip/gzip.h:35: multiple definition of `window'; zip/misc.o:./zip/gzip.h:35: first defined here ld: zip/inflate.o:./zip/gzip.h:34: multiple definition of `inbuf'; zip/misc.o:./zip/gzip.h:34: first defined here ld: zip/inflate.o:./zip/gzip.h:35: multiple definition of `window'; zip/misc.o:./zip/gzip.h:35: first defined here ld: disk.o:./include/utils.h:22: multiple definition of `free_mem_ptr'; aboot.o:./include/utils.h:22: first defined here ld: disk.o:./include/bootfs.h:22: multiple definition of `ext2fs'; zip/misc.o:./include/bootfs.h:22: first defined here ld: fs/ext2.o:./include/bootfs.h:22: multiple definition of `ext2fs'; zip/misc.o:./include/bootfs.h:22: first defined here ld: fs/ext2.o:./include/utils.h:22: multiple definition of `free_mem_ptr'; aboot.o:./include/utils.h:22: first defined here ld: fs/ufs.o:./include/utils.h:22: multiple definition of `free_mem_ptr'; aboot.o:./include/utils.h:22: first defined here ld: fs/ufs.o:./include/bootfs.h:22: multiple definition of `ext2fs'; zip/misc.o:./include/bootfs.h:22: first defined here ld: fs/dummy.o:./include/utils.h:22: multiple definition of `free_mem_ptr'; aboot.o:./include/utils.h:22: first defined here ld: fs/dummy.o:./include/bootfs.h:22: multiple definition of `ext2fs'; zip/misc.o:./include/bootfs.h:22: first defined here ld: fs/iso.o:./include/bootfs.h:22: multiple definition of `ext2fs'; zip/misc.o:./include/bootfs.h:22: first defined here ld: lib/libaboot.a(isolib.o):./lib/../include/utils.h:22: multiple definition of `free_mem_ptr'; aboot.o:./include/utils.h:22: first defined here ld: warning: __remlu.o: missing .note.GNU-stack section implies executable stack ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
ld: warning: aboot has a LOAD segment with RWX permissions



On 11/24/24 12:30 AM, Michael Cree wrote:
On Sat, Nov 23, 2024 at 04:58:37PM -0800, Alex Winbow wrote:
     I'm not sure. From SRM, "boot -fl i" reports that aboot is
1.0~pre20040408.

     Meanwhile, aboot is 1.0~pre20200212-1, but interestingly does not
contain /boot/bootlx.

     /boot/bootlx is in aboot-base, which is 1.0~pre20040408-4, which also
appears to be the newest version in sid.
Oh, you are right.  I hadn't noticed that aboot-base was a much
older version.

So it is interesting that my XP1000 boots the newest kernels,
but yours doesn't.  There is a possibility I updated aboot from
upstream (mattst88 github repo) but I can't remember for sure.

Cheers,
Michael.


Reply to: