天嵌 ARM开发社区

 找回密码
 注册
查看: 3854|回复: 5

Freeing init memory

[复制链接]
york1988 发表于 2014-6-16 09:14:53 | 显示全部楼层 |阅读模式
请教一个问题:
TQ2440
内核:2.6.25.8
.config:config_Embedsky_W35
使用NFS文件系统。
问题是这样的,我使用config_Embedsky_W35自己做zImage载入开发板,启动后一直卡在“Freeing init memory: 176K”,直接载入提供好的内核载入,就能够进入console,说明根文件系统没问题,但是我自己做的内核,使用的提供的配置文件config_Embedsky_W35,也没乱改什么,卡住的原因是什么的?

下面是串口的打印信息:
Linux version 2.6.25.8-EmbedSky (root@localhost.localdomain) (gcc version 3.4.5) #1 Fri Jun 13 10:51:39 CST 2014
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.3:/home/york/nfs/nfsroot ip=192.168.1.4:192.168.1.3:192.168.1.4:255.255.255.0:SKY2440.embedsky.net:eth0:off
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60940KB available (3352K code, 376K data, 176K init)
SLUB: Genslabs=12, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
S3C244X: Clock Support, DVS off
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Jun 13 2014 10:50:06 Installing.
io scheduler noop registered (default)
Console: switching to colour frame buffer device 40x15
fb0: s3c2410fb frame buffer device
TQ2440/SKY2440 LEDS, (c) 2008,2009 www.embedsky.net
EmbedSky-leds initialized
TQ2440/SKY2440 Beep, (c) 2008,2009 www.embedsky.net
EmbedSky-Beep initialized
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
loop: module loaded
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
dm9000 Ethernet Driver
eth%d: Invalid ethernet MAC address.  Please set using ifconfig
Now use the default MAC address: 10:32:54:76:98:ba
eth0: dm9000 at c480e000,c4810004 IRQ 51 MAC: 10:32:54:76:98:ba
Linux video capture interface: v2.00
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0x01, Chip ID: 0xda (AMD NAND 256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "EmbedSky_Board_uboot"
0x00200000-0x00500000 : "EmbedSky_Board_kernel"
0x00500000-0x10000000 : "EmbedSky_Board_yaffs2"
usbmon: debugfs is not available
Initial EmbedSky TWO USB HOST Driver!
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
EmbedSky TouchScreen successfully loaded
input: EmbedSky TouchScreen as /class/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
s3c2440-sdi s3c2410-sdi: unable to get DMA channel.
s3c2440-sdi s3c2410-sdi: powered down.
s3c2440-sdi s3c2410-sdi: initialisation done.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
s3c2440-sdi s3c2410-sdi: powered down.
UDA1341 audio driver initialized
Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31 16:40:16 2008 UTC).
ASoC version 0.13.2
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
eth0: link down
IP-Config: Complete:
     device=eth0, addr=192.168.1.4, mask=255.255.255.0, gw=192.168.1.4,
     host=SKY2440, domain=, nis-domain=embedsky.net,
     bootserver=192.168.1.3, rootserver=192.168.1.3, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.3
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Looking up port of RPC 100005/1 on 192.168.1.3
VFS: Mounted root (nfs filesystem).
Freeing init memory: 176K
 楼主| york1988 发表于 2014-6-16 09:31:06 | 显示全部楼层
wbz073 发表于 2014-6-16 09:17
文件系统/etc/init.d/reS中的net_set屏蔽掉了没

是rcS中吗?net_set是什?我看移植手册里没讲这个呀

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 1 反对 0

使用道具 举报

wbz073 发表于 2014-6-16 09:17:46 | 显示全部楼层
文件系统/etc/init.d/reS中的net_set屏蔽掉了没
 楼主| york1988 发表于 2014-6-16 09:36:31 | 显示全部楼层
wbz073 发表于 2014-6-16 09:17
文件系统/etc/init.d/reS中的net_set屏蔽掉了没

我这个并没有net_set行,我以前一直都是使用的开发板上给的内核,NFS文件系统做的练习,一直都没事,就现在开始自己编译内核了,才出现的这个问题
wbz073 发表于 2014-6-16 10:40:02 | 显示全部楼层
york1988 发表于 2014-6-16 09:36
我这个并没有net_set行,我以前一直都是使用的开发板上给的内核,NFS文件系统做的练习,一直都没事,就现 ...

你在你的文件系统内部搜索下,可能位置不同。
 楼主| york1988 发表于 2014-6-16 11:24:08 | 显示全部楼层
谢谢“wbz073”的帮助。但是问题不是那里。
问题原因是编译器的版本问题,我自己的内核使用的是3.4.5的版本,而文件系统中的busybox使用的是4.3.3.
因为以前直接拿的天嵌的内核用,阴差阳错,人家编译好的内核就是使用的4.3.3的版本,自然是能读取文件系统的。
而我自己编译了内核,出现了内核是3.4.5的编译器,文件系统4.3.3的编译器,这种情况。所以没法执行Linuxrc,也没法加载rcS文件。
解决方法:重新make install一下busybox,将新的bin/ sbin/ usr/ linuxrc文件放到文件系统即可。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-28 02:47 , Processed in 1.044962 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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