Coder Social home page Coder Social logo

Comments (6)

anphsw avatar anphsw commented on June 15, 2024

What compile option caused such size? Original size is about 200k.
How you load memtest binary from u-disk? Which bootloader do you use?

from memtest86.

MoreAndMore34545 avatar MoreAndMore34545 commented on June 15, 2024

I repalce the O0 with O1, then the size is bigger than 279KB. I use USB auto installer tool " Memtest86+ USB Installer.exe" to load my memtest binary from my u-disk. the version of Memtest86+ USB Installer.exe is v5.01.

from memtest86.

anphsw avatar anphsw commented on June 15, 2024

This is a problem of your compiler.
I just replaced O0 with O1 and result is 160k instead 190k with -O0.
You can test built binariers with qemu: "qemu-system-i386 -enable-kvm -fda memtest.bin -smp 2 -m 256" to exclude USB installer fault.
Please make sure that your compiler is generating correct code.

from memtest86.

MoreAndMore34545 avatar MoreAndMore34545 commented on June 15, 2024

what's your gcc version?
my original shell code is as below:
memtest.bin: memtest_shared.bin bootsect.o setup.o memtest.bin.lds
$(LD) -T memtest.bin.lds bootsect.o setup.o -b binary
memtest_shared.bin -o memtest.bin

when i try to build binaries with qemu:
memtest.bin: memtest_shared.bin bootsect.o setup.o memtest.bin.lds
$(LD) -T memtest.bin.lds bootsect.o setup.o -b binary
memtest_shared.bin -qemu-system-i386 -enable-kvm -fda -o memtest.bin -smp 2 -m 256

the error is reported as follows:
ld: unrecognised emulation mode: 256
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe
Makefile:58: recipe for target 'memtest.bin' failed
make: *** [memtest.bin] Error 1

from memtest86.

MoreAndMore34545 avatar MoreAndMore34545 commented on June 15, 2024

I reckon that the USB auto installer tool " Memtest86+ USB Installer.exe" puts limitation to the size of memtest.bin. my friends also tell me that his memtest.bin cannot be booted if its size became bigger to some degree when more and more source code was added into the whole project.

from memtest86.

anphsw avatar anphsw commented on June 15, 2024

$(LD) -T memtest.bin.lds bootsect.o setup.o -b binary
memtest_shared.bin -qemu-system-i386 -enable-kvm -fda -o memtest.bin -smp 2 -m 256

I mentioned qemu command line for checking memtest binary, this is not LD options!

I reckon that the USB auto installer tool " Memtest86+ USB Installer.exe" puts limitation to the size of memtest.bin

Ok, we found this is not memtest problem.
As there is no source for this USB tool, we cannot check what is wrong.
Please use GRUB or SYSLINUX bootloaders for booting memtest.

from memtest86.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.