本移植主要参考友善之臂移植手册完成,做个笔记以备不时之需
Linux-2.6.32 在Mini2440上的移植(三)
使用环境:fedora9
交叉编译工具链:arm-linux-gcc-4.4.3
内核源码来源:
内核存放目录:/opt/mymini2440/linux-2.6.32
说明:红色部分为代码修改部分
进入解压好的yasffs2目录,执行如下语句为内核打上yaffs补丁:
#./patch-ker.sh c /opt/mymini2440/linux-2.6.32/
配置Linux内核使其支持yaffs2文件系统:
#make menuconfig
File systems --> [*] Miscellaneous filesystems --> <*> YAFFS2 file system support
编译内核:
#make zImage
在vivi菜单下,输入【k】将zImage下载到nandflash,输入【y】下载友善之臂自带文件系统到nandflash用以测试,输入【b】启动内核
-
##### FriendlyARM BIOS 2.0 for 2440 #####
-
[x] format NAND FLASH for Linux
-
[v] Download vivi
-
[k] Download linux kernel
-
[y] Download root_yaffs image
-
[a] Absolute User Application
-
[n] Download Nboot for WinCE
-
[l] Download WinCE boot-logo
-
[w] Download WinCE NK.bin
-
[d] Download & Run
-
[z] Download zImage into RAM
-
[g] Boot linux from RAM
-
[f] Format the nand flash
-
[b] Boot the system
-
[s] Set the boot parameters
-
[u] Backup NAND Flash to HOST through USB(upload)
-
[r] Restore NAND Flash from HOST through USB
-
[q] Goto shell of vivi
-
[i] Version: 1138-2K
-
Enter your selection: b
-
Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00500000 ... pos = 5242880, good pos = 560000
-
done
-
zImage magic = 0x016f2818
-
Setup linux parameters at 0x30000100
-
linux command line is: "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0"
-
MACH_TYPE = 1999
-
NOW, Booting Linux......
-
Uncompressing Linux................................................................................................................................... done, booting the kernel.
-
Linux version 2.6.32 (root@localhost.localdomain) (gcc version 4.4.3 (ctng-1.6.1) ) #2 Wed Jul 9 13:33:01 CST 2014
-
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
-
CPU: VIVT data cache, VIVT instruction cache
-
Machine: FriendlyAR MINI2440 Board
-
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/mtdblock3 init=/linuxrc console=ttySAC0
-
PID hash table entries: 256 (order: -2, 1024 bytes)
-
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: 60524KB available (3680K code, 418K data, 132K init, 0K highmem)
-
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
-
Hierarchical RCU implementation.
-
NR_IRQS:85
-
irq: clearing subpending status 00000003
-
irq: clearing subpending status 00000002
-
Console: colour dummy device 80x30
-
console [ttySAC0] enabled
-
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
-
Mount-cache hash table entries: 512
-
CPU: Testing write buffer coherency: ok
-
NET: Registered protocol family 16
-
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
-
usbcore: registered new interface driver usbfs
-
usbcore: registered new interface driver hub
-
usbcore: registered new device driver usb
-
s3c-i2c s3c2440-i2c: slave address 0x10
-
s3c-i2c s3c2440-i2c: bus frequency set to 98 KHz
-
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
-
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
-
RPC: Registered udp transport module.
-
RPC: Registered tcp transport module.
-
RPC: Registered tcp NFSv4.1 backchannel transport module.
-
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
-
ROMFS MTD (C) 2007 Red Hat, Inc.
-
yaffs Jul 9 2014 13:32:21 Installing.
-
msgmni has been set to 118
-
alg: No test for stdrng (krng)
-
io scheduler noop registered
-
io scheduler anticipatory registered (default)
-
io scheduler deadline registered
-
io scheduler cfq registered
-
Console: switching to colour frame buffer device 60x53
-
fb0: s3c2410fb frame buffer device
-
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
-
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
-
s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
-
s3c24xx-nand s3c2440-nand: NAND soft ECC
-
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
-
Scanning device for bad blocks
-
Bad eraseblock 250 at 0x000001f40000
-
Creating 5 MTD partitions on "NAND 256MiB 3,3V 8-bit":
-
0x000000000000-0x000000040000 : "boot"
-
0x000000040000-0x000000060000 : "param"
-
uncorrectable error :
-
0x000000060000-0x000000560000 : "Kernel"
-
uncorrectable error :
-
0x000000560000-0x000040560000 : "root"
-
mtd: partition "root" extends beyond the end of device "NAND 256MiB 3,3V 8-bit" -- size truncated to 0xfaa0000
-
ftl_cs: FTL header not found.
-
0x000000000000-0x000040000000 : "nand"
-
mtd: partition "nand" extends beyond the end of device "NAND 256MiB 3,3V 8-bit" -- size truncated to 0x10000000
-
dm9000 Ethernet Driver, V1.31
-
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
-
mice: PS/2 mouse device common for all mice
-
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
-
i2c /dev entries driver
-
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
-
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
-
cpuidle: using governor ladder
-
sdhci: Secure Digital Host Controller Interface driver
-
sdhci: Copyright(c) Pierre Ossman
-
usbcore: registered new interface driver hiddev
-
usbcore: registered new interface driver usbhid
-
usbhid: v2.6:USB HID core driver
-
Advanced Linux Sound Architecture Driver Version 1.0.21.
-
No device for DAI UDA134X
-
No device for DAI s3c24xx-i2s
-
ALSA device list:
-
No soundcards found.
-
TCP cubic registered
-
NET: Registered protocol family 17
-
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
-
yaffs: dev is 32505859 name is "mtdblock3"
-
yaffs: passed flags ""
-
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
-
yaffs: auto selecting yaffs2
-
block 208 is bad
-
yaffs_read_super: isCheckpointed 0
-
VFS: Mounted root (yaffs filesystem) on device 31:3.
-
Freeing init memory: 132K
-
hwclock: can't open '/dev/misc/rtc': No such file or directory
-
[01/Jan/1970:00:00:11 +0000] boa: server version Boa/0.94.13
-
[01/Jan/1970:00:00:11 +0000] boa: server built Jul 26 2010 at 15:58:29.
-
[01/Jan/1970:00:00:11 +0000] boa: starting server pid=748, 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: No such process
-
Done
-
-
Please press Enter to activate this console.
-
[root@FriendlyARM /]#
阅读(1940) | 评论(0) | 转发(0) |