Hi,
I prepared mfg u-boot and kernel as per the suggestion in mfgtool's documents. and i am able to download my mfg uboot and kernel in ram with default rootfs from mfgtool . uboot is coming up for me via mfgtool but i am facing issue with mfg-kernel , below is the point where mfg kernel is hanging for me.
=====================================================================================
U-Boot 2014.04-08641-g0a0bc62-dirty (Nov 30 2015 - 10:59:49)
CPU: Freescale i.MX6SOLO rev1.3 at 792 MHz
CPU: Temperature 46 C, calibration data: 0x5534d65f
Reset cause: POR
Board: MX6SOLO
I2C: ready
DRAM: 1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Using default environment
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
Found PFUZE100 deviceid=10,revid=21
Net: Phy not found
PHY reset timed out
FEC [PRIME]
Warning: failed to set MAC address
Boot from USB for mfgtools
Use default environment for mfgtools
Run bootcmd_mfg: <NULL>
=> bootz 0x12000000 0x12c00000 0x18000000
Kernel image @ 0x12000000 [ 0x000000 - 0x518b40 ]
## Loading init Ramdisk from Legacy Image at 12c00000 ...
Image Name: fsl-image-mfgtool-initramfs-imx6
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7377681 Bytes = 7 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 18000000
Booting using the fdt blob at 0x18000000
Loading Ramdisk to 4ee47000, end 4f550311 ... OK
Loading Device Tree to 4ee37000, end 4ee4688a ... OK
switch to ldo_bypass mode!
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.53-88114-gb09771a-dirty (git@build1) (gcc version 4.7 (GCC) ) #6 SMP Mon Nov 30 16:26:54 PST 2015
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: Freescale i.MX6 DualLite SABRE Smart Device Board(PFUZE100)
cma: CMA: reserved 320 MiB at 3a000000
Memory policy: ECC disabled, Data cache writealloc
On node 0 totalpages: 262144
free_area_init_node: node 0, pgdat 80caa240, node_mem_map 80d0e000
DMA zone: 2048 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 262144 pages, LIFO batch:31
PERCPU: Embedded 8 pages/cpu @81527000 s8768 r8192 d15808 u32768
pcpu-alloc: s8768 r8192 d15808 u32768 alloc=8*4096
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: console=ttymxc0,115200 rdinit=/linuxrc
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1024MB = 1024MB total
Memory: 690496k/690496k available, 358080k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80c07da0 (12288 kB)
.init : 0x80c08000 - 0x80c59240 ( 325 kB)
.data : 0x80c5a000 - 0x80cab400 ( 325 kB)
.bss : 0x80cab400 - 0x80d0db64 ( 394 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
NR_IRQS:16 nr_irqs:16 16
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32050000, Cache size: 524288 B
Booting Linux on physical CPU 0x0
Linux version 3.10.53-88114-gb09771a-dirty (git@build1) (gcc version 4.7 (GCC) ) #6 SMP Mon Nov 30 16:26:54 PST 2015
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: Freescale i.MX6 DualLite SABRE Smart Device Board(PFUZE100)
cma: CMA: reserved 320 MiB at 3a000000
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 8 pages/cpu @81527000 s8768 r8192 d15808 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: console=ttymxc0,115200 rdinit=/linuxrc
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1024MB = 1024MB total
Memory: 690496k/690496k available, 358080k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80c07da0 (12288 kB)
.init : 0x80c08000 - 0x80c59240 ( 325 kB)
.data : 0x80c5a000 - 0x80cab400 ( 325 kB)
.bss : 0x80cab400 - 0x80d0db64 ( 394 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
NR_IRQS:16 nr_irqs:16 16
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32050000, Cache size: 524288 B
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
CPU identified as i.MX6DL, silicon rev 1.3
Console: colour dummy device 80x30
Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80631890 - 0x806318e8
Brought up 1 CPUs
SMP: Total of 1 processors activated (1581.05 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Use WDOG2 as reset source
syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered
vdd1p1: 800 <--> 1375 mV at 1125 mV
vdd3p0: 2800 <--> 3150 mV at 3000 mV
vdd2p5: 2000 <--> 2750 mV at 2425 mV
cpu: 725 <--> 1450 mV
vddpu: 725 <--> 1450 mV
vddsoc: 725 <--> 1450 mV
syscon 20e0000.iomuxc-gpr: regmap [mem 0x020e0000-0x020e0037] registered
syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered
!!request miniPCIE Power On gpio
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
imx6dl-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
bio: create slab <bio-0> at 0
mxs-dma 110000.dma-apbh: initialized
usb_otg_vbus: 5000 mV
usb_h1_vbus: 5000 mV
wm8962-supply: no parameters
mipi_dsi_pwr_on: no parameters
sensor-supply: 3300 mV
i2c-core: driver [max17135] using legacy suspend method
i2c-core: driver [max17135] using legacy resume method
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c i2c-0: IMX I2C adapter registered
i2c i2c-1: IMX I2C adapter registered
i2c i2c-2: Max17135 PMIC not found!
i2c i2c-2: IMX I2C adapter registered
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Initialized.
cfg80211: Calling CRDA to update world regulatory domain
pureg-dummy: no parameters
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 7204K (bee47000 - bf550000)
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
Bus freq driver module loaded
futex hash table entries: 256 (order: 2, 16384 bytes)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) �੩ 2001-2006 Red Hat, Inc.
fuse init (API version 7.22)
msgmni has been set to 2002
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-weim 21b8000.weim: WEIM driver registered.
mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
MIPI DSI driver module loaded
imx6dl-pinctrl 20e0000.iomuxc: pin MX6DL_PAD_DISP0_DAT9 already requested by 2084000.pwm; cannot claim for lcd.32
imx6dl-pinctrl 20e0000.iomuxc: pin-67 (lcd.32) status -22
imx6dl-pinctrl 20e0000.iomuxc: could not request pin 67 on device 20e0000.iomuxc
mxc_lcdif lcd.32: Error applying setting, reverse things back
imx6dl-pinctrl 20e0000.iomuxc: pin MX6DL_PAD_DISP0_DAT9 already requested by 2084000.pwm; cannot claim for lcd.32
imx6dl-pinctrl 20e0000.iomuxc: pin-67 (lcd.32) status -22
imx6dl-pinctrl 20e0000.iomuxc: could not request pin 67 on device 20e0000.iomuxc
mxc_lcdif lcd.32: Error applying setting, reverse things back
mxc_lcdif lcd.32: can't get/select pinctrl
mxc_lcdif: probe of lcd.32 failed with error -22
mxc_sdc_fb fb.30: registered mxc display driver ldb
imx-ipuv3 2400000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
Console: switching to colour frame buffer device 128x48
mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0x1a:0xa0:0xc1
fbcvt: 1920x1080@60: CVT Name - 2.073M9
mxc_sdc_fb fb.31: registered mxc display driver hdmi
imx_epdc_fb 20f4000.epdc: Unable to get display PMIC regulator.err = 0xfffffdfb
imx-sdma 20ec000.sdma: no iram assigned, using external mem
imx-sdma 20ec000.sdma: initialized
imx-sdma 20ec000.sdma: loaded firmware 1.1
pfuze100-regulator 1-0008: Full lay: 2, Metal lay: 1
pfuze100-regulator 1-0008: FAB: 0, FIN: 0
pfuze100-regulator 1-0008: pfuze100 found.
SW1AB: 300 <--> 1875 mV at 1175 mV
SW1C: 300 <--> 1875 mV at 1175 mV
SW2: 800 <--> 3300 mV at 3000 mV
SW3A: 400 <--> 1975 mV at 1500 mV
SW3B: 400 <--> 1975 mV at 1500 mV
SW4: 800 <--> 1975 mV at 1800 mV
SWBST: 5000 <--> 5150 mV at 5000 mV
VSNVS: 1000 <--> 3000 mV at 3000 mV
VREFDDR: 750 mV
VGEN1: 800 <--> 1550 mV at 800 mV
VGEN2: 800 <--> 1550 mV at 1500 mV
VGEN3: 1800 <--> 3300 mV at 2800 mV
VGEN4: 1800 <--> 3300 mV at 1800 mV
VGEN5: 1800 <--> 3300 mV at 3000 mV
VGEN6: 1800 <--> 3300 mV at 2800 mV
Serial: IMX driver
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
console [ttymxc0] enabled
21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX
21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 62) is a IMX
serial: Freescale lpuart driver
imx sema4 driver is registered.
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
registering zl380tw_spi_driver
imx6dl-pinctrl 20e0000.iomuxc: pin MX6DL_PAD_KEY_COL1 already requested by 21f4000.serial; cannot claim for 2008000.ecspi
imx6dl-pinctrl 20e0000.iomuxc: pin-146 (2008000.ecspi) status -22
imx6dl-pinctrl 20e0000.iomuxc: could not request pin 146 on device 20e0000.iomuxc
spi_imx 2008000.ecspi: Error applying setting, reverse things back
of_dma_request_slave_channel: dma-names property missing or empty
spi_imx 2008000.ecspi: cannot get the TX DMA channel!
spi_imx 2008000.ecspi: dma setup error,use pio instead
m25p80 spi32766.0: found mr25h256, expected m25p32
m25p80 spi32766.0: mr25h256 (32 Kbytes)
M25P80 >>>>>>>>>>>>>> probe end.
spi_imx 2008000.ecspi: probed
fec 2188000.ethernet (unregistered net_device): Invalid MAC address: 00:00:00:00:00:00
fec 2188000.ethernet (unregistered net_device): Using random MAC address: 2a:82:29:6a:82:93
libphy: fec_enet_mii_bus: probed
fec 2188000.ethernet eth0: registered PHC device 0
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
ci_hdrc ci_hdrc.0: EHCI Host Controller
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ci_hdrc ci_hdrc.1: doesn't support gadget
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
elan-touch 2-0010: elan - Read Hello Packet Failed
elan-touch: probe of 2-0010 failed with error -22
egalax_ts 1-0004: Failed to read firmware version
egalax_ts: probe of 1-0004 failed with error -5
egalax_ts 2-0004: Failed to read firmware version
egalax_ts: probe of 2-0004 failed with error -5
input: max11801_ts as /devices/soc0/soc.1/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/input/input0
i2c-core: driver [isl29023] using legacy suspend method
i2c-core: driver [isl29023] using legacy resume method
snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
i2c /dev entries driver
mxc_v4l2_output v4l2_out.36: V4L2 device registered as video16
mxc_v4l2_output v4l2_out.36: V4L2 device registered as video17
mxc_v4l2_output v4l2_out.36: V4L2 device registered as video18
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails
mag3110 2-000e: check mag3110 chip ID
mag3110 2-000e: read chip ID 0xfffffffb is not equal to 0xc4!
mag3110: probe of 2-000e failed with error -22
imx2-wdt 20c0000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc1: no vqmmc regulator found
mmc1: no vmmc regulator found
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
=======================================================================================
I am using default imx6dl-sabredsd.dtb for my custim board ,Do i have to change anything in dts file for my custom board for mfg-kernel or default dtb should be ok, our emmc is interfaced on SD4 port ? please give me some suggestion , what are the other possible change i have to do in mfg kernel and DTB and uboot for flashing EMMC ,which is on SD4 ?
-Robin
Hi Igor,
I rebuild the rootfs and tried the Mfg kernel,now my system waiting in uuc app infinite "for loop" for images from window PC but PC does not detect target as mass storage device.
So now i want to get a console so that i can write the image by myself using dd , but i have no success in getting console, I have changed "linuxrc" file and disabled uuc app.
please answer these question:
Q1- if i want to get a console now with this mfg kernel, which rootfs i should use ? with default rootfs for mfg kernel i am not able to get console, i tried to running below command from linuxrc but no success:
/bin/sh ----- does not work.
busybox sh --- does not work.
/sbin/getty -L ttymxc0 115200 vt100 ---gives me a login prompt ,which is hanging and not working
what are the change i need to do in rootfs or kernel , so that i can get the console ?
Q2: can you please point me to a minimal rootfs , which can work with this mfg kernel ?
Q3. i am able to build minimal core package from yocto projetc, and it has a rootfs image *.sdcard.*.ext3 etc , how can i make them in " ***.cpio.gz.u-boot" format ?
Robin
Hi Robin
for dts changes one can look at
http://boundarydevices.com/mx6-device-tree-customization/
as for hang, this may be caused by ddr: since mfg tools firmware
should be rebuilt with new ddr settings (found from ddr test
i.MX6/7 DDR Stress Test Tool V2.30 ), refer to
attached Yocto Guide sect.6.2 The Manufacturing Tool, MFGTool
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
Thanks for the reply. i already run DDR stress v2.30 , i can run this test successfully and i have also taken all DDR setting in mfg uboot DCD.
what are the component of MFG tool i need to rebuild - i have not rebuild the rootfs and using the same from freescale mfgtool for sabre device(fsl-image-mfgtool-initramfs-imx6qdlsolo.cpio.gz.u-boot )
Do i need to prepare new rootfs , too i already rebuild the mfg uboot and kernel ????
Or will it work as i we are also using eMMC on SDHC4 (4GB) ?
-Robin
Hi Robin
one needs to change fsl-image-mfgtool-initramfs-imx6qdlsolo.cpio.gz.u-boot
with new, built using attached Yocto Guide sect.6.2 The Manufacturing Tool, MFGTool
~igor