主题 : How to port 2.6.25 kernel 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
20楼  发表于: 2008-07-07 09:22
引用第19楼thopos于2008-07-07 04:01发表的  :
next stepp.
i can't set env-variables in uboot / after power-down the variables have the default-value!
If i use in uboot <dynpart> and then <bootd> the kernel will be load out of nand-flash (yeah :-) ).
Now, i write the root.bin which i create following:
extract <root_default.tgz> (from cd-rom).
.......

Well done:) It seemes that you've figured out how this u-boot works by yourself already. Actually, this u-boot is based on patches from OpenMoko project (http://wiki.openmoko.org) and serveral u-boot commands are added/customized by them, like 'dynpart' (http://wiki.openmoko.org/wiki/NAND_bad_blocks#Partition_Table). You may get more details on it from wiki of the project.
According to the kernel booting log, the jffs2 rootfs image has been mounted successfully but kernel could not find a valid /dev/console device node. I think it is caused by lacking of devfs in 2.6.24 kernel which is back-ported to 2.6.13 kernel by FriendlyARM.
A simple way to solve this issue is to add udev support to the rootfs extracted from CD-ROM.
"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: 989
精华: 0
发帖: 12
金钱: 120 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2008-07-04
最后登录: 2017-09-13
21楼  发表于: 2008-07-07 14:37
you mean this?
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
22楼  发表于: 2008-07-07 16:16
引用第21楼thopos于2008-07-07 14:37发表的  :
you mean this?
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3

Yeah, of cause you can make device nodes manually by 'mknod' command.
"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: 989
精华: 0
发帖: 12
金钱: 120 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2008-07-04
最后登录: 2017-09-13
23楼  发表于: 2008-07-08 15:16
Hello,

so, my rootfs does'nt work. I tried to create manually the devices, also via udev. I got the same log as yesterday.

Then i wan't to build the root-image via openembedded, but it stopps with errors "opkg-cl" not found, "ipkg" not found. Then i try to install the packages but it's failed too.

Is there an option to "automatic install dependencys"?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
24楼  发表于: 2008-07-08 16:31
引用第23楼thopos于2008-07-08 15:16发表的  :
Hello,

so, my rootfs does'nt work. I tried to create manually the devices, also via udev. I got the same log as yesterday.

Then i wan't to build the root-image via openembedded, but it stopps with errors "opkg-cl" not found, "ipkg" not found. Then i try to install the packages but it's failed too.
.......

Maybe you should set "init=/bin/sh" in kernel command line to test the rootfs image after necessary device nodes which you can create by "MAKEDEV std console" scripit created.
"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: 989
精华: 0
发帖: 12
金钱: 120 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2008-07-04
最后登录: 2017-09-13
25楼  发表于: 2008-07-08 16:35
Oh, sorry, i forget to tell you; yeah i tried the "init=/bin/sh" with the same result "unable to open initial console"
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
26楼  发表于: 2008-07-08 17:05
引用第25楼thopos于2008-07-08 16:35发表的  :
Oh, sorry, i forget to tell you; yeah i tried the "init=/bin/sh" with the same result "unable to open initial console"

Maybe you have to make a jffs2 rootfs by yourself with "busybox + device nodes created manually" only. Use the toolchain from openmoko.
"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: 989
精华: 0
发帖: 12
金钱: 120 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2008-07-04
最后登录: 2017-09-13
27楼  发表于: 2008-07-10 15:10
Hey kasim,

everything works fine :-) Thank you very much for your support.
I know, it is very stressful if there are people without background knowledge.

Ok, what happens; next question.

I have a few patches for uboot (240x320 display), also kernel 2.6.24 (240x320 display and rtc). Should i put the patches into this forum, or sent to you per mail?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
28楼  发表于: 2008-07-10 17:40
Congratulations! I'm very glad to hear that :)
Contribution is always wellcome, I think you'd better send them to this forum so that everyone could see what you've done. You can also send them to me by ling_kasim@yahoo.cn.
"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: 2408
精华: 0
发帖: 25
金钱: 250 两
威望: 88 点
贡献值: 0 点
综合积分: 50 分
注册时间: 2008-11-16
最后登录: 2009-01-19
29楼  发表于: 2008-12-03 12:59
hello kasim,
I'm using mini2440 with one module of OV9650 COMS camera.
but it is offical linux driver. and then i downloaded the attachment driver from network.
but it can't passed to compile.
could you please help me? thanks
my mini2440 kernel version is 2.6.13.

sunjian
描述:OV9650 COMS camera driver
附件: linux_9650.rar (39 K) 下载次数:0