OpenWrt Forum Archive

Topic: Need a help to understand openwrt firmware building process

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

i download source from "git clone git://git.openwrt.org/openwrt.git" ... and i build a firmware with that source by choosing target as mt7621 .. following files got generated ... but when i flash "openwrt-15.05-rc2-ramips-mt7621-mt7621-squashfs-sysupgrade.bin
" on the development platform ... it did't bootup ... looks like kernal is not starting ..

openwrt-15.05-rc2-ramips-mt7621-dir-860l-b1-squashfs-factory.bin
openwrt-15.05-rc2-ramips-mt7621-dir-860l-b1-squashfs-sysupgrade.bin
openwrt-15.05-rc2-ramips-mt7621-firewrt-squashfs-sysupgrade.bin
openwrt-15.05-rc2-ramips-mt7621-mt7621-squashfs-sysupgrade.bin
openwrt-15.05-rc2-ramips-mt7621-wsr-1166-squashfs-sysupgrade.bin
openwrt-15.05-rc2-ramips-mt7621-wsr-600-squashfs-sysupgrade.bin

my mtd partation as follow...

dev:    size   erasesize  name
mtd0: 00800000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 007b0000 00010000 "Kernel"


but when i see the example regarding the flash layout ... the partation has rootfs +kernal as well .. like

mtd0: 00020000 00010000 "u-boot"
mtd1: 00140000 00010000 "kernel"
mtd2: 00690000 00010000 "rootfs"
mtd3: 00530000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "art"
mtd5: 007d0000 00010000 "firmware"

........

Do i have change the flash layout ? ....because when i flash the compiled image ..on boot ..its is showing  1.1 Mb in Data Size .. but i load 3.3Mb size of firmware ..

please suggest any good reference ........

The discussion might have continued from here.