童玩伴歲月︰更迭

科學追求真理,為的是打開大自然的黑箱;然而真理明白若昭,就是透明的白箱。我們總在求真的旅途上一知半解,努力灰箱為白箱。如果偵錯就是科學,除錯即求真理,那這一段話用在『偵錯』與『除錯』上來講依然合適。這也說明為什麼人們喜歡用不同的灰度,來表達對『箱內之物』的認識與了解了。

經過了一段辛苦,你終於把Raspbian 安裝好,可以開始使用了。是否自此就像童話故事上所說的『從此過著幸福快樂 ……』;等一下︰戲才剛開鑼、人物都還沒上場呢!!這時假如告訴你『剛安裝好的 Raspbian 上有問題』呢?就在此時偵探柯南立馬登場,好戲也即將展開︰

………柯南想 Linux 核心 kernel 程式,通常一直輸出紀錄著系統運作活動,用 dmesg 命令就能閱讀,嗯!結果太大了,最好用 dmesg | more,啊哈!!我找到了。原來是︰

[ 21.678058] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

如果我們已經知道是這個問題了,那麽用 dmesg | grep fsck 就能更快找到系統是否輸出過這個訊息。現在已經確定是有問題了 ── ㄋㄚㄟㄤㄚㄋㄟ ──,怎麽會這樣 .XX!?最重要的是,如果你是柯南,你會怎麽辦呢?

………柯南想起,在哪裡找資料?一文上提到了樹莓派的論壇,何不到那裡查查,看看是否有人談論過這個問題?該用什麼關鍵字查尋呢?『fsck』 797 則,太廣泛了,『Volume was not properly unmounted』45 則,而且摘要也確實符合,嗯!答案是︰這個ㄆㄛ癹文 Post 啊!『』 ── 好一隻『將草踩平的大腳』,咦!原來還要編譯程式ㄟ。唉!難道只阿笠博士了嗎?又想,難道不能依樣畫葫蘆』造著做?……解決了!!

─── 《打開黑箱!!

 

『復古派』已經裝好了,也經過初步驗證,卻突然發現某些喜愛的遊戲不能跑?該怎麼辦呢??

心想既然兩年前可以!今天為什麼不行也!?就多裝幾種模擬器用

/RetroPie-Setup

Runcommand

 Domenick D’Onofrio edited this page Apr 29, 2018 · 33 revisions

runcommand

The runcommand is the script responsible to launch your emulators/games. This wiki shows the runcommand’s configurations and features.

 

逐一檢視吧!!

由於知道模擬器的種類和版本,與遊戲 ROM 之相容性習習相關,故而往往能以年代解決大半問題哩☺

偏偏遇到這隻唐老鴨『母港寬』呦☻

『Donald Duck –    Maui Mallard in Cold Shadow』

pi@retropie:~ cd /dev/shm/ pi@retropie:/dev/shm ls
retroarch.cfg  runcommand.info  runcommand.log
pi@retropie:/dev/shm more runcommand.log  Parameters:  Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libr etrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/sn es/retroarch.cfg "/home/pi/RetroPie/roms/snes/Super_Nintendo/Donald Duck -  Maui  Mallard in Cold Shadow.smc" --appendconfig /dev/shm/retroarch.cfg Failed to open /home/pi/RetroPie/roms/snes/Super_Nintendo/Donald Duck - Maui Mal lard in Cold Shadow.smc: No such file or directory Sound buffer size: 128000 (32000 samples) </pre>    <span style="color: #666699;">怎會 ㄘㄨㄟˇ ㄇㄡˊ ㄌㄟ ?!</span>  <span style="color: #666699;">一氣之下,乾脆換個檔名︰</span> <pre class="lang:default decode:true ">cp Donald\ Duck\ -\ \ Maui\ Mallard\ in\ Cold\ Shadow.smc Dona.smc</pre>    <span style="color: #666699;">竟然 OK 矣♨</span>  <img class="alignnone size-full wp-image-93718" src="http://www.freesandal.org/wp-content/uploads/Donald_Duck.png" alt="" width="1920" height="1080" />     <span style="color: #666699;">細究之下,難到是 RetroPie 敗於『兩個小空白』乎★</span>  <span style="color: #666699;">所以更新系統前,最好先備份,好好讀讀</span> <h1 class="public "><span style="color: #808080;"><span class="author"><a class="url fn" style="color: #808080;" href="https://github.com/RetroPie" rel="author" data-hovercard-type="organization" data-hovercard-url="/orgs/RetroPie/hovercard">RetroPie</a></span><span class="path-divider">/</span><strong><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup" data-pjax="#js-repo-pjax-container">RetroPie-Setup</a></strong></span></h1> <div class="d-flex flex-column flex-md-row gh-header"> <h1 class="flex-auto min-width-0 mb-2 mb-md-0 mr-0 mr-md-2 gh-header-title instapaper_title"><span style="color: #666699;"><a style="color: #666699;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ">FAQ</a></span></h1> <div class="mt-0 mt-lg-1 flex-shrink-0 gh-header-actions"><span style="color: #808080;"> <span style="color: #999999;">Hugo Hromic edited this page Dec 7, 2018 · <a class="muted-link" style="color: #999999;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ/_history">73 revisions</a></span></span></div> <div class="mt-0 mt-lg-1 flex-shrink-0 gh-header-actions"></div> </div> <div id="wiki-content" class="d-flex flex-column flex-md-row"> <div id="wiki-body" class="mt-4 flex-auto min-width-0 gollum-markdown-content instapaper_body"> <div class="markdown-body"> <ul>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#why-do-some-emulators-not-show-up">Why do some emulators not show up?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#why-cant-i-ssh-as-root-anymore">Why can't I SSH as root anymore?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#reset-ownershippermissions-of-homepiretropie-roms">Reset ownership/permissions of /home/pi/RetroPie roms</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#where-did-the-desktop-go">Where did the desktop go?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#why-does-shut-down-and-reboot-take-ages">Why does shut down and reboot take ages?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#how-do-i-hide-the-boot-text">How do I hide the boot text?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ/#how-do-i-boot-to-the-desktop-or-kodi">How do I boot to the desktop or Kodi</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ/#how-do-i-remove-the-black-borders">How do I remove the black borders</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#how-do-i-change-which-buttons-to-press-to-exit-an-emulator-with-a-controller">How do I change which buttons to press to exit an emulator with a controller?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#does-super-mario-all-stars-work">Does Super Mario All Stars work?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#how-do-i-extend-the-available-space-when-upgrading-to-a-larger-sd-card">How do I extend the available space when upgrading to a larger SD card</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#how-would-i-start-from-command-line-say-the-snes-emulator-by-itself">How would I start from command line, say, the SNES emulator by itself?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#is-there-another-way-to-set-up-the-gamepad-for-use-eg-within-the-snes-emulator">Is there another way to set up the gamepad for use, e.g., within the snes emulator?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#the-psx-emulator-reports-no-bios-found-what-do-i-do">The PSX emulator reports no BIOS found. What do I do?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#how-do-i-calculate-the-md5sum-or-crc32-of-a-bios-file">How do I calculate the md5sum or CRC32 of a BIOS file?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#which-memory-split-should-i-use">Which memory split should I use?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#why-arent-my-in-game-saves-working-properly">Why aren't my in-game saves working properly?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#why-cant-i-insert-coins-in-arcade-emulators">Why Can't I Insert Coins in Arcade Emulators?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#how-can-i-increase-the-console-font-size">The <code>retropie_setup</code> and <code>runcommand</code> menus have very small fonts on my screen, how can I increase the console font size?</a></span></li>  	<li><span style="color: #808080;"><a style="color: #808080;" href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#how-can-i-recover-my-retropie-after-enabling-the-desktop-opengl-driver-">How can I recover my RetroPie after I enabled the experimental OpenGL driver ?</a></span></li> </ul> </div> </div> </div>    <span style="color: #666699;">呀☆</span> <pre class="lang:default decode:true ">pi@retropie:~ cat /proc/version 
Linux version 4.14.79-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1159 SMP Sun Nov 4 17:50:20 GMT 2018