nongiach / arm_now

arm_now is a qemu powered tool that allows instant setup of virtual machines on arm cpu, mips, powerpc, nios2, x86 and more, for reverse, exploit, fuzzing and programming purpose.
https://github.com/nongiach/arm_now/wiki
MIT License
867 stars 87 forks source link

Can't launch ARMv* #52

Closed choucco closed 4 months ago

choucco commented 4 months ago

Freshly installed this using pip3 install arm_now.

I can't figure out how to start an ARM VM (whatever version) :

$ arm_now start armv7-eabihf --clean --sync
[+] Installed
File not found by ext2_lookup
WARNING: e2rm file already suppressed
File not found by ext2_lookup
WARNING: e2rm file already suppressed
Tempdir /tmp/tmpi_7r8dgp
Adding current directory to the filesystem..
Starting qemu-system-arm
stty intr ^]
       export QEMU_AUDIO_DRV="none"                                                                                                                                                                                                        
       qemu-system-arm -M vexpress-a9 -kernel arm_now/kernel -sd arm_now/rootfs.ext2 -append 'root=/dev/mmcblk0 console=ttyAMA0 rw physmap.enabled=0 noapic'                -m 256M                -nographic                -serial stdio -monitor null  -nic user                 -dtb arm_now/dtb                -no-reboot                                                                                                                                                        
       stty intr ^c                                                                                                                                                                                                                        

WARNING: Image format was not specified for 'arm_now/rootfs.ext2' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-arm: Invalid SD card size: 100 MiB
SD card size has to be a power of 2, e.g. 128 MiB.
You can resize disk images with 'qemu-img resize <imagefile> <new-size>'
(note that this will lose data if you make the image smaller than it currently is).
+++++++++++++++++++++++++++ Checking the filesystem ++++++++++++++++++++++++++++
e2fsck 1.47.1 (20-May-2024)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

         919 inodes used (3.68%, out of 24960)
          44 non-contiguous files (4.8%)
           4 non-contiguous directories (0.4%)
             # of inodes with ind/dind/tind blocks: 60/18/0
       25937 blocks used (25.33%, out of 102400)
           0 bad blocks
           0 large files

         350 regular files
          77 directories
           1 character device file
           0 block device files
           0 fifos
           0 links
         482 symbolic links (474 fast symbolic links)
           0 sockets
------------
         910 files
/root.tar not found
Use the 'save' command before exiting the vm to retrieve all files on the host

The QEMU does not seem to start.

Tried other architectures : mips32el, aarch64, no problem, but no ARM.

choucco commented 4 months ago

After many try, it was the resize which did not work. Rebooted, and for some reason it was OK.