搜索
bottom↓
回复: 2

[2410]uboot下面如何对nand进行分区?linux启动不了

[复制链接]

出0入0汤圆

发表于 2008-8-6 23:32:35 | 显示全部楼层 |阅读模式
最近正在玩2410的arm9

移植了nand闪存的uboot后,载入开发板带的linux内核,启动不了

下面是启动信息,难道不能在SDRAM中跑吗?

顺便问下uboot怎么对nand分区呢?




先载入了镜像
YANGCHU2410 # tftp 31000000 uImage
TFTP from server 192.168.0.54; our IP address is 192.168.0.53
Filename 'uImage'.
Load address: 0x31000000
Loading: #################################################################
         #################################################################
         #####################
done
Bytes transferred = 772336 (bc8f0 hex)

用bootm运行不能
YANGCHU2410 # bootm 31000000
## Booting image at 31000000 ...
   Image Name:   linux-2.4
   Created:      2008-07-27   2:53:18 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    772272 Bytes = 754.2 kB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK

Starting kernel ...


arch_number:c1
boot_params:30000100
Uncompressing Linux....................................................... done, booting the kernel.
Linux version 2.4.18-rmk7-pxa1 (fc@localhost.localdomain) (gcc version 2.95.3 20010315 (release)) #441 二 7月 10 11:29:04 CST 2007
CPU: ARM/CIRRUS Arm920Tsid(wb) revision 0
Machine: Samsung-SMDK2410
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: /dev/ram
DEBUG: timer count 15626
Console: colour dummy device 80x30
Calibrating delay loop... 49.86 BogoMIPS
Memory: 64MB = 64MB total
Memory: 62596KB available (1372K code, 356K data, 140K init)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
CPU clock = 200.000 Mhz, HCLK = 100.000 Mhz, PCLK = 50.000 Mhz
Initializing S3C2410 buffer pool for DMA workaround
check your kernel config.
Starting kswapd
devfs: v1.10 (20020120) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
ttyS%d0 at I/O 0x50000000 (irq = 52) is a S3C2410
ttyS%d1 at I/O 0x50004000 (irq = 55) is a S3C2410
ttyS%d2 at I/O 0x50008000 (irq = 58) is a S3C2410
Console: switching to colour frame buffer device 80x30
Installed S3C2410 frame buffer for TFT 640x480 LCD.
pty: 256 Unix98 ptys configured
S3C2410 Real Time Clock Driver v0.1
block: 128 slots per queue, batch=32
eth0: cs8900 rev K(3.3 Volts) found at 0xd0000300
cs89x0 media RJ-45, IRQ 37
loop: loaded (max 8 devices)
Linux video capture interface: v1.00
SCSI subsystem driver Revision: 1.00
UDA1341 audio driver initialized
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Creating 3 MTD partitions on "NAND 64MiB 3,3V":
0x00000000-0x00020000 : "boot"
0x00040000-0x00200000 : "kernel"
0x00200000-0x03ef8000 : "rootfs"
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xe9000000, IRQ 26
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver hid
hid-core.c: v1.8 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "" or 02:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 02:00

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

 楼主| 发表于 2008-8-6 23:35:18 | 显示全部楼层
Creating 3 MTD partitions on "NAND 64MiB 3,3V":
0x00000000-0x00020000 : "boot"
0x00040000-0x00200000 : "kernel"
0x00200000-0x03ef8000 : "rootfs"

启动这一段是对nand进行分区了吗?那原来的uboot为何重启后还存在呢?

uboot的env设置如下,好像有点问题

YANGCHU2410 # printenv
bootdelay=3
baudrate=115200
ethaddr=01:23:45:67:89:0a
ipaddr=192.168.0.53
serverip=192.168.0.54
netmask=255.255.255.0
filesize=bc8f0
fileaddr=30008000
mac=00:01:5d:68:7a:0f
bootargs=/dev/ram
root=/dev/ram
console=ttyS0
stdin=serial
stdout=serial
stderr=serial

出0入0汤圆

 楼主| 发表于 2008-8-6 23:50:53 | 显示全部楼层
。。抱歉,被这个问题困扰了好几天,刚发帖自己就找到问题了

uboot的env设置不对。。。。。

YANGCHU2410 # printenv
bootdelay=3
baudrate=115200
ethaddr=01:23:45:67:89:0a
ipaddr=192.168.0.53
serverip=192.168.0.54
netmask=255.255.255.0
filesize=bc8f0
fileaddr=30008000
mac=00:01:5d:68:7a:0f
console=ttyS0
stdin=serial
stdout=serial
stderr=serial
bootargs=noinitrd root=/dev/mtdblock/2
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-20 19:43

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表