惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
G
Google Developers Blog
雷峰网
雷峰网
WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Engineering at Meta
Engineering at Meta
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
AWS News Blog
AWS News Blog
F
Full Disclosure
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
J
Java Code Geeks
U
Unit 42
C
Cyber Attacks, Cyber Crime and Cyber Security
V
V2EX
C
Cisco Blogs
博客园 - 司徒正美
Project Zero
Project Zero
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
Scott Helme
Scott Helme
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
S
Securelist
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
T
Threatpost
Recorded Future
Recorded Future
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
The Register - Security
The Register - Security
S
Security Archives - TechRepublic
博客园 - Franky
N
News | PayPal Newsroom
Simon Willison's Weblog
Simon Willison's Weblog
S
SegmentFault 最新的问题
W
WeLiveSecurity
A
Arctic Wolf
B
Blog

博客园 - sonach

osc环境搭建 用osc进行基于Mer的开发 Mer开发过程 放弃WINCE,拥抱Linux 移植Mer-qtmediahub到hi3716m(6):成果与感悟 移植Mer-qtmediahub到hi3716m(5):启动Mer-qtmediahub-hi3716m 移植Mer-qtmediahub到hi3716m(3):在mer-qtmediahub中加入hi3716m的驱动 移植Mer-qtmediahub到hi3716m(2):kernel配置 移植Mer-qtmediahub到hi3716m(1):mer-qtmediahub的rootfs制作 ubuntu11.10 nfs设置 移植Mer到海思的hi3716m平台 Ubuntu11.10中设置tftpd服务 Intel的Medfield手机平台功耗 用firefox参与freenode的IRC LG的googleTV赌注 HTML5及其对移动产业的意义[2011年VisionMobile十大文章之5] X的DISPLAY=:0.0 hardfp ABI理解 linux下写raw.bz2文件到SD卡
移植Mer-qtmediahub到hi3716m(4):确定可写入hi3716m的文件系统镜像
sonach · 2012-02-02 · via 博客园 - sonach

手头的hi3716m板子,FLASH容量有256MB的,也有128MB的。上面制作的mer-qtmediahubrootfs尺寸有200MB。后面还要加别的东西,比如浏览器等,因此,必须进行压缩。

按理说NANDFLASHyaffs文件系统比较理想,但是yaffs文件系统不是压缩的,因此即使做成yaffs文件系统,也会受到FLASH容量的限制。

首先尝试的是cramfs文件系统,用mkfs.cramfs可完成该文件系统的制作。

写入cramfs文件系统到FLASH后,启动板子,打印信息:

VFS:Mounted root (cramfs filesystem) readonly on device 31:9.

Freeinginit memory: 120K

cramfs:bad compressed blocksize 417793690

cramfs:bad compressed blocksize 417793690

cramfs:bad compressed blocksize 3329639899

cramfs:bad compressed blocksize 3329639899

cramfs:bad compressed blocksize 3329639899

/bin/sh:error while loading shared libraries: libtinfo.so.5: cannot openshared object file: Input/output error

Kernelpanic - not syncing: Attempted to kill init!

Stskeeps分析,可能是Merboot时需要写rootfs,或者其他原因。

于是尝试jffs2,最终的命令是:

mkfs.jffs2-d=meego-mer-qtmediahub-armv7l-UNKNOWN.20120127.1445/ --ohi3716m_rootfs.jffs2 -l -e 0x20000 -p –n

说明:

-l:即—little-endian.(如果不指定little-endian,那么jffs2镜像就会和HOSTendian一致!)

-e0x20000: –eraseblock=0x20000。这个值和hi3716m的某FLASH配置相同。

上面两个参数可以参考hi3716m的文档。

-p:及--pad。在mkfs.jffs2时,需要指定pad,否则在nandwrite.jffs2时会出错(即5127072不能整除0x20000:

NAND write: device 0 offset 0x1500000, size 0x30e5280
Attempt to write non page aligned data
 51270272 bytes written: ERROR

也可以指定-n”,这样在启动时就不会打印一堆CLEANMARKER信息;