/srv/irclogs.ubuntu.com/2009/10/04/#ubuntu-arm.txt

kblinhm, durn. it would've been too easy to expect that blog post on building kernels to just work14:57
hamannpBuild a rootfs from scratch18:47
hamannp??18:47
Martynyep18:52
Martynyou need help?18:52
hamannpYeah. I get a bunch of nasty errors.  I can't get networking.18:53
MartynIck18:53
Martynthere are some better ways to get a rootfs now18:54
Martynyou can strip one out of the dove or i.mx51 image18:54
hamannpOk.  Leta dmit something: I don't know what I'm doing.  Can I explain what I want to do?18:54
hamannphello?18:57
armin76lol19:01
armin76explain, explain :)19:01
hamannpOk.19:01
hamannpI have a sheeva plug kit. I put it on my network, and put a full app stack on it. I have the same app arch scaled horizontally on Ubuntu amd64 VMs.  I thought to myself, it would be cool to emulate some arm vms, and reproduce the horizontal architecture on Arm.  Follow me?19:03
armin76hrm...19:06
armin76emulate arm on arm?19:06
hamannpNope.  I'll keep explaining.  So I have a home Lan network. It has a bunch of old Pcs, this Sheeva kit, and a bunch of VMs.  It's behind a router from my Cable provider.   The VMs connect to this lan through a static bridge network on a Host.  br0.  I want to emulate 6 or 7 arms on qemu so that I can try out a deployment arch that I already have on amd64 vms.  Make sense?19:08
armin76so you want to emulate arm :D19:09
hamannpYes! And use my existing static br0 with multiple emulated arms with static ips.19:10
hamannpI'm stuck getting even one built cleanly.  I also can't get it on my bridge NW, even when I copy over configs from my exisitng amd64 vms.19:11
armin76can't help on that, sorry19:13
hamannpHow bout a tut on getting even one built?  I tried the main wiki, and I get nasty errors.  I can pro'lly figure out the networking.  I think the problem is that I can't build it without errors.19:14
hamannpBTW, the wiki links to an old kernel.  The bug report says that some of the errors I got have been fixed.  IS there a magic vault of up to date ARM kernels and img's somewhere?19:16
armin76no clue, you should ask ogra or lool19:19
hamannpok thanks!19:20
Martynarmin76:  To whom should I address the request to have a smooth-stone PPA for karmic?19:20
MartynI have a working dist now for our in-house work19:20
Martynit runs on the pbx-a919:20
armin76woot19:21
armin76Martyn: why you ask me? :P i don't have anything to do with ubuntu :)19:22
armin76but same answer as hamannp :D19:22
MartynLOL19:22
Martynbecause you hang here, and just might have picked up the info19:23
Martyn<-- not canonical either, right :)19:23
Martynarmin76 : You're an amazing font of information sometimes19:23
armin76:D19:24
NCommanderMartyn, I had talked with lool earlier today on how we could do "universal" armel images for SoCs that used u-boot as a bootloader20:26
NCommander(basically, an extension of the boot.scr functionality I created)20:26
NCommanderMartyn, but I need a per-soc identifier to make it work, and the MACH_ID is probably the best way to it (with a way for us to override it if necessary ;-))20:26
MartynI think so too20:30
NCommanderMartyn, hence why I'm talking to wdenk on this20:31
Martynyep yep20:32
MartynI don't know why there is this huge push against non devtree solutions20:32
NCommanderMartyn, I'll be first to admit our universal image idea is a hack, but its better than the alternative20:33
Martynyes20:34
MartynI really, REALLY want a universal UEFI loader20:34
NCommanderMartyn, because most people look at i386, and see how braindead it is20:34
NCommanderMartyn, +1.20:34
Martynfor more reasons that one, but I'll -take- a u-boot loaders that works20:34
NCommanderMartyn, but even if it exists, there will be a ton of inheta before its standard, and we still have legacy stuff to deal with20:34
MartynNCommander : New topic for a second20:35
MartynI have a fullly working image for 9.10 beta on PBX-a9 now20:35
NCommanderMartyn, I dunno if I should be happy or scared20:35
Martynwhat and to whom do I need to propose something to in order to get an install img for the platform?20:35
Martynlike the dove, and the i.mx51 have now20:36
NCommanderMartyn, what bootloader?20:36
Martynu-boot20:36
Martyn+ ARM monitor20:36
Martynwell, other way around20:36
MartynARM monitor + u-boot20:36
loolNCommander: To be fair the boot.scr concept comes from beagleboard21:43
loolThat's where I got the idea and told you about it21:43
NCommanderlool, true, although boot.scr is quite a bit more advanced than the beagle boot system21:45
loolIt uses loops but it's the same concept21:45
loolanyway21:45
kblincrap22:18
kblinI think my sheevaplug just died22:18
kblinso much for that piece of hardware22:19
hamannpOk.  I've been trying for days to get a working ARM image with networking based on the tutorial.  My last idea is to burn it to cd and boot from that.  Anyone know where I can get an .iso version?23:03
ali1234hamannp: what tutorial? what hardware are you using?23:16
hamannpI've got an amd64 desktop with 4GB of RAM.  I want to emulate a couple of ARM machines on my desktop.  Here's the basic tut https://wiki.ubuntu.com/ARM/RootfsFromScratch23:17
ali1234so qemu then...23:19
hamannpYes, sorry.23:19
ali1234ok, so at what point does it deviate from what you expect?23:20
hamannpWhen I boot up, I get at least 4 errors.  I about "file system Fusectl not supported" and another about /lib/modules not existing.  I get another about  this bug : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/34637823:21
ubot4Launchpad bug 346378 in linux "net.ipv4.tcp_syncookies is a unknown key (CONFIG_SYN_COOKIES=y missing in ARMEL build config)" [Low,Fix released]23:21
ali1234ok, well those shouldn't be fatal23:22
hamannpThat's good to know.  I'm trying to add them to my existing bridge network.  br0.  When I copy the settings from my amd64 VMs that use that network, I still don't get networking.  I thought may be I should fix the boot erros first.23:23
ali1234well you can fix those by recompiling the kernel with support for those things it is complaining about23:23
hamannpI have been able to log in.  May be the machines are working, and the networking problem is something else.23:23
ali1234i had some problems with networking btw23:24
ali1234something to do with dns - it just wouldn't work. but specifying ips did23:24
hamannpI'm using ips23:24
hamannpWould any of those problems effect networking?23:24
ali1234i don't think so23:25
ali1234they didn't for me, but i'm using real hardware23:25
hamannpOk.  Then I wonder to what to check next. Like I said, I copied over settings from other VMs that use the network fine.23:25
ali1234qemu VMs?23:26
hamannpI built them using the python.vmbuilder23:26
hamannpFWIW, I have on Sheeva dev kit on my network with the same settings as my other VMs23:27
ali1234i don't really know what you mean by that23:27
hamannpSorry kvm.23:27
ali1234i think you have to configure the bridge on the host machine too23:28
ali1234the vmbuilder probably does that for you23:28
ali1234but i don't know because i don't use qemu/kvm23:29
hamannpI've had the host bridge working for 6 months.  I have it setup for kvm to automatically add a static ip and configuration for the  host bridge network. The hoist side is good.23:30
ali1234kvm isn't the same thing as qemu-arm23:31
ali1234so do you see the interfaces on the brctl?23:32
hamannpYes.  Shouldn't it use the same unix networking?  Is there something different?23:32
hamannpI don't fully follow you.  I setup br0 for static ips in my /etc/network/interfaces file and bring it up automatically.  If I do an ifconfig on the host, it shows up.23:33
ali1234brctl show23:34
ali1234that will list the interfaces that are part of the bridge23:34
hamannpyes, it shows eth0, which is right.23:34
hamannpit also shows vnet0, not sure what that is. May be default network for kvm????23:35
ali1234probably23:35
hamannpHuh.  I'm stumped.23:35
ali1234each virtual machine has it's virtual nic, which has endpoints on both the guest and the host23:36
hamannpYes.23:36
ali1234on the host you have to bridge them all together, and with the real eth023:36
ali1234you say you have kvm doing this for you23:36
ali1234but qemu-arm does not use kvm23:36
hamannpI edited each guest /etc/network/interfaces.  Although I've now got it setup so that when I run the build script, it edits them automagically.23:37
ali1234sure. you you have to configure it in the host too23:37
hamannpI edited the qemu /etc/network/interfaces file manually to have the same settings as the kvm VMs that use the bridge.23:37
ali1234great23:38
ali1234that's correct23:38
ali1234so, which vms are currently running right now on your host?23:38
hamannpI've got a couple of kvm vms running using br0 just fine.  I've got a qemu ARM with the same settings, which isn't able to reach the network23:39
ali1234and all are up and running?23:40
ali1234what interfaces do you see on ifconfig -a23:40
hamannpHold on.  I'll check.23:40
ali1234look for tun0 or tap0 or similar23:40
hamannpI don't see tun0 tap0.23:41
hamannpI just see see eth0, vnet0, and br0 on the host23:41
ali1234how did you launch qemu?23:43
hamannpHold on.  I'll paste the command line.23:43
hamannpqemu-system-arm -M versatilepb -kernel ./vmlinuz-2.6.28-11-versatile -hda qemu-armel-200910011752.img -m 256 -append "root=/dev/sda mem=256M ro" -net nic,macaddr=00:16:3e:00:00:01 -net tap23:44
hamannpMay be I see the problem23:44
hamannpShould I have ended it with -net br0?23:44
ali1234hmm i don't think so23:45
hamannpOk. stumped again ;)23:45
ali1234hmm try modprobe tun23:45
ali1234and then relaunch qemu23:45
hamannpok23:45
ali1234this time you should get a tap0 or tun0 to add to br0, and then it should work i think23:46
hamannpok. It's booting the machine.23:47
hamannpI get a tap023:47
ali1234the if should be up already23:47
hamannpsorry?23:48
ali1234the interface should get created as soon as qemu starts, i mean23:48
ali1234the tap0 that is23:48
hamannpok23:48
hamannpIt's there23:48
ali1234so, now brctl addif br0 tap023:48
hamannpok23:48
ali1234now it should work :)23:49
hamannpOk.  I'll test here in just a second.23:49
hamannpBtw, qemu boots sloooooooooow23:50
ali1234well yeah, it's basically an emulator23:50
ali1234unlike kvm which uses virtualization23:50
hamannpGotcha.23:50
hamannpI might need to head to my local electronics store (Fry's) and pick up a dozen dev kits.23:50
ali1234meh. cross compilers and what not...23:51
ali1234qemu can still be faster than the real hardware sometimes23:51
hamannpI've got the one Sheeva plug dev kit.  A little flakey, but fun to play with.23:51
ali1234no such luck here, i'm hacking on my mobile phone :)23:52
hamannpHave you seen the dual-core Marvell 1.2ghz?23:52
ali1234i've heard about that stuff but never seen it23:52
hamannpThey can take 1GB ram/core23:52
hamannpIt works!  You're the man!  How do I get it to work next time?23:54
ali1234um..... hang on23:54
ali1234edit /etc/modules23:54
hamannphost machine?23:55
ali1234add a line with just tun on it, as per the instructions in the comments23:55
ali1234yeah, on the host. assuming you use ubuntu23:55
hamannpOf course I use Ubuntu!!!!!!!!!!!!!! All the time ;)23:55
ali1234and you need to make a script to add the interface to the bridge like it shows on the tutorial23:55
hamannpI think I can do that.23:56
hamannpI should have it from this chat log.23:56
hamannpThank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!23:56
ali1234the /etc/qemu-ifup thing23:56
ali1234not sure how that works though23:56
hamannpI can do it manually until I figure it our.23:57
hamannpThanks alot!  I'm gonna grab a beer and jump in the hot tub.  Literally.  You've made my day!23:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!