Skip to content

Instantly share code, notes, and snippets.

@poying
Created August 7, 2014 00:42
Show Gist options
  • Save poying/ca4350c4bd8c868031ef to your computer and use it in GitHub Desktop.
Save poying/ca4350c4bd8c868031ef to your computer and use it in GitHub Desktop.
Kindle paperwhite (1) 安裝 lua

最近看一些技術相關書籍,有提到 lua 這個語言設計的一些想法,有些部分讓我滿感興趣的,剛好手邊也有一台 kindle paperwhite,想說把 lua 丟進去,看看能作些什麼,這邊是安裝過程的筆記。

Jailbreak

第一步當然就是 jailbreak 啦,沒有 jailbrak 什麼事都不要做了 ~

作法可以參考:http://www.mobileread.com/forums/showthread.php?t=186645

安裝 USBNetwork

在上面那個網址下在 kindle-usbnet-x.x.N.zip

準備 sandbox

kindle source code 裡面的說明文件是使用 ubuntu 10.04,所以我使用 docker 建立一個 ubuntu 10.04 環境,執行下面指令

之後還會缺少一些東西,不過忘了是什麼,反正遇到了再裝吧...

安裝 Cross Compiler

  1. 找到自己 kindle 的版本,下載 source code http://www.amazon.com/gp/help/customer/display.html?nodeId=200203720
  2. 解壓 build_linaro-gcc_4.5.4.tar.gz
    $ tar xvf build_linaro-gcc_4.5.4.tar.gz
    $ cd build_linaro-gcc_4.5.4
  3. 按照 BUILD_HOW-TO.txt 的說明一步一步執行,components 的部份不用全安裝,只需要裝 readline

要開工了,先記錄到這裡...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment