qemu-ios icon indicating copy to clipboard operation
qemu-ios copied to clipboard

run ./arm-softmmu/qemu-arm-system show Segmentation fault (core dumped)

Open kaiui opened this issue 6 months ago • 11 comments

I was run the command ./arm-softmmu/qemu-system-arm -M iPod-Touch,bootrom=,nand=<path to NAND directory>,nor=<path to NOR directory> -serial mon:stdio -cpu max -m 2G -d unim .It pause a little bit and show Segmentation fault (core dumped),I was follow every step in the instruction again but no luck

kaiui avatar Jun 22 '25 06:06 kaiui

this is the screen shot

Image

kaiui avatar Jun 22 '25 06:06 kaiui

Question, what OS are you using (with architecture, or what CPU you're using)?

Because, I've fixed this once myself on an Apple Silicon Mac, but not on a Windows or Linux machine.

Let me know, and I'll see if I can come up with a fix for the SegFault.

Opuqide avatar Jun 22 '25 11:06 Opuqide

I'm getting the same on Debian aarch64, but without the "core dumped" part:

./arm-softmmu/qemu-system-arm -M iPod-Touch,bootrom='<bootrom>',nand='<nand>',nor='<nor>' -serial mon:stdio -cpu max -m 2G -d unimp
Segmentation fault

Lenni-builder avatar Jun 26 '25 23:06 Lenni-builder

I meet the problem too I used macOS 15.3.1 mbp m3 pro

liuzexuan@liuzexuandeMacBook-Pro ipod1g % ./start.sh ./start.sh: line 1: 52935 Segmentation fault: 11 '/Users/liuzexuan/Desktop/qemu-ios-ipod_touch_2g/build/qemu-system-arm-unsigned' -M iPod-Touch,bootrom=/Users/liuzexuan/Desktop/ipod1g/bootrom_s5l8900,iboot=/Users/liuzexuan/Desktop/ipod1g/iboot_204_n45ap.bin,nand=/Users/liuzexuan/Desktop/ipod1g/nand -serial mon:stdio -cpu max -m 1G -d unimp -pflash /Users/liuzexuan/Desktop/ipod1g/nor_n45ap.bin liuzexuan@liuzexuandeMacBook-Pro ipod1g %

andycode2009 avatar Jul 26 '25 16:07 andycode2009

by the way the link file don't work ./aarch64-softmmu/qemu-system-aarch64 is there someone can solve this

andycode2009 avatar Jul 26 '25 16:07 andycode2009

It's QEMU making itself unsigned. Use ./qemu-system-arm-unsigned in the build folder.

Opuqide avatar Jul 26 '25 16:07 Opuqide

emm liuzexuan@liuzexuandeMacBook-Pro build % ./qemu-system-arm-unsigned
qemu-system-arm-unsigned: No machine specified, and there is no default Use -machine help to list supported machines liuzexuan@liuzexuandeMacBook-Pro build % ./qemu-system-arm-unsigned -M iPod-Touch,bootrom=/Users/liuzexuan/Desktop/ipod1g/bootrom_s5l8900,iboot=/Users/liuzexuan/Desktop/ipod1g/iboot_204_n45ap.bin,nand=/Users/liuzexuan/Desktop/ipod1g/nand -serial mon:stdio -cpu max -m 1G -d unimp -pflash /Users/liuzexuan/Desktop/ipod1g/nor_n45ap.bin zsh: segmentation fault ./qemu-system-arm-unsigned -M -serial mon:stdio -cpu max -m 1G -d unimp
liuzexuan@liuzexuandeMacBook-Pro build %

I have used the ./qemu-system-arm-unsigned command, but SegFault. still appears

andycode2009 avatar Jul 26 '25 17:07 andycode2009

I have used the ./qemu-system-arm-unsigned command, but SegFault. still appears

I'll try to see what I can fix to make this error go away. It's either:

  • The OS
  • The code
  • The executable's permissions.

executable — the command

Opuqide avatar Jul 29 '25 12:07 Opuqide

Could you offer me a executable binary file of qemu-system-arm-unsigned by Google Drive?

andycode2009 avatar Jul 31 '25 12:07 andycode2009

Thanks , I update my OS to 15.6, I succeeded in building it and It works.

andycode2009 avatar Aug 20 '25 03:08 andycode2009

i recognized that terminal, its the kde plasma one

gdandsm64fan123 avatar Sep 04 '25 14:09 gdandsm64fan123