第二步:内核build第一次尝试
build配置要依据板子上supervivi 启动linux后的dmsg信息,先把去年的zImage下进去然后将回显信息贴出来,我们根据这个信息更改内核源码包:
- ##### FriendlyARM BIOS for 2440 #####
- [x] bon part 0 320k 2368k
- [v] Download vivi
- [k] Download linux kernel
- [y] Download root_yaffs image
- [c] Download root_cramfs image
- [n] Download Nboot
- [e] Download Eboot
- [i] Download WinCE NK.nb0
- [w] Download WinCE NK.bin
- [d] Download & Run
- [f] Format the nand flash
- [p] Partition for Linux
- [b] Boot the system
- [s] Set the boot parameters
- [t] Print the TOC struct of wince
- [q] Goto shell of vivi
- Enter your selection:b
- 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=ttySAC0"
- MACH_TYPE = 782
- NOW, Booting Linux......
- Uncompressing Linux... done, booting the kernel.
- 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
- CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
- CPU: VIVT data cache, VIVT instruction cache
- Machine: SMDK2440
- Memory policy: ECC disabled, Data cache writeback
- BUG: mapping for 0x20000000 at 0xe0000000 overlaps vmalloc space
- CPU S3C2440A (id 0x32440001)
- S3C24XX Clocks, Copyright 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 console=ttySAC0 init=/linuxrc root=/dev/mtdblock2
- rw mem=64M
- 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: 61000k/61000k available, 4536k reserved, 0K highmem
- Virtual kernel memory layout:
- vector : 0xffff0000 - 0xffff1000 ( 4 kB)
- fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
- DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
- vmalloc : 0xc4800000 - 0xf6000000 ( 792 MB)
- lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
- modules : 0xbf000000 - 0xc0000000 ( 16 MB)
- .init : 0xc0008000 - 0xc0029000 ( 132 kB)
- .text : 0xc0029000 - 0xc0387c10 (3452 kB)
- .data : 0xc0388000 - 0xc03ab340 ( 141 kB)
- .bss : 0xc03ab364 - 0xc03d1bb8 ( 155 kB)
- NR_IRQS:85
- irq: clearing pending ext status 00000200
- irq: clearing subpending status 00000003
- irq: clearing subpending status 00000002
- Console: colour dummy device 80x30
- console [ttySAC0] enabled
- Calibrating delay loop... 201.52 BogoMIPS (lpj=503808)
- pid_max: default: 32768 minimum: 301
- Mount-cache hash table entries: 512
- CPU: Testing write buffer coherency: ok
- gpiochip_add: gpios 288..303 (GPIOK) failed to register
- gpiochip_add: gpios 320..334 (GPIOL) failed to register
- gpiochip_add: gpios 352..353 (GPIOM) failed to register
- NET: Registered protocol family 16
- S3C Power Management, Copyright 2004 Simtec Electronics
- S3C2440: Initialising architecture
- S3C2440: IRQ Support
- 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
- 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
- UDP hash table entries: 256 (order: 0, 4096 bytes)
- UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
- NET: Registered protocol family 1
- RPC: Registered named UNIX socket transport module.
- RPC: Registered udp transport module.
- RPC: Registered tcp transport module.
- RPC: Registered tcp NFSv4.1 backchannel transport module.
- NetWinder Floating Point Emulator V0.97 (extended precision)
- ROMFS MTD (C) 2007 Red Hat, Inc.
- msgmni has been set to 119
- io scheduler noop registered
- io scheduler deadline registered
- io scheduler cfq registered (default)
- Console: switching to colour frame buffer device 30x40
- fb0: s3c2410fb frame buffer device
- Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
- s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
- s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
- s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
- brd: module loaded
- loop: 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 ECC disabled
- 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":
- 0x000000000000-0x000000030000 : "bootloader"
- 0x000000050000-0x000000250000 : "kernel"
- 0x000000250000-0x000003ffc000 : "rootfs"
- dm9000 Ethernet Driver, V1.31
- dm9000 dm9000.0: read wrong id 0x2b0b2928
- dm9000 dm9000.0: read wrong id 0x2b2a2928
- dm9000 dm9000.0: read wrong id 0x2b2a0028
- dm9000 dm9000.0: read wrong id 0x2b2a2928
- dm9000 dm9000.0: read wrong id 0x2b2a0028
- dm9000 dm9000.0: read wrong id 0x2b2a2900
- dm9000 dm9000.0: read wrong id 0x2b2a0028
- dm9000 dm9000.0: read wrong id 0x002a2900
- dm9000 dm9000.0: wrong id: 0x002a2900
- dm9000 dm9000.0: not found (-19).
- 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
- 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 ch341-uart
- usbcore: registered new interface driver ch341
- USB Serial support registered for FTDI USB Serial Device
- usbcore: registered new interface driver ftdi_sio
- ftdi_sio: v1.6.0: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
- mousedev: PS/2 mouse device common for all mice
- 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
- yaffs: dev is 32505858 name is "mtdblock2" rw
- yaffs: passed flags ""
- VFS: Mounted root (yaffs filesystem) on device 31:2.
- Freeing init memory: 132K
- -----------Mount Pseudo Filesystem------------
- ifconfig: SIOCSIFADDR: No such device
- *********************************************************
- * S3C2440 Rootfs by Kozmers @ Apr.15.2011
- * Busybox 1.18.3 which compiled by arm-linux-gcc-4.4.3
- * Mount over.
- *********************************************************
- Processing /etc/profile...
- Set search library in /etc/profile
- Set user path in /etc/profile
- All Done...
- ******************************************************
- * Lockon Kozmers Technology
- * http://www.kozmers.com
- ******************************************************
- PATH=/bin:/sbin:/usr/bin:/usr/sbin
- LD_LIBRARY_PATH=/lib:/usr/lib
- ******************************************************
- / # cat /proc/version
- Linux version 3.0.4 (kozmers@dau-desktop) (gcc version 4.4.3 (ctng-1.6.1) ) #20
- Sun Oct 16 11:53:22 CST 2011
- / #
目前需要用到的是
- linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0"
- MACH_TYPE = 782
- Creating 3 MTD partitions on "NAND":
- 0x000000000000-0x000000030000 : "bootloader"
- 0x000000050000-0x000000250000 : "kernel"
- 0x000000250000-0x000003ffc000 : "rootfs"
把全新的linux3.0源码包更改下。
