[meta-freescale] Kernel freezes during boot, built from Dora for iMX.6 Quad
Isaac Nickaein
nickaein.i at gmail.com
Wed Feb 18 07:19:36 PST 2015
The console is set in the uboot "default_bootargs" variable as
default_bootargs=set bootargs init=/linuxrc console=ttymxc0,115200 ro
debug panic=1 video=${video_mode} ${mtdparts} ${append_bootargs}
This did the job with the old kernel. Should I do some configuration
to kernel of core-minimal-image to get the serial console working?
I need to apply this patch and some other modifications to the kernel
source code: https://community.freescale.com/docs/DOC-94019
I have successfully done this on the kernel 3.0.35 provided by Ka-Ro.
Now to switch to Yocto for development I want to make sure all things
can be ported successfully. So, I chose a branch of Yocto with kernel
3.0.35 (dora) to see if the things still work. I will sure try dizzy
next.
The following is the list of all uboot variables:
autoload=no
autostart=no
baseboard=stk5-v3
baudrate=115200
boot_mode=jffs2
bootargs=init=/linuxrc console=ttymxc0,115200 ro debug panic=1
video=mxcfb0:dev=bt656,BT1120-PAL,if=BT1120,fbpix=RGB24
mtdparts=gpmi-nand:1m at 128k(u-boot),384k(env),4m(linux),64m at 9728k(rootfs),55168k(userfs),128k(dtb),512k(bbt)ro
ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs
bootargs_mmc=run default_bootargs;set bootargs ${bootargs}
root=/dev/mmcblk0p3 rootwait
bootargs_nand=run default_bootargs;set bootargs ${bootargs}
root=/dev/mtdblock3 rootfstype=jffs2
bootargs_nfs=run default_bootargs;set bootargs ${bootargs}
root=/dev/nfs ip=dhcp nfsroot=${nfs_server}:${nfsroot},nolock
bootargs_ubifs=run default_bootargs;set bootargs ${bootargs}
ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs
bootcmd=run bootcmd_ubifs
bootcmd_mmc=set autostart no;run bootargs_mmc;fatload mmc 0
${loadaddr} uImage;run bootm_cmd
bootcmd_nand=set autostart no;run bootargs_nand;nboot linux;run bootm_cmd
bootcmd_net=set autostart no;run bootargs_nfs;dhcp;run bootm_cmd
bootcmd_ubifs=set autostart no;run bootargs_ubifs;nboot linux;run bootm_cmd
bootdelay=4
bootfile=uImage-3.0.35_tx6
bootm_cmd=bootm
cpu_clk=800
default_bootargs=set bootargs init=/linuxrc console=ttymxc0,115200 ro
debug panic=1 video=${video_mode} ${mtdparts} ${append_bootargs}
dnsip=10.1.1.1
ethact=FEC
ethaddr=00:0c:c6:79:aa:6f
fdtaddr=11000000
fdtsize=0000a204
fileaddr=18000000
filesize=3dc92c
gatewayip=10.1.1.241
ipaddr=10.1.1.163
loadaddr=18000000
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=gpmi-nand
mtdparts=mtdparts=gpmi-nand:1m at 128k(u-boot),384k(env),4m(linux),64m at 9728k(rootfs),55168k(userfs),128k(dtb),512k(bbt)ro
netmask=255.255.0.0
nfsroot=/tftpboot/rootfs
otg_mode=device
partition=nand0,0
serverip=10.1.1.129
stderr=lcd
stdin=serial
stdout=lcd
touchpanel=tsc2007
ver=U-Boot 2013.07-00115-g828ccd0 (Aug 21 2013 - 11:45:45)
video_mode=mxcfb0:dev=bt656,BT1120-PAL,if=BT1120,fbpix=RGB24
On Wed, Feb 18, 2015 at 6:26 PM, Daiane Angolini <daiane.list at gmail.com> wrote:
> On Wed, Feb 18, 2015 at 11:39 AM, Isaac Nickaein <nickaein.i at gmail.com> wrote:
>> Hi,
>>
>> I am trying to build Kernel 3.0.35 for my iMX.6Q. I am using Ka-Ro
>> TX6Q (http://www.karo-electronics.com/tx6q.html) development kit which
>> is compatible with the SabreSD boards.
>>
>> I've downloaded the Dora branch, set it up for imx6qsabresd board and
>> bitbaked core-image-minimal based on this tutorial:
>>
>> https://community.freescale.com/servlet/JiveServlet/previewBody/95096-102-10-7847/yocto_tutorial.pdf
>>
>> After flashing the uImage onto the NAND, the kernel freezes at
>> "Disabling LCD". Here is the output on the serial console:
>
> Do you have console enabled on your kernel command line?
>
>
> Why do you need to use such old branch/kernel? If this is "compatible
> with the SabreSD boards" I'm sure you´re going to succeed if using
> dizzy
>
>
> Daiane
>
>
>
>
>>
>>
>>
>> U-Boot 2013.07-00115-g828ccd0 (Aug 21 2013 - 11:45:45)
>>
>> CPU: Freescale i.MX6Q rev1.2 at 792 MHz
>> Reset cause: POR
>> Temperature: 48 C, calibration data 0x59c51469
>> Board: Ka-Ro TX6Q-1xx0
>> I2C: ready
>> DRAM: 1 GiB
>> VDDSOC set to 1420mV
>> VDDCORE set to 1420mV
>> NAND: 128 MiB
>> MMC: FSL_SDHC: 0, FSL_SDHC: 1
>> Invalid color depth: '1120' in video_mode; using default: '24'
>> IPU HW Rev: 4
>> CPU clock set to 792.000 MHz
>> Baseboard: stk5-v3
>> MAC addr from fuse: 00:0c:c6:79:aa:6f
>> Net: FEC
>> Hit any key to stop autoboot: 0
>>
>> Loading from nand0, offset 0x180000
>> Image Name: Linux-3.0.35-4.1.0+yocto+gbdde70
>> Image Type: ARM Linux Kernel Image (uncompressed)
>> Data Size: 4042436 Bytes = 3.9 MiB
>> Load Address: 10008000
>> Entry Point: 10008000
>> ## Booting kernel from Legacy Image at 18000000 ...
>> Image Name: Linux-3.0.35-4.1.0+yocto+gbdde70
>> Image Type: ARM Linux Kernel Image (uncompressed)
>> Data Size: 4042436 Bytes = 3.9 MiB
>> Load Address: 10008000
>> Entry Point: 10008000
>> Verifying Checksum ... OK
>> Loading Kernel Image ... OK
>>
>> Starting kernel ...
>>
>> Disabling LCD
>>
>>
>> #### serial console output ends here ####
>> --
>> _______________________________________________
>> meta-freescale mailing list
>> meta-freescale at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-freescale
More information about the meta-freescale
mailing list