转载请注明出处和作者:版权所有!否则后果自负,谢谢!! 本节我们主要是从下面3个方面进行讲解: 1.准备工作 2.启动效果和启动信息简单对比 3.启动信息简单分析 一、准备工作 1.电脑一台; 2.飞凌OK335xS-II开发板; 3.飞凌OK335xS-II开发板自带电源; 二、开机效果 1.首先打开开关按钮。如下图所示: 2.启动画面如下图所示: 3.进入系统。如下图所示: 4.下面是系统。如下图所示: 三、启动信息简单分析 1. 读取boot里面的内容,进行引导。 1 0 Booting from nand ... NAND read: device 0 offset 0xc00000, size 0x500000 U-Boot SPL 2011.09-00000-g39b82a8-dirty (Sep 10 2014 - 12:20:14) Texas Instruments Revision detection unimplemented Booting from NAND... MT29F2G08 U-Boot 2011.09-00000-g39b82a8-dirty (Sep 10 2014 - 12:20:14) 2.检查底层驱动。 I2C: ready DRAM: 128 MiB WARNING: Caches not enabled Did not find a recognized configuration, assuming General purpose EVM in Profile 0 with Daughter board NAND: HW ECC BCH16 Selected ONFI flash detected ONFI param page 0 valid HW ECC BCH8 Selected Detect MT29F2G08 256 MiB MMC: OMAP SD/MMC: 0 Video : Drawing the logo from nand. NAND read: device 0 offset 0x600000, size 0x36 54 bytes read: OK NAND read: device 0 offset 0x600000, size 0x5fa38 391736 bytes read: OK Net: cpsw Hit any key to stop autoboot: 3 2 1 0 Booting from nand ... NAND read: device 0 offset 0xc00000, size 0x500000 5242880 bytes read: OK ## Booting kernel from Legacy Image at 80200000 ... Image Name: Linux-3.2.0 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3715896 Bytes = 3.5 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK 3.启动内核。 Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Linux version 3.2.0 (root@lf-bj) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #6 Mon Sep 1 14:31:38 CST 2014 [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: am335xevm [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] AM335X ES2.1 (sgx neon ) [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 rootfstype=ubifs rootwait=1 screentype=R screensize=480x272-4 calibrate=Y laohua=N [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 128MB = 128MB total [ 0.000000] Memory: 122188k/122188k available, 8884k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0699000 (6724 kB) [ 0.000000] .init : 0xc0699000 - 0xc06d6000 ( 244 kB) [ 0.000000] .data : 0xc06d6000 - 0xc0755c80 ( 512 kB) [ 0.000000] .bss : 0xc0755ca4 - 0xc0789af8 ( 208 kB) [ 0.000000] NR_IRQS:396 [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts [ 0.000000] Total of 128 interrupts on 1 active controller [ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz [ 0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state [ 0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz [ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms [ 0.000000] Console: colour dummy device 80x30 [ 0.000188] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144) [ 0.057162] pid_max: default: 32768 minimum: 301 [ 0.057289] Security Framework initialized [ 0.057392] Mount-cache hash table entries: 512 [ 0.057782] CPU: Testing write buffer coherency: ok [ 0.058543] devtmpfs: initialized [ 0.078569] omap_hwmod: pruss: failed to hardreset [ 0.079672] print_constraints: dummy: [ 0.080023] NET: Registered protocol family 16 [ 0.082199] OMAP GPIO hardware version 0.1 [ 0.084773] omap_mux_init: Add partition: #1: core, flags: 0 [ 0.086581] omap_i2c.1: alias fck already exists [ 0.087731] omap_hsmmc.0: alias fck already exists [ 0.087998] omap_hsmmc.1: alias fck already exists [ 0.088548] da8xx_lcdc.0: alias fck already exists [ 0.088829] omap_i2c.2: alias fck already exists [ 0.090301] d_can.0: alias fck already exists [ 0.090551] d_can.1: alias fck already exists [ 0.092059] omap2_mcspi.1: alias fck already exists [ 0.092285] omap2_mcspi.2: alias fck already exists [ 0.092558] edma.0: alias fck already exists [ 0.092580] edma.0: alias fck already exists [ 0.092599] edma.0: alias fck already exists [ 0.128259] bio: create slab <bio-0> at 0 [ 0.130475] SCSI subsystem initialized [ 0.132465] usbcore: registered new interface driver usbfs [ 0.132782] usbcore: registered new interface driver hub [ 0.132978] usbcore: registered new device driver usb [ 0.133288] registerd cppi-dma Intr @ IRQ 17 [ 0.133303] Cppi41 Init Done Qmgr-base(c887a000) dma-base(c8878000) [ 0.133313] Cppi41 Init Done [ 0.133341] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3 [ 0.133629] mus[ 0.942082] brd: module loaded [ 0.950410] loop: module loaded [ [ 3.730895] UBI: max. sequence number: 318 [ 3.754657] UBI: attached mtd7 to ubi0 [ 3.758575] UBI: MTD device name: "File System" [ 3.764340] UBI: MTD device size: 236 MiB [ 3.769511] UBI: number of good PEBs: 1888 [ 3.774419] UBI: number of bad PEBs: 0 [ 3.779048] UBI: number of corrupted PEBs: 0 [ 3.783684] UBI: max. allowed volumes: 128 [ 3.788491] UBI: wear-leveling threshold: 4096 [ 3.793399] UBI: number of internal volumes: 1 [ 3.798025] UBI: number of user volumes: 1 [ 3.802659] UBI: available PEBs: 0 [ 3.807285] UBI: total number of reserved PEBs: 1888 [ 3.812465] UBI: number of PEBs reserved for bad PEB handling: 18 [ 3.818812] UBI: max/mean erase counter: 2/0 [ 3.823266] UBI: image sequence number: 752561228 [ 3.828342] UBI: background thread "ubi_bgt0d" started, PID 642 [ 3.835746] CAN device driver interface [ 3.839745] CAN bus driver for Bosch D_CAN controller 1.0 [ 3.846279] d_can d_can.0: device registered (irq=52, irq_obj=53) [ 3.853339] d_can d_can.1: device registered (irq=55, irq_obj=56) [ 3.901834] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6 [ 3.908286] davinci_mdio davinci_mdio.0: detected phy mask fffffffe [ 3.915499] davinci_mdio.0: probed [ 3.919048] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown [ 3.926580] PPP generic driver version 2.4.2 [ 3.931481] PPP BSD Compression module registered [ 3.936409] PPP Deflate Compression module registered [ 3.941927] usbcore: registered new interface driver rtl8192cu [ 3.948166] usbcore: registered new interface driver zd1201 [ 3.954179] usbcore: registered new interface driver cdc_ether [ 3.960422] usbcore: registered new interface driver cdc_eem [ 3.966495] usbcore: registered new interface driver dm9601 [ 3.972361] cdc_ncm: 04-Aug-2011 [ 3.975886] usbcore: registered new interface driver cdc_ncm [ 3.981784] Initializing USB Mass Storage driver... [ 3.987103] usbcore: registered new interface driver usb-storage [ 3.993381] USB Mass Storage support registered. [ 3.998544] usbcore: registered new interface driver usbserial [ 4.004780] USB Serial support registered for generic [ 4.010218] usbcore: registered new interface driver usbserial_generic [ 4.017037] usbserial: USB Serial Driver core [ 4.021704] USB Serial support registered for GSM modem (1-port) [ 4.028237] usbcore: registered new interface driver option [ 4.034070] option: v0.7.2:USB Driver for GSM modems [ 4.039438] gadget: Mass Storage Function, version: 2009/09/11 [ 4.045639] gadget: Number of LUNs=1 [ 4.049460] lun0: LUN: removable file: (no medium) [ 4.054581] gadget: Mass Storage Gadget, version: 2009/09/11 [ 4.060583] gadget: userspace failed to provide iSerialNumber [ 4.066685] gadget: g_mass_storage ready [ 4.070879] musb-hdrc musb-hdrc.0: MUSB HDRC host driver [ 4.076486] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2 [ 4.084351] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 4.091433] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.098976] usb usb2: Product: MUSB HDRC host driver [ 4.104157] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd [ 4.109693] usb usb2: SerialNumber: musb-hdrc.0 [ 4.115348] hub 2-0:1.0: USB hub found [ 4.119278] hub 2-0:1.0: 1 port detected [ 4.124609] mousedev: PS/2 mouse device common for all mice [ 4.131059] [wds tsc probe]x.min=140,x.max=3946,y.min=319,y.max=3865,x.inverted=0,y.inverted=1 [ 4.140491] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0 [ 4.151535] rtc-ds1307 2-0068: rtc core: registered ds1307 as rtc0 [ 4.158030] rtc-ds1307 2-0068: 56 bytes nvram [ 4.162739] i2c /dev entries driver [ 4.nitial timeout 60 sec [ 4.189978] Bluetooth: Broadcom Blutonium firmware driver ver 1.2 [ 4.196546] usbcore: [ 4.526003] UBIFS: recovery needed [ 4.813160] UBIFS: recovery completed [ 4.817006] UBIFS: mounted UBI device 0, volume 0, name "rootfs" [ 4.823284] UBIFS: file system size: 235540480 bytes (230020 KiB, 224 MiB, 1855 LEBs) [ 4.831631] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs) [ 4.839257] UBIFS: media format: w4/r0 (latest is w4/r0) [ 4.845342] UBIFS: default compressor: lzo [ 4.849610] UBIFS: reserved for root: 0 bytes (0 KiB) [ 4.856474] VFS: Mounted root (ubifs filesystem) on device 0:14. [ 4.867557] devtmpfs: mounted [ 4.871015] Freeing init memory: 244K [ 4.884366] mmc0: host does not support reading read-only switch. assuming write-enable. [ 4.984958] mmc0: new high speed SD card at address c788 [ 5.002382] mmcblk0: mmc0:c788 SD02G 1.83 GiB [ 5.011713] mmcblk0: p1 INIT: version 2.88 booting 4.启动界面。 Starting udev [ 6.038431] udev[784]: starting version 164 Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory bootlogd. Configuring network interfaces... [ 9.318474] net eth0: CPSW phy found : id is : 0x20005c90 done. INIT: Entering runlevel: 5 Starting system message bus: dbus. Starting telnet daemon. Starting inetd daemon. Starting syslogd/klogd: done 2012-03-24 08:54:26: (log.c.166) server started Stopping Bootlog daemon: bootlogd. _____ _____ _____ _ _ __ _ __ __ | ___| / _ | _ | | | | | | | / / | |__ | | | | | |_| | | | | | | | | / / | __| | | | | | _ / | | | | | | | } { | | | |_| | | | | |___ | | | | | / / |_| _____/ |_| _ |_____| |_| |_| _| /_/ _ ok335x login: 一个好的电子工程师一定要学会利用串口来查看一些信息,这个对调试也是至关重要的。
|