day15.烧写最小linux系统

第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

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




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

随行之旅

python国产化自动化

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值