<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # Uboot 編譯 ## 基礎編譯 ### 安裝交叉編譯器 網盤地址:http://pan.baidu.com/s/1hsf22fq 國外用戶:https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/ ~~~ wget https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz tar xvf gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz mv gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf /opt/ vim /etc/bash.bashrc # add: PATH="$PATH:/opt/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin" source /etc/bash.bashrc arm-linux-gnueabihf-gcc -v sudo apt-get install device-tree-compiler ~~~ ### 下載編譯Uboot ~~~ git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current #or git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-spi-experimental cd u-boot make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_800x480LCD_defconfig #or make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero480x272LCD_defconfig #or make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_defconfig make ARCH=arm menuconfig time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log ~~~ 編譯完成后,在當前目錄下生成了u-boot-sunxi-with-spl.bin,可以燒錄到8K偏移處啟動。 ### Uboot結構簡介 * 下面來看看該uboot中的目錄結構 ~~~ ├── api 存放uboot提供的API接口函數 ├── arch 平臺相關的部分我們只需要關心這個目錄下的ARM文件夾 │ ├──arm │ │ └──cpu │ │ │ └──armv7 │ │ └──dts │ │ │ └──*.dts 存放設備的dts,也就是設備配置相關的引腳信息 ├── board 對于不同的平臺的開發板對應的代碼 ├── cmd 顧名思義,大部分的命令的實現都在這個文件夾下面。 ├── common 公共的代碼 ├── configs 各個板子的對應的配置文件都在里面,我們的Lichee配置也在里面 ├── disk 對磁盤的一些操作都在這個文件夾里面,例如分區等。 ├── doc 參考文檔,這里面有很多跟平臺等相關的使用文檔。 ├── drivers 各式各樣的驅動文件都在這里面 ├── dts 一種樹形結構(device tree)這個應該是uboot新的語法 ├── examples 官方給出的一些樣例程序 ├── fs 文件系統,uboot會用到的一些文件系統 ├── include 頭文件,所有的頭文件都在這個文件夾下面 ├── lib 一些常用的庫文件在這個文件夾下面 ├── Licenses 這個其實跟編譯無關了,就是一些license的聲明 ├── net 網絡相關的,需要用的小型網絡協議棧 ├── post 上電自檢程序 ├── scripts 編譯腳本和Makefile文件 ├── spl second program loader,即相當于二級uboot啟動。 ├── test 小型的單元測試程序。 └── tools 里面有很多uboot常用的工具。 ~~~ 了解了uboot的基本結構,我們可以知道一些相關的配置在什么地方了。 * lichee的uboot配置文件放在confgs文件目錄下面,名稱為 ~~~ LicheePi_Zero_480x272LCD_defconfig LicheePi_Zero_800x480LCD_defconfig LicheePi_Zero_defconfig ~~~ 這3個配置是根據不同的Zero顯示設備進行的配置,使用其中之一即可,可以在uboot目錄下執行命令 `make LicheePi_Zero_defconfig` 這樣配置就生效了。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看