OpenWrt Forum Archive

Topic: [SOLVED] Building image for Raspberry Pi

The content of this topic has been archived on 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello All,

I've decided to build image with all needed packages using image builder from trunk:
https://downloads.openwrt.org/snapshots … 8/generic/

The thing is that I am not receiving an .img file
I only have root.ext4 file and bootcode.bin

Do you know how to combine those two files into one .img file that I will put on SD Card?
I found file called rpi_image_builder.sh (or something like that) and tried to run it, but it is not working properly, in the code I saw that I do not have ptgen. Do you where to get ptgen? It is not in repos for linux mint and Google is not very helpful in that case.

Could you please help?

(Last edited by kb06 on 30 Jul 2016, 17:43)

I am lame.
Found a solution.
First create FAT partition with boot configuration.
Second create ext4 partition and using dd create root FS.
That's all.

The other way is to create sd card with current version and the just dd root partition with root.ext4 created by image builder.

The discussion might have continued from here.