Booting novena

From Studio Kousagi Wiki
Revision as of 10:45, 23 January 2013 by Bnewbold (talk | contribs) (add link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

See also xobs's blog post about booting

Booting

U-Boot 2012.10-rc1-00031-g993cf2b-dirty (Dec 29 2012 - 22:27:30)

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: MX6Q-Sabre Lite
DRAM:  1 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
board_mmc_getcd(): esdhc_base 0x02198000
*** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
Net:   FEC [PRIME]
Hit any key to stop autoboot:  0
board_mmc_getcd(): esdhc_base 0x02198000
mmc0 is current device
board_mmc_getcd(): esdhc_base 0x02198000
board_mmc_getcd(): esdhc_base 0x02198000
reading boot.scr

188 bytes read
Running bootscript from mmc ...
## Executing script at 10800000
board_mmc_getcd(): esdhc_base 0x02198000
reading uImage-novena.bin

3888464 bytes read
board_mmc_getcd(): esdhc_base 0x02198000
reading uImage-novena.dtb

17840 bytes read
## Booting kernel from Legacy Image at 12000000 ...
   Image Name:   Linux-3.6.0+
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3888400 Bytes = 3.7 MiB
   Load Address: 10008000
   Entry Point:  10008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 11ff0000
   Booting using the fdt blob at 0x11ff0000
   Loading Kernel Image ... OK
OK 
   Using Device Tree in place at 11ff0000, end 11ff75af

Starting kernel ...
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.6.0+ (bunnie@hexapod) (gcc version 4.5.4 20120305 (prerelease) (GCC) ) #5 SMP Tue Dec 18 16:12:21 SGT 2012
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Freescale i.MX6 Quad (Device Tree), model: Kosagi Novena-laptop (i.MX6 Quad)
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] PERCPU: Embedded 7 pages/cpu @80f72000 s6272 r8192 d14208 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
[    0.000000] Kernel command line: console=ttymxc1,115200 root=/dev/mmcblk0p2 rootwait rootfstype=ext4
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 1031812k/1031812k available, 16764k 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 : 0xc0800000 - 0xff000000   (1000 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x8063b9e4   (6351 kB)
[    0.000000]       .init : 0x8063c000 - 0x80681880   ( 279 kB)
[    0.000000]       .data : 0x80682000 - 0x806c5440   ( 270 kB)
[    0.000000]        .bss : 0x806c5464 - 0x807638b4   ( 634 kB)
[    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B
[    0.000000] sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 65075ms
[    0.000000] Console: colour dummy device 80x30
[    0.000208] Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
[    0.090115] pid_max: default: 32768 minimum: 301
[    0.090389] Mount-cache hash table entries: 512
[    0.091072] CPU: Testing write buffer coherency: ok
[    0.091228] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.091321] Setting up static identity map for 0x104b36b0 - 0x104b3720
[    0.092629] CPU1: Booted secondary processor
[    0.181284] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.182088] CPU2: Booted secondary processor
[    0.221283] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.222081] CPU3: Booted secondary processor
[    0.261283] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.261320] Brought up 4 CPUs
[    0.261345] SMP: Total of 4 processors activated (6324.22 BogoMIPS).
[    0.261963] devtmpfs: initialized
[    0.265152] pinctrl core: initialized pinctrl subsystem
[    0.265378] regulator-dummy: no parameters
[    0.265554] NET: Registered protocol family 16
[    0.267147] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.272183] syscon 20c8000.anatop: syscon regmap start 0x20c8000 end 0x20c8fff registered
[    0.273213] syscon 20e0000.iomuxc-gpr: syscon regmap start 0x20e0000 end 0x20e0037 registered
[    0.275758] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.279767] bio: create slab <bio-0> at 0
[    0.280964] mxs-dma 110000.dma-apbh: initialized
[    0.281371] 2P5V: 2500 mV
[    0.281503] 3P3V: 3300 mV
[    0.281660] usb_otg_vbus: 5000 mV
[    0.282170] SCSI subsystem initialized
[    0.282509] usbcore: registered new interface driver usbfs
[    0.282559] usbcore: registered new interface driver hub
[    0.282643] usbcore: registered new device driver usb
[    0.284072] Advanced Linux Sound Architecture Driver Initialized.
[    0.284930] Switching to clocksource mxc_timer1
[    0.291751] NET: Registered protocol family 2
[    0.292286] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.294149] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
[    0.295262] TCP: Hash tables configured (established 131072 bind 65536)
[    0.295353] TCP: reno registered
[    0.295369] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.295432] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.295685] NET: Registered protocol family 1
[    0.296033] RPC: Registered named UNIX socket transport module.
[    0.296043] RPC: Registered udp transport module.
[    0.296050] RPC: Registered tcp transport module.
[    0.296057] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.300283] VFS: Disk quotas dquot_6.5.2
[    0.300501] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.302471] NFS: Registering the id_resolver key type
[    0.302524] Key type id_resolver registered
[    0.302533] Key type id_legacy registered
[    0.302575] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.303030] fuse init (API version 7.20)
[    0.303272] msgmni has been set to 2015
[    0.304084] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.304098] io scheduler noop registered
[    0.304105] io scheduler deadline registered
[    0.304216] io scheduler cfq registered (default)
[    0.306545] imx-sdma 20ec000.sdma: initialized
[    0.306775] Serial: IMX driver
[    0.307090] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX
[    0.808760] console [ttymxc1] enabled
[    0.818176] brd: module loaded
[    0.824149] loop: module loaded
[    0.829054] spi_imx 2010000.ecspi: master is unqueued, this is deprecated
[    0.835870] spi_imx 2010000.ecspi: probed
[    0.858254] libphy: fec_enet_mii_bus: probed
[    0.863254] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.869886] Initializing USB Mass Storage driver...
[    0.874831] usbcore: registered new interface driver usb-storage
[    0.880854] USB Mass Storage support registered.
[    0.886213] ci_hdrc ci_hdrc.0: doesn't support gadget
[    0.891280] ci_hdrc ci_hdrc.0: ChipIdea HDRC EHCI
[    0.896026] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    0.945013] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    0.950899] hub 1-0:1.0: USB hub found
[    0.954669] hub 1-0:1.0: 1 port detected
[    0.958813] imx_usb 2184200.usb: pinctrl get/select failed, err=-19
[    0.965380] ci_hdrc ci_hdrc.1: doesn't support gadget
[    0.970445] ci_hdrc ci_hdrc.1: ChipIdea HDRC EHCI
[    0.975191] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    1.025004] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    1.030830] hub 2-0:1.0: USB hub found
[    1.034603] hub 2-0:1.0: 1 port detected
[    1.038906] mousedev: PS/2 mouse device common for all mice
[    1.044867] i2c /dev entries driver
[    1.048931] imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
[    1.057285] sdhci: Secure Digital Host Controller Interface driver
[    1.063471] sdhci: Copyright(c) Pierre Ossman
[    1.067845] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.074387] mmc0: no vqmmc regulator found
[    1.115010] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[    1.129202] mmc1: no vqmmc regulator found
[    1.173158] mmc0: host does not support reading read-only switch. assuming write-enable.
[    1.175009] mmc1: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
[    1.175276] usbcore: registered new interface driver usbhid
[    1.175278] usbhid: USB HID core driver
[    1.176822] TCP: cubic registered
[    1.177244] NET: Registered protocol family 10
[    1.177922] sit: IPv6 over IPv4 tunneling driver
[    1.178435] NET: Registered protocol family 17
[    1.178503] Key type dns_resolver registered
[    1.218951] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    1.224879] mmc0: new high speed SD card at address 0002
[    1.225242] mmcblk0: mmc0:0002 00000 971 MiB
[    1.236325] ThumbEE CPU extension supported.
[    1.237420]  mmcblk0: p1 p2
[    1.244802] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.257028] ALSA device list:
[    1.260008]   No soundcards found.
[    1.265695] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.273013] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.355034] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[    1.545031] hub 2-0:1.0: unable to enumerate USB device on port 1
[    1.985013] usb 2-1: new high-speed USB device number 4 using ci_hdrc
[    2.105052] hub 2-0:1.0: unable to enumerate USB device on port 1
[    2.545018] usb 2-1: new high-speed USB device number 5 using ci_hdrc
[    2.805031] hub 2-0:1.0: unable to enumerate USB device on port 1
[    2.981083] EXT4-fs (mmcblk0p2): recovery complete
[    3.156943] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.165096] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.176539] devtmpfs: mounted
[    3.179784] Freeing init memory: 276K

Fixing USB bus

After booting for the first time, it is likely that messages such as this will flood your serial console:

[  453.142468] usb 2-1: new high-speed USB device number 97 using ci_hdrc
[  453.222475] hub 2-0:1.0: unable to enumerate USB device on port 1
[  453.662416] usb 2-1: new high-speed USB device number 98 using ci_hdrc
[  453.852421] hub 2-0:1.0: unable to enumerate USB device on port 1
[  454.292397] usb 2-1: new high-speed USB device number 100 using ci_hdrc
[  454.382381] hub 2-0:1.0: unable to enumerate USB device on port 1
[  454.822327] usb 2-1: new high-speed USB device number 101 using ci_hdrc
[  455.022335] hub 2-0:1.0: unable to enumerate USB device on port 1
[  455.462285] usb 2-1: new high-speed USB device number 103 using ci_hdrc
[  455.672275] hub 2-0:1.0: unable to enumerate USB device on port 1
[  456.112232] usb 2-1: new high-speed USB device number 105 using ci_hdrc
[  456.192244] hub 2-0:1.0: unable to enumerate USB device on port 1


This command can be run after a cold boot and it will fix the usb bus:

i2cset -y 1 0x08 0x66 0x48

After this command runs, the following data will print to the console:

[  456.798644] hub 2-1:1.0: USB hub found
[  456.802728] hub 2-1:1.0: 4 ports detected
[  457.102481] usb 2-1.2: new high-speed USB device number 107 using ci_hdrc
[  457.312481] usb 2-1.3: new high-speed USB device number 108 using ci_hdrc
[  457.447255] hub 2-1.3:1.0: USB hub found
[  457.451603] hub 2-1.3:1.0: 4 ports detected