这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » netflash更新映像的问题?

共4条 1/1 1 跳转至

netflash更新映像的问题?

菜鸟
2005-10-11 01:09:04     打赏

平台:

s3c4510b+am29lv160db

uCLinux + romfs + MTD + netflash

flash分了两个区:1.bootloader(128K); 2.kernel&rootfs

根文件系统是romfs,没有采用jffs2,启动正常,下面是log:

Loading Image From Disk ............... Done

Linux version 2.4.22-uc0 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #2262 三 10月 12 16:17:08 CST 2005

Processor: Samsung S3C4510B revision 6

Architecture: SNDS100

On node 0 totalpages: 2048

zone(0): 0 pages.

zone(1): 2048 pages.

zone(2): 0 pages.

Kernel command line: root=/dev/rom0

Calibrating delay loop... 12.44 BogoMIPS

Memory: 8MB = 8MB total

Memory: 6156KB available (1685K code, 174K data, 40K init)

Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)

Inode cache hash table entries: 512 (order: 0, 4096 bytes)

Mount cache hash table entries: 512 (order: 0, 4096 bytes)

Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)

Page-cache hash table entries: 2048 (order: 1, 8192 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

Starting kswapd

JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.

MPG430: install module......Done

Video source : TI 5150

TI 5150 video decoder configuration done

Samsung S3C4510 Serial driver version 0.9 (2001-12-27) with no serial options enabled

ttyS00 at 0x3ffd000 (irq = 5) is a S3C4510B

ttyS01 at 0x3ffe000 (irq = 7) is a S3C4510B

Blkmem copyright 1998,1999 D. Jeff Dionne

Blkmem copyright 1998 Kenneth Albanowski

Blkmem 1 disk images:

0: F6D10-1B750F [VIRTUAL F6D10-1B750F] (RO)

RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize

Samsung S3C4510 Ethernet driver version 0.1 (2002-02-20) <mac@os.nctu.edu.tw>

eth0: 00:0d:21:00:03:e7

homicam flash device: 200000 at 1000000

Amd/Fujitsu Extended Query Table v1.0 at 0x0040

number of CFI chips: 1

cfi_cmdset_0002: Disabling fast programming due to code brokenness.

Creating 2 MTD partitions on "Homicam flash device":

0x00000000-0x00020000 : "bootloader (128KB)"

mtd: Giving out device 0 to bootloader (128KB)

0x00020000-0x00200000 : "kernel & rootfs (1.875MB)"

mtd: Giving out device 1 to kernel & rootfs (1.875MB)

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 512 bind 512)

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

VFS: Mounted root (romfs filesystem) readonly.

Freeing init memory: 40K

Shell invoked to run file: /etc/rc

Command: hostname Samsung

Command: /bin/expand /etc/ramfs.img /dev/ram0

Command: mount -t proc proc /proc

Command: mount -t ext2 /dev/ram0 /var

Command: mkdir /var/config

Command: mkdir /var/tmp

Command: mkdir /var/log

Command: mkdir /var/run

Command: mkdir /var/lock

Command: mkdir /var/empty

Command: cat /etc/motd

Welcome to

____ _ _

/ __| ||_|

_ _| | | | _ ____ _ _ _ _

| | | | | | || | _ \| | | |\ \/ /

| |_| | |__| || | | | | |_| |/ \

| ___\____|_||_|_| |_|\____|\_/\_/

| |

|_|

For further information check:

http://www.uclinux.org/




关键词: netflash     更新     映像     问题     Command    

菜鸟
2005-10-11 01:11:00     打赏
2楼

netflash操作:

netflash -n -r /dev/mtd1 http://192.168.1.180/2.ram

netflash: killing tasks...

MTD_open

MTD_ioctl

.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

netflash: got "http://192.168.1.180/2.ram", length=1778888

netflash: programming FLASH device /dev/mtd1

MTD_ioctl

MTD_write
...(多次重复以上操作)

.MTD_ioctl

.MTD_ioctl

.

MTD_read

Restarting system.

mm-armv.c 315

Reboot failed -- System halted


菜鸟
2005-10-11 01:12:00     打赏
3楼
上面的netflash自动重启错误

菜鸟
2005-10-11 01:15:00     打赏
4楼

重启后的log:

3

Loading Image From Disk ............... Done

Linux version 2.4.22-uc0 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #2261 二 10月 11 13:38:30 CST 2005

Processor: Samsung S3C4510B revision 6

Architecture: SNDS100

On node 0 totalpages: 2048

zone(0): 0 pages.

zone(1): 2048 pages.

zone(2): 0 pages.

Kernel command line: root=/dev/rom0

Calibrating delay loop... 12.44 BogoMIPS

Memory: 8MB = 8MB total

Memory: 6188KB available (1648K code, 179K data, 40K init)

Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)

Inode cache hash table entries: 512 (order: 0, 4096 bytes)

Mount cache hash table entries: 512 (order: 0, 4096 bytes)

Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)

Page-cache hash table entries: 2048 (order: 1, 8192 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

Starting kswapd

JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.

MPG430: install module......Done

Unhandled fault: alignment exception (93) at 0x00000001

fault-common.c(97): start_code=0xbf5bff6f, start_stack=0xff6f7fbf)

Internal error: Oops: 0

CPU: 0

pc : [<00018f20>] lr : [<00030001>] Not tainted

sp : 007f9eb0 ip : 00000004 fp : 007f9f44

r10: 03fe0fe8 r9 : 60000013 r8 : 001db080

r7 : 01010000 r6 : 001bb024 r5 : e1a0ffff r4 : 60000013

r3 : 00000000 r2 : 007f8030 r1 : 007f9eb0 r0 : 00000004

Flags: nzcv IRQs off FIQs on Mode SVC_32 Segment kernel

Control: 0

Process swapper (pid: 1, stackpage=007f9000)

Stack:

007f9ea0: 00030001 00018f20 00000093 ffffffff 00000004 00000000 00030001 001b5e1c

007f9ec0: 00000512 00000512 00000517 001be148 001bb020 03fe0fe8 007f9f08 007f9ee8

007f9ee0: 0001d334 000745d0 00000517 001b35c0 00000517 001c2148 00000005 007f9f1c

007f9f00: 007f9f0c 0001d3b8 0001d2e8 00000001 fffffae9 001c214c 001c2150 001c2148

007f9f20: 00000005 001bb020 03fe0fe8 007f9f58 e1a0ffff 007f9f7c 007f9fa4 007f9f48

007f9f40: 00019d38 00018ef0 0007800d 00000001 00000001 05201434 001cb300 00000000

007f9f60: 001bb024 01010000 001db080 001bb020 03fe0fe8 007f9fa4 007f9f3c 007f9f90

007f9f80: 0001d828 00078000 60000013 ffffffff 00011d6c 00011db0 007f9fb4 007f9fa8

007f9fa0: 0000e0fc 00077f24 007f9fcc 007f9fb8 000086cc 0000e0c8 00000000 001b0000

007f9fc0: 007f9fdc 007f9fd0 0000870c 000086c0 007f9ffc 007f9fe0 0001204c 000086f4

007f9fe0: 00000000 001b0000 001bb024 01010000 00000000 007fa000 00015d64 0001204c

Backtrace:

Function entered at [<00018ee0>] from [<00019d38>]

r5 = 007F9F7C r4 = E1A0FFFF

Function entered at [<00077f14>] from [<0000e0fc>]

r5 = 00011DB0 r4 = 00011D6C

Function entered at [<0000e0b8>] from [<000086cc>]

Function entered at [<000086b0>] from [<0000870c>]

r5 = 001B0000 r4 = 00000000

Function entered at [<000086e4>] from [<0001204c>]

Function entered at [<0001203c>] from [<00015d64>]

r7 = 01010000 r6 = 001BB024 r5 = 001B0000 r4 = 00000000

Code: e50be08c e3cd2d7f (e594303c) e3c2203f e50b3088

Kernel panic: Attempted to kill init!


共4条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]