• «
  • 1
  • 2
  • »
  • Pages: 2/2     Go
主题 : How to port 2.6.25 kernel 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
10楼  发表于: 2008-07-06 18:30
引用第16楼thopos于2008-07-06 15:24发表的  :
Hello,

ok. now i have a u-boot bootloader.
In u-boot i can write the kernel in nandflash; the kernel starts (same log as yesterday). Then i try the same rootfs from cd-rom (2.6.13), extract on pc and make a jffs2 image with mkfs.jffs2-script. If i write the jffs2 rootfs into nandflash at 0x634000 the system crashed; damaged kernel etc? So confused :-( i only want a working system; and i don't think, that i can build a working rootfs for myself


Would you please provide steps you create and flash the jffs2 image and the kernel booting log?
"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
11楼  发表于: 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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
12楼  发表于: 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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
13楼  发表于: 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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
14楼  发表于: 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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
15楼  发表于: 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."
  • «
  • 1
  • 2
  • »
  • Pages: 2/2     Go