Home > u-boot, zipit > Z2 bootloaders

Z2 bootloaders

So what’s the deal with Zipit Z2 bootloaders? Well, there are two of them 🙂 From factory the Z2 comes with bootloader called “blob”. It is simple bootloader with source and modifcations published at linux.zipitwireless.com site but there are few issues with it:

  • it supports only serial console (no keyboard or lcd) so when you flash wrong kernel you need to do serial mod to recover
  • it boots only kernel from internal flash (no sd card)
  • it gets the Z2 machine id wrong (it reuses one allocated for Mainstone board) so it does not boot recent kernels built with correct machine id allocated for Z2
  • there is a rumour that the actual binary flashed in Z2 is built from slightly different source and previous attempts to build blob binary from published sources resulted in bricked zipit

The solution to all this is called u-boot. Sources for Z2 version  is currently published in marex‘s devel branch of u-boot-pxa tree and there are also some out of tree patches. One mentioned here is for implementing  poweroff/deep sleep on shutdown or reset like blob does, and the other two are currently mine. The first one fixes flaky pxa27x-mkp keyboard driver and the second one implements proper lcd console rotation because the native Z2 LCD panel orientation is 90 degrees rotated. The difference can be seen here:

This shows chain-loading my u-boot version from original u-boot flashed in the device.

For building and testing u-boot there is a great set of posts in Geordy’s blog. Good start is this one.

Advertisements
Categories: u-boot, zipit
  1. hackeras32
    June 10, 2016 at 21:18

    hi, if I flash an os on my zipit will the blob bootloader be gone?

    btw thanks for the great info about zipit bootloaders!

    • June 17, 2016 at 11:35

      hi, it depends on what you exactly mean by ‘flash an os’ but most probably the answer is yes. bootloader is located at the beginning of flash memory and e.g. mozzwald’s flasher from https://mozzwald.com/downloads overwrites the bootloader too. It can also do a backup of stock system including BLOB bootloader so you can restore it. Also if you flash iz2jffs v5.11 via the flasher the BLOB gets restored too because iz2jffs is based on stock os.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: