U-Boot to load zImage

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

U-Boot to load zImage

Postby graffitici » Mon Apr 07, 2014 7:42 pm

Hi,

I'd like to compile my own kernel for the Wandboard Dual. I found the PKGBUILD `linux-imx6-wandboard-dt` which seemed like a good place to start. I compiled the kernel, and installed it using pacman:

# pacman -Qo /boot/zImage
/boot/zImage is owned by linux-imx6-wandboard-dt 3.10.17-5

In the boot folder, there is also the uImage from the regular sources:
# pacman -Qo /boot/uImage
/boot/uImage is owned by linux-wandboard 3.0.35-6

But whenever I boot, I get the old 3.0.35 kernel. Does U-Boot search for uImage, and falls back to zImage? I tried moving uImage outside of that folder, but the device didn't boot in that case.

Any idea why this could be happening?

Thanks
graffitici
 
Posts: 8
Joined: Mon Apr 07, 2014 7:21 pm

Re: U-Boot to load zImage

Postby pepedog » Mon Apr 07, 2014 7:55 pm

I think installing package uboot-wandboard should take care of this.
You can have both kernel packages installed, on the wb uImage is first choice
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: U-Boot to load zImage

Postby graffitici » Mon Apr 07, 2014 8:31 pm

I actually do have the latest version of uboot-wandboard-dual.

So when both uImage and zImage are present, uImage is prioritized? That explains the issue, since uImage is not created by that PKGBUILD. Do you happen to know what happens if uImage is not present? It seems like it actually doesn't fall back to finding zImage? Can I reverse the order so that zImage is searched first (in uEnv.txt?!)? Or should I create a uImage from the zImage that I have?

Thanks!

$this->bbcode_second_pass_quote('', '
')# pacman -Qi uboot-wandboard-dual
Name : uboot-wandboard-dual
Version : 2014.01-1
Description : U-Boot for Wandboard Dual
Architecture : armv7h
URL : http://git.denx.de/u-boot.git/
Licenses : GPL
Groups : None
Provides : None
Depends On : None
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : uboot-wandboard-solo uboot-wandboard-quad
Replaces : None
Installed Size : 279.00 KiB
Packager : Arch Linux ARM Build System <builder+xu2@archlinuxarm.org>
Build Date : Wed 19 Mar 2014 03:47:13 PM MDT
Install Date : Mon 07 Apr 2014 01:07:20 PM MDT
Install Reason : Explicitly installed
Install Script : Yes
Validated By : SHA256 Sum
graffitici
 
Posts: 8
Joined: Mon Apr 07, 2014 7:21 pm

Re: U-Boot to load zImage

Postby Yenal » Mon Apr 07, 2014 8:38 pm

If you have access over serial console you can change uboot settings to prefer zImage or just deactivate the use of uImage... there is also a way to access the settings on a running system ..see http://www.denx.de/wiki/U-Boot/Documentation

edit: if you use latest u-boot pkg and there is no /boot/uImage it will just boot the zImage (but afaik device tree file is needed for zImage)
Yenal
 
Posts: 18
Joined: Wed Jan 29, 2014 6:31 pm

Re: U-Boot to load zImage

Postby kmihelich » Tue Apr 08, 2014 12:10 am

The latest uboot-wandboard package that you have works, unless you have an environment saved on the SD card that is replacing the default environment provided, which is where the logic is.

If a /boot/uImage is present, it will boot that first.
If a /boot/uImage is not present, and a /boot/dtbs/imx6dl-wandboard.dtb (solo/dual, imx6q-wandboard.dtb for quad) is present, it will load that and /boot/zImage, and boot those two.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: U-Boot to load zImage

Postby graffitici » Tue Apr 08, 2014 10:00 pm

Thanks all for the replies. I moved uImage out of the way, and I can boot with zImage that way.

I would have rather have switched the priorities so that uImage is the fallback in case I mess up the zImage one, but all works for now. Thanks!
graffitici
 
Posts: 8
Joined: Mon Apr 07, 2014 7:21 pm


Return to Freescale

Who is online

Users browsing this forum: No registered users and 12 guests