Skip to content
mozzwald edited this page Jun 4, 2017 · 7 revisions

SD Card

To boot bleeding edge from SD Card you need a Zipit Z2 with the u-boot bootloader installed. If you have a stock Zipit (original factory bootloader/application) then you should follow the Internal Flash instructions below to get the new bootloader. If you have an older version of u-boot (or the latest) these instructions should work to run bleeding edge from sd card.

  • Format your sd card with an ext2 partition
  • Extract the rootfs to the sd card
    • sudo tar -pxvf openwrt-pxa-zipitz2-rootfs.tar.gz -C /path/to/mounted/sdcard/
  • Copy the kernel to /boot/uImage on the sd card
    • sudo cp openwrt-pxa-uImage /path/to/mounted/sdcard/boot/uImage
  • Properly unmount/eject the sd card from the computer and insert into the Zipit
  • Power on the Zipit and it should boot to bleeding edge

A common issue is that some sd cards don't seem to work in the Zipit. If you have an SD card that doesn't want to boot on the Zipit try the following:

  • Mount the sd card on a computer (check/repair file system errors if needed)
  • On the sd card, copy /boot/uboot.script.sdfix to /boot/uboot.script
    • sudo cp /path/to/mounted/sdcard/boot/uboot.script.sdfix /path/to/mounted/sdcard/boot/uboot.script
  • Properly unmount/eject the sd card from the computer and insert into the Zipit
  • Power on the Zipit and it should boot to bleeding edge

Internal Flash

An easy installation script/rootfs is available to install various Linux distributions on the Zipit. It runs from sd card on a stock or u-boot Zipit. More information about the script is available here. If your Zipit currently has the 2.6.29 kernel and boots with the "OpenZipit" Logo, follow the instructions here to get the u-boot bootloader before continuing.

Follow these instruction to install the latest u-boot bootloader and bleeding edge rootfs to internal flash:

  • Format your sd card with a fat32 partition
  • Extract the z2uFlasher zip file to the sd card
  • Properly unmount/eject the sd card from the computer and insert into the Zipit
  • Plug in and Power on the Zipit; it should boot to the z2uFlasher menu
  • Use the menu to Create a Backup if you wish
  • Choose Install to Flash and select the bleeding edge install
  • When prompted to install u-boot and u-boot environment, choose yes
  • Allow the script to finish writing the mtdblocks (it may take a while)
  • When complete, it will notify you. Shutdown the Zipit and remove the sd card
  • Power on the Zipit and it should boot to bleeding edge from internal flash

The internal 8Mb of NOR flash on the Zipit has this layout for bleeding edge:

mtdblock Name Size(bytes) Start[hex] Size[hex]
0 u-boot 262144 0x00000 0x40000
1 u-boot-env 65536 0x40000 0x10000
2 kernel ? 0x50000 ?
3 squashfs ? ? ?
4 jffs2 ? ? ?
5 firmware 8060928 0x50000 0x7B0000

Flash partition sizes for the kernel, squashfs and jffs are automatically calculated at image creation time and follow the above layout. Depending on package selection in the bleeding edge build, these partition sizes may change. If upgrading to a newer build, it is recommended to use the firmware image file which will replace all three of these partitions in one write. Doing so will erase any files you have stored in the jffs2 partition; you should backup any files you want to keep.

Upgrading Internal Flash

The firmware image file contains the kernel, squashfs and jffs which can be written to to mtdblock5 (firmware) from a bleeding edge booted sd card: dd if=openwrt-pxa-firmware.img of=/dev/mtdblock5.

Clone this wiki locally