Skip to content

newluhux/qemu-f1c100s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qemu allwinner f1c100s

I’m try add allwinner f1c100s support into qemu.

hardware support

hardwarestatustest result
SRAM A1OKuboot ok
SDRAMOKuboot ok
INTCTODOneed test
CCUOKuboot ok
TIMEROKuboot ok
MEMCTODO
UARTOKuboot ok
AWUARTTODOfailed on xboot
LCDTODO
TWITODOneed test
MMCTODOneed test
AUDIOTODO
SPI MASTEROKuboot ok
EHCITODO
GPIOTODO
BOOTROMOKspiboot ok

SDRAM size

because qemu can’t emulate DRAM test, uboot is always report 64MiB DRAM.

boot from flash

You can boot from spi nor flash.

bootrom

I’m write a opensource bootrom for qemu, now it only support boot from spi flash

how to run it

  1. use buildroot build firmware: https://github.com/newluhux/licheepi_buildroot
  2. get qemu source tree and apply patch
git clone https://gitlab.com/qemu-project/qemu /path/to/qemu
cd /path/to/qemu/
git am < xxxx.patch
  1. build qemu
cd /path/to/qemu/
./configure --cc=gcc --cxx=g++ \
		--target-list=arm-softmmu \
		--enable-debug --enable-debug-tcg --enable-debug-info
make -j$(nproc)
make check
  1. run qemu:
cd /path/to/qemu/
./qemu-system-arm -M allwinner-f1c100s -m 32 \
		-nographic \
		-bios ./bootrom.bin \
		-drive if=mtd,file=./flash_8M.bin,format=raw

license

same with qemu

history

2023/02/28: start project, try impl allwinner sun6i spi controller.

2023/03/01: try impl bootrom.

2023/03/03: allwinner sun6i spi controller is ok, bootrom is ok.

2023/03/06: upload missing code, fix doc

2023/03/14: fix interrupt controller by zhaosx <shaoxi2010@qq.com> thank.

About

qemu allwinner f1c100s support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published