主题 : mini2440学习之(一)-------移植linux内核 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 3743
精华: 0
发帖: 28
金钱: 240 两
威望: 208 点
贡献值: 0 点
综合积分: 56 分
注册时间: 2009-02-05
最后登录: 2017-09-13
20楼  发表于: 2009-04-17 15:08
请问一下cramfs文件系统怎样制作?谢谢
级别: 骑士
UID: 4234
精华: 0
发帖: 152
金钱: 1420 两
威望: 1142 点
贡献值: 11 点
综合积分: 304 分
注册时间: 2009-03-05
最后登录: 2012-08-18
21楼  发表于: 2009-04-23 00:26
我也遇到了15楼的问题,怎么解决?请老大们指点小弟,终端的字体大小还有关系吗?????
级别: 新手上路
UID: 1048
精华: 0
发帖: 1
金钱: 10 两
威望: 10 点
贡献值: 0 点
综合积分: 2 分
注册时间: 2008-07-12
最后登录: 2009-09-04
22楼  发表于: 2009-05-08 00:08

 回 15楼(xuquanrui) 的帖子

-------------------------------------------------------------------------------------------------
谢谢各位了,找到了问题,是我弄错了。
不过移植后启动,出现:
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

只是什么问题呢?
-----------------------------------------------------------------------------------------------------------
Q1:Warning: unable to open an initial console.
A1:After version 2.6.12,DEVFS got removed.
     So this is the solution,when you build a yaffs filesystem:
                                +++++#cd dev
                                ++dev#mknod -m 600 console c 5 1
                                ++dev#mknod -m 600 null c 1 3

Q2:Then you may get another problem:kernel panic- not syncing:Attempted to kill init !
A2:Lack of libcrypt.so ! You need a newly version.
    
   Download root_qtopia that FriendlyARM provided,you can get through all these troubles.
    Particular analysis: http://www.aiothome.com/bbs/read.php?tid-1702.html
~~方法总比困难多~~
级别: 新手上路
UID: 3522
精华: 0
发帖: 47
金钱: 470 两
威望: 405 点
贡献值: 0 点
综合积分: 94 分
注册时间: 2009-01-15
最后登录: 2011-06-30
23楼  发表于: 2009-05-12 23:17

学习
级别: 新手上路
UID: 5709
精华: 0
发帖: 7
金钱: 70 两
威望: 70 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2009-05-05
最后登录: 2016-09-09
24楼  发表于: 2009-05-13 17:16
学习了~!!
一般2440要正常工作在内核配置时哪些是必须的,要不zImage快到2M了,最好800K左右。我用cramfs系统,vivi。
级别: 新手上路
UID: 5822
精华: 0
发帖: 27
金钱: 210 两
威望: 162 点
贡献值: 0 点
综合积分: 54 分
注册时间: 2009-05-10
最后登录: 2014-04-25
25楼  发表于: 2009-05-14 10:01
我照着上面的步骤还是出现了问题:
.........
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 140K
Kernel panic - not syncing: Attempted to kill init!



加载yaffs不成功啊!!弄了好几天了,还是不行

还有,那个第二步的

(2)
static struct s3c2410_platform_nand smdk_nand_info = {
    .tacls        = 0,
    .twrph0        = 30,      //这 三个数字要改的 以前是20 60 20
    .twrph1        = 0,
    .nr_sets    = ARRAY_SIZE(smdk_nand_sets),
    .sets        = smdk_nand_sets,
};
-----------------------------------------------------------------------------------
为什么要修改呢?我看了common-friendly-arm.c里面的都没改啊?
Linux@ARM
级别: 新手上路
UID: 2478
精华: 0
发帖: 48
金钱: 410 两
威望: 354 点
贡献值: 0 点
综合积分: 96 分
注册时间: 2008-11-19
最后登录: 2018-02-08
26楼  发表于: 2009-05-21 10:53
不错!
欢迎访问Linux@ARM博客:
http://l0p0c.cublog.cn
级别: 新手上路
UID: 5970
精华: 0
发帖: 37
金钱: 380 两
威望: 375 点
贡献值: 0 点
综合积分: 74 分
注册时间: 2009-05-15
最后登录: 2009-09-14
27楼  发表于: 2009-05-25 10:51
[root@localhost linux-2.6.29.2]# make zImage
scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  Generating include/asm-arm/mach-types.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
ln: 创建符号链接 “include/asm”: 不支持的操作
make: *** [include/asm] 错误 1


为撒我的照着你的编译是这个错误的, 总斑竹给解决下,另外我的是2.6.27,文中提到的是2.6.22,内核不一样的会不会有问题?
能不能搞个全面基本流程的,其实拿到完整的内核好多板级的东西要改,总版主帮帮忙啊
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
28楼  发表于: 2009-05-25 11:39
ln: 创建符号链接 “include/asm”: 不支持的操作
make: *** [include/asm] 错误 1

不支持符号链接操作,内核源代码所在的分区是FAT/NTFS格式的?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
29楼  发表于: 2009-05-25 11:41
能不能搞个全面基本流程的,其实拿到完整的内核好多板级的东西要改

没有哪一本宝典可以帮你搞定所有的问题,照着别人的文档生搬硬套只会让问题越来越多。理解了别人的东西再用。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."