Chinaunix首页 | 论坛 | 博客
  • 博客访问: 134782
  • 博文数量: 28
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 165
  • 用 户 组: 普通用户
  • 注册时间: 2013-07-14 10:02
文章分类

全部博文(28)

文章存档

2014年(12)

2013年(16)

我的朋友

分类: 嵌入式

2014-07-09 15:47:20

本移植主要参考友善之臂移植手册完成,做个笔记以备不时之需
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】启动内核

  1. ##### FriendlyARM BIOS 2.0 for 2440 #####
  2. [x] format NAND FLASH for Linux
  3. [v] Download vivi
  4. [k] Download linux kernel
  5. [y] Download root_yaffs image
  6. [a] Absolute User Application
  7. [n] Download Nboot for WinCE
  8. [l] Download WinCE boot-logo
  9. [w] Download WinCE NK.bin
  10. [d] Download & Run
  11. [z] Download zImage into RAM
  12. [g] Boot linux from RAM
  13. [f] Format the nand flash
  14. [b] Boot the system
  15. [s] Set the boot parameters
  16. [u] Backup NAND Flash to HOST through USB(upload)
  17. [r] Restore NAND Flash from HOST through USB
  18. [q] Goto shell of vivi
  19. [i] Version: 1138-2K
  20. Enter your selection: b
  21. Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00500000 ... pos = 5242880, good pos = 560000
  22. done
  23. zImage magic = 0x016f2818
  24. Setup linux parameters at 0x30000100
  25. linux command line is: "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0"
  26. MACH_TYPE = 1999
  27. NOW, Booting Linux......
  28. Uncompressing Linux................................................................................................................................... done, booting the kernel.
  29. 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
  30. CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
  31. CPU: VIVT data cache, VIVT instruction cache
  32. Machine: FriendlyAR MINI2440 Board
  33. ATAG_INITRD is deprecated; please update your bootloader.
  34. Memory policy: ECC disabled, Data cache writeback
  35. CPU S3C2440A (id 0x32440001)
  36. S3C24XX Clocks, (c) 2004 Simtec Electronics
  37. S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
  38. CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
  39. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
  40. Kernel command line: noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
  41. PID hash table entries: 256 (order: -2, 1024 bytes)
  42. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  43. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  44. Memory: 64MB = 64MB total
  45. Memory: 60524KB available (3680K code, 418K data, 132K init, 0K highmem)
  46. SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  47. Hierarchical RCU implementation.
  48. NR_IRQS:85
  49. irq: clearing subpending status 00000003
  50. irq: clearing subpending status 00000002
  51. Console: colour dummy device 80x30
  52. console [ttySAC0] enabled
  53. Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
  54. Mount-cache hash table entries: 512
  55. CPU: Testing write buffer coherency: ok
  56. NET: Registered protocol family 16
  57. S3C2440: Initialising architecture
  58. S3C2440: IRQ Support
  59. S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
  60. DMA channel 0 at c4808000, irq 33
  61. DMA channel 1 at c4808040, irq 34
  62. DMA channel 2 at c4808080, irq 35
  63. DMA channel 3 at c48080c0, irq 36
  64. S3C244X: Clock Support, DVS off
  65. bio: create slab <bio-0> at 0
  66. usbcore: registered new interface driver usbfs
  67. usbcore: registered new interface driver hub
  68. usbcore: registered new device driver usb
  69. s3c-i2c s3c2440-i2c: slave address 0x10
  70. s3c-i2c s3c2440-i2c: bus frequency set to 98 KHz
  71. s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
  72. NET: Registered protocol family 2
  73. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  74. TCP established hash table entries: 2048 (order: 2, 16384 bytes)
  75. TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
  76. TCP: Hash tables configured (established 2048 bind 2048)
  77. TCP reno registered
  78. NET: Registered protocol family 1
  79. RPC: Registered udp transport module.
  80. RPC: Registered tcp transport module.
  81. RPC: Registered tcp NFSv4.1 backchannel transport module.
  82. JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
  83. ROMFS MTD (C) 2007 Red Hat, Inc.
  84. yaffs Jul 9 2014 13:32:21 Installing.
  85. msgmni has been set to 118
  86. alg: No test for stdrng (krng)
  87. io scheduler noop registered
  88. io scheduler anticipatory registered (default)
  89. io scheduler deadline registered
  90. io scheduler cfq registered
  91. Console: switching to colour frame buffer device 60x53
  92. fb0: s3c2410fb frame buffer device
  93. s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
  94. s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
  95. s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
  96. brd: module loaded
  97. S3C24XX NAND Driver, (c) 2004 Simtec Electronics
  98. s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
  99. s3c24xx-nand s3c2440-nand: NAND soft ECC
  100. NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
  101. Scanning device for bad blocks
  102. Bad eraseblock 250 at 0x000001f40000
  103. Creating 5 MTD partitions on "NAND 256MiB 3,3V 8-bit":
  104. 0x000000000000-0x000000040000 : "boot"
  105. 0x000000040000-0x000000060000 : "param"
  106. uncorrectable error :
  107. 0x000000060000-0x000000560000 : "Kernel"
  108. uncorrectable error :
  109. 0x000000560000-0x000040560000 : "root"
  110. mtd: partition "root" extends beyond the end of device "NAND 256MiB 3,3V 8-bit" -- size truncated to 0xfaa0000
  111. ftl_cs: FTL header not found.
  112. 0x000000000000-0x000040000000 : "nand"
  113. mtd: partition "nand" extends beyond the end of device "NAND 256MiB 3,3V 8-bit" -- size truncated to 0x10000000
  114. dm9000 Ethernet Driver, V1.31
  115. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  116. s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
  117. s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
  118. s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
  119. usb usb1: configuration #1 chosen from 1 choice
  120. hub 1-0:1.0: USB hub found
  121. hub 1-0:1.0: 2 ports detected
  122. usbcore: registered new interface driver libusual
  123. mice: PS/2 mouse device common for all mice
  124. S3C24XX RTC, (c) 2004,2006 Simtec Electronics
  125. i2c /dev entries driver
  126. S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
  127. s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
  128. cpuidle: using governor ladder
  129. sdhci: Secure Digital Host Controller Interface driver
  130. sdhci: Copyright(c) Pierre Ossman
  131. usbcore: registered new interface driver hiddev
  132. usbcore: registered new interface driver usbhid
  133. usbhid: v2.6:USB HID core driver
  134. Advanced Linux Sound Architecture Driver Version 1.0.21.
  135. No device for DAI UDA134X
  136. No device for DAI s3c24xx-i2s
  137. ALSA device list:
  138.   No soundcards found.
  139. TCP cubic registered
  140. NET: Registered protocol family 17
  141. drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
  142. yaffs: dev is 32505859 name is "mtdblock3"
  143. yaffs: passed flags ""
  144. yaffs: Attempting MTD mount on 31.3, "mtdblock3"
  145. yaffs: auto selecting yaffs2
  146. block 208 is bad
  147. yaffs_read_super: isCheckpointed 0
  148. VFS: Mounted root (yaffs filesystem) on device 31:3.
  149. Freeing init memory: 132K
  150. hwclock: can't open '/dev/misc/rtc': No such file or directory
  151. [01/Jan/1970:00:00:11 +0000] boa: server version Boa/0.94.13
  152. [01/Jan/1970:00:00:11 +0000] boa: server built Jul 26 2010 at 15:58:29.
  153. [01/Jan/1970:00:00:11 +0000] boa: starting server pid=748, port 80
  154.                         
  155. open device leds: No such file or directory
  156. Try to bring eth0 interface up......ifconfig: SIOCGIFFLAGS: No such device
  157. ifconfig: SIOCSIFHWADDR: No such device
  158. ifconfig: SIOCSIFADDR: No such device
  159. route: SIOCADDRT: No such process
  160. Done

  161. Please press Enter to activate this console.
  162. [root@FriendlyARM /]#


阅读(1900) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~