• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : How to port 2.6.25 kernel 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 807
精华: 1
发帖: 2
金钱: 40 两
威望: 22 点
贡献值: 10 点
综合积分: 24 分
注册时间: 2008-06-02
最后登录: 2009-03-27
楼主  发表于: 2008-06-02 16:47

 How to port 2.6.25 kernel

管理提醒: 本帖被 qq2440 执行置顶操作(2009-12-07)
Hello

I 'have a QQ2440 board and i try to port a linux 2.6.25 kernel.
I try to make a patch with 2.6.13 kernel with the original but when i patch the 2.6.25 kernel i have a lot of error.
I would know if someone have made a patch with just driver.
Thanks.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-06-03 08:01
I think these patches can be applied to 2.6.25 kernel with a little modification
https://opencsbc.svn.sourceforge.net/svnroot/opencsbc/trunk/target/kernel/patches/2.6.24.x

Also there's an OpenEmbedded package for 2.6.24 kernel for QQ2440V3
https://opencsbc.svn.sourceforge.net/svnroot/opencsbc/trunk/oe/packages/linux/linux-opencsbc_2.6.24.bb
"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
2楼  发表于: 2008-06-03 21:08
Tell us if you have any trouble in porting 2.6.25 kernel
"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
3楼  发表于: 2008-07-05 13:05
引用第4楼thopos于2008-07-04 17:12发表的  :
Hello Kasim,

please, can you give me you local.conf for the openembedded?
i don't understand the system :(


Hi thopos,
I've attached local.conf for building openmoko for QQ2440.
You don't need to understand openembedded if you want to port linux 2.6.2x to QQ2440 only. Just use the original kernel source from kernel.org and patches from https://opencsbc.svn.sourceforge.net/svnroot/opencsbc/trunk/target/kernel/patches/2.6.24.x The kernel config file is https://opencsbc.svn.sourceforge.net/svnroot/opencsbc/trunk/oe/packages/linux/linux-opencsbc/defconfig-2.6.24
[ 此贴被kasim在2008-07-05 13:10重新编辑 ]
附件: local.conf.zip (4 K) 下载次数:38
"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
4楼  发表于: 2008-07-05 16:04
引用第6楼thopos于2008-07-05 15:54发表的  :
Hello Kasim,

thank you for your support.
last night i get openembedded to run. For linux newbie the whole linux-build system, e.g. autobuild, buildroot, openembedded is very complicated. you must reinstall this, you must configurate this and so on.

.......



I'm glad to hear that:) OpenEmbedded is very powerful tool for building filesystem images but it could be very complicated if something went wrong:(
"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
5楼  发表于: 2008-07-05 16:46
引用第8楼thopos于2008-07-05 16:10发表的  :
yeah, and every time something went wrong :-)

another question. Which way you use to build the root-fs?; because the kernel is build by the openmoko toolchain and the default rootfs (include qq2440v3) is build with ??? gcc.
Have you another configuration to build the root-fs via openembedded?


I built the rootfs image via "complicated" OpenMoko/OpenEmedded (http://wiki.openmoko.org/wiki/Openmoko2007.2#How_to_build).
I don't understand what you mean by "another configuration to build the root-fs via openembedded". I've attached my 'local.conf' already.
"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
6楼  发表于: 2008-07-05 17:03
引用第10楼thopos于2008-07-05 16:53发表的  :
ah ok. i should make a small break to go into the forest and reset my brain.

my kernel doesn't start; the mtd partitioning is bad.
Please, can you answer another question? I change the mtd-partitioning in kernel 2.6.24 to default in 2.6.13 to use the 2.6.24 with supervivi-default-parameter. It is correct? Must i change the bootarg? e.g. rootfstype etc.?


It should be OK if you tell MTD to use hard coded default partition table in 2.6.13 and this table should be consistent with the one in supervivi. However, I'm not sure if this feature, i.e. use hard coded partition table, is available in NAND controller driver in your ported 2.6.24 kernel.
The rootfs type setting depends on which rootfs image you use (yaffs or jffs2?)
"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
7楼  发表于: 2008-07-05 17:07
Would you please paste complete 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
8楼  发表于: 2008-07-05 17:24
Here's MTD partition table for QQ2440 hard coded in 2.6.13 kernel. It  is consistent with supervivi. FYR.


static int chip0_map[] = { 0 };
struct mtd_partition bit_default_nand_part[] = {
[0] = {
.name = "bootloader",
.offset = 0x00000000,
.size = 0x00030000,
},
[1] = {
.name = "kernel",
.offset = 0x00050000,
.size = 0x00200000,
},
[2] = {
.name = "root",
.offset = 0x00250000,
.size = 0x03dac000,
}
};

/* the bit has 1 selectable slots for nand-flash, the three
* on-board chip areas, as well as the external SmartMedia
* slot.
*
* Note, there is no current hot-plug support for the SmartMedia
* socket.
*/

static struct s3c2410_nand_set bit_nand_sets[] = {
    [0] = {
        .name        = "chip0",
        .nr_chips    = 1,
        .nr_map        = chip0_map,
        .nr_partitions    = ARRAY_SIZE(bit_default_nand_part),
        .partitions    = bit_default_nand_part
    },
};


static struct s3c2410_platform_nand bit_nand_info = {
              ...
    .nr_sets    = ARRAY_SIZE(bit_nand_sets),
    .sets        = bit_nand_sets,
};
"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
9楼  发表于: 2008-07-05 17:26
However, the rootfs cannot be mounted even if you use the correct partition table. Because yaffs support in this 2.6.24 kernel is not usable.
I sugguest you use customized u-boot and jffs2 rootfs image instead.
"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: 1/2     Go