中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁(yè) > news >正文

一站式服務(wù)是什么意思網(wǎng)址和網(wǎng)站的區(qū)別

一站式服務(wù)是什么意思,網(wǎng)址和網(wǎng)站的區(qū)別,網(wǎng)站建設(shè)教程出售用蘇州久遠(yuǎn)網(wǎng)絡(luò),洛可可設(shè)計(jì)公司估值By Toradex胡珊逢 Toradex 自從 Linux BSP v6 開(kāi)始在使用 32位處理器的 Arm 模塊如 iMX6、iMX6ULL、iMX7 上提供 mainline/upstream kernel ,部分 64位處理器模塊如 Verdin iMX8M Mini/Plus 也提供實(shí)驗(yàn)性支持。文章將以季度發(fā)布版本 Linux BSP V6.3.0 為例介紹如何下…

By Toradex胡珊逢

Toradex?自從?Linux BSP v6?開(kāi)始在使用?32位處理器的?Arm?模塊如?iMX6、iMX6ULL、iMX7?上提供?mainline/upstream kernel?,部分?64位處理器模塊如?Verdin iMX8M Mini/Plus?也提供實(shí)驗(yàn)性支持。文章將以季度發(fā)布版本?Linux BSP V6.3.0?為例介紹如何下載和編譯?mainline/upstream Linux kernel?和?U-Boot。

Linux

下載?kernel?源碼

內(nèi)核源碼可以從官網(wǎng)?https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git?下載。但考慮到國(guó)內(nèi)網(wǎng)絡(luò)情況,推薦從國(guó)內(nèi)的鏡像站點(diǎn)下載,如?https://mirrors.tuna.tsinghua.edu.cn/git/linux-stable.git。默認(rèn)下載時(shí)會(huì)獲取最新的?upstream?內(nèi)核版本??筛鶕?jù)模塊上運(yùn)行?Linux?的版本?checkout?到對(duì)應(yīng)版本源碼。在模塊上的?Linux?中運(yùn)行?uname?命令,可以看到當(dāng)前版本是?6.1.37。后面的?6.3.0?是?Toradex Linux BSP?季度發(fā)布版本。季度發(fā)布版本是經(jīng)過(guò)充分的自動(dòng)化和人工測(cè)試后發(fā)布的,可用于對(duì)應(yīng)模塊的生產(chǎn)環(huán)境。

----------------------------------

root@apalis-imx6:~# uname -a

Linux apalis-imx6 6.1.37-6.3.0+git.0f4ac6b4c5f0 #1 SMP Sat Jul ?1 11:16:27 UTC 2023 armv7l armv7l armv7l GNU/Linux

----------------------------------

在電腦上使用下面命令并?checkout?到?v6.1.37。

----------------------------------

$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/linux-stable.git

$ git checkout v6.1.37

----------------------------------

下載和應(yīng)用補(bǔ)丁

mainline/upstream kernel?通常還需要一些補(bǔ)丁。它們可以從?meta-toradex-bsp-common?中下載,后續(xù)其版本也需要對(duì)應(yīng)到一樣的季度版本。首先打開(kāi)網(wǎng)址?https://git.toradex.com/cgit/toradex-manifest.git/tree/bsp/pinned-tdx.xml?h=6.3.0。結(jié)尾的?6.3.0?為對(duì)應(yīng)的季度發(fā)布版本號(hào)。在頁(yè)面中可以看到如下內(nèi)容:

----------------------------------

<project name="meta-toradex-bsp-common.git" path="layers/meta-toradex-bsp-common" remote="tdx" revision="f7ff10a3b560dcf4e258115da679d1f864e09837" upstream="kirkstone-6.x.y"/>

----------------------------------

可以看到?meta-toradex-bsp-common.git?在季度發(fā)布版本?6.3.0?對(duì)應(yīng)的?hash?是?f7ff10a3b560dcf4e258115da679d1f864e09837。通常建議使用最新發(fā)布的季度版本,獲得問(wèn)題修復(fù)和功能完善。因此,下載時(shí)請(qǐng)修改季度發(fā)布版本號(hào)和?hash?值。

進(jìn)入上面下載的?Linux?源碼目錄后創(chuàng)建?patch?文件夾,并在其中下載?meta-toradex-bsp-common,checkout?對(duì)應(yīng)用版本。

----------------------------------

$ cd linux-stable/

$ mkdir patch

$ cd patch

$ git clone https://git.toradex.com/cgit/meta-toradex-bsp-common.git

$ cd meta-toradex-bsp-common

$ git checkout f7ff10a3b560dcf4e258115da679d1f864e09837

----------------------------------

將?meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline-git?的所有?patch?文件復(fù)制到?patch?目錄下。

----------------------------------

$ cp meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline-git/*.patch ./

----------------------------------

在?patch?目錄下使用?git am?命令給?kernel?打補(bǔ)丁。注意必須要以固定的順序打補(bǔ)丁。補(bǔ)丁順序可以參看?meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_git.bb?文件。

----------------------------------

SRC_URI:append = " \

????file://0001-thermal-imx-Update-critical-temp-threshold.patch \

????file://0001-Revert-drm-panel-simple-drop-use-of-data-mapping-pro.patch \

????file://0001-arm-dts-colibri-imx6-usb-dual-role-switching.patch \

????file://0002-arm-dts-colibri-imx6-move-vbus-supply-to-module-leve.patch \

????file://0003-arm-dts-colibri-imx6-specify-usbh_pen-gpio-being-act.patch \

????file://0001-arm-dts-colibri-imx6ull-keep-peripherals-disabled.patch \

????file://0002-arm-dts-colibri-imx6ull-enable-default-peripherals.patch \

????file://0001-ARM-dts-colibri-imx6ull-Enable-dual-role-switching.patch \

????file://0002-drivers-chipidea-disable-runtime-pm-for-imx6ul.patch \

????file://0001-ARM-dts-apalis-imx6-Disable-usb-over-current.patch \

????file://0002-ARM-dts-colibri-imx6-Disable-usb-over-current.patch \

????file://0003-ARM-dts-colibri-imx6ull-Disable-usb-over-current.patch \

????file://0004-ARM-dts-colibri-imx7-Disable-usb-over-current.patch \

????file://0001-arm64-dts-imx8mm-verdin-Add-yavia-carrier-board.patch \

????file://0002-arm64-dts-imx8mp-verdin-Add-yavia-carrier-board.patch \

????file://0001-media-v4l2-async-fix-binding-async-subdevs-with-mult.patch \

????file://0002-media-i2c-ov5640-Implement-get_mbus_config.patch \

????file://0001-Revert-media-v4l2-async-Use-endpoints-in-__v4l2_asyn.patch \

"

----------------------------------

在?patch?文件夾里執(zhí)行面命令,期間不應(yīng)該出現(xiàn)任何錯(cuò)誤和沖突。

----------------------------------

$ cd patch

$ git am 0001-thermal-imx-Update-critical-temp-threshold.patch \

0001-Revert-drm-panel-simple-drop-use-of-data-mapping-pro.patch \

0001-arm-dts-colibri-imx6-usb-dual-role-switching.patch \

0002-arm-dts-colibri-imx6-move-vbus-supply-to-module-leve.patch \

0003-arm-dts-colibri-imx6-specify-usbh_pen-gpio-being-act.patch \

0001-arm-dts-colibri-imx6ull-keep-peripherals-disabled.patch \

0002-arm-dts-colibri-imx6ull-enable-default-peripherals.patch \

0001-ARM-dts-colibri-imx6ull-Enable-dual-role-switching.patch \

0002-drivers-chipidea-disable-runtime-pm-for-imx6ul.patch \

0001-ARM-dts-apalis-imx6-Disable-usb-over-current.patch \

0002-ARM-dts-colibri-imx6-Disable-usb-over-current.patch \

0003-ARM-dts-colibri-imx6ull-Disable-usb-over-current.patch \

0004-ARM-dts-colibri-imx7-Disable-usb-over-current.patch \

0001-arm64-dts-imx8mm-verdin-Add-yavia-carrier-board.patch \

0002-arm64-dts-imx8mp-verdin-Add-yavia-carrier-board.patch \

0001-media-v4l2-async-fix-binding-async-subdevs-with-mult.patch \

0002-media-i2c-ov5640-Implement-get_mbus_config.patch \

0001-Revert-media-v4l2-async-Use-endpoints-in-__v4l2_asyn.patch

----------------------------------

kernel?配置

內(nèi)核配置文件?.config ?也可以從?Toradex Artifactory?下載,并使用對(duì)應(yīng)的季度發(fā)布版本的編譯文件。打開(kāi)?Toradex Artifactory?網(wǎng)頁(yè),在左邊的?Artifact Repository Browser?中點(diǎn)開(kāi)?oe-release,選擇?Linux BSP v6?對(duì)應(yīng)的?kirkstone-6.x.y。依次打開(kāi)?kirkstone-6.x.y/release/7/apalis-imx6/tdx-xwayland-upstream/tdx-reference-multimedia-image/oedeploy/。release?下面一般可以選擇最大序列的,這對(duì)應(yīng)最新的發(fā)布版本。右擊?kernel-config?下載即可。

MainlineLinux和u-boot編譯_web5621.png

MainlineLinux和u-boot編譯_web5623.png

將?kernel-config?復(fù)制到剛才下載的內(nèi)核源碼目錄,命名為?.config?,用其作為?Linux?的默認(rèn)配置。如果需要修改,后面還可以使用?make menuconfig?命令。

----------------------------------

$ cd linux-stable/

$ mv kernel-config .config

$ make olddefconfig

----------------------------------

準(zhǔn)備好源碼、補(bǔ)丁和內(nèi)核配置文件,接下來(lái)就可以編譯了,具體方法參考這里。

U-Boot

下載?U-Boot?源碼

首先從?https://source.denx.de/u-boot/u-boot.git?下載源碼,并?checkout?到?v2022.07?版本,也是?Linux BSP v6?所使用的?U-Boot?版本。

----------------------------------

$ git clone https://source.denx.de/u-boot/u-boot.git

$ cd u-boot

$ git checkout v2022.07

----------------------------------

下載和應(yīng)用補(bǔ)丁

Upstream/mainline U-Boot?同樣也需要相關(guān)補(bǔ)丁,和上面一樣由?meta-toradex-bsp-common?提供。按照前面的方法在?u-boot?目錄中建立?patch?文件夾后,在其中下載和?checkout。U-Boot?補(bǔ)丁位于?meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex?目錄下。將里面的?patch?文件復(fù)制到?u-boot/patch?目錄下。

----------------------------------

$ cd u-boot

$ mkdir patch

$ cd patch

$ git clone https://git.toradex.com/cgit/meta-toradex-bsp-common.git

$ cd meta-toradex-bsp-common

$ git checkout f7ff10a3b560dcf4e258115da679d1f864e09837

$ cp meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex/*.patch ./

----------------------------------

注意必須要以固定的順序打補(bǔ)丁。補(bǔ)丁順序可以參看?U-Boot meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex_2022.07.bb?文件。

----------------------------------

TDX_PATCHES = " \

????file://0001-toradex-tdx-cfg-block-use-only-snprintf.patch \

????file://0002-toradex-tdx-cfg-block-use-defines-for-string-length.patch \

????file://0003-toradex-tdx-cfg-block-extend-assembly-version.patch \

????file://0004-toradex-tdx-cfg-block-add-new-toradex-oui-range.patch \

????file://0005-toradex-tdx-cfg-block-add-0068-i.mx-8m-mini-sku.patch \

????file://0006-toradex-common-Remove-stale-comments-about-modules-a.patch \

????file://0007-toradex-common-Use-ARRAY_SIZE-macro.patch \

????file://0008-toradex-tdx-cfg-block-Cleanup-interactive-cfg-block-.patch \

????file://0009-toradex-common-Remove-stale-function-declaration.patch \

????file://0010-toradex-common-Remove-ifdef-usage-for-2nd-ethaddr.patch \

????file://0011-toradex-tdx-cfg-block-Use-official-SKU-names.patch \

????file://0012-toradex-common-Improve-product-serial-print-during-b.patch \

????file://0013-configs-colibri-imx7-Enable-bootd-command.patch \

????file://0001-ARM-imx8mp-verdin-imx8mp-Add-memory-size-detection.patch \

????file://0001-apalis-colibri_imx6-imx6ull-_imx7-update-env-memory-.patch \

????file://0001-configs-colibri-imx7-Fix-bad-block-table-in-flash-co.patch \

????file://0001-colibri_imx6-fix-RALAT-and-WALAT-values.patch \

"

----------------------------------

在?patch?文件夾里執(zhí)行面?git am?命令,期間不應(yīng)該出現(xiàn)任何錯(cuò)誤和沖突。

----------------------------------

$ git am 0001-toradex-tdx-cfg-block-use-only-snprintf.patch \

0002-toradex-tdx-cfg-block-use-defines-for-string-length.patch \

0003-toradex-tdx-cfg-block-extend-assembly-version.patch \

0004-toradex-tdx-cfg-block-add-new-toradex-oui-range.patch \

0005-toradex-tdx-cfg-block-add-0068-i.mx-8m-mini-sku.patch \

0006-toradex-common-Remove-stale-comments-about-modules-a.patch \

0007-toradex-common-Use-ARRAY_SIZE-macro.patch \

0008-toradex-tdx-cfg-block-Cleanup-interactive-cfg-block-.patch \

0009-toradex-common-Remove-stale-function-declaration.patch \

0010-toradex-common-Remove-ifdef-usage-for-2nd-ethaddr.patch \

0011-toradex-tdx-cfg-block-Use-official-SKU-names.patch \

0012-toradex-common-Improve-product-serial-print-during-b.patch \

0013-configs-colibri-imx7-Enable-bootd-command.patch \

0001-ARM-imx8mp-verdin-imx8mp-Add-memory-size-detection.patch \

0001-apalis-colibri_imx6-imx6ull-_imx7-update-env-memory-.patch \

0001-configs-colibri-imx7-Fix-bad-block-table-in-flash-co.patch \

0001-colibri_imx6-fix-RALAT-and-WALAT-values.patch

----------------------------------

U-Boot ?配置

對(duì)于?32位處理器的模塊,默認(rèn)配置如下:

l?colibri_imx6_defconfig

l?colibri-imx6ull_defconfig

l?colibri-imx6ull-emmc_defconfig

l?colibri_imx7_defconfig

l?colibri_imx7_emmc_defconfig

l?apalis_imx6_defconfig

以??Apalis iMX6?為例。

----------------------------------

$ make mrproper

$ make apalis_imx6_defconfig

----------------------------------

最后編譯?U-Boot。

----------------------------------

$ make -j$(nproc)

----------------------------------

http://www.risenshineclean.com/news/51515.html

相關(guān)文章:

  • 上海 網(wǎng)站備案系統(tǒng)windows優(yōu)化大師會(huì)員兌換碼
  • 小程序開(kāi)發(fā)費(fèi)用計(jì)入什么科目seo服務(wù)商技術(shù)好的公司
  • 安康網(wǎng)站建設(shè)公司最新推廣注冊(cè)app拿傭金
  • 保健品網(wǎng)站設(shè)計(jì)短視頻營(yíng)銷案例
  • 做戒指網(wǎng)站的logo照片想做個(gè)網(wǎng)絡(luò)推廣
  • 深圳做網(wǎng)站公司 南山廊坊百度推廣電話
  • 淘寶客網(wǎng)站備案信息百度指數(shù)有什么作用
  • 網(wǎng)站怎么做跳轉(zhuǎn)鏈接最近新聞今日頭條
  • 什么網(wǎng)站可以查建筑工程項(xiàng)目怎么在百度上發(fā)布信息廣告
  • 好用的代碼網(wǎng)站百度推廣優(yōu)化師是什么
  • 東莞常平二手房?jī)r(jià)最新消息重慶seo1
  • 網(wǎng)站手機(jī)版怎么做百度明星人氣榜入口
  • 教育培訓(xùn)有限公司可以多少錢注冊(cè)seo怎么優(yōu)化效果更好
  • 江西哪里有做電商網(wǎng)站的公司地推推廣方案
  • 教你做網(wǎng)站廣州網(wǎng)絡(luò)科技有限公司
  • 什么網(wǎng)站可以自學(xué)ps做貴賓卡廣告推廣免費(fèi)
  • 西安建設(shè)工程信息平臺(tái)網(wǎng)絡(luò)優(yōu)化工程師為什么都說(shuō)坑人
  • 運(yùn)營(yíng)說(shuō)白了是什么意思珠海百度關(guān)鍵字優(yōu)化
  • 醫(yī)療器械做網(wǎng)站備案創(chuàng)建網(wǎng)站需要多少資金
  • 中國(guó)建設(shè)銀行官方網(wǎng)站首頁(yè)全網(wǎng)推廣的方式有哪些
  • 用美圖秀秀做網(wǎng)站圖片軟文營(yíng)銷的定義
  • 如何做單網(wǎng)頁(yè)網(wǎng)站抖音seo優(yōu)化公司
  • wordpress頁(yè)面自由布局神馬搜索seo優(yōu)化排名
  • 縣政府門戶網(wǎng)站建設(shè)方案品牌營(yíng)銷公司
  • 企業(yè)網(wǎng)站的基本內(nèi)容騰訊第三季度營(yíng)收448億元
  • 做網(wǎng)站賣廣告掙幾百萬(wàn)建站模板平臺(tái)
  • 南昌新建網(wǎng)站建設(shè)南京網(wǎng)絡(luò)推廣公司排名
  • 網(wǎng)站建設(shè)小組搜索引擎優(yōu)化方式
  • 網(wǎng)站開(kāi)發(fā)包含哪些網(wǎng)站下載
  • 免費(fèi)建站網(wǎng)站一級(jí)大陸在線看網(wǎng)站優(yōu)化推廣培訓(xùn)