OpenWrt Forum Archive

Topic: openwrt compiler result image issue

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

Hi Every one:
I'm a newer to openwrt, but i have experience working on other platform of ucLinux/Linux system.

now, i get the source code from git repository and the first time i didn't change any other settings only set the target boart as: ralink28xx/ rt5350/HLK-RM04 profile.

then, after complier, i could get the correct image openwrt-ramips-rt305x-hlk-rm04-squanshfs.bin.

i think this image contains the rootfs and the kernel, the size was around 2.8MB.
after i changed some setting just like enable LUCI and so on, i also could get the correct image for programming the spi flash memory. the size increased to 3.4MB.

but later, i didn't know where i changed in the menuconfig, i never get the correct image anymore. but the compiler result shows finised without errors. i only get the kernel image (around 900KB) and the rootfs image (2.8MB). the purpose was get an image conbined these two packs. So that i could program the image to the flash memory use the programer made by me.
i ever meet similar issue on blackfin DSP uclinux builder, that time because i deselected the rootfs image type, but now, i checked all the settings and didn't found this error. i hope some one could tell me what's the root case. many thanks.


by the way, i want to change the wifi mac in the source code. my platform was ramips based RT5350, 8MBYTE flash / 32 MB SDRAM (I changed it myself).

Waiting good new online.

smile

Most likely too many packages and firmware size exceeds max. size for your device.
Check detailed build log for messages about that.

hnyman wrote:

Most likely too many packages and firmware size exceeds max. size for your device.
Check detailed build log for messages about that.

Thanks for your reply.
the default paltform info was 4MB flash and 16MB SDRAM. i modified to 8MB flash and 32MB SDRAM. for the SDRAM i already changed to 32MB already and it was working.

my question was where can i change the flash size so that the build could generate the correct image? In the /dts/HLKRM04.dts file or menuconfig line?

(Last edited by astankvai on 24 Apr 2014, 08:37)

Either the device specification .dts? or the image Makefile. Usually the max size is set in the image Makefile.
not .config file.

hnyman wrote:

Either the device specification .dts? or the image Makefile. Usually the max size is set in the image Makefile.
not .config file.


Dear hnyman,
OK understand.
So please forgive my fool question, I didn't know which make file i need to modify.
because there are so many make file.
can you tell me the makefile location so that i could modify it myself?

thanks.

hnyman wrote:

The method setting device hardware parameters differs by platform, so there is no correct generic answer.
I have no experience on ramips platform architecture, (as I am ar71xx guy).

But my first guesses would be:
https://dev.openwrt.org/browser/trunk/t … e/Makefile or
https://dev.openwrt.org/browser/trunk/t … LKRM04.dts


Dear hnyman,
Great, now it could get the wanted firmwares.

firstly, i changed the HLKRM04.dts, but it doesn't work. Later i changed the Makefile just you mention one, and it works.

But i meet another issue, when i logged in try to scan wifi, i got an error:

This page contains the following errors:
error on line 111 at column 39: AttValue: ' expected
Below is a rendering of the page up to the first error.

did you ever meet such kind of issue?

and i think later i'll transfer to AR9xxx platform due to power consumption issue.

thanks for you great support.

Hi,

what I have to do with actual trunk version?
I've ordered the HLKRM-04-E with 8/32MiB.
I changed the .dts for use 32MiB SDRAM, works fine.
But what I have to change for the 8MiB flash?
I tryed the .dts file ( 3b to 7b ) and the makefile ( DEFAULT4M to DEFAULT8M ).
But this does bot work.
Did I forgot something?

Bugs

The discussion might have continued from here.