[LEDE-DEV] mission impossible!! add ubifs

Kenneth Johansson kenneth at southpole.se
Mon Aug 22 12:54:46 PDT 2016


so I'm on commit 2a170e40860034a9a5157306547c1a333be3845b and moving up 
to head is not really an option right now.

what I want to do is change target mt7621 to generate a rootfs in ubifs, 
not ubi so no ubinize needed. In addition to this I want the kernel in 
uImage format included in the rootfs in /boot/. and same for the device 
tree. and it would be nice to have kernel uImage and dtb  also in 
$(TOPDIR)/bin/ramips/.

sound like a 5 minute job but oh no I see no end in sight. Problem is 
that I do not understand what I need to do. To many macro expansions 
involved in the makefile.

so far I changed.
change the kernel code so that it takes the dtb from u-boot if it passes 
in the dtb to the kernel. Before it only used the dtb that is patched 
in. this works fine with the ramdisk image.

I added ubifs to FEATURES in target/linux/ramips/Makefile so that "make 
menuconfig" can select ubifs image. I also select the option that should 
include uImage and dtb in rootfs. this do not work. so I tried to fix it 
in  target/linux/ramips/image/Makefile. But what changes should I do ? 
It is really hard to understand what the correct change really is and so 
far all my testing results in more or less no change or some other error 
showing up.

any suggestiongs ?? its fine to do it for master I'm sure I can backport 
it once I have the correct changes to target/linux/ramips/image/Makefile.






More information about the Lede-dev mailing list