Utilite: Wrong Image Format for bootm command

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

Utilite: Wrong Image Format for bootm command

Postby krovetz » Sun Dec 04, 2016 9:03 pm

I'm rehabilitating a Utilite Pro that had an old version or Arch and had "kernel too old" errors.

I successfully updated the Utilite firmware

http://compulab.co.il/workspace/mediawi ... ing_images

and then followed the Arch installation instructions. After doing this, I'm getting "Wrong Image Format for bootm command" errors when attempting to boot from the SD card.


$this->bbcode_second_pass_code('', '
U-Boot SPL 2015.07-cm-fx6-3 (Sep 02 2015 - 13:30:11)
Trying to boot from MMC
spl: mmc: no boot mode left to try
Trying to boot from SPI


U-Boot 2015.07-cm-fx6-3 (Sep 02 2015 - 13:30:11 +0300)

CPU: Freescale i.MX6Q rev1.2 1200 MHz (running at 792 MHz)
Reset cause: WDOG
Board: CM-FX6
I2C: ready
DRAM: 2 GiB
NAND: 0 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
SF: Detected SST25VF016B with page size 256 Bytes, erase size 4 KiB, total 2 MiB
In: serial
Out: serial
Err: serial
PCB: 1.0
Net: FEC
Hit any key to stop autoboot: 0
CM-FX6 # run mmcboot
Booting from mmc ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
CM-FX6 # fatls mmc 2
4784220 uimage
512000 cm-fx6-firmware

2 file(s), 0 dir(s)

CM-FX6 # printenv
autoload=no
baudrate=115200
bootargs=console=ttymxc3,115200 root=/dev/mmcblk0p2 rw rootwait cm_fx6_v4l_msize=128M vmalloc=256M
bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadmmcbootscript; then run mmcbootscript; else if run mmcloadkernel; then run mmcboot; fi; fi; fi; if sata init; then if run loadsatabootscript; then run satabootscript; else if run sataloadkernel; then run sataboot; fi; fi; fi;
bootdelay=3
bootscr=boot.scr
console=ttymxc3,115200
eth1addr=00:01:c0:14:a8:df
ethact=FEC
ethaddr=00:01:c0:14:99:0f
kernel=uImage
loadaddr=0x10800000
loadmmcbootscript=fatload mmc ${mmcdev} ${loadaddr} ${bootscr}
loadsatabootscript=fatload sata ${satadev} ${loadaddr} ${bootscr}
mmcargs=setenv bootargs console=${console} root=${mmcroot} ${video}
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
mmcbootscript=echo Running bootscript from mmc ...; source ${loadaddr}
mmcdev=2
mmcloadkernel=fatload mmc ${mmcdev} ${loadaddr} ${kernel}
mmcroot=/dev/mmcblk0p2 rw rootwait
nandargs=setenv bootargs console=${console} root=${nandroot} rootfstype=${nandrootfstype} ${video}
nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 0 400000 && bootm ${loadaddr}
nandroot=/dev/mtdblock4 rw
nandrootfstype=ubifs
run_eboot=echo Starting EBOOT ...; mmc dev ${mmcdev} && mmc rescan && mmc read 10042000 a 400 && go 10042000
sataargs=setenv bootargs console=${console} root=${sataroot} ${video}
sataboot=echo Booting from sata ...; run sataargs; bootm ${loadaddr}
satabootscript=echo Running bootscript from sata ...; source ${loadaddr}
satadev=0
sataloadkernel=fatload sata ${satadev} ${loadaddr} ${kernel}
sataroot=/dev/sda2 rw rootwait
serial=CM-FX6-C1200QM-D2G-N0-ND0-U5-E-A-WB-V100-140128-0001c014990f
stderr=serial
stdin=serial
stdout=serial
video=cm_fx6_v4l_msize=128M vmalloc=256M
video_dvi=mxcfb0:dev=dvi,1280x800M-32@50,if=RGB32
video_hdmi=mxcfb0:dev=hdmi,1920x1080M-32@50,if=RGB32
video_v4l=cm_fx6_v4l_msize=128M vmalloc=256M

Environment size: 2047/8188 bytes
CM-FX6 #
')
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm

Re: Utilite: Wrong Image Format for bootm command

Postby WarheadsSE » Mon Dec 05, 2016 2:40 pm

You're running `mmcboot` directly. Read carefully what this contains. You will find something is missing.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Utilite: Wrong Image Format for bootm command

Postby krovetz » Mon Dec 05, 2016 3:26 pm

Okay I see that. But, letting the default commands run leads to trying to boot from nand. I can't see what's happening with the initial attempt to boot from mmc because it goes by so fast. Is there anything you'd like me to try in case it's a problem with the installation that needs diagnosing?
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm

Re: Utilite: Wrong Image Format for bootm command

Postby WarheadsSE » Mon Dec 05, 2016 4:47 pm

You need to check your boot.scr, as well as possibly reading bootcmd for what you need for mmc.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Utilite: Wrong Image Format for bootm command

Postby krovetz » Mon Dec 05, 2016 7:32 pm

There is no boot.scr in the current installation. Might this be the problem?
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm

Re: Utilite: Wrong Image Format for bootm command

Postby WarheadsSE » Mon Dec 05, 2016 8:23 pm

Please walk through how the entire path works, by filling in the contents of `bootcmd`
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Utilite: Wrong Image Format for bootm command

Postby krovetz » Tue Dec 06, 2016 4:28 pm

Ahhh.. I thought the "FATAL: kernel too old" was coming from trying to boot the old Arch install on the Utilite nand. But, it appears to be coming from the kernel that is in the current Utilite tarball.

$this->bbcode_second_pass_code('', '
CM-FX6 # fatls mmc 2
4784220 uimage
512000 cm-fx6-firmware

2 file(s), 0 dir(s)

CM-FX6 # mmc dev 2
switch to partitions #0, OK
mmc2 is current device
CM-FX6 # mmc rescan
CM-FX6 # run mmcloadkernel
reading uImage
4784220 bytes read in 229 ms (19.9 MiB/s)
CM-FX6 # run mmcboot
... Kernel begins to boot ...
[ 3.235895] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 3.248334] devtmpfs: mounted
[ 3.251403] Freeing init memory: 248K
FATAL: kernel too old
')
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm

Re: Utilite: Wrong Image Format for bootm command

Postby WarheadsSE » Tue Dec 06, 2016 6:06 pm

Please print the image information (there is a command, see the help) to show the details of the uImage.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Utilite: Wrong Image Format for bootm command

Postby krovetz » Tue Dec 06, 2016 6:14 pm

$this->bbcode_second_pass_code('', '
CM-FX6 # mmc dev 2
switch to partitions #0, OK
mmc2 is current device
CM-FX6 # mmc rescan
CM-FX6 # run mmcloadkernel
reading uImage
4784220 bytes read in 229 ms (19.9 MiB/s)
CM-FX6 # iminfo

## Checking Image at 10800000 ...
Legacy image found
Image Name: Linux-3.0.35-18-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4784156 Bytes = 4.6 MiB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
')
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm

Re: Utilite: Wrong Image Format for bootm command

Postby WarheadsSE » Tue Dec 06, 2016 8:42 pm

Yup, that's pretty old. You might want to look at moving off that original package.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Freescale

Who is online

Users browsing this forum: No registered users and 3 guests