2015/07/12

使用 BuildRoot 編譯給網樂通使用的 rootfs

[2015/07/12更新]

試著使用 buildroot 來編譯網樂通的 rootfs,

2015/07/12 測試

使用的 buildroot 設定:

  1. Target options  ->Target Architecture (SuperH)
  2. Toolchain -> 
    1. Kernel Headers (Manually specified Linux version)
    2. (2.6.32) linux version
    3. uClibc C library Version (uClibc 0.9.33.x)
    4. 這個 rootfs 相當小, 僅1.4MB, 不過似乎還是塞不進 1MB 的內建 flash

 測試結果如下
  1. 使用內定設定, 還要 'mknod /dev/null c 1 3'否則無法開機
  2. 使用內定設定, 開機後要 'mdev -s' 建立基本的 /dev/sdXX
  3. 使用內定設定, 開機後要設定 udhcpc, 可以從 xbmc 抄 script 過來使用
  4. 使用內定設定, 可以使用 TTL console 操作, 但是因為沒編譯 busybox 的 telnetd, 所以沒有辦法連線進去
  5. 可以編譯 uClibc 做的 rootfs, 但是沒辦法選 ntp (好像是 uclibc 基礎 library 沒支援)因此對時沒辦法

2015/07/16 測試

不宜一次增加太多設定, 以免編譯不過, 找不出原因, 增加:
  1. Build options -> Enable compiler cache
  2. Toolchain -> uClibc C library Version(uClibc-ng)
  3. System Configuration 
    1. Root password: root
    2. Network interface: eth0
    3. Install timezone info: 開啟
    4. default local time: Asia/Taipei
    5. Custom scripts to run before creating filesystem images: $(TOPDIR)/board/nextvod/patchrootfs.sh (此 script 第一個參數是 output/target目錄, 原打算在此 mknod /dev/null, 但失敗)
  4. Target package -> Networking applications
    1. dropbear:開啟

沒有留言: