Imx6ull Mfgtool can't flash. UTP or UDC problem

cancel
Showing results for 
Search instead for 
Did you mean: 

Imx6ull Mfgtool can't flash. UTP or UDC problem

Jump to solution
1,526 Views
yuce_kurum
Contributor II

We are trying to compile Linux for an im6ull custom board but mfgtool gets stuck at 'UTP: Waiting for /dev/utp to appear. failure read command from usb ep point' or at 'No udc Available!'.

How can we resolve this UDC/UTP problem?
The steps we are taking are below;

# Setup yocto env
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-gatesgarth -m imx-5.10.9-1.0.0.xml;
repo sync;
DISTRO=fsl-imx-fb MACHINE=imx6ull14x14evk source imx-setup-release.sh -b build;

# Update local.conf and get an initial build

cd build/conf/;
echo '
UBOOT_CONFIG = "nand"
MACHINE_FEATURES_remove = " video wifi bluetooth"
IMAGE_FSTYPES += "tar.bz2"
KERNEL_IMAGETYPE = "zImage"
KERNEL_DEVICETREE = "imx6ull-14x14-evk-gpmi-weim"
' >> local.conf
bitbake core-image-base

# Test the build

U-Boot 2020.04-5.10.9-1.0.0+gad7b74b415 (Mar 05 2021 - 07:05:56 +0000)

CPU: i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 40C
Reset cause: POR
Model: i.MX6 ULL 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM: 512 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
Loading Environment from NAND... *** Warning - bad CRC, using default environment

[*]-Video Link 0
#Ram value is wrong


# Create devtool enviroment for u-boot
devtool modify u-boot-imx

# Correct the ram parameters and test the build
Board: MX6ULL 14x14 EVK
DRAM: 128 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
Loading Environment from NAND... *** Warning - bad CRC, using default environment

[*]-Video Link 0
# Ram shows the correct value now but still stuck at Video Link. We don't have a display so disable it.


# Commented out the #CONFIG_DM_VIDEO=y in build/workspace/sources/u-boot-imx/configs/mx6ull_14x14_evk_nand_defconfig
cd build/workspace/sources/u-boot-imx/
make mrproper
cd build/
bitbake u-boot-imx

# Test the build
U-Boot 2020.04-5.10.9-1.0.0+g6dd5b0513c (May 21 2021 - 08:43:52 +0000)
CPU: i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 39C
Reset cause: POR
Model: i.MX6 ULL 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM: 128 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
Loading Environment from NAND... *** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: Ethernet@0x20b4000 is fused, disable it
Ethernet@0x20b4000 is fused, disable it
Ethernet@0x20b4000 is fused, disable it
FEC: can't find phy-handle
Ethernet@0x20b4000 is fused, disable it
Could not get PHY for FEC0: addr 2
Ethernet@0x20b4000 is fused, disable it
FEC: can't find phy-handle
Ethernet@0x20b4000 is fused, disable it
Could not get PHY for FEC0: addr 2
No ethernet found.
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment
Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
Hit any key to stop autoboot: 0

## Checking Image at 86800000 ...
Unknown image format!
Run fastboot ...

# When we check mfgtool configuration "ucl2.xml" we see the address for initramfs is different.
<CMD state="BootStrap" type="load" file="bootstrap/fsl-image-mfgtool-initramfs-imx6ull14x14evk.cpio.gz.u-boot" address="0x83800000"
loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6ULL">Loading Initramfs.</CMD>

# We can access u-boot at this time so i manually continue with the correct address
bootz ${loadaddr} 0x83800000 ${fdt_addr}

# Kernel starts but fails to communicate with mfgtool.
# mfgtool finishes quickly within a couple of seconds without actually uploading the files and shows no errors.
# Kernel messages are below
...
[ 5.897504] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 5.908439] Freeing unused kernel memory: 1024K
[ 5.935584] Run /linuxrc as init process
Found New UDC: ci_hdrc.0
ci_hdrc.0 0
ffs.utp0
[ 6.123498] file system registered
[ 6.178122] Mass Storage Function, version: 2009/09/11
[ 6.183312] LUN: removable file: (no medium)
run utp at /dev/usb-utp0/ep0
.
uuu fastboot client 1.0.0 [built [ 6.212867] read descriptors
Nov 7 2019 19:25:07]
Start init usb
write string[ 6.222792] read strings

Start handle command
uuc /dev/utp
uuc 0.6 [built Nov 7 2019 19:25:07]
UTP: Waiting for /dev/utp to appear
failure read command from usb ep point
failure read command from usb ep point

# Stuck at failure read command from usb ep point.
# At this point we correct the rootfs address in build/workspace/sources/u-boot-imx/include/configs/mx6ullevk.h
"initrd_addr=0x83800000\0" \
# We also added some usb configurations to kernel using menuconfig but usb configurations doesn't seem to work. No udc were found now. 
bitbake -c menuconfig linux-imx
# Add CONFIG_USB_EHCI_FSL=y and CONFIG_USB_MASS_STORAGE=y

# You can find the console output below


U-Boot 2020.04-5.10.9-1.0.0+g8b32165ff5 (May 21 2021 - 14:31:28 +0000)

CPU: i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 40C
Reset cause: POR
Model: i.MX6 ULL 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM: 128 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
Loading Environment from NAND... *** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: Ethernet@0x20b4000 is fused, disable it
Ethernet@0x20b4000 is fused, disable it
Ethernet@0x20b4000 is fused, disable it
FEC: can't find phy-handle
Ethernet@0x20b4000 is fused, disable it
Could not get PHY for FEC0: addr 2
Ethernet@0x20b4000 is fused, disable it
FEC: can't find phy-handle
Ethernet@0x20b4000 is fused, disable it
Could not get PHY for FEC0: addr 2
No ethernet found.

Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${ fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
Hit any key to stop autoboot: 0

## Checking Image at 83800000 ...
Legacy image found
Image Name: fsl-image-mfgtool-initramfs-imx6
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 14885435 Bytes = 14.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Kernel image @ 0x80800000 [ 0x000000 - 0x830598 ]
## Loading init Ramdisk from Legacy Image at 83800000 ...
Image Name: fsl-image-mfgtool-initramfs-imx6
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 14885435 Bytes = 14.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300bd79
Modify /soc/bus@2000000/tsc@2040000:status disabled
Modify /soc/bus@2200000/epdc@228c000:status disabled
Modify /soc/bus@2100000/lcdif@21c8000:status disabled
Modify /soc/bus@2100000/pxp@21cc000:status disabled
Modify /soc/bus@2100000/csi@21c4000:status disabled
Modify /soc/bus@2000000/ethernet@20b4000:status disabled
Modify /soc/bus@2100000/usb@2184200:status disabled
Modify /soc/bus@2000000/spba-bus@2000000/sai@202c000:status disabled
Modify /soc/bus@2000000/spba-bus@2000000/sai@2030000:status disabled
Modify /soc/bus@2100000/serial@21f4000:status disabled
Modify /soc/bus@2100000/serial@21fc000:status disabled
Modify /soc/bus@2000000/spba-bus@2000000/serial@2018000:status disabled
Modify /soc/bus@2200000/serial@2288000:status disabled
Modify /soc/bus@2000000/pwm@20f0000:status disabled
Modify /soc/bus@2000000/pwm@20f4000:status disabled
Modify /soc/bus@2000000/pwm@20f8000:status disabled
Modify /soc/bus@2000000/pwm@20fc000:status disabled
Modify /soc/bus@2100000/i2c@21a8000:status disabled
Modify /soc/bus@2100000/i2c@21f8000:status disabled
Modify /soc/bus@2000000/epit@20d4000:status disabled
ft_system_setup for mx6

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.10.9-1.0.0+g32513c25d8c7 (oe-user@oe-host) (arm-poky-linux-gnueabi-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.0.20200730) #1 SMP PREEMPT Tue Mar 9 02:17:18 UTC 2021
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Freescale i.MX6 ULL 14x14 EVK Board
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] OF: reserved mem: failed to allocate memory for node 'linux,cma'
[ 0.000000] cma: Reserved 32 MiB at 0x86000000
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000080000000-0x0000000087ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x0000000087ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000087ffffff]
[ 0.000000] percpu: Embedded 15 pages/cpu s32588 r8192 d20660 u61440
[ 0.000000] Built 1 zonelists, mobility grouping off. Total pages: 32480
[ 0.000000] Kernel command line: console=ttymxc0,115200 rdinit=/linuxrc clk_ignore_unused
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 63020K/131072K available (12288K kernel code, 1336K rwdata, 3236K rodata, 1024K init, 458K bss, 35284K r eserved, 32768K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x33c/0x4fc with crng_init=0
[ 0.000000] Switching to timer-based delay loop, resolution 41ns
[ 0.000018] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000066] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.002943] Console: colour dummy device 80x30
[ 0.003020] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.003070] pid_max: default: 32768 minimum: 301
[ 0.003416] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.003460] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.005236] CPU: Testing write buffer coherency: ok
[ 0.005802] CPU0: update cpu_capacity 1024
[ 0.005844] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.007407] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.007727] rcu: Hierarchical SRCU implementation.
[ 0.008490] smp: Bringing up secondary CPUs ...
[ 0.008536] smp: Brought up 1 node, 1 CPU
[ 0.008565] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.008584] CPU: All CPU(s) started in SVC mode.
[ 0.009463] devtmpfs: initialized
[ 0.026052] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.026669] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.026730] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.029528] pinctrl core: initialized pinctrl subsystem
[ 0.032398] NET: Registered protocol family 16
[ 0.050430] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.053570] thermal_sys: Registered thermal governor 'step_wise'
[ 0.053978] cpuidle: using governor menu
[ 0.287928] vdd3p0: supplied by regulator-dummy
[ 0.300625] cpu: supplied by regulator-dummy
[ 0.313215] vddsoc: supplied by regulator-dummy
[ 0.734582] failed to find ocotp node
[ 0.735041] failed to find ocotp node
[ 0.735473] No ATAGs?
[ 0.735709] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.735742] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.738741] imx6ul-pinctrl 20e0000.pinctrl: initialized IMX pinctrl driver
[ 0.739489] imx6ul-pinctrl 2290000.iomuxc-snvs: no groups defined in /soc/bus@2200000/iomuxc-snvs@2290000
[ 0.739532] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
[ 0.742023] imx mu driver is registered.
[ 0.742935] imx rpmsg driver is registered.
[ 0.826708] vgaarb: loaded
[ 0.828574] SCSI subsystem initialized
[ 0.829770] usbcore: registered new interface driver usbfs
[ 0.829918] usbcore: registered new interface driver hub
[ 0.830056] usbcore: registered new device driver usb
[ 0.848799] i2c i2c-0: IMX I2C adapter registered
[ 0.866534] i2c i2c-1: IMX I2C adapter registered
[ 0.867823] mc: Linux media interface: v0.10
[ 0.867962] videodev: Linux video capture interface: v2.00
[ 0.868158] pps_core: LinuxPPS API ver. 1 registered
[ 0.868187] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.868247] PTP clock support registered
[ 0.871312] MIPI CSI2 driver module loaded
[ 0.871465] Advanced Linux Sound Architecture Driver Initialized.
[ 0.873322] Bluetooth: Core ver 2.22
[ 0.873475] NET: Registered protocol family 31
[ 0.873504] Bluetooth: HCI device and connection manager initialized
[ 0.873546] Bluetooth: HCI socket layer initialized
[ 0.873581] Bluetooth: L2CAP socket layer initialized
[ 0.873645] Bluetooth: SCO socket layer initialized
[ 0.874675] clocksource: Switched to clocksource mxc_timer1
[ 0.875221] VFS: Disk quotas dquot_6.6.0
[ 0.875393] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.898116] NET: Registered protocol family 2
[ 0.899850] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.899974] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.900038] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.900100] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.900320] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.900397] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.900786] NET: Registered protocol family 1
[ 0.902141] RPC: Registered named UNIX socket transport module.
[ 0.902188] RPC: Registered udp transport module.
[ 0.902211] RPC: Registered tcp transport module.
[ 0.902233] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.904534] PCI: CLS 0 bytes, default 64
[ 0.905219] Trying to unpack rootfs image as initramfs...
[ 2.554763] random: fast init done
[ 3.309462] rootfs image is not initramfs (write error); looks like an initrd
[ 3.309663] /initrd.image: incomplete write (-28 != 14885435)
[ 3.357151] Freeing initrd memory: 14540K
[ 3.358027] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 3.361889] Bus freq driver module loaded
[ 3.364300] Initialise system trusted keyrings
[ 3.364933] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 3.379402] NFS: Registering the id_resolver key type
[ 3.379505] Key type id_resolver registered
[ 3.379531] Key type id_legacy registered
[ 3.379801] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 3.379907] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 3.381190] fuse: init (API version 7.32)
[ 3.620375] Key type asymmetric registered
[ 3.620424] Asymmetric key parser 'x509' registered
[ 3.620506] io scheduler mq-deadline registered
[ 3.620531] io scheduler kyber registered
[ 3.630161] pwm-backlight backlight-display: supply power not found, using dummy regulator
[ 3.648495] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[ 3.648548] imx-sdma 20ec000.sdma: Falling back to sysfs fallback for: imx/sdma/sdma-imx6q.bin
[ 3.653002] mxs-dma 1804000.dma-apbh: initialized
[ 3.660837] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 29, base_baud = 5000000) is a IMX
[ 4.430630] printk: console [ttymxc0] enabled
[ 4.437836] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 63, base_baud = 5000000) is a IMX
[ 4.449307] imx sema4 driver is registered.
[ 4.490200] brd: module loaded
[ 4.513928] loop: module loaded
[ 4.519887] imx ahci driver is registered.
[ 4.529665] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 4.536143] nand: Micron MT29F4G08ABAEAWP
[ 4.540182] nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 224
[ 4.549099] Bad block table found at page 131008, version 0x01
[ 4.555299] Bad block table found at page 130944, version 0x01
[ 4.576687] gpmi-nand 1806000.nand-controller: driver registered.
[ 4.586864] gpio@0 enforce active low on chipselect handle
[ 4.598525] libphy: Fixed MDIO Bus: probed
[ 4.604058] CAN device driver interface
[ 4.613494] pps pps0: new PPS source ptp0
[ 4.618839] fec 2188000.ethernet: Invalid MAC address: 00:00:00:00:00:00
[ 4.625704] fec 2188000.ethernet: Using random MAC address: 72:77:76:8a:1b:b7
[ 4.967458] libphy: fec_enet_mii_bus: probed
[ 4.973296] fec 2188000.ethernet eth0: registered PHC device 0
[ 4.981706] usbcore: registered new interface driver r8152
[ 4.987620] usbcore: registered new interface driver lan78xx
[ 4.993433] usbcore: registered new interface driver asix
[ 4.999206] usbcore: registered new interface driver ax88179_178a
[ 5.005637] usbcore: registered new interface driver cdc_ether
[ 5.011625] usbcore: registered new interface driver smsc95xx
[ 5.017722] usbcore: registered new interface driver net1080
[ 5.023501] usbcore: registered new interface driver cdc_subset
[ 5.029628] usbcore: registered new interface driver zaurus
[ 5.035378] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[ 5.042937] usbcore: registered new interface driver cdc_ncm
[ 5.048673] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.055263] ehci-pci: EHCI PCI platform driver
[ 5.059850] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 5.065916] ehci-fsl: Freescale EHCI Host controller driver
[ 5.071831] usbcore: registered new interface driver usb-storage
[ 5.083061] udc-core: couldn't find an available UDC - added [g_mass_storage] to list of pending drivers
[ 5.094966] input: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/i nput/input0
[ 5.111934] read sensor who am i (0xfffffffa)error !
[ 5.117135] fxls8471: probe of 0-001e failed with error -22
[ 5.128091] snvs_rtc 20cc000.snvs:snvs-rtc-lp: registered as rtc0
[ 5.134301] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-05T13:40:31 UTC (394831)
[ 5.144314] i2c /dev entries driver
[ 5.151719] pxp-v4l2 pxp_v4l2: initialized
[ 5.159396] mag3110 0-000e: check mag3110 chip ID
[ 5.164610] mag3110 0-000e: read chip ID 0xfffffffa is not equal to 0xc4!
[ 5.172014] mag3110: probe of 0-000e failed with error -22
[ 5.182486] Bluetooth: HCI UART driver ver 2.3
[ 5.187244] Bluetooth: HCI UART protocol H4 registered
[ 5.192414] Bluetooth: HCI UART protocol BCSP registered
[ 5.197952] Bluetooth: HCI UART protocol LL registered
[ 5.203180] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 5.209738] Bluetooth: HCI UART protocol Marvell registered
[ 5.215544] usbcore: registered new interface driver btusb
[ 5.223307] sdhci: Secure Digital Host Controller Interface driver
[ 5.229629] sdhci: Copyright(c) Pierre Ossman
[ 5.234010] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.243115] sdhci-esdhc-imx 2190000.mmc: voltage-ranges unspecified
[ 5.252444] sdhci-esdhc-imx 2190000.mmc: Got CD GPIO
[ 5.261210] usbcore: registered new interface driver usbhid
[ 5.268836] usbhid: USB HID core driver
[ 5.290350] wm8960 1-001a: Failed to issue reset
[ 5.297405] mmc0: SDHCI controller on 2190000.mmc [2190000.mmc] using ADMA
[ 5.308190] rpmsg-audio-codec-wm8960 1-001a: Failed to issue reset
[ 5.317358] fsl-asoc-card sound-wm8960: failed to find CPU DAI device
[ 5.323881] fsl-asoc-card: probe of sound-wm8960 failed with error -22
[ 5.342931] NET: Registered protocol family 26
[ 5.349108] NET: Registered protocol family 10
[ 5.356149] Segment Routing with IPv6
[ 5.360029] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 5.367834] NET: Registered protocol family 17
[ 5.372349] can: controller area network core
[ 5.377096] NET: Registered protocol family 29
[ 5.381582] can: raw protocol
[ 5.384570] can: broadcast manager protocol
[ 5.388986] can: netlink gateway - max_hops=1
[ 5.393951] Bluetooth: RFCOMM TTY layer initialized
[ 5.399163] Bluetooth: RFCOMM socket layer initialized
[ 5.404391] Bluetooth: RFCOMM ver 1.11
[ 5.408373] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 5.413713] Bluetooth: BNEP filters: protocol multicast
[ 5.419038] Bluetooth: BNEP socket layer initialized
[ 5.424029] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 5.430026] Bluetooth: HIDP socket layer initialized
[ 5.435178] lib80211: common routines for IEEE802.11 drivers
[ 5.440970] Key type dns_resolver registered
[ 5.478942] Registering SWP/SWPB emulation handler
[ 5.484786] Loading compiled-in X.509 certificates
[ 5.535462] flexcan 2090000.flexcan: registering netdev failed
[ 5.541747] flexcan: probe of 2090000.flexcan failed with error -110
[ 5.550717] flexcan 2094000.flexcan: registering netdev failed
[ 5.557161] flexcan: probe of 2094000.flexcan failed with error -110
[ 5.565422] imx_usb 2184000.usb: No over current polarity defined
[ 5.575795] Mass Storage Function, version: 2009/09/11
[ 5.580976] LUN: removable file: (no medium)
[ 5.585478] no file given for LUN0
[ 5.588945] g_mass_storage ci_hdrc.0: failed to start g_mass_storage: -22
[ 5.596347] ci_hdrc: probe of ci_hdrc.0 failed with error -22
[ 5.604600] imx_thermal 20c8000.anatop:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 5.618028] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 5.646136] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 5.652989] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 5.662021] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 5.670053] clk: Not disabling unused clocks
[ 5.674357] ALSA device list:
[ 5.677760] No soundcards found.
[ 5.684291] Freeing unused kernel memory: 1024K
[ 5.705194] Run /linuxrc as init process
No udc Available!
[ 35.709522] VSD_3V3: disabling
[ 35.713945] can-3v3: disabling
No udc Available!

Any help would be appreciated.
Have a nice day. 

Labels (3)
Tags (3)
0 Kudos
1 Solution
1,437 Views
yuce_kurum
Contributor II

Setting cma size to 0 solved the problem. Config line is CONFIG_CMA_SIZE_MBYTES=0

View solution in original post

0 Kudos
6 Replies
1,438 Views
yuce_kurum
Contributor II

Setting cma size to 0 solved the problem. Config line is CONFIG_CMA_SIZE_MBYTES=0

0 Kudos
1,519 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Yüce

 

for UDC/UTP problem one can check USB_ID pin, it should be high of floating.

Also one can try to program image with uuu tool, as described in

i.MX Linux User’s Guide​

 

Best regards
igor

0 Kudos
1,509 Views
yuce_kurum
Contributor II

Hi Igor,

USB_ID pin is high. We have been able to flash an older image using mfgtool.

We are using a nand flash. Could you provide a uuu for nand guide maybe? 
Only example i found is "example_kernel_nand.uuu" from LF_v5.10_1.0.0_images_IMX6UL7D prebuilt referance images but it gets stuck at 

FBK: ucmd cat /proc/mtd | while read dev size erase name; do mtd=${dev:3}; mtd=${mtd%:}; name=${name%\"}; name=${name#\"}; echo export $name=$mtd >> /tmp/mtd.sh; done;

During the time device does not have any space so it fails.
1:243>Start Cmd:FBK: ucmd echo "`df -h`"
Filesystem      Size  Used Avail Use% Mounted on
rootfs           31M   31M     0 100% /
none             31M     0   31M   0% /dev

What could be the problem?

Thanks.
Yüce

0 Kudos
1,499 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Yüce

 

probably new image is too big, one can try with smaller size.

 

Best regards
igor

0 Kudos
1,482 Views
yuce_kurum
Contributor II

Hi Igor,

Flash is 512MB and ram is 128MB. 

This image does not yet contain any of the actually needed packages. End image will be larger so this is already a small version.

Is there a way to enlarge the rootfs partition size?

I have tried to increase the size of the partition with IMAGE_OVERHEAD_FACTOR = "1.5" in local.conf but the error persists.

Thanks
Yüce

0 Kudos
1,475 Views
igorpadykov
NXP TechSupport
NXP TechSupport
0 Kudos