{"id":8893,"date":"2024-05-23T07:01:01","date_gmt":"2024-05-22T23:01:01","guid":{"rendered":""},"modified":"2024-05-23T07:01:01","modified_gmt":"2024-05-22T23:01:01","slug":"am335x linux\u5185\u6838\u79fb\u690d_\u628aubuntu\u7cfb\u7edf\u505a\u6210\u955c\u50cf","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8893.html","title":{"rendered":"am335x linux\u5185\u6838\u79fb\u690d_\u628aubuntu\u7cfb\u7edf\u505a\u6210\u955c\u50cf"},"content":{"rendered":"

COM-335X\u7b80\u8981\u4ecb\u7ecd<\/strong><\/strong><\/strong><\/h3>\n

COM-335X\u5de5\u63a7\u6a21\u5757\u4ea7\u54c1\u96c6\u6210\u4e86<\/span> ARM <\/span>Cortex-A8<\/span> 1G<\/span>Hz<\/span>(MAX)<\/span> TI<\/span> AM335X<\/span> \u5904\u7406\u5668\uff0c\u8be5\u6a21\u5757\u4f7f\u7528\u4e86TPS65217\u7535\u6e90\u7ba1\u7406\u82af\u7247\uff0c\u677f\u8f7d\u5927\u5bb9\u91cf\u7535\u5b50\u76d8\uff08COM-335X\u96c6\u6210\u4e86NAND FLASH\u6216\u8005EMMC\uff0c\u652f\u6301\u4e09\u79cd\u542f\u52a8\u65b9\u5f0f\uff08NAND\/EMMC\/QSPI NOR\uff09\uff0c\u7a33\u5b9a\u8fd0\u884c<\/span>WindowsCE <\/span>7<\/span>.0 <\/span>\u548c<\/span>Linux <\/span>4<\/span>.<\/span>14(\u652f\u6301DTB)\u3002<\/span> \u8be5\u6838\u5fc3\u6a21\u5757\u4f7f\u7528SODIMM204\u63a5\u53e3\u4ef6\u4e0e\u5de5\u7a0b\u5e95\u677f\u76f8\u8fde\uff0c\u5e76\u5e26\u87ba\u9489\u9501\u5b9a\uff0c\u4fdd\u8bc1\u7cfb\u7edf\u6297\u9707\u6027\u80fd\u3002COM-335X\u63d0\u4f9b\u4e86<\/span>3.3V I\/O<\/span>\u63a5\u53e3\uff0c\u53ef\u63d0\u4f9b\u5bbd\u6e29\u7684\u5de5\u4e1a\u7ec4\u4ef6\uff0c\u8fd0\u884c\u4e8e\u6761\u4ef6\u6076\u52a3\u7684\u5de5\u4e1a\u73b0\u573a\uff01<\/span> <\/p>\n

1.2.1\u4ea7\u54c1\u7279\u6027<\/strong><\/h4>\n
    \n
  1. \u91c7\u7528TI\u516c\u53f8Cortex-A8 AM335X\u5904\u7406\u5668\uff0c\u8fd0\u884c\u6700\u9ad8\u901f\u5ea6\u4e3a1GHZ\uff1b<\/li>\n
  2. \u652f\u6301128M-1G  <\/span>DDR<\/span>3<\/span> S<\/span>DRAM\uff1b<\/span><\/li>\n
  3. \u652f\u6301128-1G\u5b57\u8282 SLC\u7535\u5b50\u76d8\u6216\u8005EMMC 2G-32G\u5927\u5bb9\u91cf\u7535\u5b50\u76d8\uff0c\u53ef\u542f\u52a8\uff1b<\/li>\n
  4. \u6700\u591a\u53ef\u652f\u6301\u4e24\u8def\u5343\u5146\u4ee5\u592a\u7f51\uff0c\u652f\u6301IEEE1588\uff1b<\/li>\n
  5. \u652f\u6301\u4e24\u8def\u9ad8\u901fUSB OTG\uff1b<\/li>\n
  6. \u652f\u6301\u6700\u591a\u516d\u8def\u4e32\u53e3\uff0c\u53cc\u8defCAN BUS\uff1b<\/li>\n
  7. \u652f\u6301\u5206\u8fa8\u7387\u6700\u9ad8\u76841360*768\u663e\u793a\u63a5\u53e3\uff0c\u53ef\u652f\u6301SGX530 3D\u5f15\u64ce\uff1b <\/li>\n
  8. \u7a33\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u652f\u6301\uff0c\u53ef\u9884\u88c5WINCE 7.0\u6216\u8005LINUX 4.14(DTB)\uff1bANDROID 4.2\u53ef\u6839\u636e\u9879\u76ee\u5b9a\u5236\uff1b<\/li>\n
  9. \u5f15\u51faJTAG\u63a5\u53e3,\u4fbf\u4e8e\u88f8\u673a\u7cfb\u7edf\u8c03\u8bd5\u3002<\/li>\n
  10. EMMC\u542f\u52a8\u7248\u672c\u517c\u5bb9BeagleboneBlack\u3002<\/li>\n
  11. 45*45mm ATAMP SMD CHIP<\/li>\n
  12. \"am335x<\/li>\n<\/ol>\n\n\n\n\n\n\n
    \n

    \n<\/td>\n

    \n

    FUNCTION<\/p>\n<\/td>\n

    \n

    COM-335X<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u4e3b\u8981\u53c2\u6570<\/span><\/p>\n<\/td>\n

    \n

    \u4e3b\u63a7\u5236\u5668<\/span> <\/p>\n<\/td>\n

    \n

    TI Am335X\uff0cCortex-A8\uff0c1GHZ(Max)<\/p>\n<\/td>\n<\/tr>\n

    \n

    \n<\/td>\n

    \n

    \u5185\u5b58<\/span> <\/p>\n<\/td>\n

    \n

    256MB DDR3(\u6700\u5927\u53ef\u52301GB)<\/p>\n<\/td>\n<\/tr>\n

    \n

    \n<\/td>\n

    \n

    \u95ea\u5b58<\/span> <\/p>\n<\/td>\n

    \n

    SLC NAND 128MB (\u6700\u5927\u52301GMB) \u6216\u8005EMMC(\u6700\u5927\u523032GMB)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    \n

    \u65f6\u949f<\/span><\/p>\n<\/td>\n

    \n

    DS1338U-33<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u770b\u95e8\u72d7<\/span><\/p>\n<\/td>\n

    \n

    \u6709<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u7535\u6e90\u7ba1\u7406<\/span><\/p>\n<\/td>\n

    \n

    TPS65217C (\u53ef\u652f\u6301\u7535\u6c60\u4f9b\u7535\u7684\u79fb\u52a8\u5e94\u7528)<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u590d\u4f4d<\/span><\/p>\n<\/td>\n

    \n

    \u652f\u6301\u8f6f\u4ef6\u548c\u786c\u4ef6\u590d\u4f4d<\/span> (<\/span>\u76f4\u63a5\u5199\u5bc4\u5b58\u5668<\/span>)<\/span><\/p>\n<\/td>\n<\/tr>\n

    \n

    \u4e32\u53e3<\/p>\n<\/td>\n

    \n

    \u4e32\u53e36\u4e2a\uff0cLV<\/span>TTL<\/span>\u7535\u5e73<\/span> <\/p>\n<\/td>\n<\/tr>\n

    \n

    \u4ee5\u592a\u7f51<\/p>\n<\/td>\n

    \n

    2,10\/100\/1000Mbps<\/p>\n<\/td>\n<\/tr>\n

    \n

    USB <\/span>OTG<\/span><\/p>\n<\/td>\n

    \n

    2\u4e2a\uff0c\u9ad8\u901f<\/p>\n<\/td>\n<\/tr>\n

    \n

    SD\/MMC\u5361<\/p>\n<\/td>\n

    \n

    \u56db\u7ebf<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u89e6\u6478\u5c4f<\/p>\n<\/td>\n

    \n

    \u652f\u63014\/5\/8\u7ebf<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u7cfb\u7edf\u603b\u7ebf<\/span><\/p>\n<\/td>\n

    \n

    NAND\u542f\u52a8\u4ea7\u54c1\u63d0\u4f9bGPMC\u603b\u7ebf\uff0cEMMC\u542f\u52a8\u4ea7\u54c1\u65e0GPMC\u603b\u7ebf\uff1b<\/span><\/p>\n<\/td>\n<\/tr>\n

    \n

    IIC\u63a5\u53e3<\/p>\n<\/td>\n

    \n

    3<\/p>\n<\/td>\n<\/tr>\n

    \n

    SPI\u63a5\u53e3<\/p>\n<\/td>\n

    \n

    2<\/p>\n<\/td>\n<\/tr>\n

    \n

    GPIO<\/p>\n<\/td>\n

    \n

    \u591a\u4e2a<\/span>3.3V <\/span>LV<\/span>TTL<\/span>\u7535\u5e73<\/span><\/p>\n<\/td>\n<\/tr>\n

    \n

    MCASP\u97f3\u9891<\/p>\n<\/td>\n

    \n

    1<\/p>\n<\/td>\n<\/tr>\n

    \n

    CAN\u603b\u7ebf<\/p>\n<\/td>\n

    \n

    2<\/p>\n<\/td>\n<\/tr>\n

    \n

    Graphic Chip<\/span><\/p>\n<\/td>\n

    \n

    \u652f\u63012D\/3D\uff0c\u4ec5\u5bf9\u4e8eAM3354<\/span><\/p>\n<\/td>\n<\/tr>\n

    \n

    \u5206\u8fa8\u7387<\/span><\/p>\n<\/td>\n

    \n

    \u6700\u59271360\u00d7768 <\/p>\n<\/td>\n<\/tr>\n

    \n

    LCD\u63a5\u53e3<\/p>\n<\/td>\n

    \n

    16\/24-bit TTL\u63a5\u53e3<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u7535\u6e90<\/p>\n<\/td>\n

    \n

    5.0<\/span> V (+-5%) <\/span><\/p>\n<\/td>\n<\/tr>\n

    \n

    Power Consumption<\/span><\/p>\n<\/td>\n

    \n

    TBD<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u5c3a\u5bf8<\/span> <\/p>\n<\/td>\n

    \n

    67.6MM*38MM*2.5MM<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u5de5\u4f5c\u6e29\u5ea6<\/span><\/p>\n<\/td>\n

    \n

    0<\/span> ~ <\/span>7<\/span>0\u00b0 C (<\/span>\u53ef\u5b9a\u5236-20-70<\/span>\u00b0C)<\/span> <\/p>\n<\/td>\n<\/tr>\n

    \n

    \u5de5\u4f5c\u6e7f\u5ea6<\/span><\/p>\n<\/td>\n

    \n

    5 ~ 95 % <\/span>\uff0c\u51b7\u51dd\u7ed3<\/span><\/p>\n<\/td>\n<\/tr>\n

    \n

    RoHS<\/span><\/p>\n<\/td>\n

    \n

    YES<\/p>\n<\/td>\n<\/tr>\n

    \n

    \u8ba4\u8bc1<\/span><\/p>\n<\/td>\n

    \n

    CE<\/span><\/p>\n<\/td>\n<\/tr>\n

    \n

    \u8f6f\u4ef6\u652f\u6301<\/span><\/p>\n<\/td>\n

    \n

    Linux <\/span>4<\/span>.<\/span>14 dtb<\/span> (<\/span>DEBIAN,<\/span>WCE<\/span>7<\/span>.0<\/span>\u6216\u8005ANDROID\u9879\u76ee\u5b9a\u5236\u652f\u6301<\/span>)<\/span> <\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

    1.2.3\u6838\u5fc3\u6a21\u5757\u5b58\u50a8\u53ca\u542f\u52a8<\/strong><\/h4>\n

    -335X\u53ef\u4eceNAND Flash\u3001EMMC\u6216\u8005SPI NOR FLASH\u542f\u52a8\u548c\u5b58\u50a8\u64cd\u4f5c\u7cfb\u7edf\u3002<\/span><\/p>\n

    \"am335x<\/p>\n

                                                                 \u9ed8\u8ba4\u4ecenandflash\u542f\u52a8 <\/span><\/p>\n

    \"am335x\u9ed8\u8ba4\u4eceeMMC\u542f\u52a8<\/span><\/p>\n

    EAC-335X\u4e3b\u677f\u7684COM-335X\u6838\u5fc3\u677f\uff0c\u5bf9\u5e94\u7684\u542f\u52a8\u987a\u5e8f\u5982\u4e0b\u8868\uff1a<\/span> <\/p>\n\n\n\n\n\n\n\n\n\n
    \n

    Jumper Set<\/span><\/strong><\/p>\n<\/td>\n

    \n

    First Boot<\/span><\/strong><\/p>\n<\/td>\n

    \n

    Second Boot<\/span><\/strong><\/p>\n<\/td>\n

    \n

    Third Boot<\/span><\/strong><\/p>\n<\/td>\n

    \n

    Fourth Boot<\/span><\/strong><\/p>\n<\/td>\n<\/tr>\n

    \n

    Default boot from NandFlash<\/strong><\/p>\n<\/td>\n<\/tr>\n

    \n

    Open<\/strong><\/p>\n<\/td>\n

    \n

    Nand<\/p>\n<\/td>\n

    \n

    Nand I2C<\/p>\n<\/td>\n

    \n

    MMC0<\/p>\n<\/td>\n

    \n

    UART0<\/p>\n<\/td>\n<\/tr>\n

    \n

    Close<\/strong><\/p>\n<\/td>\n

    \n

    MMC0<\/p>\n<\/td>\n

    \n

    SPI0<\/p>\n<\/td>\n

    \n

    UART0<\/p>\n<\/td>\n

    \n

    USB0<\/p>\n<\/td>\n<\/tr>\n

    \n

    Default boot from eMMC<\/strong><\/p>\n<\/td>\n<\/tr>\n

    \n

    Open<\/strong><\/p>\n<\/td>\n

    \n

    MMC1<\/p>\n<\/td>\n

    \n

    MMC0<\/p>\n<\/td>\n

    \n

    UART0<\/p>\n<\/td>\n

    \n

    USB0<\/p>\n<\/td>\n<\/tr>\n

    \n

    Close<\/strong><\/p>\n<\/td>\n

    \n

    SPI0<\/p>\n<\/td>\n

    \n

    MMC0<\/p>\n<\/td>\n

    \n

    USB0<\/p>\n<\/td>\n

    \n

    UART0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

    \"am335x<\/p>\n

    \u4e3a\u4e86\u66f4\u5feb\u6377\u7684\u64cd\u4f5c\u4f7f\u7528EAC-335X\u4e3b\u677f\uff0c\u628aJ1\uff08jumper\uff09\u5f15\u7528\u5230EAC-335X SW2\u6309\u952e\uff0c\u5982\u4e0a\u56fe\u6240\u793a\uff1b<\/span><\/p>\n

    \u5bf9\u4e8eNAND\u7248\u672c\u7684COM-335X :EAC-335X\u677fSW2\u6309\u952e\u4e0d\u6309\u4e0a\u7535\uff0cAM335X\u4f18\u5148\u4eceNand\u542f\u52a8\uff0c\u5f53SW2\u6309\u952e\u6309\u4e0b\u4e0a\u7535\uff0c\u5219\u4f18\u5148\u4eceMMC0\u542f\u52a8\uff0c\u8fd9\u65f6\u6211\u4eec\u5c06\u70e7\u5199\u6587\u4ef6\u4fdd\u5b58\u5230SD\u5361\uff0c\u5e76\u5c06SD\u5361\u63d2\u5165\u5230MMC0\u8fde\u63a5\u7684\u5361\u5ea7\u4e2d\uff0cAM335X\u4eceSD\u5361\u4e2d\u542f\u52a8U-BOOT(\u5d4c\u5165\u5f0fLINUX\u7684\u5f15\u5bfc\u7a0b\u5e8f)\uff0c\u901a\u8fc7U-BOOT\u5c06LINUX\u5185\u6838\u7b49\u7cfb\u7edf\u5199\u5165\u5230NAND FLASH\u4e2d\uff0c\u70e7\u5199\u5b8c\u6210\u540e\uff0c\u7cfb\u7edf\u9ed8\u8ba4\u4eceNAND\u542f\u52a8\u3002<\/span><\/p>\n

    \u5bf9\u4e8eeMMC\u7248\u672c\u7684COM-335X: EAC-335X\u677fSW2\u6309\u952e\u4e0d\u6309\u4e0a\u7535\uff0cAM335X\u4f18\u5148\u4eceMMC1\uff08MMC1\u4fe1\u53f7\u8fde\u63a5\u4e86eMMC\u5b58\u50a8\u82af\u7247\uff09\u542f\u52a8\uff0c\u5f53SW2\u6309\u952e\u6309\u4e0b\u4e0a\u7535\uff0c\u5219\u4f18\u5148SPI0\u542f\u52a8\uff08SPI0\u9700\u8981\u5916\u63a5SPI NOR FLASH\uff09\uff0cSPI0\u6ca1\u8fde\u63a5\u542f\u52a8\u5b58\u50a8\u8bbe\u5907\uff0c\u5219\u4ece\u6b21\u7ea7MMC0\u542f\u52a8\uff08MMC0\u63a5\u53e3\u8fde\u63a5\u5230\u4e86SD\u5361\u5361\u5ea7\uff09\uff0c\u8fd9\u65f6\u6211\u4eec\u5c06\u9700\u8981\u70e7\u5199\u5230EMMC\u4e2d\u7684\u5404\u4e2a\u7cfb\u7edf\u6587\u4ef6\u5b58\u653e\u5230SD\u5361\u540e\uff0c\u5e76\u63d2\u5165MMC0\u8fde\u63a5\u7684\u5361\u5ea7\u4e2d\uff0c\u4e0a\u7535\u542f\u52a8\u540e\uff0cCOM-335X\u5148\u4eceSD\u5361\u4e2d\u4fdd\u5b58\u7684U-BOOT\u542f\u52a8(\u5d4c\u5165\u5f0fLINUX\u7684\u5f15\u5bfc\u7a0b\u5e8f)\uff0c\u901a\u8fc7\u8be5U-BOOT\u53ef\u4ee5\u5c06LINUX\u5185\u6838\u7b49\u7cfb\u7edf\u5199\u5165\u5230eMMC\u4e2d\uff0c\u70e7\u5199\u5b8c\u6210\u540e\uff0c\u7cfb\u7edf\u9ed8\u8ba4\u4eceeMMC\u542f\u52a8\u7cfb\u7edf\u3002<\/span><\/p>\n

    \u4ee5\u4e0a\u542f\u52a8\u7684\u5177\u4f53\u7ec6\u8282\u8bf7\u53c2\u8003\u300aCOM-335X\u786c\u4ef6\u4f7f\u7528\u624b\u518c\u300b\u4ee5\u53ca\u9644\u5f551-<\/span>bootloader\u4e09\u7ea7\u542f\u52a8\u8bf4\u660e\uff1b<\/p>\n

    <\/h2>\n

    2<\/strong><\/strong> <\/strong>\u5236\u4f5cubuntu \u6587\u4ef6\u7cfb\u7edf<\/strong><\/strong><\/strong><\/h2>\n

    \u5728x86\u5e73\u53f0\u4f7f\u7528ubuntu-base-16.04.6-base-armhf.tar.gz\u955c\u50cf\u5236\u4f5cubuntu\u6587\u4ef6\u7cfb\u7edf\uff0c\u6b65\u9aa4\u5982\u4e0b\u3002<\/p>\n

    1\u3001\u5728 Linux PC \u4e3b\u673a\u4e0a\u5b89\u88c5\u6a21\u62df\u5668<\/p>\n

    # sudo apt-get install qemu-user-static<\/p>\n

    2\u3001\u51c6\u5907Ubuntu\u955c\u50cf<\/p>\n

    # wget -c http:\/\/cdimage.ubuntu.com\/ubuntu-base\/releases\/16.04\/release\/ubuntu-base-16.04.6-base-armhf.tar.gz<\/p>\n

    # mkdir console<\/p>\n

    # sudo tar -xpf ubuntu-base-16.04.6-base-armhf.tar.gz -C console<\/p>\n

    3\u3001\u8bbe\u7f6edns\uff0c\u4e3a\u4e0b\u8f7dpackage\u505a\u51c6\u5907<\/p>\n

    # sudo cp -b \/etc\/resolv.conf console\/etc\/resolv.conf<\/p>\n

    4\u3001\u51c6\u5907qemu<\/p>\n

    # sudo cp \/usr\/bin\/qemu-arm-static console\/usr\/bin\/<\/p>\n

    5\u3001\u5207\u6362rootfs\u76ee\u5f55<\/p>\n

    # sudo mount -t proc proc console\/proc\/<\/p>\n

    # sudo mount -t sysfs sys console\/sys\/<\/p>\n

    # sudo mount --bind \/dev\/ console\/dev\/<\/p>\n

    # sudo mount --bind \/dev\/pts\/ console\/dev\/pts\/<\/p>\n

    # sudo chroot console<\/p>\n

    6\u3001\u66f4\u65b0<\/p>\n

    # apt update<\/p>\n

    # apt upgrade<\/p>\n

    7\u3001\u5b89\u88c5\u6240\u9700\u7ec4\u4ef6\uff08\u6839\u636e\u9700\u6c42\u5b89\u88c5\uff09<\/p>\n

    # apt-get install vim git openssh-server sudo net-tools iputils-ping wireless-tools udev<\/p>\n

    # apt-get install rsyslog ifupdown ethtool dialog bash-completion<\/p>\n

    # apt-get install bluetooth-touch bluez<\/p>\n

    # apt-get install busybox udhcpc<\/p>\n

    # apt-get install console-setup console-terminus console-data<\/p>\n

    # apt-get install alsa-utils can-utils tzdata<\/p>\n

    \u684c\u9762\u73af\u5883\u9700\u8981\u5b89\u88c5\u4ee5\u4e0b\u8f6f\u4ef6\u5305\uff1a<\/p>\n

    # apt-get lxde libpam-kwallet4 libpam-kwallet5<\/p>\n

    # apt-get install xinput-calibrator network-manager<\/p>\n

    8\u3001\u914d\u7f6e\u542f\u52a8\u754c\u9762<\/p>\n

    # update-alternatives --config x-session-manager<\/p>\n

    9\u3001\u914d\u7f6e\u9ed8\u8ba4\u767b\u5f55\u754c\u9762<\/p>\n

    # dpkg-reconfigure lightdm<\/p>\n

    10\u3001\u914d\u7f6e\u7f51\u7edc<\/p>\n

    # echo auto eth0 > \/etc\/network\/interfaces.d\/eth0<\/p>\n

    # echo iface eth0 inet dhcp >> \/etc\/network\/interfaces.d\/eth0<\/p>\n

    # echo auto wlan0 > \/etc\/network\/interfaces.d\/wlan0<\/p>\n

    # echo allow-hotplug wlan0 >> \/etc\/network\/interfaces.d\/wlan0<\/p>\n

    # echo iface wlan0 inet dhcp >> \/etc\/network\/interfaces.d\/wlan0<\/p>\n

    11\u3001\u6dfb\u52a0\u7cfb\u7edf\u7528\u6237\uff0c\u5e76\u8bbe\u7f6e\u5bc6\u7801\uff0c\u4ee5embfly\u4e3a\u4f8b<\/p>\n

    # useradd -s '\/bin\/bash' -m -G adm,sudo embfly<\/p>\n

    # echo embfly:embfly | chpasswd<\/p>\n

    12\u3001\u8bbe\u7f6e\u4e3b\u673a\u540d<\/p>\n

    # echo am335x > etc\/hostname<\/p>\n

    # echo \"127.0.0.1 localhost am335x\" > etc\/hosts<\/p>\n

    # echo \"Asia\/Shanghai\" > \/etc\/timezone<\/p>\n

    13\u3001\u9000\u51fa<\/p>\n

    # exit<\/p>\n

    # sudo umount -lf console\/dev\/pts<\/p>\n

    # sudo umount -lf console\/dev<\/p>\n

    # sudo umount console\/sys<\/p>\n

    # sudo umount console\/proc<\/p>\n

    14\u3001\u5236\u4f5c\u955c\u50cf<\/p>\n

    \u5236\u4f5cext4\u955c\u50cf<\/p>\n

    eMMC\u5b58\u50a8\u7684\u4e3b\u677f\uff0c\u70e7\u5199\u538b\u7f29\u540e\u7684ext4\u955c\u50cf\uff0c\u6587\u4ef6\u540e\u7f00\u4e3aext4.gz\u3002<\/p>\n

    # mkdir  rootfs<\/p>\n

    # dd if=\/dev\/zero of=linuxroot.img bs=1M count=4000<\/p>\n

    # mkfs.ext4 linuxroot.img<\/p>\n

    # sudo mount linuxroot.img rootfs\/<\/p>\n

    # sudo cp -rfp console\/*  rootfs\/<\/p>\n

    # sudo umount rootfs\/<\/p>\n

    # e2fsck -p -f linuxroot.img<\/p>\n

    # resize2fs  -M linuxroot.img<\/p>\n

    # gzip -9 linuxroot.img<\/p>\n

    \u538b\u5236ubi\u955c\u50cf<\/p>\n

    nand flash\u5b58\u50a8\u7684\u4e3b\u677f\uff0c\u70e7\u5199UBI\u955c\u50cf\u3002\u7531\u4e8eubuntu\u955c\u50cf\u8f83\u5927\uff0c\u53ea\u652f\u6301512 MIB\u4ee5\u4e0a\u3001\u9875\u5927\u5c0f\u4e3a<\/p>\n

    4096 byte\u7684nand flaah\u3002\u4ee5\u538b\u5236512MIB\u7684\u955c\u50cf\u4e3a\u4f8b\uff1a<\/p>\n

    # sudo mkfs.ubifs -F -q -r console\/ -m 4096 -e 253952 -c 1980 -o ubuntu16.04.img<\/p>\n

    # ubinize -o ubuntu16.04.ubi -O 4096 -m 4096 -p 256KiB -s 1024 ubivolume.cfg<\/p>\n

    \u6ce8\uff1aINI\u914d\u7f6e\u6587\u4ef6ubivolume.cfg\u5982\u4e0b\uff1a<\/p>\n

    # cat ubivolume.cfg<\/p>\n

    [ubifs]<\/p>\n

    mode=ubi<\/p>\n

    image=ubuntu16.04.img<\/p>\n

    vol_id=0<\/p>\n

    vol_size=450MiB<\/p>\n

    vol_type=dynamic<\/p>\n

    vol_name=rootfs<\/p>\n

    vol_flags=autoresize<\/p>\n

    \n

     <\/p>\n

     <\/p>\n","protected":false},"excerpt":{"rendered":"am335x linux\u5185\u6838\u79fb\u690d_\u628aubuntu\u7cfb\u7edf\u505a\u6210\u955c\u50cfCOM-335X\u7b80\u8981\u4ecb\u7ecdCOM-335X\u5de5\u63a7\u6a21\u5757\u4ea7\u54c1\u96c6\u6210\u4e86ARMCortex-A81GHz(MAX)TIAM335X\u5904\u7406...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8893"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8893"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8893\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}