Cb3 A20-android System Boot From Sata | 少将全栈
  • 欢迎访问少将全栈,学会感恩,乐于付出,珍惜缘份,成就彼此、推荐使用最新版火狐浏览器和Chrome浏览器访问本网站。
  • 吐槽,投稿,删稿,交个朋友
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏少将全栈吧

Cb3 A20-android System Boot From Sata

点滴 admin 11年前 (2014-04-07) 2272次浏览 已收录 扫描二维码

Copy the System File

At first , connect Cubietruck by USB ,and open terminal:

  $adb shell

So you will input the Android-Shell Command-Line,and see where the system file mounted:

  $mount

Cb3 A20-android System Boot From Sata

You can see the block /dev/block/system mount on /system,

then you connect SATA with Cubietruck,and see what block is the SATA:

  $ls /sys/devices/platform/sw_ahci.0/ata1/host0/target0:0:0/0:0:0:0/block

You will see the SATA block(maybe it’s sdb, sdc or sdd,but it’s no problem):

Cb3 A20-android System Boot From Sata

Now you know the block,use this command:

  $dd if=/dev/block/system of=/dev/block/sda(Your SATA block)

Just wait for about 1 minutes,it will success:

Cb3 A20-android System Boot From Sata

Modify the SDK

After you copy the system file to SATA,you should modify SDK:

  $cd /ct-droid1/android42/devices/softwinner/sugar-cubietruck/  ls
  $vim init.sun7i.rc

And “mount ext4 /dev/block/system” changes to “mount ext4 /dev/block/sda”,like that:

Cb3 A20-android System Boot From Sata

Save and quit,complie the android image.If you don’t konw how to complie,refer to here

After compile success,do this:

  • Install the new image to Cubietruck.
  • Connect the SATA first( must first! If you don’t do this it wouldn’t boot)
  • Charge it with electricity,you will see it Boot from SATA.
喜欢 (0)
[🍬谢谢你请我吃糖果🍬🍬~]
分享 (0)
关于作者:
少将,关注Web全栈开发、项目管理,持续不断的学习、努力成为一个更棒的开发,做最好的自己,让世界因你不同。