~foura/uxn900

uxn for the nokia n900
dev/mouse: use 32 bit integer for storing pressure.
dev/mouse: calculate pressure in one go.
*: refactoring: enum style

refs

front
browse  log 

clone

read-only
https://git.sr.ht/~foura/uxn900
read/write
git@git.sr.ht:~foura/uxn900

You can also use your local clone with git send-email.

#uxn900

uxn for the nokia n900.

#devices:

  • [x] system
  • [x] console (partial)
  • [x] screen
  • [ ] audio
  • [x] controller
  • [x] mouse (partial)
  • [ ] file
  • [x] datetime (partial)

#to compile:

  • install the arm-none-eabi toolchain.
  • install the u-boot tools.
  • run make

#to run on qemu:

this requires mtools and a specific version of qemu.

dd if=/dev/zero of=etc/sd.img bs=1M count=1

mformat -i etc/sd.img ::
mcopy -i etc/sd.img uxn900.uimage ::uImage
mcopy -i etc/sd.img <any uxn rom> ::

qemu-system-arm \
	-machine n900 \
	-cpu cortex-a8 \
	-serial stdio \
	-mtdblock etc/mtd.img \
	-sd etc/sd.img \
	-sd etc/sd.img

#to run on hardare:

copy your chosen rom and the uxnemu.uimage to the first partition of an sd card (fat formatted). you must rename uxnemu.uimage to uImage. boot the device and run the following u-boot commands:

fatload mmc 0 0x801f0000 <your rom>
run trymmcboot

#contributing:

patches to: my public inbox