[00:49] <CIA-17> nbd * r4200 /branches/buildroot-ng/openwrt/scripts/gen_menuconfig.pl: fix menu/submenu nesting
[00:51] <CIA-17> nbd * r4201 /branches/buildroot-ng/openwrt/package/kernel/Makefile: fix kernel module defaults
[03:37] <{Nico}> groz, florian__: please use svn cp when porting from trunk so that we keep history of our changes
[03:45] <h3sp4wn> groz: Could you give me a quick 3 lines on how to use your uml target ? Interested to have a look at it (never used uml before but I think I have the tools installed) - If its very complicated I can read any suitable docs
[03:45] <groz> did the readme not make it in ?
[03:45] <groz> i thought i added a readme
[03:45] <groz> that has the quick 3 liner
[03:46] <groz> it woulda been added much later when i checked in other stuff, maybe i did'nt do that dir
[03:46] <groz> hang on
[03:48] <CIA-17> groz * r4202 /branches/buildroot-ng/openwrt/target/linux/uml-2.6/README: Added a readme to the uml target for a quick start
[03:49] <groz> h3 lemme know if that gets you started and going
[03:50] <h3sp4wn> groz: Cheers
[03:50] <groz> it's a little more than 3 lines, but, it does take you from 'nothing' to 'openwrt uml running'
[03:50] <groz> in just a few easy steps, along with the dinner break whtle it compiles
[03:51] <groz> i have it preset to work like this
[03:51] <groz> in the console where it's started, comes boot spew
[03:51] <groz> the serial port is attached to an xterm
[03:51] <groz> so, an xterm will fire up when you run it
[03:51] <groz> and then it's basically the same as a serial port to a real box in the xterm
[03:52] <groz> if you are running ubuntu just start the uml switch stuff up
[03:52] <groz> then add some parameters to the command line to define an ethernet adapter
[03:52] <h3sp4wn> I am running debian unstable but its pretty similar
[03:53] <groz> yah, same thing
[03:53] <groz> its all there
[03:53] <groz> that's actually what i'm running here, debian unstable
[03:53] <groz> i'm fighting with extlinux right now
[03:53] <groz> but once i get this figured out, gonna add another target setup
[03:53] <groz> for x86
[03:54] <h3sp4wn> What about a xen target ?
[03:54] <groz> so it'll produce a bootable file system that you can just dd onto a usb stick
[03:54] <groz> then boot in your <insert board name here> that will boot usb
[03:54] <groz> i'm using via boards here, got a couple of them
[03:54] <groz> that have 2 ethernet and 4 serial
[03:54] <h3sp4wn> sounds interesting
[03:55] <groz> for some reason, extlinux doesn't like the kernels we are producing from 2.6 tree
[03:55] <groz> but it boots old kernels i have from other builds just fine
[03:55] <groz> i'm trying to figure out why
[03:55] <groz> ideally, i'd like to use it with a kernel that has initramfs setup
[03:55] <groz> so, just copy on the kernel, and boot
[03:59] <groz> so, is there enough to get you going in that doc ?
[03:59] <groz> or does it need more ?
[04:00] <h3sp4wn> I am in the middle of building it
[04:00] <h3sp4wn> so I can't get it yet but I would presume it will be fine
[04:01] <groz> i'm _very interested_ in hearing if it 'just starts up' for you
[04:01] <h3sp4wn> I will be trying to get it working as soon as its build (the last time it didn't clean up properly from my brcm 2.6 build that was on it)
[04:02] <groz> i have a separate tree for each arch
[04:02] <groz> so i can change with cd instead of make clean
[04:04] <h3sp4wn> I probably should have done that but I didn't want to have to make the toolchain again
[04:04] <groz> x86 is gonna build a different toolchain
[04:05] <h3sp4wn> I didn't make clean first
[04:05] <h3sp4wn> (but have now)
[04:05] <groz> its still gonna use a different toolchain
[04:05] <groz> it may not do it cleanly (yet)
[04:05] <groz> but it will use a different toolchain
[04:06] <groz> making a new one along the way
[04:07] <h3sp4wn> It appears to be working (running it with V=99 arch is 486
[04:07] <groz> yah, the uml build sets the internal arch to 486
[04:08] <groz> the othher thing that's different, it uses host tools to build the kernel
[04:08] <groz> rather than target tools
[04:08] <groz> cuz you end up with a kernel compiled for host, linked to glibc
[04:08] <h3sp4wn> fails on zd1211-driver-r69
[04:09] <groz> probly wanna configure a bunch of actual hardware drivers right out
[04:10] <groz> probably going to have to go thru a bunch of that, and add dependancies
[04:11] <groz> so that drivers that wont compile in the uml, cannot be included
[04:12] <h3sp4wn> I just did make config-clean
[04:12] <h3sp4wn> make clean
[04:13] <h3sp4wn> /bin/sh: Syntax error: "&" unexpected
[04:13] <h3sp4wn> make: *** [scripts/config/mconf] Error 2
[04:13] <h3sp4wn> Now I get that
[04:13] <groz> from menuconfig ?
[04:14] <h3sp4wn> yes
[04:14] <h3sp4wn> after make config-clean
[04:15] <groz> trying it here
[04:18] <h3sp4wn> I have just done make oldconfig for the timebeing to I can get it building again
[04:21] <groz> grrrr, machine died
[04:21] <h3sp4wn> I have just done make oldconfig for the timebeing to I can get it building again
[05:28] <h3sp4wn> groz: All seems to be working fine - I will try setting networking up with it a bit later
[05:28] <groz> ok, so once you got past configure/build
[05:29] <groz> it just worked then
[05:29] <groz> as per the doc you got the xterm serial port from it ?
[05:31] <h3sp4wn> yes
[05:32] <h3sp4wn> did a few small tests seems to be working fine
[05:32] <groz> cool
[05:32] <h3sp4wn> To get networking there is a fair bit of host related configuration right ?
[05:32] <groz> not really
[05:32] <groz> if you have uml-switch running
[05:32] <groz> then just a couple command line parameters
[05:32] <groz> to set up a virtual ethernet
[05:33] <groz> and if you have the uml stuff installed, the switch is probably already running
[05:33] <groz> if not you gotta start it
[05:33] <groz> with some params to define a unix socket for the umls to talk to
[05:33] <groz> then the hoop you probaly need
[05:33] <groz> either run the uml as root
[05:33] <groz> or, chown the socket so non root stuff can talk to it
[05:33] <groz> i normally just set it to 666
[05:37] <h3sp4wn> I have started uml_switch as root
[05:37] <h3sp4wn> so maybe I should just run the vm as root
[05:38] <groz> that's the easy way to start
[05:38] <groz> when you started it
[05:38] <h3sp4wn> sudo uml_switch -tap tap0 (is that all I need to do ?)
[05:38] <groz> did you use the built in scripts
[05:38] <groz> or do it manually ?
[05:38] <h3sp4wn> Just started it like that from the command line
[05:38] <groz> oh, i dont use taps
[05:38] <h3sp4wn> what are the scripts
[05:38] <groz> hang on
[05:38] <h3sp4wn> I want the easiest way
[05:39] <groz> uml_switch -unix /tmp/uml.ctl -tap tap0
[05:39] <groz> is in my script
[05:39] <groz> i actually start 3 of them at the same time in that script
[05:39] <groz> and then start a mess of umls
[05:40] <groz> to do some routing tests etc
[05:40] <groz> set up a virtual network thats 'not trivial'
[05:40] <groz> the rest of them dont use the taps
[05:40] <h3sp4wn> I just want to get one onto my network
[05:40] <groz> ya, use the tap
[05:40] <groz> and then what i have
[05:40] <groz> is i bridge the tap with my ethernet
[05:41] <groz> or just set the tap up
[05:41] <groz> with routes
[05:41] <groz> as a local adapter
[05:41] <groz> so, once the tap is up, thas your 'local' route into the 'uml network'
[05:41] <groz> then umls all join thru that socket
[05:41] <groz> add this parameter
[05:42] <h3sp4wn> bin/openwrt-uml-2.6-vmlinux ubd0=bin/openwrt-uml-2.6-ext2.img eth0=ethertap,tap0,fe:fd:0:0:0:1,192.168.1.50
[05:42] <h3sp4wn> does that look about right ?
[05:42] <groz> eth0=daemon,00:01:02:03:04:05:06,unix,/tmp/uml.ctl
[05:42] <groz> and voila
[05:42] <groz> ok, that looks like the other way
[05:42] <groz> that'll work too
[05:42] <groz> i cant remember the details
[05:42] <groz> but i had problems with taps at times
[05:43] <groz> so i switche dto using the uml_switch stuff and unix sockets for it
[05:43] <groz> but if you have only one, i believe it works just fine
[05:43] <groz> you can mess around a long time with all that stuff, one issue is, it's constantly changing
[05:43] <groz> and stuff that gets depricated, is not well documented as such
[05:44] <groz> but if the ethertap gets you going, then you are off to the races
[05:44] <groz> here's one reason i use the switch
[05:44] <groz> i create a vlan on the local machine, bridge it with the uml switch stuff
[05:44] <groz> then, on my front router, i bridge that vlan to the internet side
[05:45] <groz> now i can dhcp the uml, and get ip directly from my isp in it
[05:47] <h3sp4wn> Yes I think its working I just need to sort out my permissions (as I was running it as root I didn't get the xterm last time for obvious reasons)
[05:48] <groz> yah, permissioins can be a hassle with this stuff at times
[05:48] <groz> xhost+
[05:48] <groz> then root can start the xterm
[05:48] <groz> here's another thing
[05:49] <groz> con0=null ssl0=fd:0,fd:1
[05:49] <groz> then the boot spew goes to null
[05:49] <groz> and the serial port is on the console you started it from
[05:49] <groz> you'll know it's going if you see the openwrt banner in that console
[05:52] <groz> maybe i should change that, ssl onto local console, boot spew to the xterm
[05:52] <groz> as default
[05:52] <h3sp4wn> Right eth0 is in /sbin/ifconfig -a
[05:52] <groz> there ya go
[05:52] <groz> now up it
[05:52] <groz> and ping
[05:52] <groz> hint
[05:52] <groz> ping the host first
[05:53] <groz> make sure it's talking to the host, before you look farther
[05:54] <h3sp4wn> the host doesn't have a device called tap0
[05:54] <groz> tunctl
[05:54] <groz> to creat it first
[05:55] <groz> you need to create the tap before you start it all up
[05:55] <groz> if using taps
[05:55] <groz> and again, permissions on it
[05:55] <h3sp4wn> Ok
[05:55] <groz> will bite you
[05:56] <groz> yup, i can see, a mini-howto will be necessary, for folks that have never used uml before
[05:56] <groz> there are a few steps to getting running
[05:56] <groz> uml networking is always a bit fiddly to get going initially
[05:57] <h3sp4wn> uml_net_start_xmit: failed(-111)
[05:57] <h3sp4wn> I am getting a few of those
[05:57] <h3sp4wn> : /etc/init.d/S45firewall: .: 6: Can't open /etc/config/network
[05:57] <h3sp4wn> : /etc/init.d/S50dnsmasq: .: 2: Can't open /etc/config/network
[05:57] <h3sp4wn> : sysctl: error: 'net.ipv4.tcp_syncookies' is an unknown key
[05:57] <h3sp4wn> : sysctl: error: 'net.ipv4.ip_conntrack_tcp_timeouts' is an unknown key
[05:57] <h3sp4wn> : sysctl: error: 'net.ipv4.ip_conntrack_udp_timeouts' is an unknown key
[05:57] <groz> oh
[05:57] <groz> in the uml
[05:57] <h3sp4wn> Don't know whether it is related to that
[05:58] <groz> touch /etc/config/network
[05:58] <groz> its puking cuz the file is missing
[05:58] <groz> and it's included in the up scripts
[05:58] <groz> then the up scripts will work
[05:59] <groz> the sysctls, i saw them too, never looked at em in detail yet
[06:00] <h3sp4wn> It will be useful for testing such as complicated ipsec setups easily
[06:00] <groz> uh huh
[06:00] <groz> it's a bit of fiddling to get going
[06:00] <groz> but once you have it going, and startup of a bunch of them all scripted
[06:00] <groz> it's a very useful testing tool
[06:01] <h3sp4wn> Yes definately plus compiling stuff for x86 allows you to know whether the program can do what you want before you mess around fixing it to cross compile
[06:01] <crazy_imp> what packages do i need for it?
[06:02] <h3sp4wn> Its just another target in the buildroot-ng tree
[06:03] <crazy_imp> yes, but what packages do i need on my system to run the uml?
[06:04] <h3sp4wn> uml_switch
[06:04] <h3sp4wn> mainly
[06:04] <h3sp4wn> groz: I am not going to hassle you anymore about it just read the documentation properly on uml (tommorow)
[06:05] <groz> lol, wouldn't make much difference
[06:05] <groz> i'm just getting ready to leave for dinner
[06:05] <h3sp4wn> Fine (its 5am here anyway I should go sleep sometime soon)
[10:47] <nbd> .
[10:48] <malbon> .
[11:15] <groz> .
[11:29] <db90h> !.
[13:43] <CIA-17> nbd * r4203 /branches/buildroot-ng/openwrt/include/prereq.mk: fix prereqs
[13:44] <malbon> db90h: did you make a linux runnable version of your tool?
[14:04] <CIA-17> nbd * r4204 /branches/buildroot-ng/openwrt/include/prereq.mk: revert last prereq.mk - seems to be a different issue
[14:16] <CIA-17> nbd * r4205 /branches/buildroot-ng/openwrt/include/verbose.mk: fix NO_TRACE_MAKE
[14:33] <CIA-17> nbd * r4206 /branches/buildroot-ng/openwrt/ (7 files in 4 dirs): port over the netfilter module packaging to the new system and fix iptables dependencies
[15:28] <CIA-17> nico * r4207 /packages/libs/mysql/Makefile: add build-time dependencies on ncurses and readline
[15:29] <CIA-17> nico * r4208 /packages/libs/cyrus-sasl/Makefile: add build-time dependency on openssl
[15:33] <{Nico}> nbd: ping
[15:40] <nbd> pong
[15:44] <Kaloz> {Nico}: ping
[16:05] <{Nico}> .
[16:17] <{Nico}> nbd: are you still working on kernel module packaging?
[16:20] <{Nico}> nbd: i mean porting kmod to new packaging style
[16:42] <nbd> {Nico}: it's not finished yet. but i'm not working on it right now
[17:53] <CIA-17> nico * r4209 /packages/libs/libdaemon/ (. Config.in Makefile ipkg/): port libdaemon to buildroot-ng
[17:57] <CIA-17> nico * r4210 /packages/libs/libdnet/ (. Config.in Makefile ipkg/): port libdnet to buildroot-ng
[18:08] <CIA-17> nico * r4211 /packages/libs/db/ (. Config.in Makefile ipkg/): port (lib)db to buildroot-ng
[18:28] <CIA-17> nico * r4212 /packages/libs/libgpg-error/ (. Config.in Makefile ipkg/): port libgpg-error to buildroot-ng
[18:33] <CIA-17> nico * r4213 /branches/buildroot-ng/openwrt/ (4 files in 3 dirs): add genext2fs to build ext2 filesystem images
[18:34] <CIA-17> nico * r4214 /packages/libs/libgcrypt/ (. Config.in Makefile ipkg/): port libgcrypt to buildroot-ng
[18:38] <CIA-17> nico * r4215 /packages/libs/libgdbm/ (. Config.in Makefile ipkg/): port libgdbm to buildroot-ng
[18:41] <CIA-17> nico * r4216 /packages/libs/libusb/ (. Config.in Makefile ipkg/): port libusb to buildroot-ng
[18:42] <CIA-17> nico * r4217 /packages/libs/sqlite2/ (. Config.in Makefile ipkg/): port sqlite2 to buildroot-ng
[18:46] <CIA-17> nico * r4218 /packages/libs/sqlite3/ (. Config.in Makefile ipkg/): port sqlite3 to buildroot-ng
[23:37] <groz> nico, are you still around ?
[23:45] <CIA-17> nico * r4219 /packages/libs/opencdk/ (. Config.in Makefile ipkg/): port opencdk to buildroot-ng
[00:00] --- Sun Jul 23 2006