Skip to content

Lab6 Building a Root File System

alvis91919 edited this page Mar 22, 2016 · 1 revision

Topics

  • Root file system build tools (do not limited to Linux or Yocto)

Root file system build tools (do not limited to Linux or Yocto)

  • Introduction Root file system 是kernel啟動時第一個掛載的文件系統,故要包含啟動時所必需的目錄及關鍵性的文件。 Linux中rootfs是不可或缺的,嵌入式一般從flash啟動,最簡單的方法是將rootfs load到RAM的RAMDISK`. 這次root file system是由Yocto提供source,Yocto主要是提供工具及程序使得Linux創的嵌入式系統可獨立於本身的底層架構。

  • Related parts of our lab 這次我們主要從Yocto上去拿所需要的資料。Yocto提供open source及一些高品質的基礎工具來幫助創造Linux distributions給任何硬體架構。 也可以幫助嵌入式系統來製作root file system,幫助自動化package selection, source code download, compilation, and final packing.

    1. 此次lab先準備好工作路徑,並安裝好需要的package: git,是一個分散式調整控制及SCM的系統,其優點是速度快,而其工作路徑有完整的資料庫及能力,使其獨立於network access 或 central server.再來安裝repo,這是一個幫助google管理git的工具使得git能夠變得更簡單。
    2. 再來也是安裝一些必要資料來解析bitbake.
    3. 使用bitbake來build image.
    4. 再來便使用新的kernel及rootfs,並由 tftp server 來設定 U-boot 來讀取新的 kernel 和 device tree blob。
    5. 將SSH server support新增到image裡,幫助理解如何將package加到新的image中。
    6. 創造一個用戶層,這是Yocto其中一個重要功能:能夠處理sublayers,並將gstreamers and opencv放到layer中。
  • Questions about the topic or our lab 這個LAB中需要安裝許多package,但我對於這些東西的功能並沒有十分了解。

    此外這個LAB從Yocto中去拿到所需的東西,是否之後要建構一個新的root file system也只需要去上面拿呢?

    最後,建構root file system的目的是什麼?因為通常在買時應該都已經幫你建好一個了,我不了解重建的目的。

Clone this wiki locally