Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

QEMUでARM64bitベアメタルプログラミング

2,974 views

Published on

OSC2016 HokkaidoのLTでの発表スライドです。
https://www.ospn.jp/osc2016-do/modules/eguide/event.php?eid=2

Published in: Software
  • ..............ACCESS that WEBSITE Over for All Ebooks ................ ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • -- DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT -- ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... (Unlimited)
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS/FILE INTO AVAILABLE FORMAT - (Unlimited) ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes Christian, Classics, Comics, Contemporary, Cookbooks, Art, Biography, Business, Chick Lit, Children's, Manga, Memoir, Music, Science, Science Fiction, Self Help, History, Horror, Humor And Comedy, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ...................................ALL FOR EBOOKS................................................. Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • -- DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT -- ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... (Unlimited)
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

QEMUでARM64bitベアメタルプログラミング

  1. 1. QEMUでARM64bitベアメタルプログラミング 大神 祐真 yuma@ohgami.jp 2016/06/18
  2. 2. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 2 ● 大神 祐真 – yuma@ohgami.jp ● 組み込み系のプログラマ ● http://yuma.ohgami.jp – やっている事のまとめ
  3. 3. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 3 Raspberry Pi 3
  4. 4. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 4 Raspberry Pi 3 ARM 64ビットCPU 搭載
  5. 5. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 5 カーネル(Linux) アプリ(Raspbian) 共に、現状は32ビット 64ビット: ARMv8 32ビットアーキテクチャ
  6. 6. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 6 OS無しで、 素のハードウェア(ベアメタル)を 直接制御してみる
  7. 7. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 7 OS無しで、 素のハードウェア(ベアメタル)を 直接制御してみる ベアメタルプログラミング
  8. 8. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 8 実機での開発作業は 何かと面倒 とはいえ、
  9. 9. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 9 QEMUで効率化 実機での開発作業は 何かと面倒 とはいえ、
  10. 10. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 10 最も簡単なプログラム b . start.S
  11. 11. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 11 最も簡単なプログラム [PC]$ aarch64-linux-gnu-as -o start.o start.S [PC]$ aarch64-linux-gnu-objcopy -O binary start.o start.img [PC]$ qemu-system-aarch64 -cpu cortex-a57 -M virt -kernel start.img
  12. 12. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 12 C言語を使う mov x0, #0x40080000 mov sp, x0 bl main b . start.S int main(void) { return 0; } main.c
  13. 13. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 13 最も簡単なプログラム [PC]$ aarch64-linux-gnu-as -o start.o start.S [PC]$ aarch64-linux-gnu-gcc -c -o main.o main.c [PC]$ aarch64-linux-gnu-ld -Ttext 0x40080000 -o out.elf start.o main.o
  14. 14. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 14 最も簡単なプログラム [PC]$ aarch64-linux-gnu-objcopy -O binary out.elf out.img [PC]$ qemu-system-aarch64 -cpu cortex-a57 -M virt -kernel out.img
  15. 15. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 15 シリアル通信でHello world! int main(void) { put_str("Hello world!"); return 0; }
  16. 16. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 16 シリアル通信でHello world! #define DR (*(volatile unsigned int *)0x09000000) #define FR (*(volatile unsigned int *)0x09000018) void put_char(char ch) { while (FR & (1U << 5)); DR = (unsigned int)ch; } void put_str(char *str) { while (*str != '0') put_char(*str++); }
  17. 17. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 17 シリアル通信でHello world!
  18. 18. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 18 “ラズパイ3 ” ベアメタル で検索
  19. 19. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 19
  20. 20. 2016/06/18 大神 祐真 (yuma.ohgami.jp) 20 ご清聴、 ありがとうございました!

×