I'm working on porting OpenWRT to some new hardware. A lot of this is new to me (previous embedded work has been on much simpler systems - PICs, etc), so I'm learning a lot as I go.
Anyway, I'm working on the Makefile found in openwrt/target/linux/ar71xx/image/Makefile
I've added line 2137 to that makefile:
$(eval $(call SingleProfile,EnGenius,64k,EAP1200H,eap1200h,EAP1200H,ttyS0,115200,$$(eap1200h_mtdlayout),KRuImage,,0x61))
I can't work out what the last parameter, '0x61' is used for. In fact, I can't even work out where this parameter eventually goes.
As far as I can trace, there's a definition on line 942 of that makefile:
SINGLE_PROFILES:=
# $(1) : name of image build method to be used, e.g., TPLINK-LZMA, AthLzma.
# $(2) : name of the build template to be used, e.g. 64k, 64kraw, 128k, etc.
# $(3) : name of the profile to be defined.
# $(4) : board name.
# $(5)~$(7) : arguments for $(mkcmdline)
# board=$(1) console=$(2),$(3)
# $(8)~$(14): extra arguments.
define SingleProfile
# $(1): action name, e.g. loader, buildkernel, squashfs, etc.
define Image/Build/Profile/$(3)
$$(call Image/Build/Template/$(2)/$$(1),$(1),$(4),$$(call mkcmdline,$(5),$(6),$(7)),$(8),$(9),$(10),$(11),$(12),$(13),$(14))
endef
SINGLE_PROFILES += $(3)
endef
So this parameter, now $10, gets passed to another macro, "Image/Build/Template/$(2)/$$(1)", but from there I can't follow what happens.
I would appreciate some help on this! I have already built and programmed the router with my first effort firmware - it goes into kernel panic, but fortunately the bootloader is intact.
A.