Advertisement
Guest User

make-sdboot

a guest
Dec 1st, 2014
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. DEV=/dev/sdc
  2.  
  3. # flash IDB sector 0
  4. dd if=idb_sector_0.enc of=${DEV} conv=sync,fsync seek=64
  5.  
  6. # flash IDB sector 1 (this is "boot" SD card, not "update" SD card)
  7. dd if=idb_sector_1 of=${DEV} conv=sync,fsync seek=65
  8.  
  9. # flash DDR blob
  10. dd if=FlashData.bin of=${DEV} conv=sync,fsync seek=68
  11.  
  12. # flash U-Boot
  13. dd if=FlashBoot.bin of=${DEV} conv=sync,fsync seek=100
  14.  
  15. # flash parameter (physical 0x2000 == logical 0x0)
  16. dd if=parameter.img of=${DEV} conv=sync,fsync seek=$((0x2000+0x0))
  17. #rkflashtool P < orig/parameter
  18.  
  19. # flash partition image
  20. # dd if=partition.img of=${DEV} conv=sync,fsync seek=$((0x2000+offset))
  21. # rkflashtool w partition < partition.img
  22.  
  23. #CMDLINE:console=ttyFIQ0 androidboot.hardware=rk30board androidboot.console=ttyFIQ0 board.ap_has_alsa=0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(misc),0x00008000@0x00006000(resource),0x00008000@0x0000e000(kernel),0x00010000@0x00016000(boot)
  24.  
  25. dd if=boot.img of=${DEV} conv=sync,fsync seek=$((0x2000+0x00016000))
  26. dd if=kernel.img.img of=${DEV} conv=sync,fsync seek=$((0x2000+0x0000e000))
  27. dd if=resource.img of=${DEV} conv=sync,fsync seek=$((0x2000+0x00006000))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement