三星4412开发卡刷android系统

使用SD卡烧写cpu核心为三星4412为核心的CortexA9的Android开发版。

1.准备一张4G或者是8G的SD卡。
2.使用Ubunt12.04下自到的fdisk工具对sd卡进行格式化成(Win95/Fat32)格式。
	2.1格式是应该需要注意预留100M左右的空间要存放Supportboot.bin,

	格式化u盘的步骤如下:
	zshh@zshh-shaohua:~/ARM/mycode/blog$ sudo fdisk -l
	[sudo] password for zshh: 

	Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
	255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
	Units = 扇区 of 1 * 512 = 512 bytes
	Sector size (logical/physical): 512 bytes / 4096 bytes
	I/O size (minimum/optimal): 4096 bytes / 4096 bytes
	Disk identifier: 0x0003101c
	设备 启动      起点          终点     块数   Id  系统
    /dev/sda1   *        2048  1936879615   968438784   83  Linux
	/dev/sda2      1936881662  1953523711     8321025    5  扩展
	Partition 2 does not start on physical sector boundary.
	/dev/sda5      1936881664  1953523711     8321024   82  Linux 交换 / Solaris
	 
	Disk /dev/sdb: 7948 MB, 7948206080 bytes 8 heads, 10 sectors/track, 194048 cylinders, total 15523840 sectors Units = 扇区 of 1 * 512 = 512 bytes
	Sector size (logical/physical): 512 bytes / 512 bytes
	I/O size (minimum/optimal): 512 bytes / 512 bytes
    /dev/sdb1          155238    15523839     7684301    b  W95 FAT32

	上面是使用fdisk -l 命令查看我的硬盘和U盘的信息。
     一:
		我们需要对u盘设备进行分区,那么就应该先将u盘的盘符sdb1,从/media/的挂载点卸载掉。
	
    	使用umount /media/*进行卸载。
		zshh@zshh-shaohua:~/ARM/mycode/blog$ umount /media/2E0D-CD56 
		zshh@zshh-shaohua:~/ARM/mycode/blog$ 

	2.2 使用fdisk对U盘进行分区。
		zshh@zshh-shaohua:~/ARM/mycode/blog$ sudo fdisk /dev/sdb

		命令(输入 m 获取帮助): d                                                  (注释:删除所有分区)
		Selected partition 1

		命令(输入 m 获取帮助): p                                                   (注释:打印设备信息)

		Disk /dev/sdb: 7948 MB, 7948206080 bytes
		8 heads, 10 sectors/track, 194048 cylinders, total 15523840 sectors
		Units = 扇区 of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 512 bytes
		I/O size (minimum/optimal): 512 bytes / 512 bytes
		Disk identifier: 0x00000000

		命令(输入 m 获取帮助): n                                                    (注释:新建分区)
		Partition type:
		   p   primary (0 primary, 0 extended, 4 free)
		   e   extended
		Select (default p): p	                                                    (注释:新建一个主分区)
		分区号 (1-4,默认为 1): 1                                                    (注释:指定分区号)
		起始 sector (2048-15523839,默认为 2048): 204800                            (注释: 预留100m空间用来放Supportboot.bin)
		Last sector, +扇区 or +size{K,M,G} (204800-15523839,默认为 15523839):       (注释: 第一个分区204800开始到15523839结束)
		将使用默认值 15523839

		命令(输入 m 获取帮助): p      						    (注释:打印设备信息)

		Disk /dev/sdb: 7948 MB, 7948206080 bytes
		8 heads, 10 sectors/track, 194048 cylinders, total 15523840 sectors
		Units = 扇区 of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 512 bytes
		I/O size (minimum/optimal): 512 bytes / 512 bytes
		Disk identifier: 0x00000000

		   设备 启动      起点          终点     块数   Id  系统
		/dev/sdb1          204800    15523839     7659520   83  Linux

	
		命令(输入 m 获取帮助): t						      (使用t命令修改分区的类型)
		Selected partition 1
		Hex code (type L to list codes): L					      (查看分区类型)

		 0  空              24  NEC DOS         81  Minix / 旧 Linu bf  Solaris        
		 1  FAT12           27  Hidden NTFS Win 82  Linux 交换 / So c1  DRDOS/sec (FAT-
		 2  XENIX root      39  Plan 9          83  Linux           c4  DRDOS/sec (FAT-
		 3  XENIX usr       3c  PartitionMagic  84  OS/2 隐藏的 C:  c6  DRDOS/sec (FAT-
		 4  FAT16 <32M      40  Venix 80286     85  Linux 扩展      c7  Syrinx         
		 5  扩展            41  PPC PReP Boot   86  NTFS 卷集       da  非文件系统数据 
		 6  FAT16           42  SFS             87  NTFS 卷集       db  CP/M / CTOS / .
		 7  HPFS/NTFS/exFAT 4d  QNX4.x          88  Linux 纯文本    de  Dell 工具      
		 8  AIX             4e  QNX4.x 第2部分  8e  Linux LVM       df  BootIt         
		 9  AIX 可启动      4f  QNX4.x 第3部分  93  Amoeba          e1  DOS 访问       
		 a  OS/2 启动管理器 50  OnTrack DM      94  Amoeba BBT      e3  DOS R/O        
		 b  W95 FAT32       51  OnTrack DM6 Aux 9f  BSD/OS          e4  SpeedStor      
		 c  W95 FAT32 (LBA) 52  CP/M            a0  IBM Thinkpad 休 eb  BeOS fs        
		 e  W95 FAT16 (LBA) 53  OnTrack DM6 Aux a5  FreeBSD         ee  GPT            
		 f  W95 扩展 (LBA)  54  OnTrackDM6      a6  OpenBSD         ef  EFI (FAT-12/16/
		10  OPUS            55  EZ-Drive        a7  NeXTSTEP        f0  Linux/PA-RISC  
		11  隐藏的 FAT12    56  Golden Bow      a8  Darwin UFS      f1  SpeedStor      
		12  Compaq 诊断     5c  Priam Edisk     a9  NetBSD          f4  SpeedStor      
		14  隐藏的 FAT16 <3 61  SpeedStor       ab  Darwin 启动     f2  DOS 次要       
		16  隐藏的 FAT16    63  GNU HURD or Sys af  HFS / HFS+      fb  VMware VMFS    
		17  隐藏的 HPFS/NTF 64  Novell Netware  b7  BSDI fs         fc  VMware VMKCORE 
		18  AST 智能睡眠    65  Novell Netware  b8  BSDI swap       fd  Linux raid 自动
		1b  隐藏的 W95 FAT3 70  DiskSecure 多启 bb  Boot Wizard 隐  fe  LANstep        
		1c  隐藏的 W95 FAT3 75  PC/IX           be  Solaris 启动    ff  BBT            
		1e  隐藏的 W95 FAT1 80  旧 Minix       
		Hex code (type L to list codes): b						(将分区改成WIN95/FAT32格式)
		Changed system type of partition 1 to b (W95 FAT32)


		命令(输入 m 获取帮助): w    					                (注释:保存分区,退出).
		The partition table has been altered!

		Calling ioctl() to re-read partition table.

		WARNING: If you have created or modified any DOS 6.x
		partitions, please see the fdisk manual page for additional
		information.
		Syncing disks.

		zshh@zshh-shaohua:~/ARM/mycode/blog$ sudo mkfs.vfat /dev/sdb1		        (将SD卡格式化为Fat32格式)


	2.3:将supportboot写入到sd卡中。
	
		zshh@zshh-shaohua:~/ARM/arm资料/exynos4412_lzy1/tools$ sudo ./write4412boot ../../../ARM2/images/Superboot4412.bin /dev/sdb
		[sudo] password for zshh: 
		start ...........
		end ...........
		zshh@zshh-shaohua:~/ARM/arm资料/exynos4412_lzy1/tools$ 

	2.4:将镜像拷贝到sd卡中。
		zshh@zshh-shaohua:~/ARM/ARM2$ cp -r images/ /media/CF6B-CAD2/  将Android镜像和linux内核copy到u盘的images下。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值