你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux3.5 移植到QQ2440V3

[日期:2012-09-20] 来源:Linux社区  作者:Kozmers [字体:大 中 小]

第二步:内核build第一次尝试

build配置要依据板子上supervivi 启动linux后的dmsg信息,先把去年的zImage下进去然后将回显信息贴出来,我们根据这个信息更改内核源码包:

  1. ##### FriendlyARM BIOS for 2440 #####  
  2. [x] bon part 0 320k 2368k  
  3. [v] Download vivi  
  4. [k] Download linux kernel  
  5. [y] Download root_yaffs image  
  6. [c] Download root_cramfs image  
  7. [n] Download Nboot  
  8. [e] Download Eboot  
  9. [i] Download WinCE NK.nb0  
  10. [w] Download WinCE NK.bin  
  11. [d] Download & Run  
  12. [f] Format the nand flash  
  13. [p] Partition for Linux  
  14. [b] Boot the system  
  15. [s] Set the boot parameters  
  16. [t] Print the TOC struct of wince  
  17. [q] Goto shell of vivi  
  18. Enter your selection:b  
  19. Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done  
  20. zImage magic = 0x016f2818  
  21. Setup linux parameters at 0x30000100  
  22. linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0"  
  23. MACH_TYPE = 782  
  24. NOW, Booting Linux......  
  25. Uncompressing Linux... done, booting the kernel.  
  26. Linux version 3.0.4 (kozmers@dau-desktop) (gcc version 4.4.3 (ctng-1.6.1) ) #20Sun Oct 16 11:53:22 CST 2011  
  27. CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177  
  28. CPU: VIVT data cache, VIVT instruction cache  
  29. Machine: SMDK2440  
  30. Memory policy: ECC disabled, Data cache writeback  
  31. BUG: mapping for 0x20000000 at 0xe0000000 overlaps vmalloc space  
  32. CPU S3C2440A (id 0x32440001)  
  33. S3C24XX Clocks, Copyright 2004 Simtec Electronics  
  34. S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz  
  35. CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on  
  36. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256  
  37. Kernel command line: noinitrd console=ttySAC0 init=/linuxrc root=/dev/mtdblock2  
  38. rw mem=64M  
  39. PID hash table entries: 256 (order: -2, 1024 bytes)  
  40. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)  
  41. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)  
  42. Memory: 64MB = 64MB total  
  43. Memory: 61000k/61000k available, 4536k reserved, 0K highmem  
  44. Virtual kernel memory layout:  
  45.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)  
  46.     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)  
  47.     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)  
  48.     vmalloc : 0xc4800000 - 0xf6000000   ( 792 MB)  
  49.     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)  
  50.     modules : 0xbf000000 - 0xc0000000   (  16 MB)  
  51.       .init : 0xc0008000 - 0xc0029000   ( 132 kB)  
  52.       .text : 0xc0029000 - 0xc0387c10   (3452 kB)  
  53.       .data : 0xc0388000 - 0xc03ab340   ( 141 kB)  
  54.        .bss : 0xc03ab364 - 0xc03d1bb8   ( 155 kB)  
  55. NR_IRQS:85  
  56. irq: clearing pending ext status 00000200  
  57. irq: clearing subpending status 00000003  
  58. irq: clearing subpending status 00000002  
  59. Console: colour dummy device 80x30  
  60. console [ttySAC0] enabled  
  61. Calibrating delay loop... 201.52 BogoMIPS (lpj=503808)  
  62. pid_max: default: 32768 minimum: 301  
  63. Mount-cache hash table entries: 512  
  64. CPU: Testing write buffer coherency: ok  
  65. gpiochip_add: gpios 288..303 (GPIOK) failed to register  
  66. gpiochip_add: gpios 320..334 (GPIOL) failed to register  
  67. gpiochip_add: gpios 352..353 (GPIOM) failed to register  
  68. NET: Registered protocol family 16  
  69. S3C Power Management, Copyright 2004 Simtec Electronics  
  70. S3C2440: Initialising architecture  
  71. S3C2440: IRQ Support  
  72. S3C244X: Clock Support, DVS off  
  73. bio: create slab <bio-0> at 0  
  74. usbcore: registered new interface driver usbfs  
  75. usbcore: registered new interface driver hub  
  76. usbcore: registered new device driver usb  
  77. NET: Registered protocol family 2  
  78. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)  
  79. TCP established hash table entries: 2048 (order: 2, 16384 bytes)  
  80. TCP bind hash table entries: 2048 (order: 1, 8192 bytes)  
  81. TCP: Hash tables configured (established 2048 bind 2048)  
  82. TCP reno registered  
  83. UDP hash table entries: 256 (order: 0, 4096 bytes)  
  84. UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)  
  85. NET: Registered protocol family 1  
  86. RPC: Registered named UNIX socket transport module.  
  87. RPC: Registered udp transport module.  
  88. RPC: Registered tcp transport module.  
  89. RPC: Registered tcp NFSv4.1 backchannel transport module.  
  90. NetWinder Floating Point Emulator V0.97 (extended precision)  
  91. ROMFS MTD (C) 2007 Red Hat, Inc.  
  92. msgmni has been set to 119  
  93. io scheduler noop registered  
  94. io scheduler deadline registered  
  95. io scheduler cfq registered (default)  
  96. Console: switching to colour frame buffer device 30x40  
  97. fb0: s3c2410fb frame buffer device  
  98. Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled  
  99. s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440  
  100. s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440  
  101. s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440  
  102. brd: module loaded  
  103. loop: module loaded  
  104. S3C24XX NAND Driver, (c) 2004 Simtec Electronics  
  105. s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns  
  106. s3c24xx-nand s3c2440-nand: NAND ECC disabled  
  107. NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit  
  108. )  
  109. NAND_ECC_NONE selected by board driver. This is not recommended !!  
  110. Scanning device for bad blocks  
  111. Creating 3 MTD partitions on "NAND":  
  112. 0x000000000000-0x000000030000 : "bootloader"  
  113. 0x000000050000-0x000000250000 : "kernel"  
  114. 0x000000250000-0x000003ffc000 : "rootfs"  
  115. dm9000 Ethernet Driver, V1.31  
  116. dm9000 dm9000.0: read wrong id 0x2b0b2928  
  117. dm9000 dm9000.0: read wrong id 0x2b2a2928  
  118. dm9000 dm9000.0: read wrong id 0x2b2a0028  
  119. dm9000 dm9000.0: read wrong id 0x2b2a2928  
  120. dm9000 dm9000.0: read wrong id 0x2b2a0028  
  121. dm9000 dm9000.0: read wrong id 0x2b2a2900  
  122. dm9000 dm9000.0: read wrong id 0x2b2a0028  
  123. dm9000 dm9000.0: read wrong id 0x002a2900  
  124. dm9000 dm9000.0: wrong id: 0x002a2900  
  125. dm9000 dm9000.0: not found (-19).  
  126. usbmon: debugfs is not available  
  127. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver  
  128. s3c2410-ohci s3c2410-ohci: S3C24XX OHCI  
  129. s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1  
  130. s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000  
  131. hub 1-0:1.0: USB hub found  
  132. hub 1-0:1.0: 2 ports detected  
  133. usbcore: registered new interface driver libusual  
  134. usbcore: registered new interface driver usbserial  
  135. USB Serial support registered for generic  
  136. usbcore: registered new interface driver usbserial_generic  
  137. usbserial: USB Serial Driver core  
  138. USB Serial support registered for ch341-uart  
  139. usbcore: registered new interface driver ch341  
  140. USB Serial support registered for FTDI USB Serial Device  
  141. usbcore: registered new interface driver ftdi_sio  
  142. ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver  
  143. USB Serial support registered for pl2303  
  144. usbcore: registered new interface driver pl2303  
  145. pl2303: Prolific PL2303 USB to serial adaptor driver  
  146. mousedev: PS/2 mouse device common for all mice  
  147. S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics  
  148. s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled  
  149. TCP cubic registered  
  150. NET: Registered protocol family 17  
  151. yaffs: dev is 32505858 name is "mtdblock2" rw  
  152. yaffs: passed flags ""  
  153. VFS: Mounted root (yaffs filesystem) on device 31:2.  
  154. Freeing init memory: 132K  
  155. -----------Mount Pseudo Filesystem------------  
  156. ifconfig: SIOCSIFADDR: No such device  
  157.   
  158. *********************************************************  
  159. *   S3C2440 Rootfs by Kozmers @ Apr.15.2011  
  160. *   Busybox 1.18.3 which compiled by arm-linux-gcc-4.4.3  
  161. *   Mount over.  
  162. *********************************************************  
  163. Processing /etc/profile...  
  164. Set search library in /etc/profile  
  165. Set user path in /etc/profile  
  166. All Done...  
  167.   
  168. ******************************************************  
  169. *                  Lockon Kozmers Technology  
  170. *                    http://www.kozmers.com  
  171. ******************************************************  
  172. PATH=/bin:/sbin:/usr/bin:/usr/sbin  
  173. LD_LIBRARY_PATH=/lib:/usr/lib  
  174. ******************************************************  
  175. / # cat /proc/version  
  176. Linux version 3.0.4 (kozmers@dau-desktop) (gcc version 4.4.3 (ctng-1.6.1) ) #20  
  177. Sun Oct 16 11:53:22 CST 2011  
  178. / #  

目前需要用到的是

  1. linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0"  
  2. MACH_TYPE = 782  
  3. Creating 3 MTD partitions on "NAND":  
  4. 0x000000000000-0x000000030000 : "bootloader"  
  5. 0x000000050000-0x000000250000 : "kernel"  
  6. 0x000000250000-0x000003ffc000 : "rootfs"  

把全新的linux3.0源码包更改下。

linux
相关资讯       Linux移植 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款