九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 6629|回复: 8
打印 上一主题 下一主题

Android4.0下烧录遇到的问题 001 fastboot + SD 的办法

[复制链接]
跳转到指定楼层
楼主
发表于 2014-4-28 12:31:00 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
1 方法一: ubuntu下用fastboot烧录SD卡uboot的问题:
1.1
我参照手册:x210v3 android4.0平台用户手册 20130724 的第5.6章的方法:
先用 ./mk -ki 生成了 uboot_inand.bin
1.2
我参照手册:x210v3 android4.0平台用户手册 20130724 的第6章的方法:
先重新分区sd卡,

hanson@hanson-desktop:~/x210_ics_rtm_v13/uboot$ sudo cat /proc/partitions
[sudo] password for hanson:
major minor  #blocks  name

   8        0  312571224 sda
   8        1  310509568 sda1
   8        2          1 sda2
   8        5    2059264 sda5
   8       16    1931264 sdb
   8       17    1907757 sdb1
hanson@hanson-desktop:~/x210_ics_rtm_v13/uboot$ sudo fdisk /dev/sdb

Command (m for help): d
Selected partition 1

Command (m for help): 1
1: unknown command
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

1.3
然后,进入: sd_fusing 目录:
修改了 sd_fusing.sh 的文件 为  uboot_inand.bin
执行烧录如下:
hanson@hanson-desktop:~/x210_ics_rtm_v13/uboot/sd_fusing$ sudo ./sd_fusing_inand.sh /dev/sdb
/dev/sdb reader is identified.
make sd card partition
./sd_fdisk /dev/sdb
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0123921 s, 41.3 kB/s
mkfs.vfat -F 32
mkfs.vfat 3.0.14 (23 Jan 2023)
No device specified!
Usage: mkdosfs [-a][-A][-c][-C][-v][-I][-l bad-block-file][-b backup-boot-sector]
       [-m boot-msg-file][-n volume-name][-i volume-id]
       [-s sectors-per-cluster][-S logical-sector-size][-f number-of-FATs]
       [-h hidden-sectors][-F fat-size][-r root-dir-entries][-R reserved-sectors]
       /dev/name [blocks]
BL1 fusing
8+0 records in
8+0 records out
4096 bytes (4.1 kB) copied, 0.14146 s, 29.0 kB/s
u-boot fusing
16+0 records in
16+0 records out
8192 bytes (8.2 kB) copied, 0.248244 s, 33.0 kB/s
768+0 records in
768+0 records out
393216 bytes (393 kB) copied, 7.47073 s, 52.6 kB/s
U-boot image is fused successfully.
Eject SD card and insert it again.


不知道红色报错是什么原因,有没有影响?

1.4
启动板子,进入fastboot:
Hit any key to stop autoboot:  0
x210 # fastboot
Fastboot: employ default partition information
[Partition table on NAND]
ptn 0 name='bootloader' start=0x0 len=0x100000(~1024KB)
ptn 1 name='recovery' start=0x100000 len=0x500000(~5120KB)
ptn 2 name='kernel' start=0x600000 len=0x500000(~5120KB)
ptn 3 name='ramdisk' start=0xB00000 len=0x300000(~3072KB)
ptn 4 name='system' start=0xE00000 len=0x10000000(~262144KB) (Yaffs)
ptn 5 name='cache' start=0x10E00000 len=0x4000000(~65536KB) (Yaffs)
ptn 6 name='userdata' start=0x14E00000 len=N/A (Yaffs)


1.5 在UBUNTU 里面启动fastboot 尝试烧录uboot:
hanson@hanson-desktop:~/x210_ics_rtm_v13/uboot$ fastboot devices
SMDKC110-01    fastboot
hanson@hanson-desktop:~/x210_ics_rtm_v13/uboot$ fastboot flash bootloader uboot_inand.bin
sending 'bootloader' (384 KB)...
OKAY [  0.179s]
writing 'bootloader'...
FAILED (remote: failed to flash partition)
finished. total time: 0.234s


我的问题是:我们的fastboot 是否支持inand ? 为何出现设备错误,如何解决?
回复

使用道具 举报

沙发
发表于 2014-4-28 12:50:30 | 只看该作者
fastboot支持inand,这种现象可能是USB延长线质量较差造成的,请使用官方标配的延长线,USB口要接到PC机屁股后面
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2014-4-28 15:17:44 | 只看该作者
事实证明和线无关
回复 支持 反对

使用道具 举报

地板
 楼主| 发表于 2014-4-28 15:24:37 | 只看该作者
和USB线无关,我想先试试看DNW,为什么我这边的驱动无法安装呢?
提示是MTP 而不是X210,然后无法安装驱动
DNW 因此找不到合适的USB端口
我用的系统是XP,这是什么问题呢?
板子是ANDROID4.0
回复 支持 反对

使用道具 举报

5#
 楼主| 发表于 2014-4-28 18:07:14 | 只看该作者
本帖最后由 Franklin 于 2014-4-28 18:10 编辑

按照 手册破坏启动代码后,用新建的SD uboot启动没有效果
按POWER键 串口打印

SD checksum Error

我如何确定我的 SD Uboot烧录是正确的呢,如何确定烧录的脚本是正确的呢?

在uboot 下的几个 打印看后面的跟贴:
1 是烧录uboot到SD卡的时候打印
2 一个是sd_fusing.sh 修改的地方


谢谢!

QQ图片20140428175947.jpg (42.18 KB, 下载次数: 144)

QQ图片20140428175947.jpg
回复 支持 反对

使用道具 举报

6#
 楼主| 发表于 2014-4-28 18:22:37 | 只看该作者
上面的问题我修改的sd_fusing.sh的代码如下:



####################################
# make partition
echo "make sd card partition"
echo "./sd_fdisk $1"
./sd_fdisk $1  
dd iflag=dsync oflag=dsync if=sd_mbr.dat of=$1
rm sd_mbr.dat

####################################
# format
umount $partition1 2> /dev/null
umount $partition2 2> /dev/null
umount $partition3 2> /dev/null
umount $partition4 2> /dev/null

echo "mkfs.vfat -F 32 $partition1"
mkfs.vfat -F 32 $partition1

#echo "mkfs.ext2 $partition2"
#mkfs.ext2 $partition2  

#echo "mkfs.ext2 $partition3"
#mkfs.ext2 $partition3  

#echo "mkfs.ext2 $partition4"
#mkfs.ext2 $partition4  

####################################
# mount
#umount /media/sd 2> /dev/null
#mkdir -p /media/sd
#echo "mount -t vfat $partition1 /media/sd"
#mount -t vfat $partition1 /media/sd

####################################
#<BL1 fusing>
signed_bl1_position=1
bl2_position=9
uboot_position=57

echo "BL1 fusing"
dd iflag=dsync oflag=dsync if=c110.signedBL1_bin of=$1 seek=$signed_bl1_position

####################################
#<u-boot fusing>
echo "u-boot fusing"
dd iflag=dsync oflag=dsync if=../uboot_inand.bin of=$1 seek=$bl2_position count=16
dd iflag=dsync oflag=dsync if=../uboot_inand.bin of=$1 seek=$uboot_position

####################################
#<Message Display>
echo "U-boot image is fused successfully."
echo "Eject SD card and insert it again."
回复 支持 反对

使用道具 举报

7#
 楼主| 发表于 2014-4-28 18:29:21 | 只看该作者
sd 烧录 uboot的打印如下:
hanson@hanson-desktop:~/x210_ics_rtm_v13/uboot/sd_fusing$ ls
C110-EVT1-mkbl1.c   Makefile  sd_fdisk    sd_fusing2.sh       sd_fusing.sh
c110.signedBL1_bin  mkbl1     sd_fdisk.c  sd_fusing_inand.sh
hanson@hanson-desktop:~/x210_ics_rtm_v13/uboot/sd_fusing$ sudo ./sd_fusing_inand.sh /dev/sdb
[sudo] password for hanson:
/dev/sdb reader is identified.
make sd card partition
./sd_fdisk /dev/sdb
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00641723 s, 79.8 kB/s
mkfs.vfat -F 32
mkfs.vfat 3.0.14 (23 Jan 2023)
No device specified!  这里是不是有些问题?
Usage: mkdosfs [-a][-A][-c][-C][-v][-I][-l bad-block-file][-b backup-boot-sector]
       [-m boot-msg-file][-n volume-name][-i volume-id]
       [-s sectors-per-cluster][-S logical-sector-size][-f number-of-FATs]
       [-h hidden-sectors][-F fat-size][-r root-dir-entries][-R reserved-sectors]
       /dev/name [blocks]
BL1 fusing
8+0 records in
8+0 records out
4096 bytes (4.1 kB) copied, 0.0448634 s, 91.3 kB/s
u-boot fusing
16+0 records in
16+0 records out
8192 bytes (8.2 kB) copied, 0.0969936 s, 84.5 kB/s
768+0 records in
768+0 records out
393216 bytes (393 kB) copied, 4.78313 s, 82.2 kB/s
U-boot image is fused successfully.
Eject SD card and insert it again.  d
回复 支持 反对

使用道具 举报

8#
发表于 2014-9-28 19:20:45 | 只看该作者
请问这个 烧录成功了没?求经验分享 我现在 都不知道怎么下手!?
回复 支持 反对

使用道具 举报

9#
发表于 2014-9-30 08:51:43 | 只看该作者
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-5-3 03:18 , Processed in 0.024083 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表