S3C6410的iROM启动方式
jc
posted @ 2011年3月10日 05:19
in 体系结构探索
, 5477 阅读
看过Samsun的手册后知道,在S3C6410从SD卡启动的时候,Bootloader的代码是由iROM里面的“Device Copy Function"来拷贝到Stepping Stone(8kb)的。
而默认的,此函数会将SD卡的倒数第三个块的8KB数据拷贝。所以,如果一个SD卡的块数为S(扇区大小为512byte),那么这8KB的Bootloader应该放到
(S-16)块处。而SDHC卡则跳过最后的1024个块。
例如:我有一个boot.bin,我的SD卡的设备文件为/dev/sdb,那么
# dd if=/dev/zero of=./temp bs=8k count=1
# cat temp >> boot.bin
# split -b 8k led.bin
# mv xaa led.bin
烧录到SD卡:
# fdisk /dev/sdb
Disk /dev/sdb: 2002 MB, 2002780160 bytes
11 heads, 10 sectors/track, 35560 cylinders
Units = cylinders of 110 * 512 = 56320 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 2 35561 1955775+ b W95 FAT32
由以上信息可知:
Blocks = 2002780160 / 512 = 3911680
那么boot.bin烧录的位置为 3911680 - 18 = 391162
# dd if=./boot.bin of=/dev/sdb bs=8k seek=391172
假如是SDHC卡,那么烧录的位置为 3911680 - (18 + 1024)。
2020年4月09日 18:14
Program is planned for the width and elements for the sounds. The final report of the research paper writers is fixed for the regions. The flex is painted for all politicians. The reform is opened for the mid of the paths for the ruined spaces for all flicked items for their runners of the phenomenon for individuals.
2021年2月25日 02:27
We also have a specific type of essay writing service to help clients write essays on specific topics, in a specific manner and with a specific level of detail. This is easy to do with the help of a teacher who understands the client's requirements and the writing process https://papernow.org/. If you are looking for a tutor or essay writer to help you write an academic essay, you can contact the service provider's company website.
2021年9月07日 18:38
waiting for your next post, very good information, keep it up.
<a href="https://word-finder.co/">word finder</a>
2022年9月24日 19:52
Board of Secondary Education Bihar, Patna board is conducted the state class 10th examination tests as 2nd Indian language for all Hindi, Urdu and Bengali medium students, and the students who have continued their study’s at English medium students have Hindi is the second language and their first language is English, BSEB Matric English Question Paper all students can download BSEB 10th Class English Model Set 2023 Pdf with answer solutions to practice chapter wise important questions.Board of Secondary Education Bihar, Patna board is conducted the state class 10th examination tests as 2nd Indian language for all Hindi, Urdu and Bengali medium students, and the students who have continued their study’s at English medium students have Hindi is the second language and their first language is English.
2023年3月11日 20:04
敬啟者:個人小網站希望大家多多支持 感謝您對我們熱心的支持 f88tw|華歌爾|I appreciate your kind assistance.
https://mypaper.pchome.com.tw/f88tw
f88tw|修墳|修墓|新竹|桃園|苗栗|撿骨|拾骨|發票
https://mypaper.pchome.com.tw/f88tw/post/1370781143
https://mypaper.m.pchome.com.tw/f88tw/post/1370781143
2024年1月13日 22:30
Excellent website you have here, so much cool information!.