English 中文(简体)
Couldn t able to find my custom device inside emulated Rpi (using QEMU)
原标题:

I have added a custom device called rpi_gpio ,when I use qemu monitor and run qemu qtree then I able to see my device with base address and its size as

dev: rpi_gpio, id ""
gpio-in "" 54
gpio-out "" 54
mmio 0000000020200000/00000000000000b1

so to see this I have use these commands

./qemu-system-arm -machine versatilepb -monitor stdio ( To launch monitor)
info qtree 

After that I launch QEMU with following command -

./qemu-system-arm -M versatilepb -m 256 -cpu arm1176 -smp 1 -drive "file=QEMUBullseye32Bit.img,if=none,index=0,media=disk,format=raw,id=disk0" -device virtio-blk-pci,drive=disk0,disable-modern=on,disable-legacy=off  -netdev user,id=net0,hostfwd=tcp::10023-:22,hostfwd=tcp::17725-:17725 -device virtio-net-pci,netdev=net0,mq=on -kernel kernel-qemu-5.10.63-bullseye -dtb versatile-pb-bullseye-5.10.63.dtb -append "root=/dev/vda2 panic=1" -no-reboot -nographic -snapshot 

But when I run raspi-gpio(inside rpi terminal), it give me this error

  • Couldn t able to find /proc/device-tree/soc/ranges , Segmentation Fault.

I am not able to understand that where my configuration gone wrong , can anyone please help to resolve this issue .

问题回答

暂无回答




相关问题
Steps to read data from ARM microcontroller port

I am having trouble reading serial data from ARM LPC2378 microcontroller. Will I have to use UART or any GPIO port can be used?? is ayone having c code for it??

high speed tracing

I have an embedded board with a 32 Micro-controller, and an custom built OS, Unfortunately, as of now, connection to the PC is only through serial port, Internal memory is limited to 512KB. There are ...

Affordable, programmable device with gprs and simple sensors?

I ve got quite a fun challenge / work assignment. I m to monitor a couple of 5V light bulbs (warning lights) on a machine standing far out in no man s land. I m looking for an affordable device with ...

Alarm history stack or queue?

I m trying to develop an alarm history structure to be stored in non-volatile flash memory. Flash memory has a limited number of write cycles so I need a way to add records to the structure without ...

LD linker: Target address aligning but not address in ROM

I have a program that s resident in flash and will run from flash. Early in the program data segments are copied from flash to ram. I m using a linker script like (simplified): .text : { *(....

clear code for counting from 0 to 255 using 8-bit datatype

I was wondering if there is a clean way of counting from 0 to 255 using an 8 bit datatype, something like: for(uint8_t i(0);i<=255;++i) { .... } This obviously will not work but it makes it ...

热门标签