移植linux2.6.29.4进友善mini2440开发板 | 发布时间:2009-07-08 23:48:48 |
技术类别:ARM |
终于移植成功,总结下:
移植linux2.6.29.4内核+yaffs2文件系统过程
软件平台:vm(fodera 9)+arm-linux-gcc 4.3.2
参考资料:网上n多资料
1.修改顶层Makefile文件
直接将Makefile文件里面的 ln193
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
改为:
ARCH ?= arm
CROSS_COMPILE ?=arm-linux-
然后用S3C2410的默认配置文件
#make s3c2410_defconfig //此命令 configuration written to .config
//要先按上面方法修改完成Makefile文件才能执行这一步
2.修改时钟,不修改超级终端中会出现乱码
修改Arch/arm/mach-s3c2440/mach-smdk2440.c ln163
S3c24xx_init_clocks(16934400);
改为:
S3c24xx_init_clocks(12000000);
3.修改对nand的分区信息。要让内核知道nand flash的分区信息,设置成跟bootloader一致。
在arch/arm/plat-s3c24xx/common-smdk.c中修改smdk_default_nand_part[]
/* NAND parititon from 2.4.18-swl5 */
static struct mtd_partition friendly_arm_default_nand_part[] = {
[0] = {
.name = "supervivi",
.size = 0x00030000,
.offset = 0,
},
[1] = {
.name = "Kernel",
.offset = 0x00050000,
.size = 0x00200000,
},
[2] = {
.name = "root",
.offset = 0x00250000,
.size = 0x03dac000,
}
};
4.修改CPUID,不修改将会出现无法进入内核由于CPU mach_type 不对应找不到对应的CPU。
5.修改drivers/mtd/nand/s3c2410.c
没试不修改行不行。
6.移植YAFFS2
将原来官方内核中/fs/Kconfig
/fs/Makefile
和yaffs2文件夹拷贝到相应的位置
7.Make menuconfig
修改Kernel Features --->
[*] Use the ARM EABI to compile the kernel
[*] Allow old ABI binaries to run with this kernel (EXPERIMENTA)
把这个选上。
如果不选启动时会出现Kernel panic - not syncing: Attempted to kill init!
8.make zImage
在/linux2.6.29.2/arch/arm/boot就可以找到zImage文件了
总结下:
主要改的文件有:
arch/arm/mach-s3c2440/mach-smdk2440.c(时钟)
arch/arm/plat-s3c24xx/common-smdk2440.c(nandflash)
arch/arm/tools/mach-types (CPU的ID)
移植YAFFS2
下载进友善的mini2440开发板:
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: 61024KB available (3360K code, 323K data, 144K init)
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 716 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
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
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
yaffs Jul 8 2009 22:30:08 Installing.
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.31
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls="3", 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 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 64MiB 3,3V 8-bit":
0x000000000000-0x000000030000 : "supervivi"
0x000000050000-0x000000250000 : "Kernel"
0x000000250000-0x000003ffc000 : "root"
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) 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
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 144K
hwclock: can't open '/dev/misc/rtc': No such file or directory
[01/Jan/1970:00:00:14 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:00:14 +0000] boa: server built Mar 26 2009 at 15:28:42.
[01/Jan/1970:00:00:14 +0000] boa: starting server pid="913", port 80
open device leds: No such file or directory
Try to bring eth0 interface up......ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFHWADDR: No such device
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: Network is unreachable
Done
Please press Enter to activate this console.
[root@FriendlyARM /]#
[root@FriendlyARM /]#
[root@FriendlyARM /]#
[root@FriendlyARM /]#
[root@FriendlyARM /]#
[root@FriendlyARM /]# ls
bin home lost+found root tmp www
dev lib opt sbin usr
etc linuxrc proc sys var
[root@FriendlyARM /]# ls
bin home lost+found root tmp www
dev lib opt sbin usr
etc linuxrc proc sys var
[root@FriendlyARM /]# cd dev
[root@FriendlyARM /dev]# ls
console ptyvd ttyd9
cpu_dma_latency ptyve ttyda
fb0 ptyvf ttydb
full ptyw0 ttydc
input ptyw1 ttydd
kmem ptyw2 ttyde
kmsg ptyw3 ttydf
log ptyw4 ttye0
loop ptyw5 ttye1
mem ptyw6 ttye2
mtd0 ptyw7 ttye3
mtd0ro ptyw8 ttye4
mtd1 ptyw9 ttye5
mtd1ro ptywa ttye6
mtd2 ptywb ttye7
mtd2ro ptywc ttye8
mtdblock0 ptywd ttye9
mtdblock1 ptywe ttyea
mtdblock2 ptywf ttyeb
network_latency ptyx0 ttyec
network_throughput ptyx1 ttyed
null ptyx2 ttyee
port ptyx3 ttyef
psaux ptyx4 ttyp0
ptmx ptyx5 ttyp1
pts ptyx6 ttyp2
ptya0 ptyx7 ttyp3
ptya1 ptyx8 ttyp4
ptya2 ptyx9 ttyp5
ptya3 ptyxa ttyp6
ptya4 ptyxb ttyp7
ptya5 ptyxc ttyp8
ptya6 ptyxd ttyp9
ptya7 ptyxe ttypa
ptya8 ptyxf ttypb
ptya9 ptyy0 ttypc
ptyaa ptyy1 ttypd
ptyab ptyy2 ttype
ptyac ptyy3 ttypf
ptyad ptyy4 ttyq0
ptyae ptyy5 ttyq1
ptyaf ptyy6 ttyq2
ptyb0 ptyy7 ttyq3
ptyb1 ptyy8 ttyq4
ptyb2 ptyy9 ttyq5
ptyb3 ptyya ttyq6
ptyb4 ptyyb ttyq7
ptyb5 ptyyc ttyq8
ptyb6 ptyyd ttyq9
ptyb7 ptyye ttyqa
ptyb8 ptyyf ttyqb
ptyb9 ptyz0 ttyqc
ptyba ptyz1 ttyqd
ptybb ptyz2 ttyqe
ptybc ptyz3 ttyqf
ptybd ptyz4 ttyr0
ptybe ptyz5 ttyr1
ptybf ptyz6 ttyr2
ptyc0 ptyz7 ttyr3
ptyc1 ptyz8 ttyr4
ptyc2 ptyz9 ttyr5
ptyc3 ptyza ttyr6
ptyc4 ptyzb ttyr7
ptyc5 ptyzc ttyr8
ptyc6 ptyzd ttyr9
ptyc7 ptyze ttyra
ptyc8 ptyzf ttyrb
ptyc9 ram0 ttyrc
ptyca ram1 ttyrd
ptycb ram10 ttyre
ptycc ram11 ttyrf
ptycd ram12 ttys0
ptyce ram13 ttys1
ptycf ram14 ttys2
ptyd0 ram15 ttys3
ptyd1 ram2 ttys4
ptyd2 ram3 ttys5
ptyd3 ram4 ttys6
ptyd4 ram5 ttys7
ptyd5 ram6 ttys8
ptyd6 ram7 ttys9
ptyd7 ram8 ttysa
ptyd8 ram9 ttysb
ptyd9 random ttysc
ptyda root ttysd
ptydb shm ttyse
ptydc tty ttysf
ptydd tty0 ttyt0
ptyde tty1 ttyt1
ptydf tty10 ttyt2
ptye0 tty11 ttyt3
ptye1 tty12 ttyt4
ptye2 tty13 ttyt5
ptye3 tty14 ttyt6
ptye4 tty15 ttyt7
ptye5 tty16 ttyt8
ptye6 tty17 ttyt9
ptye7 tty18 ttyta
ptye8 tty19 ttytb
ptye9 tty2 ttytc
ptyea tty20 ttytd
ptyeb tty21 ttyte
ptyec tty22 ttytf
ptyed tty23 ttyu0
ptyee tty24 ttyu1
ptyef tty25 ttyu2
ptyp0 tty26 ttyu3
ptyp1 tty27 ttyu4
ptyp2 tty28 ttyu5
ptyp3 tty29 ttyu6
ptyp4 tty3 ttyu7
ptyp5 tty30 ttyu8
ptyp6 tty31 ttyu9
ptyp7 tty32 ttyua
ptyp8 tty33 ttyub
ptyp9 tty34 ttyuc
ptypa tty35 ttyud
ptypb tty36 ttyue
ptypc tty37 ttyuf
ptypd tty38 ttyv0
ptype tty39 ttyv1
ptypf tty4 ttyv2
ptyq0 tty40 ttyv3
ptyq1 tty41 ttyv4
ptyq2 tty42 ttyv5
ptyq3 tty43 ttyv6
ptyq4 tty44 ttyv7
ptyq5 tty45 ttyv8
ptyq6 tty46 ttyv9
ptyq7 tty47 ttyva
ptyq8 tty48 ttyvb
ptyq9 tty49 ttyvc
ptyqa tty5 ttyvd
ptyqb tty50 ttyve
ptyqc tty51 ttyvf
ptyqd tty52 ttyw0
ptyqe tty53 ttyw1
ptyqf tty54 ttyw2
ptyr0 tty55 ttyw3
ptyr1 tty56 ttyw4
ptyr2 tty57 ttyw5
ptyr3 tty58 ttyw6
ptyr4 tty59 ttyw7
ptyr5 tty6 ttyw8
ptyr6 tty60 ttyw9
ptyr7 tty61 ttywa
ptyr8 tty62 ttywb
ptyr9 tty63 ttywc
ptyra tty7 ttywd
ptyrb tty8 ttywe
ptyrc tty9 ttywf
ptyrd ttyS0 ttyx0
ptyre ttyS1 ttyx1
ptyrf ttyS2 ttyx2
ptys0 ttyS3 ttyx3
ptys1 ttySAC0 ttyx4
ptys2 ttySAC1 ttyx5
ptys3 ttySAC2 ttyx6
ptys4 ttya0 ttyx7
ptys5 ttya1 ttyx8
ptys6 ttya2 ttyx9
ptys7 ttya3 ttyxa
ptys8 ttya4 ttyxb
ptys9 ttya5 ttyxc
ptysa ttya6 ttyxd
ptysb ttya7 ttyxe
ptysc ttya8 ttyxf
ptysd ttya9 ttyy0
ptyse ttyaa ttyy1
ptysf ttyab ttyy2
ptyt0 ttyac ttyy3
ptyt1 ttyad ttyy4
ptyt2 ttyae ttyy5
ptyt3 ttyaf ttyy6
ptyt4 ttyb0 ttyy7
ptyt5 ttyb1 ttyy8
ptyt6 ttyb2 ttyy9
ptyt7 ttyb3 ttyya
ptyt8 ttyb4 ttyyb
ptyt9 ttyb5 ttyyc
ptyta ttyb6 ttyyd
ptytb ttyb7 ttyye
ptytc ttyb8 ttyyf
ptytd ttyb9 ttyz0
ptyte ttyba ttyz1
ptytf ttybb ttyz2
ptyu0 ttybc ttyz3
ptyu1 ttybd ttyz4
ptyu2 ttybe ttyz5
ptyu3 ttybf ttyz6
ptyu4 ttyc0 ttyz7
ptyu5 ttyc1 ttyz8
ptyu6 ttyc2 ttyz9
ptyu7 ttyc3 ttyza
ptyu8 ttyc4 ttyzb
ptyu9 ttyc5 ttyzc
ptyua ttyc6 ttyzd
ptyub ttyc7 ttyze
ptyuc ttyc8 ttyzf
ptyud ttyc9 urandom
ptyue ttyca usbdev1.1
ptyuf ttycb usbdev1.1_ep00
ptyv0 ttycc usbdev1.1_ep81
ptyv1 ttycd vcs
ptyv2 ttyce vcs1
ptyv3 ttycf vcs2
ptyv4 ttyd0 vcs3
ptyv5 ttyd1 vcs4
ptyv6 ttyd2 vcsa
ptyv7 ttyd3 vcsa1
ptyv8 ttyd4 vcsa2
ptyv9 ttyd5 vcsa3
ptyva ttyd6 vcsa4
ptyvb ttyd7 watchdog
ptyvc ttyd8 zero
[root@FriendlyARM /dev]# cd ..
[root@FriendlyARM /]# ls
bin home lost+found root tmp www
dev lib opt sbin usr
etc linuxrc proc sys var
[root@FriendlyARM /]# cd opt
[root@FriendlyARM /opt]# ls
Qtopia kde
[root@FriendlyARM /opt]# cd root
-/bin/sh: cd: can't cd to root
[root@FriendlyARM /opt]# cd root
-/bin/sh: cd: can't cd to root
[root@FriendlyARM /opt]# cd /root
[root@FriendlyARM /root]# ls
Documents Settings
[root@FriendlyARM /root]#
?
VIVI version 0.1.4 (root@capcross) (gcc version 2.95.3 20010315 (release)) #0.
1.4 Mon Oct 27 10:18:15 CST 2008
MMU table base address = 0x33DFC000
Succeed memory mapping.
DIVN_UPLL0
MPLLVal [M:7fh,P:2h,S:1h]
CLKDIVN:5h
+---------------------------------------------+
| S3C2440A USB Downloader ver R0.03 2004 Jan |
+---------------------------------------------+
USB: IN_ENDPOINT:1 OUT_ENDPOINT:3
FORMAT: <ADDR(DATA):4>+<SIZE(n+10):4>+<DATA:n>+<CS:2>
NOTE: Power off/on or press the reset button for 1 sec
in order to get a valid USB device address.
NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M)
Could not found stored vivi parameters. Use default vivi parameters.
Press Return to start the LINUX/Wince now, any other key for vivi
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root="/dev/mtdblock2" init="/linuxrc" console="ttySA"
C0"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux.............................................................
........................................................ done, booting the kerne
l.
Linux version 2.6.29.4 (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery
G++ Lite 2008q3-72) ) #5 Wed Jul 8 22:40:26 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr="c0007177"
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: noinitrd root="/dev/mtdblock2" init="/linuxrc" console="ttySAC0"
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
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: 61024KB available (3360K code, 323K data, 144K init)
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 716 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
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
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
yaffs Jul 8 2009 22:30:08 Installing.
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.31
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls="3", 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 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 64MiB 3,3V 8-bit":
0x000000000000-0x000000030000 : "supervivi"
0x000000050000-0x000000250000 : "Kernel"
0x000000250000-0x000003ffc000 : "root"
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) 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
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 144K
hwclock: can't open '/dev/misc/rtc': No such file or directory
[01/Jan/1970:00:00:14 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:00:14 +0000] boa: server built Mar 26 2009 at 15:28:42.
[01/Jan/1970:00:00:14 +0000] boa: starting server pid="913", port 80
open device leds: No such file or directory
Try to bring eth0 interface up......ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFHWADDR: No such device
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: Network is unreachable
Done
Please press Enter to activate this console.
[root@FriendlyARM /]#
[root@FriendlyARM /]#
Kernel panic - not syncing: Attempted to kill init!
用arm-linux-gcc 4.00以上的编译器做出都 文件系统老是报这个错 ,
而用rm-linux-gcc 3.xx 版本都都不会,看来一下内核的配置
原来问题在这里
Kernel Features --->
[*] Use the ARM EABI to compile the kernel
[*] Allow old ABI binaries to run with this kernel (EXPERIMENTA)
把这个选上就可以了