day15.烧写最小linux系统

xiaoxiao2021-02-28  17

第15节: 烧写最小linux系统 1)将zImage、system、ramdisk-uboot这三个文件拷贝到USB_fastboot_tool\platform-tools路径下 2)进入uboot模式 3)查看磁盘分区结构 iTOP-4412 # fdisk -c 0 .fdisk is completed                     partion #    size(MB)     block start #    block count    partition_Id     1          5050          4881129        10344411          0x0C          2          1027            44781         2104707          0x83     3          1027          2149488         2104707          0x83     4           306          4254195          626934          0x83      4)格式化磁盘的4个分区 iTOP-4412 # fatformat mmc 0:1                                      Start format MMC&d partition&d ... Partition1: Start Address(0x4a7ae9), Size(0x9dd7db) ................................size checking ...   Under 8G                                          write FAT info: 32 Fat size : 0x2775  ..Erase FAT region................................................................................................. .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. .Partition1 format complete.  iTOP-4412 # fatformat mmc 0:2 Start format MMC&d partition&d ... Partition2: Start Address(0xaeed), Size(0x201d83) ................................size checking ... Under 8G                                          write FAT info: 32 Fat size : 0x807   ..Erase FAT region................................................................................................. ........................................................................................................................................................................................... .Partition2 format complete. iTOP-4412 # fatformat mmc 0:3 Start format MMC&d partition&d ... Partition3: Start Address(0x20cc70), Size(0x201d83) ................................size checking ...   Under 8G                                          write FAT info: 32 Fat size : 0x807   ..Erase FAT region................................................................................................. ........................................................................................................................................................................................... .Partition3 format complete. iTOP-4412 # fatformat mmc 0:4 Start format MMC&d partition&d ... Partition4: Start Address(0x40e9f3), Size(0x990f6) ................................size checking ...  Under 8G                                          write FAT info: 32 Fat size : 0x264   ..Erase FAT region...................................................................................... .Partition4 format complete.    5)链接超级终端 iTOP-4412 # fastboot    [Partition table on MoviNAND] ptn 0 name='bootloader' start=0x0 len=N/A (use hard-coded info. (cmd: movi)) ptn 1 name='kernel' start=N/A len=N/A (use hard-coded info. (cmd: movi))     ptn 2 name='ramdisk' start=N/A len=0x300000(~3072KB) (use hard-coded info. (cmd: movi)) ptn 3 name='Recovery' start=N/A len=0x600000(~6144KB) (use hard-coded info. (cmd: movi)) ptn 4 name='system' start=0x15DDA00 len=0x403B0600(~1052353KB)                           ptn 5 name='userdata' start=0x4198E000 len=0x403B0600(~1052353KB)  ptn 6 name='cache' start=0x81D3E600 len=0x1321EC00(~313467KB)      ptn 7 name='fat' start=0x94F5D200 len=0x3BAFB600(~977901KB)    Insert a OTG cable into the connector!    注意:这里不烧写uboot.bin文件 6)烧写内核 E:\USB_fastboot_tool\platform-tools>fastboot.exe flash kernel zImage sending 'kernel' (3877 KB)... OKAY [  0.593s] writing 'kernel'... OKAY [  0.404s] finished. total time: 0.998s 7)烧写ramdisk 命令 E:\USB_fastboot_tool\platform-tools>fastboot.exe flash ramdisk ramdisk-uboot.img sending 'ramdisk' (636 KB)... OKAY [  0.106s] writing 'ramdisk'... OKAY [  0.167s] finished. total time: 0.274s 8)烧写system命令 E:\USB_fastboot_tool\platform-tools>fastboot.exe flash system system.img sending 'system' (15197 KB)... OKAY [  2.298s] writing 'system'... OKAY [  2.585s]

finished. total time: 4.882s

烧写完成,小型系统已经生成。

转载请注明原文地址: https://www.6miu.com/read-2595529.html

最新回复(0)