View source for Booting from SD/zh cn
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Templates used on this page:
Return to Booting from SD/zh cn.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Templates used on this page:
Return to Booting from SD/zh cn.
Languages: |
English • العربية • Български • Česky • Dansk • Deutsch • Esperanto • Eesti • Español • فارسی • Suomi • Français • עברית • Magyar • Italiano • 한국어 • Nederlands • Norsk (bokmål) • Polski • Português • Română • Русский • Svenska • Slovenčina • Українська • 中文(中国大陆) • 中文(台灣) • Euskara • Català |
GTA 02内置了2MB的NOR flash。在DVT4(2008 四月在台北发布)之前,GTA02 NOR 在硬件上并没有做NOR写保护控制。在DVT4之后发布的软件包,及量产的产品,都包含了硬件的NOR写保护功能。你必须使用debug board v3 或之后的版本,来禁止NOR 写保护,之后就可以在GTA02上更新NOR。
DVT4 单元及PVT1组件都会使用 "uImage"做为它的内核影像文件名,而不是使用"uImage.bin" 。你可以在启动画面上找到它的日期,了解你的硬件设备上所使用的版本。
以下为制作可引导的SD卡的操作步骤指引。它使用ubuntu 及一张干净的512MB Sandisk microSD 卡(缺省使用FAT16分区格式):
sudo umount /media/disk-1
接着将磁盘分为二个分区,第一个分区使用vfat,预留8MB空间存放uImage.bin,第二个分区(剩余的磁盘空间)使用ext2格式,用于存放rootfs 及目录使用。二个分区都使用primary partition 类型。
sudo fdisk /dev/mmcblk0
Command (m for help): d Selected partition 1 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-983, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-983, default 983): +8M Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (18-983, default 18): Using default value 18 Last cylinder or +size or +sizeM or +sizeK (18-983, default 983): Using default value 983 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
分别用vfat和ext2格式化上述两个分区
mkfs -t vfat /dev/mmcblk0p1
mkfs -t ext2 /dev/mmcblk0p2
uImage.bin为量产版所使用的内核映像文件,而uImage则为较早期版本所使用的文件(DVT4/PVT1)。必须解压缩rootfs.tar.gz来获得uImage.bin和rootfs。
tar -zxvf rootfs.tar.gz
sudo cp -r ./kernel/uImage.bin /media/disk-1
sudo cp -r ./root_files/. /media/disk-2
sync
在GTA02 NAND下有六个分割区。
预设的GTA02 env 档案最原始的版本(2008/7)可以在下面的地址找到 预设env檔
你可以使用下面的 env.new 档案,在开机画面中加入 boot from sd 功能选项。 u-boot environment.
如果你想要自NOR下开机,并且从SD卡中使用NOR,请使用下列的操作步骤。
接着,你可以进入预设的NOR开机选单,你可以: