主题 : 无法下载自已编译的zImage到target 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 7441
精华: 0
发帖: 10
金钱: 100 两
威望: 95 点
综合积分: 20 分
注册时间: 2009-07-15
最后登录: 2017-09-13
楼主  发表于: 2009-08-03 09:37

 无法下载自已编译的zImage到target

下载自已编译的zImage到target,无法下载到目标上,出现下列讯息
Enter your selection: k
USB host is connected. Waiting a download.
Length of file is too big : 2194168 > 2097152
Failed downloading file
请问要如何决解?? 要如何加大kernel那区的size?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-08-03 10:23
用supervivi的part命令,删除不需要的分区,把空闲的空间并入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: 7441
精华: 0
发帖: 10
金钱: 100 两
威望: 95 点
综合积分: 20 分
注册时间: 2009-07-15
最后登录: 2017-09-13
2楼  发表于: 2009-08-03 12:29
Enter your selection: q
Supervivi> part show
Number of partitions: 4
name            :    offset        size        flag
------------------------------------------------------------
vivi            :                        0x00000000    0x00040000    0
param           :    0x00040000    0x00020000    0
kernel          :    0x00060000    0x00230000    0
root            :                        0x00290000    0x03d9c000    0
Supervivi> part reset
Supervivi> part show
Number of partitions: 4
name            :    offset        size        flag
------------------------------------------------------------
vivi            :               0x00000000    0x00040000    0
param           :    0x00040000    0x00020000    0
kernel          :    0x00060000    0x00200000    0
root            :                        0x00260000    0x03d9c000    0
Supervivi> part del param
deleted 'param' partition
Supervivi> part del kernel
deleted 'kernel' partition
Supervivi> part add kernel 0x00040000 0x00220000 0
kernel: offset = 0x00040000, size = 0x00220000, flag = 0
Supervivi> part show
Number of partitions: 3
name            :    offset        size        flag
------------------------------------------------------------
vivi            :                        0x00000000    0x00040000    0
root            :                        0x00260000    0x03d9c000    0
kernel          :    0x00040000    0x00220000    0
Supervivi> part save
Could not found 'param' partiton


请问vivi、param、kernel、root    这4个分区那一个是不需要的分区?vivi和kernel和root应该都是需要的吧?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-08-03 12:39
1. 如果param分区够,那就把它并入kenel分区,不需要做part save, DNW下载之前只会读取当前RAM里的分区表;
2. 你也可以调整root分区的大小,把一部分空间挪到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: 7441
精华: 0
发帖: 10
金钱: 100 两
威望: 95 点
综合积分: 20 分
注册时间: 2009-07-15
最后登录: 2017-09-13
4楼  发表于: 2009-08-03 13:03
Enter your selection: q
Supervivi> part show
Number of partitions: 4
name            :    offset        size        flag
------------------------------------------------------------
vivi            :                        0x00000000    0x00040000    0
param           :    0x00040000    0x00020000    0
kernel          :    0x00060000    0x00230000    0
root            :                        0x00290000    0x03d9c000    0
Supervivi> menu


##### FriendlyARM BIOS for 2440 #####

[x] bon part 0 320k 2368k

[v] Download vivi

[k] Download linux kernel

[y] Download root_yaffs image

[a] Absolute User Application

[n] Download Nboot

[l] Download WinCE boot-logo

[w] Download WinCE NK.bin

[d] Download & Run

[z] Download zImage into RAM

[g] Boot linux from RAM

[f] Format the nand flash

[b] Boot the system

[s] Set the boot parameters

[u] Backup NAND Flash to HOST through USB(upload)

[r] Restore NAND Flash from HOST through USB

[q] Goto shell of vivi

Enter your selection: k
USB host is connected. Waiting a download.
Length of file is too big : 2194168 > 2097152
Failed downloading file

我是在Nor flash开机的,按下q进Supervivi> 去修改
可是我已将kernel修改为kernel          :    0x00060000    0x00230000    0
root            :    0x00290000    0x03d9c000    0
已照你的第2点把root分区的大小,把一部分空间挪到kernel分区里
zImage也才2.09M (2,194,168),为何下载还是会出现超出大小的讯息(Length of file is too big)呢?

另外提一下我的是64M的mini2440,照20090719手册去做的。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2009-08-03 13:22
那恐怕就是NOR Flash里的supervivi里写死了内核大小最大不能超过2M了
"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: 7441
精华: 0
发帖: 10
金钱: 100 两
威望: 95 点
综合积分: 20 分
注册时间: 2009-07-15
最后登录: 2017-09-13
6楼  发表于: 2009-08-03 14:50
Supervivi又没提供原始码,怎办?还有其它方法吗?? 还是大哥你能提供一个修改过的Supervivi的给小弟我,内存就照上面那样配置。

或是在make menuconfig中有没有可以拿掉的功能,让zImage变小下来?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2009-08-03 15:34
抱歉,我和你一样没有Supervivi的源代码;
至于内核的大小的裁剪,恐怕只有靠你自己去掉你目前所用的内核配置中不需要的选项了,这应该不难。
"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."