Welcome, Guest

Author Topic: How to build flashimage  (Read 1535 times)

zgyarmati

  • Newbie
  • *
  • Posts: 32
  • Karma: +1/-0
    • https://zgyarmati.de
How to build flashimage
« on: November 13, 2016, 12:24:44 PM »
 On the olinuxino github site there are pre-built images which can be loaded directly into the flash memory, but i failed to find any instructions how to build these image from the bootloader, factory and openwrt squashfs partitions. Is there any information available on this somewhere?
--
Zoltan Gyarmati
https://zgyarmati.de

JohnS

  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +33/-45
Re: How to build flashimage
« Reply #1 on: November 13, 2016, 04:22:43 PM »

igrinon

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: How to build flashimage
« Reply #2 on: November 13, 2016, 04:28:33 PM »
As root and for ubuntu
Get the tools required by compilation
  sudo apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc zip python

Log in as normal user.
Go to home directory
  cd ~

Create build dir
mkdir olimex
cd olimex
mkdir openwrt
cd openwrt

Get the source
  git clone https://github.com/OLIMEX/openwrt -b rt5350f

Update feeds
  ./scripts/feeds update -a
  ./scripts/feeds install -a

Clean and select packages
  make distclean
  make menuconfig

Make the project
  make -j1 V=s

zgyarmati

  • Newbie
  • *
  • Posts: 32
  • Karma: +1/-0
    • https://zgyarmati.de
Re: How to build flashimage
« Reply #3 on: November 13, 2016, 05:16:46 PM »
 Thanks for both the responses, although it's not exactly what i'm looking for:
I know how to build the u-boot and the openwrt images, but i'm looking for a way to tailor all the partition images together and be able to flash it directly to the SPI NOR flash memory, as described here: https://www.olimex.com/wiki/RT5350F-OLinuXino#Upload_prebuilt_images_using_programmer_tool

 I suppose the partition images has to be concatenated together (for example by using dd) with padding where necessary, and i'm in the hope that somebody has set this up already so i don't have to experiment with this (and risk my HW).
--
Zoltan Gyarmati
https://zgyarmati.de

vinczo

  • Newbie
  • *
  • Posts: 14
  • Karma: +1/-0
Re: How to build flashimage
« Reply #4 on: July 07, 2017, 04:34:54 PM »
I flashed the firmware (no bootloader) : https://www.olimex.com/wiki/File:Arm-usb-ocd.png
with ./flashrom but I had to pad the image to the size of the NOR flash before like so :
dd if=/dev/zero of=image_to_pad.bin seek=(NOR_flash_size_in_bytes - 1) bs=1 count=1