Yocto image, freezing on boot up after setting cpufreq

Started by kgolding, June 02, 2017, 06:21:17 PM

Previous topic - Next topic

kgolding

I'm building a simple image using Yocto core-image-minimal. I've cloned the meta-sunxi layer, and have added the layer to my build. I can successfully build an image, and I have dd it to a MMC card. The A20-Micro boots up to the point as below, and I'm looking for suggestion to fix this please?

Here is my conf/local.conf file:

MACHINE = "olinuxino-a20"

MACHINE ??= "qemux86"

DL_DIR ?= "${TOPDIR}/../downloads"

DISTRO ?= "poky"
PACKAGE_CLASSES ?= "package_rpm"

IMGDEPLOYDIR = "${DEPLOY_DIR_IMAGE}"

#DEFAULTTUNE = "coretexa7thf-neon-vfpv4"

#
# Extra image configuration defaults
#
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

#
# Additional image features
#
USER_CLASSES ?= "buildstats image-mklibs"

#
# Disk Space Monitoring during the build
#
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"

#
# Qemu configuration
#
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"

CONF_VERSION = "1"


And here is the log (the last x lines) as captured via uart0:

[    0.330870] NET: Registered protocol family 1
[    0.332281] RPC: Registered named UNIX socket transport module.
[    0.332706] RPC: Registered udp transport module.
[    0.333024] RPC: Registered tcp transport module.
[    0.333341] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.334920] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.342088] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.365651] NFS: Registering the id_resolver key type
[    0.366079] Key type id_resolver registered
[    0.366370] Key type id_legacy registered
[    0.369316] bounce: pool size: 64 pages
[    0.370125] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.370631] io scheduler noop registered
[    0.370903] io scheduler deadline registered
[    0.371700] io scheduler cfq registered (default)
[    0.372895] sun4i-usb-phy 1c13400.phy: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb0_id_detect_pin@0, deferring probe
[    0.382657] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.539389] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.546698] console [ttyS0] disabled
[    0.567260] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 46, base_baud = 1500000) is a U6_16550A
[    1.257628] console [ttyS0] enabled
[    1.286840] 1c29800.serial: ttyS1 at MMIO 0x1c29800 (irq = 47, base_baud = 1500000) is a U6_16550A
[    1.321777] 1c29c00.serial: ttyS2 at MMIO 0x1c29c00 (irq = 48, base_baud = 1500000) is a U6_16550A
[    1.338645] libphy: Fixed MDIO Bus: probed
[    1.344396] sun7i-dwmac 1c50000.ethernet: no regulator found
[    1.350556] sun7i-dwmac 1c50000.ethernet: no reset control found
[    1.357013]  Ring mode enabled
[    1.360284]  DMA HW capability register supported[    1.365152]  Normal descriptors
[    1.372693] libphy: stmmac: probed
[    1.376372] eth%d: PHY ID 00008201 at 1 IRQ POLL (stmmac-0:01) active
[    1.407340] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.436636] ehci-platform: EHCI generic platform driver
[    1.465323] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.494282] ohci-platform: OHCI generic platform driver
[    1.522890] usbcore: registered new interface driver usb-storage
[    1.553666] sunxi-rtc 1c20d00.rtc: rtc core: registered rtc-sunxi as rtc0
[    1.583141] sunxi-rtc 1c20d00.rtc: RTC enabled
[    1.610141] i2c /dev entries driver
[    1.641481] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.673678] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 384000 KHz
[    1.708800] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 528000 KHz





JohnS

I'm surprised you have DEFAULTTUNE commented out but don't know if that's a problem.

John

kgolding

I commented out DEFAULTTUNE in case it was causing the issue, but no change in the error either way.