主题 : 把kernel烧写到nandflash的问题 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 28121
精华: 0
发帖: 58
金钱: 290 两
威望: 58 点
综合积分: 116 分
注册时间: 2010-09-06
最后登录: 2017-09-13
楼主  发表于: 2010-09-20 21:36

 把kernel烧写到nandflash的问题

我把kernel烧写到nandflash的是出现了error:Attempt to write non page aligned data


下面是具体的信息,在线等高手解答
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000004000 : "Boot"
mtd: partition "Boot" doesn't end on an erase block -- force read-only
0x000000040000-0x000000060000 : "param"
0x000000060000-0x000000560000 : "kernel"
0x000000560000-0x00003ffe0000 : "root"


TFTP from server 172.30.22.164; our IP address is 172.30.22.165
Filename 'uImage2.6.30.4x.img'.
Load address: 0x30008000
Loading: T #################################################################
         #################################################################
         ######
done
Bytes transferred = 1985928 (1e4d88 hex)
[u-boot@C-JOK]# nand erase 60000 560000

NAND erase: device 0 offset 0x60000, size 0x560000
Erasing at 0x5a000002b00000 --   0% complete.
OK
[u-boot@C-JOK]# nand write 30008000 0x60000 1e4d88

NAND write: device 0 offset 0x60000, size 0x1e4d88
Attempt to write non page aligned data
1985928 bytes written: ERROR
[u-boot@C-JOK]#

级别: 新手上路
UID: 3333
精华: 0
发帖: 26
金钱: 170 两
威望: 78 点
综合积分: 52 分
注册时间: 2009-01-05
最后登录: 2010-10-27
1楼  发表于: 2010-09-27 15:00
LZ,注意页对齐