Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ある日突然、 あなたにPowerPCマシンが届いたらどうしますか?/kernelvmtokyo15

ある日突然、 あなたにPowerPCマシンが届いたらどうしますか?/kernelvmtokyo15

OpenBlocks600(D)でLinux Kernel 4.19とGentooを動かした話です。

Toshifumi NISHINAGA

July 20, 2019
Tweet

More Decks by Toshifumi NISHINAGA

Other Decks in Programming

Transcript

  1. ͋Δ೔ಥવɺ
    ͋ͳͨʹPowerPCϚγϯ͕ಧ͍ͨΒͲ͏͠·͔͢ʁ
    ͦΕ΋……ͱͼ͖ͬΓ͔Θ͍ͯ͘
    ͱͼ͖ͬΓૉ௚Ͱ
    ͱͼ͖ͬΓѪΒͯ͘͠
    ͱͼ͖ͬΓͷྜ͕͠Γ΍ɻ
    ͔͠΋ɺͦͷ͏͑……
    ,FSOFM7.!5PLZP
    !UOJTIJOBHB
    IUUQTHJUIVCDPNUOJTIJOBHBPCT@MJOVY


    View full-size slide

  2. 0QFO#MPDLT %

    w $16
    w ".$$1PXFS1$&9
    w 3".30.
    w (#.#
    w 3FMFBTF
    w
    IUUQTPQFOCMPDLTQMBUIPNFDPKQQSPEVDUTTQFDIUNM


    View full-size slide

  3. αϙʔτঢ়گ
    IUUQTPQFOCMPDLTQMBUIPNFDPKQQSPEVDUTTVQQPSU@TFSWJDFIUNM


    View full-size slide

  4. αϙʔτঢ়گ
    w 44%-JOVY 4PUPLBOEB4PGUXBSF
    %JTUSJCVUJPO

    w -BTUVQEBUF
    w -JOVYLFSOFM
    IUUQTPQFOCMPDLTQMBUIPNFDPKQTVQQPSUTPGUXBSFpSNXBSF


    View full-size slide

  5. αϙʔτঢ়گ
    w %FCJBO QMBUIPNFP⒏DJBMTVQQPSU

    w MBTUVQEBUF
    w -JOVYLFSOFM
    w %FCJBOXIFF[Z

    IUUQTPQFOCMPDLTQMBUIPNFDPKQTVQQPSUTPGUXBSFE


    View full-size slide

  6. αϙʔτঢ়گ
    w %FCJBO QMBUIPNFVOP⒏DJBMTVQQPSU

    w MBTUVQEBUF
    w -JOVYLFSOFM
    w %FCJBOXIFF[Z

    IUUQPCEONBHB[JOFCMPHTQPUDPN
    PQFOCMPDLTEEFCJBOVOP⒏DJBMIUNM


    View full-size slide

  7. %FCJBO1PXFS1$4VQQPSU
    w 3FMFBTF"SDIJUFDUVSFTGPS%FCJBO
    4USFUDI
    w IUUQTMJTUTEFCJBOPSHEFCJBOEFWFMBOOPVODFNTHIUNM
    w ೥݄೔ɹ%FCJBO4USFUDIͰ
    1PXFS1$ΞʔΩςΫνϟͷαϙʔτΛதࢭ΁
    w IUUQTHJIZPKQBENJODMJQMJOVY@EU


    View full-size slide

  8. ͋Δ೔ಥવɺ
    ͋ͳͨʹPowerPCϚγϯ͕ಧ͍ͨΒͲ͏͠·͔͢ʁ
    ͦΕ΋……ͱͼ͖ͬΓ͔Θ͍ͯ͘
    ͱͼ͖ͬΓૉ௚Ͱ
    ͱͼ͖ͬΓѪΒͯ͘͠
    ͱͼ͖ͬΓͷྜ͕͠Γ΍ɻ
    ͔͠΋ɺͦͷ͏͑……


    View full-size slide

  9. ͋Δ೔ಥવɺ
    ͋ͳͨʹPowerPCϚγϯ͕ಧ͍ͨΒͲ͏͠·͔͢ʁ
    ͦΕ΋……ͱͼ͖ͬΓ͔Θ͍ͯ͘
    ͱͼ͖ͬΓૉ௚Ͱ
    ͱͼ͖ͬΓѪΒͯ͘͠
    ͱͼ͖ͬΓͷྜ͕͠Γ΍ɻ
    ͔͠΋ɺͦͷ͏͑……
    ൢചݩ΋debianͷαϙʔτ΋ड͚ΒΕͳ͍ɻ


    View full-size slide

  10. ࠓ೔ͷ͓࿩
    w ҎԼΛ΍ͬͨΑʂͱ͍͏঺հ࿩
    w ࠷৽-54-JOVYLFSOFM YY
    Λಈ͔͢
    w 1PXFS1$αϙʔτͷ͋Δ%JTUSJCVUJPOΛΈͭ
    ͚ͯಈ͔ͨ͠


    View full-size slide

  11. ֬ೝࣄ߲
    w ετϨʔδͷ֬ೝ
    w Χʔωϧ΍SPPUGTΛஔ͘৔ॴΛܾΊΔ
    w ϒʔτϩʔμʔͷ࢓༷֬ೝ
    w ,FSOFMCPPUํ๏Λܾఆ͢ΔͨΊ
    w LFSOFMESJWFS EUTͷ֬ೝ
    w ެ։͞Εͯͳ͍ͱਏ͍
    w 1PXFS1$αϙʔτͷ͋ΔσΟετϦ୳͠


    View full-size slide

  12. 0QFO#MPDLTͷετϨʔδ
    w 30. .#

    w $'DBSE
    w 64#

    w ະݕূ


    View full-size slide

  13. $'͸64#઀ଓΒ͍͠
    IUUQXXXSFTPVNDPKQdGVLBVNJNMOFUCTENTHIUNM


    View full-size slide

  14. ֬ೝࣄ߲
    w ✔ετϨʔδͷ֬ೝ
    w $'͔ΒىಈͰ͖ͦ͏
    w ϒʔτϩʔμʔͷ࢓༷֬ೝ
    w LFSOFMESJWFS EUTͷ֬ೝ
    w 1PXFS1$αϙʔτͷ͋ΔσΟετϦ୳͠


    View full-size slide

  15. ϒʔτϩʔμʔ֬ೝ
    w 6#PPU
    w QI +VO

    w 4VQQPSUFEMPBEDPNNBOE
    w FYUMPBE GBUMPBE MPBEZ MPBET MPBEC LFSNJU

    w $BOCPPUGSPN
    w 30.$'DBSEUGUQ64#


    View full-size slide

  16. $'DBSEϒʔτखॱ
    w 64#Λىಈ
    w VTCTUBSU
    w V*NBHF LFSOFMEUC
    ΛYʹϩʔυ
    w GBUMPBEVTCYV*NBHFPCT
    w $'͸GBUͰϑΥʔϚοτࡁΈ

    w Y͔Βϒʔτ
    w CPPUNY


    View full-size slide

  17. ֬ೝࣄ߲
    w ✔ετϨʔδͷ֬ೝ
    w $'͔ΒىಈͰ͖ͦ͏
    w ✔ϒʔτϩʔμʔͷ࢓༷֬ೝ
    w '"5GT͔ΒV*NBHFͰىಈͰ͖ͦ͏
    w LFSOFMESJWFS EUTͷ֬ೝ
    w 1PXFS1$αϙʔτͷ͋ΔσΟετϦ୳͠


    View full-size slide

  18. ,FSOFMESJWFS EUTͷ֬ೝ
    w ,FSOFM
    w IUUQTPQFOCMPDLTQMBUIPNFDPKQTVQQPSUTPGUXBSFE
    w GUQGUQQMBUIPNFDPKQQVC0#4EFCJBOpMFTMFOOZ
    -"5&45
    w ඇެࣜαϙʔτ൛

    w IUUQGUQQMBUIPNFDPKQQVC0#4VOP⒏DJBMKFTTJF
    TPVSDF


    View full-size slide

  19. -JOVTUSFF ࣌఺

    w ౤ߘ͞Εͯͨ
    w IUUQTHJUIVCDPNUPSWBMETMJOVYCMPCNBTUFSBSDIQPXFSQD
    CPPUEUTPCTEUT
    w IUUQTHJUIVCDPNUPSWBMETMJOVYCMPCNBTUFSBSDIQPXFSQD
    DPOpHTYPCT@EFGDPOpH


    View full-size slide

  20. ֬ೝࣄ߲
    w ✔ετϨʔδͷ֬ೝ
    w $'͔ΒىಈͰ͖ͦ͏
    w ✔ϒʔτϩʔμʔͷ࢓༷֬ೝ
    w '"5GT͔ΒV*NBHFͰىಈͰ͖ͦ͏
    w ✔LFSOFMESJWFS EUTͷ֬ೝ
    w -JOVTUSFFʹ͋ΔͷΛ࢖͑͹ྑͦ͞͏
    w 1PXFS1$αϙʔτͷ͋ΔσΟετϦ୳͠


    View full-size slide

  21. σΟετϦ୳͠
    w %FCJBO͸TUSFUDI
    ͰQQD CJU
    ଧͪ੾Γ
    w IUUQTMJTUTEFCJBOPSHEFCJBOEFWFMBOOPVODF
    NTHIUNM
    w 6CVOUV΋ಉ༷
    w 3FNPWJOHCJUQPXFSQDBSDIJUFDUVSFGSPN
    GVUVSF6CVOUVSFMFBTFT
    w IUUQTMJTUTVCVOUVDPNBSDIJWFTVCVOUVEFWFMBOOPVODF
    %FDFNCFSIUNM


    View full-size slide

  22. ͦͷଞ
    w 'FEPSB 3FEIBUܥ

    w 5IFMBTU'FEPSBSFMFBTFXJUICJUCPPUJNBHFTXBT
    'FEPSB
    w IUUQTGFEPSBQSPKFDUPSHXJLJ"SDIJUFDUVSFT1PXFS1$
    w "SDI-JOVYQQD
    w ϑΟογϯάαΠτʹͳͬͯͨ
    w IUUQTXXXWJSVTUPUBMDPNHVJVSM
    CBFEFFEFCEGGBDCDFCDFCDDEFGCFCGCCFG
    EFUFDUJPO


    View full-size slide

  23. ສࣄٳ͢ͷ

    UOJTIJOBHBʹٹ͍ͷख

    ͕


    View full-size slide

  24. ֬ೝࣄ߲
    w ✔ετϨʔδͷ֬ೝ
    w $'͔ΒىಈͰ͖ͦ͏
    w ✔ϒʔτϩʔμʔͷ࢓༷֬ೝ
    w '"5GT͔ΒV*NBHFͰىಈͰ͖ͦ͏
    w ✔LFSOFMESJWFS EUTͷ֬ೝ
    w -JOVTUSFFʹ͋ΔͷΛ࢖͑͹ྑͦ͞͏
    w ✔1PXFS1$αϙʔτͷ͋ΔσΟετϦ୳͠
    w (FOUPP͕͍͘͢ͷͯΛ͞͠ͷ΂͖ͯͨ


    View full-size slide

  25. ࡞ۀܭը
    w ,FSOFMͷϏϧυͱετϨʔδೝࣝ֬ೝ
    w (FOUPPJOTUBMMCBUUMF


    View full-size slide

  26. NBJOMJOFMJOVYͷϏϧυ
    w XHFUIUUQTDEOLFSOFMPSHQVCMJOVYLFSOFMWYMJOVYUBSY[
    w UBSYGMJOVYUBSY[
    w DEMJOVY
    w FYQPSU"3$)QPXFSQD
    w FYQPSU$3044@$0.1*-&QPXFSQDMJOVYHOV
    w NBLFYPCT@EFGDPOpH
    w NBLFPMEEFGDPOpHNBLF
    w DQBSDIQPXFSQDCPPUV*NBHFPCTNOUDGCPPU


    View full-size slide

  27. #PPUUFTU
    w ͱΓ͋͑ͣ,FSOFM͚ͩͰϒʔτ
    w $'ͷσόΠε͕ݟ͔ͭΔ͔֬ೝ


    View full-size slide

  28. ໰୊
    w $'͕ݟ͔ͭΒͳ͍
    w SBNͱNUECMPDL͔͠ೝࣝͯ͠ͳ͍
    w ؔ܎ͦ͠͏ͳ64#υϥΠόΛ͢΂ͯZʹͯ͠΋
    ͩΊ
    w *%&υϥΠόͳͲΛ͢΂ͯZʹͯ͠΋ͩΊʜʜ


    View full-size slide

  29. ࠶౓֬ೝ
    w 7BOJMMBLFSOFMͱQMBUIPNFVOP⒏DJBMLFSOFM
    ͷEJ⒎͸ͳʹʁ


    View full-size slide

  30. QMBUIPNFLFSOFMDIBOHF
    w 64#υϥΠόͷ௥Ճ
    w QVTI48-&%υϥΠόͷ௥Ճ
    w ͦͷଞࡉ͔͍मਖ਼
    w CPPUEFMBZೖΕͳ͍ͱ$'͕ೝࣝ͠ͳ͍


    View full-size slide

  31. 64#पลͷมߋ
    w EUTʹ64#ͷఆ͕ٛ௥Ճ
    w QPXFSQDQMBUGPSNYPCTVTCD͕௥Ճ
    w EXD@PUHͱ͍͏64#υϥΠό͕௥Ճ
    w ͨͩ͠Ϗϧυ͸௨Βͳ͍


    View full-size slide

  32. 64#υϥΠόͷमਖ਼
    w ໰୊͸఺
    w JOJU@UJNFSUJNFS@TFUVQ
    w %3*7&3@"553%3*7&3@"553@3830


    View full-size slide

  33. JOJU@UJNFS
    w JOJU@UJNFS͕UJNFS@TFUVQʹஔ͖׵Θͬͨ
    w SDͰ׬શʹஔ͖׵Θͬͨ
    w IUUQTHJUIVCDPNUPSWBMETMJOVYDPNNJU
    FFCCCEDCEEFEFCDEC
    w ࢀߟMJOVYΧʔωϧ಺෦ΠϯλʔϑΣʔεͷมߋྫ
    w IUUQTRJJUBDPNTBUPSV@UBLFVDIJJUFNTDFGBC


    View full-size slide

  34. JOJU@UJNFSUJNFS@TFUVQ


    ίʔυ෦͸෢಺͞Μͷهࣄ͔ΒҾ༻

    IUUQTRJJUBDPNTBUPSV@UBLFVDIJJUFNTDFGBC

    View full-size slide

  35. %3*7&3@"553
    w %3*7&3@"553
    w υϥΠόଐੑΛESJWFS@BUUSJCVUFߏ଄ମʹ֨ೲ͢ΔϚΫϩ
    w มߋ఺
    w NPEFͰ੾Γସ͑ͯͨ3038ΛϚΫϩ໊ʹ3038Λ෇͚ͯ੾Γସ͑Δ
    Α͏ʹͳͬͨ
    w ෇ਵ͢ΔIPHF@TIPX΍IPHF@TUPSF͸ࣗಈͰηοτ͞ΕΔΑ͏ʹͳͬͨ
    w IUUQTMPSFLFSOFMPSHQBUDIXPSLQBUDI
    w ྫ%3*7&3@"553 B 4@*36(0 B@TIPX

    %3*7&3@"553@30 B



    View full-size slide

  36. ࠶Ϗϧυͱىಈςετ
    w VTCपΓͷυϥΠόΛZͰϏϧυ
    w ˞EXD@PUHυϥΠό͸(1-ϥΠηϯεͰͳ͍ͷͰɺ
    ͜ͷϞδϡʔϧΛZͰϏϧυͨ͠Χʔωϧ͸࠶഑෍
    ͪ͠ΌͩΊͦ͏

    վมɺ࠶഑෍0,ͷಠࣗϥΠηϯε

    w FYUपΓͷυϥΠό΋ZͰϏϧυ
    w JOJUSBNGTແ͠ͰSPPUGTϚ΢ϯτ͢ΔͨΊ


    View full-size slide

  37. EXD@PUHͷϥΠηϯε
    w 5IF4PGUXBSF*4/05BOJUFNPG-JDFOTFE4PGUXBSFPS
    w ϥΠηϯευιϑτͰ͸ͳ͍
    w :PVBSFQFSNJUUFEUPVTFBOESFEJTUSJCVUFUIJT4PGUXBSFJO
    TPVSDFBOECJOBSZGPSNT XJUIPSXJUIPVUNPEJpDBUJPO
    w վมɺ࠶഑෍0,
    w QSPWJEFEUIBUSFEJTUSJCVUJPOTPGTPVSDFDPEFNVTUSFUBJO
    UIJTOPUJDF
    w ͜ͷจ͸࢒͢ඞཁ͕͋Δɻ


    View full-size slide

  38. #PPUMPH
    w EFWTEB͕ݟ͔ͭΔΑ͏ʹͳΔ
    w ͍Ζ͍Ζ͋ͬͯϩάฆࣦʜ


    View full-size slide

  39. SPPUGTͷ४උ
    w $'ΛϑΥʔϚοτ
    w TUQBSUJUJPOGBU
    w OEQBSUJUJPOFYU
    w GBUύʔςΟγϣϯͷͱ͜ΖʹV*NBHFPCT
    Λ௥Ճ


    View full-size slide

  40. (FOUPPJOTUBMMCBUUMF
    TUBHFͷղౚ
    ॾઃఆ
    DISPPU
    FNFSHFXFCSTZOD DIQBTTXE
    VONPVOU


    View full-size slide

  41. TUBHFͷղౚ
    w NPVOUUFYUEFWTECNOU
    w XHFUIUUQEJTUpMFTHFOUPPPSHSFMFBTFT
    QQDBVUPCVJMET5;
    TUBHFQQD5;UBSY[
    w UBSYQWGTUBHFUBSY[YBUUSTJODMVEF
    OVNFSJDPXOFS


    View full-size slide

  42. ॾઃఆ
    w EOTઃఆΛίϐʔ
    w DQEFSFGFSFODFFUDSFTPMWDPOGNOUFUD
    w FCVJMEϦϙδτϦઃఆ
    w NLEJSQBSFOUTNOUFUDQPSUBHFSFQPTDPOG
    w DQNOUVTSTIBSFQPSUBHFDPOpHSFQPTDPOGNOUFUD
    QPSUBHFSFQPTDPOGHFOUPPDPOG
    w RFNVTUBUJDͷҠ২ ཁRFNVTUBUJDCJOGNU

    w DQVTSCJORFNVQQDTUBUJDNOUVTSCJO


    View full-size slide

  43. ॾઃఆ
    w ίϯιʔϧͷઃఆ NOUFUDJOJUUBC

    w UUZ9ΛίϝϯτΞ΢τ
    w UUZ4Λ༗ޮԽ
    w UIBOLZPVGBEJTTBO


    View full-size slide

  44. ,FSOFMNPEVMF

    Πϯετʔϧ
    w ,FSOFMϏϧυͨ͠ͱ͖ͷσΟϨΫτϦʹҠͬͯ
    w FYQPSU"3$)QPXFSQD
    w FYQPSU$3044@$0.1*-&QPXFSQDMJOVY
    HOV
    w FYQPSU*/45"[email protected]%@1"5)NOU
    w NBLFNPEVMFTNBLFNPEVMFT@JOTUBMM


    View full-size slide

  45. $ISPPU
    w NPVOUUZQFTQSPDQSPDNOUQSPD
    w NPVOUSCJOETZTNOUTZT
    w NPVOUNBLFSTMBWFNOUTZT
    w NPVOUSCJOEEFWNOUEFW
    w NPVOUNBLFSTMBWFNOUEFW
    w DISPPUNOUCJOCBTI


    View full-size slide

  46. DISPPUޙͷॳظઃఆ
    w TPVSDFFUDQSPpMF
    w ͜ΕΛ͠ͳ͍ͱίϚϯυ͕࢖͑ͳ͍


    View full-size slide

  47. DISPPUޙͷॾઃఆ
    w FCVJMEϦϙδτϦεφοϓγϣοτͷΠϯετʔϧ
    w FNFSHFXFCSTZOD
    w SPPUύεϫʔυΛઃఆ
    w DIQBTTXE
    w FUDGTUBCͷઃఆ
    w EFWTEBΛCPPU EFWTEBΛʹઃఆ


    View full-size slide

  48. ޙย෇͚
    w DISPPU؀ڥ͔Βൈ͚Δ
    w FYJU
    w NPVOUΛղআ
    w VNPVOUNOUEFWNOUQSPDNOUTZT
    w VNPVOUNOU


    View full-size slide

  49. ·ͱΊ
    w QPXFSQD CJU
    Ϛγϯ͸࠷৽ΧʔωϧHFOUPP
    Ͱ·ͩ࢖͑Δ


    View full-size slide

  50. ΍Γͷ͜͠
    w VCPPU͔ΒউखʹHFOUPPىಈ͢ΔΑ͏ʹ͢Δ
    w PQFOCMPDLT޲͚πʔϧΛಈ͘Α͏ʹ͢Δ
    w 30.͚ͩͰىಈ͢ΔΑ͏ʹ͢Δ
    w ZPDUP͔CVJMESPPUͰ࡞Εͦ͏


    View full-size slide

  51. ͡ΌΜ͚ΜλΠϜ
    w ڵຯ͋ΔਓʹҰࣜৡΓ·͢
    w ֶੜ༏ઌɻෳ਺͍Δ৔߹͸͡ΌΜ͚Μɻ


    View full-size slide