boot error in linux-utilite-dt

This forum is for supported devices using an ARMv7 Freescale SoC.

boot error in linux-utilite-dt

Postby ralix » Tue Apr 14, 2015 3:33 pm

Hello,

I tried to go on a kernel update from 3.0.35 to 3.10.xx-dt on my Utilite. The uboot I have put on the new stand according to the instructions in Utilitewiki. I now get the following error when booting ...

U-Boot SPL 2014.10-cm-fx6-2.1 (Jan 19 2015 - 11:28:10)
Trying to boot from MMC
Card did not respond to voltage select!
spl: mmc_init failed: err - -17
Trying to boot from SPI


U-Boot 2014.10-cm-fx6-2.1 (Jan 19 2015 - 11:28:10)

CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: CM-FX6
I2C: ready
DRAM: 2 GiB
NAND: 0 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
SF: Detected M25PX16 with page size 256 Bytes, erase size 64 KiB, total 2 MiB
In: serial
Out: serial
Err: serial
Net: FEC
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
Card did not respond to voltage select!
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part
SATA Device Info:
S/N: 132972401252
Product model number:
Firmware version:
Capacity: 62533296 sectors
reading boot.scr
308 bytes read in 128 ms (2 KiB/s)
Running bootscript from sata ...
## Executing script at 10800000

SATA device 0: Model: Firm: Ser#: 132972401252
Type: Hard Disk
Supports 48-bit addressing
Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
... is now current device
reading uImage
** Unable to read file uImage **
## Booting kernel from Legacy Image at 10800000 ...
Image Name: Utilite boot
Created: 2015-02-06 22:52:49 UTC
Image Type: ARM Linux Script (uncompressed)
Data Size: 244 Bytes = 244 Bytes
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 236 Bytes = 236 Bytes
Verifying Checksum ... OK
Wrong Image Type for bootm command
ERROR: can't get kernel image!
CM-FX6 #

Regards Ralix
ralix
 
Posts: 19
Joined: Wed Feb 05, 2014 5:04 am

Re: boot error in linux-utilite-dt

Postby pepedog » Tue Apr 14, 2015 4:48 pm

You are going to have to play with uboot environment.

Set to default
env default -a

Then printenv to find parts to alter, ie zimage and the dtb file.
Zimage is used with bootz, u image uses bootm

If it works, saveenv after repeating above
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: boot error in linux-utilite-dt

Postby ralix » Wed Apr 15, 2015 12:48 am

Hi,

ok this my: printenv

The next steps I did not exactly understand.

CM-FX6 # printenv
autoload=no
baudrate=115200
bootcmd=run setupmmcboot;mmc dev ${storagedev};if mmc rescan; then run trybootsmz;fi;run setupusbboot;if usb start; then if run loadscript; then run bootscript;fi;fi;run setupsataboot;if sata init; then run trybootsmz;fi;run setupnandboot;run nandboot;
bootdelay=2
bootm_low=18000000
bootscript=echo Running bootscript from ${storagetype} ...;source ${loadaddr};
console=ttymxc3,115200
doboot=bootm ${loadaddr}
doloadfdt=false
dtb=cm-fx6.dtb
ethprime=FEC0
fdtaddr=0x11000000
kernel=uImage-cm-fx6
loadaddr=0x10800000
loadfdt=load ${storagetype} ${storagedev} ${fdtaddr} ${dtb};
loadkernel=load ${storagetype} ${storagedev} ${loadaddr} ${kernel};
loadscript=load ${storagetype} ${storagedev} ${loadaddr} ${script};
mmcargs=setenv bootargs console=${console} root=${mmcroot} ${video}
mmcroot=/dev/mmcblk0p2 rw rootwait
nandargs=setenv bootargs console=${console} root=${nandroot} rootfstype=${nandrootfstype} ${video}
nandboot=if run nandloadkernel; then run nandloadfdt;run setboottypem;run storagebootcmd;run setboottypez;run storagebootcmd;fi;
nandloadfdt=nand read ${fdtaddr} 780000 80000;
nandloadkernel=nand read ${loadaddr} 0 780000;
nandroot=/dev/mtdblock4 rw
nandrootfstype=ubifs
panel=HDMI
preboot=usb start
run_eboot=echo Starting EBOOT ...; mmc dev 2 && mmc rescan && mmc read 10042000 a 400 && go 10042000
sataargs=setenv bootargs console=${console} root=${sataroot} ${video}
sataroot=/dev/sda2 rw rootwait
script=boot.scr
setboottypem=setenv kernel uImage-cm-fx6;setenv doboot bootm ${loadaddr};setenv doloadfdt false;
setboottypez=setenv kernel zImage-cm-fx6;setenv doboot bootz ${loadaddr} - ${fdtaddr};setenv doloadfdt true;
setupmmcboot=setenv storagetype mmc; setenv storagedev 2;
setupnandboot=setenv storagetype nand;
setupsataboot=setenv storagetype sata; setenv storagedev 0;
setupusbboot=setenv storagetype usb; setenv storagedev 0;
stderr=serial,vga
stdin=serial,usbkbd
stdout=serial,vga
storagebootcmd=echo Booting from ${storagetype} ...;run ${storagetype}args; run doboot;
trybootk=if run loadkernel; then if ${doloadfdt}; then run loadfdt;fi;run storagebootcmd;fi;
trybootsmz=if run loadscript; then run bootscript;fi;run setboottypem;run trybootk;run setboottypez;run trybootk;
video_dvi=mxcfb0:dev=dvi,1280x800M-32@50,if=RGB32
video_hdmi=mxcfb0:dev=hdmi,1920x1080M-32@50,if=RGB32
ralix
 
Posts: 19
Joined: Wed Feb 05, 2014 5:04 am

Re: boot error in linux-utilite-dt

Postby pepedog » Wed Apr 15, 2015 5:17 pm

You need to edit setboottypez and dtb
In setboottypez change zImage part to zImage
The dtb name is in the boot directory (I moved home, can't find anything)
edit is a nice uboot command
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: boot error in linux-utilite-dt

Postby ralix » Thu Apr 16, 2015 4:21 am

Hi pepedog,

Thanks for your help!!!
$this->bbcode_second_pass_code('', '
[root@mordor-dev ~]# cat /proc/version
Linux version 3.10.70-1-ARCH (builduser@leming) (gcc version 4.9.2 20141224 (prerelease) (GCC) ) #1 SMP PREEMPT Sat Feb 28 07:23:05 MST 2015
')
I can boot now. The next steps are testing then kodi/cec ;-)

Regards Ralix
ralix
 
Posts: 19
Joined: Wed Feb 05, 2014 5:04 am

Re: boot error in linux-utilite-dt

Postby ralix » Fri Apr 24, 2015 9:00 am

Hello,

With this kernel, there is no cec device...
I'm not sure what I can do now. The proposal from the thread: "No hdmi-cec on Utilite (3.14.14) " seems not really to help.

Regards Ralix
ralix
 
Posts: 19
Joined: Wed Feb 05, 2014 5:04 am


Return to Freescale

Who is online

Users browsing this forum: No registered users and 7 guests