AnsweredAssumed Answered

iMXUL pico som board config

Question asked by Matti Sillanpää on Jul 5, 2018
Latest reply on Jul 6, 2018 by Matti Sillanpää

Hi.

 

I'm trying to use Technexion iMX6UL_emmc som with pico pi board. I'm using NXP supplied avs demo yocto recepi as base with technexion tn-imx_4.1.15_2.0.0_ga kernel branch. The som is 14x14 module with 512Mb ram and emmc. Picopi board is revision b1.

 

I've struggled to find any info regarding correct uboot configuration for this. I'm currently using picosom-imx6ul_defconfig and imx6ul-pico_pi.dtb as device tree.

 

I've noticed that there's no uEnv.txt for this bootloader and the memory size is 256 instead of 512. Also the core is at 398Mhz instead of 500Mhz.

 

The main issue is that the kernel boot stops as it tries to mount /dev/mmcblk0p2 as root. I've tried setting the root and mmcroot to /dev/mmcblk0p1, however the mmcroot cannot be changed (it changes back after boot even with saveenv).

 

U-Boot 2015.04tn-imx_v2015.04_4.1.15_1.0.0_ga+g6fd697c (Jul 05 2018 - 10:12:04)

CPU: Freescale i.MX6UL rev1.1 at 396 MHz
CPU: Temperature 52 C
Reset cause: POR
Board: PicoSOM i.mx6UL
Compatible baseboard: dwarf, hobbit, nymph, pi
I2C: ready
DRAM: 256 MiB
PMIC: PFUZE300 DEV_ID=0x30 REV_ID=0x11
MMC: FSL_SDHC: 0
Display: AT070TN94 (800x480)
Video: 800x480x24
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc0(part 0) is current device
Net: FEC1
Normal Boot
Hit any key to stop autoboot: 0
=> print
baseboard=pi_creoir_hat
baudrate=115200
boot_fdt=try
bootargs=console=ttymxc5,115200 cma=128M root=/dev/mmcblk0p1 rootwait rw
bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmi
bootcmd_mfg=bootz 0x87860000
bootdelay=1
bootenv=uEnv.txt
bootscript=echo Running bootscript from mmc ...; source
console=ttymxc5
default_baseboard=hobbit
detectmem=if test ${memdet} = 512MB; then setenv memsize cma=128M; else setenv memsize cma=96M; fi
ethact=FEC1
ethaddr=00:1f:7b:11:09:6a
ethprime=FEC
fdt_addr=0x83000000
fdt_high=0xffffffff
fdtfile=imx6ul-pico_hobbit.dtb
filesize=5bca50
image=zImage
importbootenv=echo Importing environment from mmc ...; env import -t -r $loadaddr $filesize
initrd_high=0xffffffff
loadaddr=0x80800000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
memdet=512MB
memsize=cma=128M
mmcargs=setenv bootargs console=${console},${baudrate} ${memsize} root=${mmcroot}
mmcautodetect=yes
mmcboot=echo Booting from mmc ...; run detectmem; run mmcargs; echo baseboard is ${baseboard}; run setfdt; if test ${boot_fdt} = yes || test ${boot_fdt;
mmcdev=0
mmcpart=1
mmcroot=/dev/mmcblk0p2 rootwait rw
panel=AT070TN94
script=boot.scr
setfdt=setenv fdtfile ${som}_${baseboard}.dtb
som=imx6ul-pico
splashpos=m,m

Environment size: 2109/8188 bytes

 

Should I use different kernel branch? Or perhaps different uboot target?

Outcomes