iBabajan / tomato-sdhc-vlan

Automatically exported from code.google.com/p/tomato-sdhc-vlan
0 stars 0 forks source link

Diffs are old and source not downloadable on git #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
no diffs for latest builds in downloads section, and git doesn't work for 
downloading anything but the main unmodded branch. (i'm not trying to fork, 
just to modify a little bit for my own purposes)

Original issue reported on code.google.com by white.ph...@gmail.com on 10 Jun 2012 at 6:47

GoogleCodeExporter commented 8 years ago
I checked out the latest commit 5dc22614abfdc618d2eaa605163617d8f1508aa5 and I 
think it synced everything but not 100% sure

Original comment by white.ph...@gmail.com on 10 Jun 2012 at 6:57

GoogleCodeExporter commented 8 years ago
yeah nevermind i got it. PITA to get it to build though and when it does, 
there's always at least one thing broken like dnsmasq on my latest attempts. 
not to mention very hard to get the makefiles to accept custom .config's. but 
your binaries work great i may just stick with those. i mainly wanted to tweak 
the kernel and add some patches from OpenWRT but it seems you have them all 
already! great job, though I'd like to see some other build options for 
packages. as it stands, i have to take some unneeded things to get things I 
want (like USB to get FTP). and e2fsprogs would be great for the SDHC builds, 
especially being able to fsck them on boot like OpenWRT

Original comment by white.ph...@gmail.com on 11 Jun 2012 at 5:32

GoogleCodeExporter commented 8 years ago
also, what operating system do you build on? or what toolchain environment, 
etc, because I had really bad luck on 64bit gentoo i had to install linux mint 
9 32

Original comment by white.ph...@gmail.com on 11 Jun 2012 at 5:34

GoogleCodeExporter commented 8 years ago
I've been at this for about 3 days between openwrt and trying to get tomato to 
build, if you know any documentation that might help me i'd appreciate it. just 
seems like everything is so tempermental. 
had a lot of build failures on custom stuff and had to fight with the 
Makefile's to get it to take my configs. if you know of a better way that would 
help. right now i'm doing this.

make clean ; make cleanimage ; make cleantools ; make cleankernel ; make 
distclean
cp -av /root/configs/router/busybox/config_base router/busybox/
cp -av /root/configs/router/busybox/.config router/busybox/
cp -av /root/configs/router/.config router/
cp -av /root/configs/router/config_base router/
cp -av /root/target.mak target.mak 
cp -av /root/configs/linux/linux/config_base  linux/linux/config_base 
cp -av /root/configs/linux/linux/Makefile linux/linux/Makefile
cp -av /root/configs/linux/linux/.config  linux/linux/.config
make prepk

but i still need a build profile that mucks up things, the "s" profile seems to 
not fight me as much, but then it forcibly disables some things. i suppose I 
could comment out a lot of stuff in the release/src/Makefile to get it to take 
my configs

Original comment by white.ph...@gmail.com on 11 Jun 2012 at 5:39

GoogleCodeExporter commented 8 years ago
also managed to get one of my builds down to 2.4MB which left a lot of room for 
JFFS but it wasn't booting properly. is stuff like video 4 linux, input devices 
really necessary? or do those modules not even get copied over in most 
profiles? and does optimize for size break anything? you didn't have it enabled

also in OpenWRT's 050-build_flags.patch the only ones i see you didn't apply 
was in the main Makefile

-CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
+CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -Os \

in yours it's just 

-CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs \

without any -O option at all. is there a reason for this? does it break 
something? or does it take the -O flag from another file and this is just 
redundant?

Original comment by white.ph...@gmail.com on 11 Jun 2012 at 5:45

GoogleCodeExporter commented 8 years ago
sorry i understand this isn't a forum :) guess I should try linksysinfo 
instead, you can close this

Original comment by white.ph...@gmail.com on 11 Jun 2012 at 5:46

GoogleCodeExporter commented 8 years ago
by the way i solved all my issues, thanks anyways and sorry for making this 
ticket i wish i could delete it. I had to edit the release/src/Makefile and 
release/src/router/Makefile as well as some of the .config's and config_base 
files to get it to build exactly what I wanted to. working great!

some suggestions though for your builds:
enable kernel optimize for size
enable net devices contribute to /dev/random (otherwise there's no entropy to 
build an SSL certificate)
and possibly build everything with -msoft-float CFLAG since software floating 
point emulation is MUCH faster than kernel FPU emulation
i also globally enabled -Os and it seems to work fine

Original comment by white.ph...@gmail.com on 12 Jun 2012 at 2:13

GoogleCodeExporter commented 8 years ago
okay nevermind about -msoft-float it breaks dnsmasq but -Os globally works fine 
including for kernel. i stripped my tomato down to a 1.7MB image for a friend's 
WRT54GS and it's working great

Original comment by white.ph...@gmail.com on 12 Jun 2012 at 3:33