Hi to all,
I am trying to compile an old trunk release of openwrt because I need a module (tun.ko) compiled for a router that runs an old version of openwrt modded by producer. The linux version is 2.6.30 and it is a Broadcom 6328 platform.
Googling I found out that for compiling with a specific kernel version I have to do the following things:
1) Be sure that the release is one of the supported ones from the release, checking it in include/kernel-version.mk
2) Changing the kernel release in the target folder. My case is target/linux/brcm63xx/Makefile
Now, if I try to compile, the compiling process will fail because now is missing the correct config file in trunk/target/linux/brcm63xx/config-2.6.30. The default config was config-2.6.27 for select platform (bcm63xx).
Then, now I try to find the config-2.6.30 from a newer release and then I copy it in the correct folder. Then, the compiling process goes on but it asks some information about platform and other things (architecture, etc), infact I had to compile with make V=99 so that I have interactive compiling to find out that I have to choose manually the Architecture;but I cannot find BCM63xx, so I choose a generic MIPS MALTA device and then I choose MIPS 32 R1 so that the magic in the module match the one I have in the router.
I don't think that it is the correct way to do these things. Maybe I should be able to choose BCM63xx but it is not avaiable during the interactive compiling.
Maybe I forgot something and I can produce in a different way the config-2.6.30 file?
Infact, I cannot understand: if I choose the target platform (broadcom 63xx) in the main "make menuconfig" is enough to compile, but if I change just the kernel version, then the config file is missing or not complete (if I copy it from another release).
By the way, the compiling now ends correctly and I have my tun.ko that can be inserted (insmod) into the kernel in my router and in dmesg I can see that it is correctly inserted, but something is wrong, infact when I launch openvpn and when it loads tun.ko kernel goes in panic (I suppose) because router restarts its own (!!!) ....
Do you have any suggestion/check I can do? I haven't the RS232 connected then I cannot see what happens in console...
Maybe I need to optimize the process of changing the kernel version in the compiling process? I should do these things in a right/different way?
Thank you for your help.
(Last edited by thecode on 19 Mar 2015, 11:35)