Re: [OpenWrt-Devel] [PATCH] ppp switch to version 2.4.4

2009-07-29 Thread Alexander Stadler
Hi!

I just wanted to state that I've submittet the ppp patch a month ago (24.6.) 
with some others.
Unfortunately I think none of them got applied yet.. . I'm using this updates 
for months now.
(pptpd 1.3.0-1.3.4, mppc support for Kernel 2.6, memory bug fix of 
paravirtualization for kernel 2.6.25 (fixed in 2.6.29 I think), ppp 
2.4.3-2.4.4 with many patches, mppc support for ppp 2.4.4, mppe-optional 
option for pppd, (clocksource tsc below acpi and reboot=bios to reboot=acpi on 
x86 - should propably go in an ACPI Hardware or VMWare or something like 
that profile).

Alex


Vladimir Voronkov schrieb:
 Hi, Florian,
 
 I am new to submitting patches for openWRT, I am sorry for some mistakes in 
 the emails. Should I re-send 
 them again or you have applied the patches? How can I see the revision number 
 with my changes?
 
 About configuration file for OpenL2TP - I was unable to build it with 
 L2TP_FEATURE_LOCAL_CONF_FILE because 
 of some dependencies that I couldn't resolve. For now OpenL2TP can only be 
 configured via rpc tool 
 l2tpconfig, see how it is used in my script. I understand that it is not 
 acceptable for generic purposes, 
 I just included in for you guys to see how it can be used in openwrt 
 configuration. Unfortunately I am not 
 aware of how UCI works. If you give me advice on how I can create startup 
 scrips or maybe some link where 
 I can read more info about it I will definitely improve that. I have in plans 
 to integrate it also in 
 luci-admin tool but I still investigating the code how you do this.
 
 About kmod-pppol2tp for kernel version 2.6.28 and newer - what I can say is - 
 it works on my system:
 device is Linksys WRT54GL v. 1.1
 
  KAMIKAZE (8.09.1, r16973) 
 r...@openwrt:~# cat /proc/version
 Linux version 2.6.25.20 (v...@vvv-vm-ubuntu) (gcc version 4.1.2) #6 Sat Jul 
 25 22:44:13 MSD 2009
 
 and loaded
 
 r...@openwrt:~# lsmod
 Module  Size  Used byNot tainted
 ...
 pppol2tp   29648  4
 
 
 OpenL2TP doesn't work without it.
 
 I also have quiestion about WiFi for my device. I built the firmware from 
 revision r16973, choosing 
 Broadcom BCM947xx/953xx [2.6] as a target and Broadcom BCM43xx WiFi as a 
 profile but I don't see that 
 kmod-b43 module is built and installed in my system. Revision is 8.09.1, 
 r16973. That is why WiFi isn't 
 working. Could you please explain what I did wrong or maybe what packages I 
 should include into my build.
 
 Thanks for your support!
 
 -Original Message-
 From: Florian Fainelli flor...@openwrt.org
 To: openwrt-devel@lists.openwrt.org
 Date: Sun, 26 Jul 2009 12:27:22 +0200
 Subject: Re: [OpenWrt-Devel] [PATCH] ppp switch to version 2.4.4
 
 Hi Validimir,

 Le Sunday 26 July 2009 10:45:38 Vladimir Voronkov, vous avez Иcrit :
 This patch changes version of ppp to 2.4.4, which is required for
 openl2tp-1.6 to work. Patch with integration of openl2tp will be sent in my
 next email.

 All current patches to ppp-2.4.3 are changed according to a new version of
 ppp, some of them are removed (namely 102, 202, 205, 207) because they
 already exist in ppp-2.4.4.
 ppp-2.4.4 has been updated a while already, so I have only applied the 
 kmod-pppol2tp part of this patch. Also PPP over L2TP only appeared in 2.6.28 
 therefore the module is restricted to the kernel versions it can be built on.

 Also kmod-pppol2tp kernel module has been added in configuration.

 Signed-off-by: Vladimir Voronkov voronkovv at mail.ru

 ---

 Index: package/kernel/modules/network.mk
 ===
 --- package/kernel/modules/network.mk   (revision 16973)
 +++ package/kernel/modules/network.mk   (working copy)
 @@ -367,6 +367,7 @@
FILES:= \
 $(LINUX_DIR)/drivers/net/pppoe.$(LINUX_KMOD_SUFFIX) \
 $(LINUX_DIR)/drivers/net/pppox.$(LINUX_KMOD_SUFFIX)
 +  AUTOLOAD:=$(call AutoLoad,40,pppox pppoe)
  endef

  define KernelPackage/pppoe/description
 @@ -376,6 +377,22 @@
  $(eval $(call KernelPackage,pppoe))


 +define KernelPackage/pppol2tp
 +  SUBMENU:=$(NETWORK_SUPPORT_MENU)
 +  TITLE:=PPPoL2TP support
 +  DEPENDS:=kmod-ppp +kmod-pppoe
 +  KCONFIG:=CONFIG_PPPOL2TP
 +  FILES:=$(LINUX_DIR)/drivers/net/pppol2tp.$(LINUX_KMOD_SUFFIX)
 +  AUTOLOAD:=$(call AutoLoad,40,pppol2tp)
 +endef
 +
 +define KernelPackage/pppol2tp/description
 + Kernel modules for PPPoL2TP (PPP over L2TP) support
 +endef
 +
 +$(eval $(call KernelPackage,pppol2tp))
 +
 +
  define KernelPackage/pppoa
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=PPPoA support
 Index: package/ppp/patches/101-debian_ip-up_option.patch
 ===
 --- package/ppp/patches/101-debian_ip-up_option.patch   (revision 16973)
 +++ package/ppp/patches/101-debian_ip-up_option.patch   (working copy)
 @@ -2,37 +2,37 @@
  ===
  --- 

Re: [OpenWrt-Devel] How is $rootfs set in the initramfs /init ?

2009-07-29 Thread Benjamin Cama

Hi Florian,

Florian Fainelli a écrit :

Le Tuesday 28 July 2009 18:04:39 Benjamin Cama, vous avez écrit :

I am trying to boot my system through an initramfs that should mount my
root FS somehow. My problem is, I am always stuck here :
https://dev.openwrt.org/browser/trunk/target/linux/generic-2.6/base-files/i
nit#L9 because $rootfs is never set. I tried to look everywhere but didn't
see any place where it could be set. I think it should come from the
root=... kernel commandline argument, but couldn't find any place
where it's done.


I assume you used the ramdisk target in make menuconfig - Target images - 
[*] ramdisk.


Yes, I did so.

If so, there is usally nothing to set and the kernel knows that it should be 
mounting the initramfs.


The kernel is mounting the initramfs correctly, but the $rootfs 
variable isn't set to the value passed to the kernel commandline with 
root= I saw that for some images, a rootfstype=... parameter is 
given to the kernel; what does it do exactly ?


I am trying to mount a rootfs that is not a classical openwrt one 
(namely, btrfs) and I need to execute something (btrfsctl -a) before 
switching (switch_root) to the rootfs. I supposed $rootfs would be set 
correctly and that I just needed to add the command cited above, but the 
initramfs always starts /sbin/init saying it hasn't found a rootfs 
variable (line 11 of /init is executed, as I see the NOMOUNT global var 
set to No Root in my shell).


So I was wondering why $rootfs is not set (if it's supposed to be set 
somewhere, as the -z test after /etc/preinit inclusion indicates) and 
how I can fix this.


Thanks,
Benjamin
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel