Prepare a SD card with Minibian or Raspbian
Get boot files and examples with
git clone https://github.com/telmomoya/AMP
Copy to SD boot folder (fat's root) the files provided in repository boot folder:
boot.scr
u-boot.bin
uboot.env
(More details on this files here)
Add to config.txt a line with:
kernel=u-boot.bin
Boot your Linux (look during boot only 3 berries= 3 cores)
kernel=u-boot.bin
Boot your Linux (look during boot only 3 berries= 3 cores)
Login and go to examples foders
This file will blink a led connected to GPIO16.
In amp-test folder you can find source and binary files for this first example.
Test it with enough privileges (root or sudo):
cd amp-test
./loadmetal up-metal.bin
./devmem 0x400000bc w 0x20000000
cd amp-test
./loadmetal up-metal.bin
./devmem 0x400000bc w 0x20000000
You can change blink timming with:
./devmem 0x200000a0 b 0x0a
View other posts for detailed info about each step:
No hay comentarios:
Publicar un comentario