Self compiled image too big

I do not understand what happens.
Same config of a year ago and says file too large.

https://pastebin.com/hUkcrCyX

This project

![image|308x500](upload://9xeEsCUxVEYF6b6Y4zUBzGr4IRI.png) git clone https://git.openwrt.org/openwrt/openwrt.git
./scripts/feeds update -a
./scripts/feeds install -a

Copy custom on /files/

Change to  a5-v11
/target/linux/ramips/image/rt305x.mk   (Flash Size  8M)
/tools/firmware-utils/src/mkporayfw.c    (Flash Size  8M)
/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
&esw {
	mediatek,portmap = <0x00>;
	mediatek,portdisable = <0x0f>;
};
/target/linux/ramips/base-files/etc/board.d/02_network
a5-v11)
	ucidef_set_interface_lan "eth0.1"
	ucidef_add_switch "switch0" "6@eth0"
	ucidef_add_switch_vlan "switch0" "1" "6t"
	;;

make menuconfig   (.config)
	Target  "Mediatek Ralink MIPS"
	Subtarghet  "RT5350"
	Targhet profile "A5-V11"
	Base system:
		Block-mount  - block device mounting and checking
		Blockd - Block device automounting
	Global Build Settings  ---->
		Select all taghet
		Select all 
	Kernel module ---->
		Filesystem --->
			Kmod-fs-msdos
			Kmod-fs-vfat
		Usb Support --> 
			kmod-usb2
			kmod-usb-uhci
			kmod-usb-ohci
			kmod-usb-storage
			kmod-usb-storage-extras
			kmod-usb-storage-uas
			kmod-usb-wdm
	Network ---->
		Web Server ---->
			apache
		Iperf
		Iperf3
		ppp
		ppp-mod-pppoa
		ppp-mod-pppoe
		ppp-mod-pppol2tp
		ppp-mod-pptp
	Luci ---->
		Collection ---->
			Luci
		Application ----> 
			Luci-app-samb
		Themes ---->
			Material
	Utility -->
		usb-modeswitchusbutils
	
	
 make -j1 V=s    (debug)

The A5-V11 has only 4MB flash. Where do the 8MB come from?

Same change I did a year ago.

On
/target/linux/ramips/image/rt305x.mk
I've changed in

define Device/unbranded_a5-v11
  MTK_SOC := rt5350                                                                                                       
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := \
        $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B A5-V11 -F 8M
DEVICE_VENDOR := DEVICE_MODEL := A5-V11
DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2
SUPPORTED_DEVICES += a5-v11
endef
TARGET_DEVICES += unbranded_a5-v11

On
/tools/firmware-utils/src/mkporayfw.c
I've changed in

static struct board_info boards[] = {
        { 
                  .id  = "A5-V11", 
                   .hw_id    = HWID_A5_V11,                                                                                          
                   .layout_id   = "8M",
                   .key            = KEY_A5_V11,
           }, {

My hardware is similar to a5-v1, but not same.
Has more flash and RAM
https://shop.gevaelettronica.it/en/4-battery-poe

changed to 3776k?

1 Like

No, only change are 4M to 8M

I do not understand what he means by IMAGE_SIZE

In the past I had not changed.

Help.
Same configuration than a year ago.
Before, Free space: 92% ( 988.00 KB )

Now it says too big files.
What can be changed?
I also did it all over again and nothing. "make distclean" feed ... etc.

https://pastebin.com/9HvTx5Pb

I think this thread is drifting away from it´s main topic...

@gioreva Is your topic solved?
Have you another question regarding youre device? Then please open a new thread for your other issues...

2 Likes

@juppin

I solved "file too large" changing IMAGE_SIZE := 7872k

Now I can go back to work on the repository.

2 Likes

Image is compiled and uploaded through Uboot.
But it does not boot, what could it be?

boot: https://pastebin.com/bfQf3F8L

Uboot: https://pastebin.com/cDj8Qu7U

OFFTOPIC

There is something wrong with your root partition...
Probably it exceeded the maximum size...???
I see trasfered size of your tftp image is bigger than the erased/written bytes...

Please open another thread for your problem and describe everything you have done...

For example:

  • git clone ...
  • edit file ...
  • place xxx-sysupgrade as xxx.img in tftp root
  • choose boot option x in ralink uboot

And post everything as log in this forum with the preformed text function and probably tje hide details option.
This is better than pastebin as this lasts here "forever".

1 Like

Discussion continues here: Image does not boot (RALINK RT5350F, 8Mbyte Flash, 32Mbyte RAM)

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.