I trying to use the ImageBuilder to build the firmware for my AR300M but I am having problems.
First of all there does not seem to be a profile for it. What profile should I use?
I tried to use the GL-MT300A profile just to see if I would be able to generate anything, but I got this error:
/home/mh/test/openwrt/OpenWrt-ImageBuilder-ramips-mt7620.Linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/linux-3.18.27/scripts/dtc/bundled/dtc: relocation error: /lib/x86_64-linux-gnu/libpthread.so.0: symbol __libc_vfork, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Makefile:1086: recipe for target 'install' failed
To complete your instructions: The file to modify is gli.mk in the directory you mentioned.
With your patch the make runs through, I can find a file “openwrt-ar71xx-generic-gl-ar300m-squashfs-sysupgrade.bin” in “build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/tmp” which I assume is the image.
This makes things a little complicated. The firmware is for Nor so you need to boot into Nor flash.
The device always boot into Nand flash. If you want to boot into nor flash, check the docs Overview - GL.iNet Docs.
When you boot into the firmware, execute the following command and you will boot into Nor firmware. You will then be able to replace the firmware using the its UI. So I suggest that you put first two command in your /etc/rc.local so that it can always boot into Nor flash.
So does that mean with the above instructions I can build an image for the nor-flash only and if I want to use it I have to boot into nor-flash from now on forever?
Is there no way to update the nand-flash?
If not why? Is nand-flash not rewritable or is it a limitation of the image-builder?
As above I changed “mod-usb-storage” to “kmod-usb-storage” on line 62 in target/linux/ar71xx/generic/profiles/gli.mk as above but get this error when I do a “make image PROFILE=GLAR300MNAND”: