day06.烧写android系统

第6节:烧写android系统




1、开机后进入boot模式:
MMC read: dev # 0, block # 48, count 16 ...16 blocks read: OK
eMMC CLOSE Success.!!                                        
                     


Checking Boot Mode ... EMMC4.41
SYSTEM ENTER NORMAL BOOT MODE  
Hit any key to stop autoboot:  0 




2、查看磁盘分区结构
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 


3、格式化磁盘的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.      


4、链接超级终端
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)


5、查看window上的设备管理器中是否已经安装了adb驱动程序


6、运行“platform-tools”文件夹中的文件“cmd.exe”,打开
windows命令行(注意:这个cmd程序没有的话从C:\windows\system32\下进行拷贝)


7、开始烧写系统
1)烧写uboot命令(不建议烧写,已经有了):
fastboot.exe flash bootloader u-boot-iTOP-4412.bin


2)烧写zImage内核命令:
C:\Users\hp\Desktop\USB_fastboot_tool\platform-tools>fastboot flash kernel zImage
sending 'kernel' (3910 KB)...
OKAY [  0.610s]
writing 'kernel'...
OKAY [  0.410s]
finished. total time: 1.020s


3)输入烧写ramdisk 命令:
C:\Users\hp\Desktop\USB_fastboot_tool\platform-tools>fastboot flash ramdisk ramdisk-uboot.img
sending 'ramdisk' (900 KB)...
OKAY [  0.150s]
writing 'ramdisk'...
OKAY [  0.230s]
finished. total time: 0.380s


4)输入烧写system 文件系统命令:
C:\Users\hp\Desktop\USB_fastboot_tool\platform-tools>fastboot flash system system.img
sending 'system' (257620 KB)...
OKAY [ 39.597s]
writing 'system'...
OKAY [ 36.829s]
finished. total time: 76.426s


5)输入擦除命令:
 C:\Users\hp\Desktop\USB_fastboot_tool\platform-tools>fastboot -w
erasing 'userdata'...
OKAY [  1.879s]
erasing 'cache'...
OKAY [  0.950s]
finished. total time: 2.829s


6)输入重启开发板命令:
C:\Users\hp\Desktop\USB_fastboot_tool\platform-tools>fastboot reboot
rebooting...


finished. total time: 0.010s


注意:烧写过程中最好看一下超级终端上是否有报错的现象。
  • 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、付费专栏及课程。

余额充值