I enabled earlyprintk, CONFIG_DEBUG_LL and initcall_debug, and this is
very interesting. The upstream kernel now gets as far as trying to
mount root.
I suspect this means it's really working fine. I'm going to play with
it a bit more, mainly to see if it works with less debugging and/or I
can get the root disk to work.
Rich.
Starting kernel ...
[ 0.190563] console [ttyS0] enabled
[ 0.194088] bootconsole [earlycon0] disabled
[ 0.198673] initcall dw8250_platform_driver_init+0x0/0x10 returned 0 after 28405 usecs
[ 0.206630] calling pl011_dma_initcall+0x0/0x290 @ 1
[ 0.211680] initcall pl011_dma_initcall+0x0/0x290 returned 0 after 0 usecs
[ 0.218565] calling imx_serial_init+0x0/0x50 @ 1
[ 0.223272] Serial: IMX driver
[ 0.226433] initcall imx_serial_init+0x0/0x50 returned 0 after 3081 usecs
[ 0.233233] calling of_platform_serial_driver_init+0x0/0x10 @ 1
[ 0.239310] initcall of_platform_serial_driver_init+0x0/0x10 returned 0 after 73 usecs
[ 0.247232] calling serial_omap_init+0x0/0x44 @ 1
[ 0.252116] initcall serial_omap_init+0x0/0x44 returned 0 after 91 usecs
[ 0.258832] calling vt8500_serial_init+0x0/0x4c @ 1
[ 0.263869] initcall vt8500_serial_init+0x0/0x4c returned 0 after 61 usecs
[ 0.270736] calling xuartps_init+0x0/0x44 @ 1
[ 0.275254] initcall xuartps_init+0x0/0x44 returned 0 after 60 usecs
[ 0.281601] calling sirfsoc_uart_init+0x0/0x40 @ 1
[ 0.286557] initcall sirfsoc_uart_init+0x0/0x40 returned 0 after 65 usecs
[ 0.293353] calling tegra_uart_init+0x0/0x70 @ 1
[ 0.298113] initcall tegra_uart_init+0x0/0x70 returned 0 after 56 usecs
[ 0.304738] calling lpuart_serial_init+0x0/0x50 @ 1
[ 0.309695] serial: Freescale lpuart driver
[ 0.313943] initcall lpuart_serial_init+0x0/0x50 returned 0 after 4142 usecs
[ 0.320984] calling omap_rng_driver_init+0x0/0x10 @ 1
[ 0.326179] initcall omap_rng_driver_init+0x0/0x10 returned 0 after 45 usecs
[ 0.333232] calling drm_core_init+0x0/0x120 @ 1
[ 0.337903] [drm] Initialized drm 1.1.0 20060810
[ 0.342535] initcall drm_core_init+0x0/0x120 returned 0 after 4576 usecs
[ 0.349229] calling host1x_drm_init+0x0/0xb4 @ 1
[ 0.354141] initcall host1x_drm_init+0x0/0xb4 returned 0 after 194 usecs
[ 0.360836] calling tegra_host1x_init+0x0/0x3c @ 1
[ 0.365818] initcall tegra_host1x_init+0x0/0x3c returned 0 after 90 usecs
[ 0.372618] calling topology_sysfs_init+0x0/0x70 @ 1
[ 0.377703] initcall topology_sysfs_init+0x0/0x70 returned 0 after 34 usecs
[ 0.384669] calling twl_driver_init+0x0/0x10 @ 1
[ 0.389403] initcall twl_driver_init+0x0/0x10 returned 0 after 32 usecs
[ 0.396023] calling twl4030_power_driver_init+0x0/0x10 @ 1
[ 0.401636] initcall twl4030_power_driver_init+0x0/0x10 returned 0 after 43 u
secs
[ 0.444119] calling mv_init+0x0/0x10 @ 1
[ 0.448170] initcall mv_init+0x0/0x10 returned 0 after 41 usecs
[ 0.454095] calling omap2_mcspi_driver_init+0x0/0x10 @ 1
[ 0.459551] initcall omap2_mcspi_driver_init+0x0/0x10 returned 0 after 57 usecs
[ 0.466865] calling spi_sirfsoc_driver_init+0x0/0x10 @ 1
[ 0.472312] initcall spi_sirfsoc_driver_init+0x0/0x10 returned 0 after 48 usecs
[ 0.479626] calling tegra_spi_driver_init+0x0/0x10 @ 1
[ 0.484910] initcall tegra_spi_driver_init+0x0/0x10 returned 0 after 49 usecs
[ 0.492038] calling tegra_slink_driver_init+0x0/0x10 @ 1
[ 0.497490] initcall tegra_slink_driver_init+0x0/0x10 returned 0 after 44 usecs
[ 0.504804] calling net_olddevs_init+0x0/0x6c @ 1
[ 0.509604] initcall net_olddevs_init+0x0/0x6c returned 0 after 12 usecs
[ 0.516309] calling sun4i_mdio_driver_init+0x0/0x10 @ 1
[ 0.521667] initcall sun4i_mdio_driver_init+0x0/0x10 returned 0 after 46 usecs
[ 0.528894] calling emac_driver_init+0x0/0x10 @ 1
[ 0.533737] initcall emac_driver_init+0x0/0x10 returned 0 after 43 usecs
[ 0.540432] calling xgmac_driver_init+0x0/0x10 @ 1
[ 0.545361] initcall xgmac_driver_init+0x0/0x10 returned 0 after 42 usecs
[ 0.552143] calling fec_driver_init+0x0/0x10 @ 1
[ 0.556911] initcall fec_driver_init+0x0/0x10 returned 0 after 54 usecs
[ 0.563531] calling ks8851_driver_init+0x0/0xc @ 1
[ 0.568434] initcall ks8851_driver_init+0x0/0xc returned 0 after 26 usecs
[ 0.575228] calling smsc911x_init_module+0x0/0x10 @ 1
[ 0.580405] initcall smsc911x_init_module+0x0/0x10 returned 0 after 40 usecs
[ 0.587457] calling stmmac_init+0x0/0x3c @ 1
[ 0.591869] initcall stmmac_init+0x0/0x3c returned 0 after 53 usecs
[ 0.598142] calling ehci_hcd_init+0x0/0x70 @ 1
[ 0.602677] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.609199] initcall ehci_hcd_init+0x0/0x70 returned 0 after 6366 usecs
[ 0.615816] calling ehci_platform_init+0x0/0x54 @ 1
[ 0.620773] ehci-platform: EHCI generic platform driver
[ 0.626065] initcall ehci_platform_init+0x0/0x54 returned 0 after 5161 usecs
[ 0.633119] calling ehci_omap_init+0x0/0x54 @ 1
[ 0.637730] ehci-omap: OMAP-EHCI Host Controller driver
[ 0.643014] initcall ehci_omap_init+0x0/0x54 returned 0 after 5153 usecs
[ 0.649709] calling ehci_orion_init+0x0/0x50 @ 1
[ 0.654419] ehci-orion: EHCI orion driver
[ 0.658470] initcall ehci_orion_init+0x0/0x50 returned 0 after 3951 usecs
[ 0.665265] calling ehci_spear_init+0x0/0x54 @ 1
[ 0.669962] SPEAr-ehci: EHCI SPEAr driver
[ 0.674025] initcall ehci_spear_init+0x0/0x54 returned 0 after 3963 usecs
[ 0.680807] calling ehci_tegra_init+0x0/0x84 @ 1
[ 0.685514] tegra-ehci: Tegra EHCI driver
[ 0.689569] initcall ehci_tegra_init+0x0/0x84 returned 0 after 3953 usecs
[ 0.696360] calling xhci_hcd_init+0x0/0x8 @ 1
[ 0.700802] initcall xhci_hcd_init+0x0/0x8 returned 0 after 0 usecs
[ 0.707071] calling isp1760_init+0x0/0x54 @ 1
[ 0.711620] initcall isp1760_init+0x0/0x54 returned 0 after 104 usecs
[ 0.718070] calling usb_storage_driver_init+0x0/0x18 @ 1
[ 0.723511] usbcore: registered new interface driver usb-storage
[ 0.729513] initcall usb_storage_driver_init+0x0/0x18 returned 0 after 5896 usecs
[ 0.736999] calling omap_usb3_driver_init+0x0/0x10 @ 1
[ 0.742267] initcall omap_usb3_driver_init+0x0/0x10 returned 0 after 43 usecs
[ 0.749406] calling samsung_usb2phy_driver_init+0x0/0x10 @ 1
[ 0.755231] initcall samsung_usb2phy_driver_init+0x0/0x10 returned 0 after 67 usecs
[ 0.762894] calling samsung_usb3phy_driver_init+0x0/0x10 @ 1
[ 0.768685] initcall samsung_usb3phy_driver_init+0x0/0x10 returned 0 after 44 usecs
[ 0.776347] calling tegra_usb_phy_driver_init+0x0/0x10 @ 1
[ 0.781963] initcall tegra_usb_phy_driver_init+0x0/0x10 returned 0 after 46 usecs
[ 0.789449] calling gpio_vbus_driver_init+0x0/0x10 @ 1
[ 0.794718] initcall gpio_vbus_driver_init+0x0/0x10 returned 0 after 36 usecs
[ 0.801847] calling isp1301_driver_init+0x0/0x10 @ 1
[ 0.806936] initcall isp1301_driver_init+0x0/0x10 returned 0 after 29 usecs
[ 0.813902] calling ci_hdrc_driver_init+0x0/0x10 @ 1
[ 0.818988] initcall ci_hdrc_driver_init+0x0/0x10 returned 0 after 35 usecs
[ 0.825954] calling ci_hdrc_msm_driver_init+0x0/0x10 @ 1
[ 0.831386] initcall ci_hdrc_msm_driver_init+0x0/0x10 returned 0 after 34 usecs
[ 0.838699] calling ci_hdrc_imx_driver_init+0x0/0x10 @ 1
[ 0.844149] initcall ci_hdrc_imx_driver_init+0x0/0x10 returned 0 after 43 usecs
[ 0.851452] calling usbmisc_imx_driver_init+0x0/0x10 @ 1
[ 0.856908] initcall usbmisc_imx_driver_init+0x0/0x10 returned 0 after 47 usecs
[ 0.864220] calling serport_init+0x0/0x30 @ 1
[ 0.868662] initcall serport_init+0x0/0x30 returned 0 after 1 usecs
[ 0.874931] calling ambakmi_driver_init+0x0/0xc @ 1
[ 0.879926] initcall ambakmi_driver_init+0x0/0xc returned 0 after 31 usecs
[ 0.886805] calling mousedev_init+0x0/0x88 @ 1
[ 0.891758] mousedev: PS/2 mouse device common for all mice
[ 0.897388] initcall mousedev_init+0x0/0x88 returned 0 after 5905 usecs
[ 0.904015] calling atkbd_init+0x0/0x18 @ 1
[ 0.908363] initcall atkbd_init+0x0/0x18 returned 0 after 75 usecs
[ 0.914563] calling spear_kbd_driver_init+0x0/0x10 @ 1
[ 0.919858] initcall spear_kbd_driver_init+0x0/0x10 returned 0 after 67 usecs
[ 0.927006] calling psmouse_init+0x0/0x98 @ 1
[ 0.931641] initcall psmouse_init+0x0/0x98 returned 0 after 180 usecs
[ 0.938114] calling pl031_driver_init+0x0/0xc @ 1
[ 0.942957] initcall pl031_driver_init+0x0/0xc returned 0 after 41 usecs
[ 0.949653] calling spear_rtc_driver_init+0x0/0x10 @ 1
[ 0.954952] initcall spear_rtc_driver_init+0x0/0x10 returned 0 after 60 usecs
[ 0.962081] calling tegra_rtc_driver_init+0x0/0x14 @ 1
[ 0.967387] initcall tegra_rtc_driver_init+0x0/0x14 returned -19 after 66 usecs
[ 0.974705] calling twl4030rtc_driver_init+0x0/0x10 @ 1
[ 0.980060] initcall twl4030rtc_driver_init+0x0/0x10 returned 0 after 43 usecs
[ 0.987290] calling vt8500_rtc_driver_init+0x0/0x10 @ 1
[ 0.992648] initcall vt8500_rtc_driver_init+0x0/0x10 returned 0 after 39 usecs
[ 0.999863] calling i2c_sirfsoc_driver_init+0x0/0x10 @ 1
[ 1.005321] initcall i2c_sirfsoc_driver_init+0x0/0x10 returned 0 after 40 usecs
[ 1.012636] calling bcm_kona_i2c_driver_init+0x0/0x10 @ 1
[ 1.018159] initcall bcm_kona_i2c_driver_init+0x0/0x10 returned 0 after 38 usecs
[ 1.025561] calling vexpress_reset_init+0x0/0x10 @ 1
[ 1.030661] initcall vexpress_reset_init+0x0/0x10 returned 0 after 49 usecs
[ 1.037629] calling highbank_mc_edac_driver_init+0x0/0x10 @ 1
[ 1.043517] initcall highbank_mc_edac_driver_init+0x0/0x10 returned 0 after 43 usecs
[ 1.051252] calling highbank_l2_edac_driver_init+0x0/0x10 @ 1
[ 1.057134] initcall highbank_l2_edac_driver_init+0x0/0x10 returned 0 after 38 usecs
[ 1.064881] calling mmc_blk_init+0x0/0x8c @ 1
[ 1.069352] initcall mmc_blk_init+0x0/0x8c returned 0 after 28 usecs
[ 1.075711] calling mmci_driver_init+0x0/0xc @ 1
[ 1.080452] initcall mmci_driver_init+0x0/0xc returned 0 after 37 usecs
[ 1.087071] calling sdhci_drv_init+0x0/0x24 @ 1
[ 1.091681] sdhci: Secure Digital Host Controller Interface driver
[ 1.097862] sdhci: Copyright(c) Pierre Ossman
[ 1.102218] initcall sdhci_drv_init+0x0/0x24 returned 0 after 10283 usecs
[ 1.109008] calling sdhci_driver_init+0x0/0x10 @ 1
[ 1.113937] initcall sdhci_driver_init+0x0/0x10 returned 0 after 42 usecs
[ 1.120719] calling mmc_omap_driver_init+0x0/0x10 @ 1
[ 1.125902] initcall mmc_omap_driver_init+0x0/0x10 returned 0 after 34 usecs
[ 1.132956] calling omap_hsmmc_driver_init+0x0/0x10 @ 1
[ 1.138313] initcall omap_hsmmc_driver_init+0x0/0x10 returned 0 after 45 usecs
[ 1.145539] calling wmt_mci_driver_init+0x0/0x10 @ 1
[ 1.150628] initcall wmt_mci_driver_init+0x0/0x10 returned 0 after 38 usecs
[ 1.157594] calling sdhci_pltfm_drv_init+0x0/0x18 @ 1
[ 1.162732] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.168387] initcall sdhci_pltfm_drv_init+0x0/0x18 returned 0 after 5516 usecs
[ 1.175611] calling sdhci_esdhc_imx_driver_init+0x0/0x10 @ 1
[ 1.181412] initcall sdhci_esdhc_imx_driver_init+0x0/0x10 returned 0 after 56 usecs
[ 1.189072] calling sdhci_tegra_driver_init+0x0/0x10 @ 1
[ 1.194526] initcall sdhci_tegra_driver_init+0x0/0x10 returned 0 after 47 usecs
[ 1.201830] calling hid_init+0x0/0x54 @ 1
[ 1.205997] initcall hid_init+0x0/0x54 returned 0 after 58 usecs
[ 1.212000] calling hid_generic_init+0x0/0x18 @ 1
[ 1.216833] initcall hid_generic_init+0x0/0x18 returned 0 after 31 usecs
[ 1.223540] calling a4_driver_init+0x0/0x18 @ 1
[ 1.228194] initcall a4_driver_init+0x0/0x18 returned 0 after 36 usecs
[ 1.234719] calling apple_driver_init+0x0/0x18 @ 1
[ 1.239621] initcall apple_driver_init+0x0/0x18 returned 0 after 25 usecs
[ 1.246414] calling belkin_driver_init+0x0/0x18 @ 1
[ 1.251404] initcall belkin_driver_init+0x0/0x18 returned 0 after 25 usecs
[ 1.258282] calling ch_driver_init+0x0/0x18 @ 1
[ 1.262934] initcall ch_driver_init+0x0/0x18 returned 0 after 26 usecs
[ 1.269455] calling ch_driver_init+0x0/0x18 @ 1
[ 1.274108] initcall ch_driver_init+0x0/0x18 returned 0 after 25 usecs
[ 1.280629] calling cp_driver_init+0x0/0x18 @ 1
[ 1.285283] initcall cp_driver_init+0x0/0x18 returned 0 after 25 usecs
[ 1.291805] calling ez_driver_init+0x0/0x18 @ 1
[ 1.296457] initcall ez_driver_init+0x0/0x18 returned 0 after 24 usecs
[ 1.302989] calling ks_driver_init+0x0/0x18 @ 1
[ 1.307634] initcall ks_driver_init+0x0/0x18 returned 0 after 27 usecs
[ 1.314168] calling lg_driver_init+0x0/0x18 @ 1
[ 1.318801] initcall lg_driver_init+0x0/0x18 returned 0 after 25 usecs
[ 1.325334] calling ms_driver_init+0x0/0x18 @ 1
[ 1.329991] initcall ms_driver_init+0x0/0x18 returned 0 after 38 usecs
[.....]
[ 1.690635] calling max_swapfiles_check+0x0/0x8 @ 1
[ 1.695609] initcall max_swapfiles_check+0x0/0x8 returned 0 after 0 usecs
[ 1.702390] calling init_root_keyring+0x0/0x4 @ 1
[ 1.707260] initcall init_root_keyring+0x0/0x4 returned 0 after 69 usecs
[ 1.713987] calling prandom_reseed+0x0/0x4c @ 1
[ 1.718640] initcall prandom_reseed+0x0/0x4c returned 0 after 33 usecs
[ 1.725179] calling tegra_gpio_debuginit+0x0/0x38 @ 1
[ 1.730324] initcall tegra_gpio_debuginit+0x0/0x38 returned 0 after 8 usecs
[ 1.737296] calling regulator_init_complete+0x0/0x1a4 @ 1
[ 1.742795] initcall regulator_init_complete+0x0/0x1a4 returned 0 after 2 usecs
[ 1.750098] calling deferred_probe_initcall+0x0/0x80 @ 1
[ 1.755738] initcall deferred_probe_initcall+0x0/0x80 returned 0 after 219 usecs
[ 1.763169] calling rtc_hctosys+0x0/0x120 @ 1
[ 1.767610] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.773886] initcall rtc_hctosys+0x0/0x120 returned -19 after 6126 usecs
[ 1.780582] calling tcp_congestion_default+0x0/0xc @ 1
[ 1.785816] initcall tcp_congestion_default+0x0/0xc returned 0 after 3 usecs
[ 1.792867] calling ip_auto_config+0x0/0x1010 @ 1
[ 1.797674] initcall ip_auto_config+0x0/0x1010 returned 0 after 18 usecs
[ 1.804383] calling __omap_device_late_init+0x0/0x34 @ 1
[ 1.809780] initcall __omap_device_late_init+0x0/0x34 returned 0 after 2 usecs
[ 1.817006] calling clk_disable_unused+0x0/0xd8 @ 1
[ 1.822032] initcall clk_disable_unused+0x0/0xd8 returned 0 after 61 usecs
[ 1.829579] async_waiting @ 1
[ 1.832581] async_continuing @ 1 after 1 usec
[ 1.836943] Waiting for root device /dev/mmcblk0p3...
(hangs here)
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org