**** BEGIN LOGGING AT Fri Mar 02 02:59:58 2012 Mar 02 04:29:14 how do I cross compile ? I need a realtek usb ethernet driver for my android tablet Mar 02 04:29:29 my laptop is ubuntu 11.10 x86 64bit Mar 02 04:30:24 axisys: http://wiki.debian.org/QemuUserEmulation Mar 02 04:31:13 Strict that is not cross-compiling, that is using native compilation + a CPU emulator Mar 02 04:31:49 IME it is simple and reliable and it doesn't involve recompiling the compiler itself, so nice and handy until the migration to multiarch is complete and we can simply install everything directly via apt. Mar 02 04:33:22 twb: so this should let me compile a realtek usb ethernet driver rtl8150.ko for armv7l if I have the source code of realtek driver ? Mar 02 04:34:02 That all depends Mar 02 04:34:46 Of course, drivers are almost always included with your stock kernel Mar 02 04:35:49 if I plug that usb ethernet adapter to my ubuntu laptop I get this http://pastebin.com/rcHjQMRE Mar 02 04:36:03 so I guess linux has the source code for it Mar 02 04:37:04 Yes, at least for that specific model and for that kernel Mar 02 04:37:15 If you are running an older or wackier kernel on your arm you may not have it Mar 02 04:37:36 Linux localhost 2.6.36.3-00020-g3d351b6 #1 SMP PREEMPT Wed Oct 19 10:52:26 JST 2011 armv7l GNU/Linux Mar 02 04:37:52 thats my android tablet toshiba thrive Mar 02 04:38:00 running android 3.2.1 Mar 02 04:38:21 It doesn't matter what android is running; it matters what ubuntu will be running on the arm device Mar 02 04:39:18 i was planning to compile the kernel module and force install Mar 02 04:42:04 I have no idea what android will do in response to that; I don't support android Mar 02 04:54:29 aceat64: Sorry, I was out with the famn, damily. How can I help? Mar 02 04:59:08 twb: found the source code I was looking for Mar 02 04:59:11 twb: http://pegasus2.cvs.sourceforge.net/viewvc/pegasus2/rtl8150/ Mar 02 04:59:26 twb: now I need to follow your direction to try to cross compile it Mar 02 10:24:42 has anyone started looking at the ghc failure on armhf, I'm about to kick off a test build for it Mar 02 10:33:37 micahg, I can take a look later today or Monday unless someone else has already been on it Mar 02 10:34:01 micahg, btw I got chromium to build on armhf, just need to formulate the patch so as it is not messy. gyp/scons only Mar 02 10:34:06 janimo`: I kicked off a test build with -mfloat-abi=hard to see if it helps Mar 02 10:34:18 janimo`: sounds great, thanks Mar 02 10:34:39 micahg, ok. Although I wonder why mfloat-abi=hard is not the default. Should it not be on armhf? Mar 02 10:34:56 or is ghc overriding gcc flags when calling it? Mar 02 10:35:36 ooh, unrecognized compile flag, that would explain it :) Mar 02 10:36:26 janimo`: did I do it wrong? pastebin.ubuntu.com/864862/ Mar 02 10:37:27 micahg, well that is a gcc flag, ghc uses different ones. Mar 02 10:37:56 but it may have some means to tell it to pass cflags to the gcc step for the generated C code Mar 02 10:39:17 micahg, well I'll download ghc and give it a run on the panda, see how it fails :) Mar 02 10:39:30 janimo`: there's a build log alreayd Mar 02 10:39:31 The logs suggest some objects were built correctly Mar 02 10:39:43 ah, you saw it Mar 02 10:39:46 micahg, well see how it fails + debug :) Mar 02 10:39:55 where did the patches for armhf come from? Debian? Mar 02 10:40:20 janimo`: probably, laney in #ubuntu-motu can help with pushing fixes back there as well Mar 02 10:41:10 micahg, ok. I'll have the ftbfs reproduces on my panda hopefully in 3 hours and then I'll try poking at it Mar 02 10:41:38 thanks Mar 02 10:41:45 poor panda, this past week it only had to deal with large package builds - libo, chromium, mongodb now ghc :) Mar 02 10:41:57 al with their funky build systems Mar 02 11:49:29 * Laney phases in Mar 02 11:56:15 I have a question about uImage creation with mkimage. How should I select load address and entry point? I've seen 0x80008000 and 0x30008000 in different sources, but they all are hardcoded. Shoudn't it be platform-dependent? Mar 02 12:12:20 GrueMaster: local electronics shop does not stock double USB-Y cables Mar 02 12:12:34 GrueMaster: would a 5V USB hub do instead? Mar 02 12:14:03 Riddell: i use a 5V usb hub and it solved all my panda instability problems Mar 02 12:14:17 i have a usb harddrive attached to the hub Mar 02 12:14:37 xranby: oh cool, so it can handle a USB keyboard & mouse easily then Mar 02 12:14:46 xranby: and DVI monitor ok? Mar 02 12:15:38 yes DVI monitor ok here Mar 02 12:15:52 i attach keyboard and mouse to the hub as well Mar 02 12:16:22 running opengl-es tests and some quite heavy builds on it Mar 02 12:19:18 xranby: and I need an ethernet cable for networking I expect? Mar 02 12:19:27 yes Mar 02 12:19:38 groovy thanks Mar 02 12:20:46 Riddell: to power the panda itself i use a 5v 4A adaptor Mar 02 12:22:21 xranby: oh Mar 02 12:22:24 well that's different then Mar 02 12:22:56 so i have two poer adaptors 1 to the usb hub and one to the panda Mar 02 12:23:01 power adaptors Mar 02 12:24:10 hum Mar 02 12:27:40 oh well I'll just buy a usb hub and see if it works Mar 02 12:31:52 Riddell: i am sure it will it all depends on how good powersupply the hub got Mar 02 13:15:50 Anyone familiar with U-Boot and uImage? Mar 02 13:21:13 ndec: was dropped from the call, but I think we're done already Mar 02 13:22:14 yeap, he thought someone joined :) Mar 02 13:22:23 (you beeped when dropping) Mar 02 15:52:49 Riddell: The problem with using a usb hub to power your panda is going to be the same. A single usb port will not give you enough power (hence the need for a Y cable). Mar 02 15:54:11 GrueMaster: damn, they don't sell Y cables Mar 02 15:54:34 GrueMaster: it has a green light turned on, is there a way I can check it works? Mar 02 15:55:38 Not without at least a serial cable or monitor. The green light is a power indicator. Just like any pc, you need some sort of console. Mar 02 15:56:21 I have a monitor now Mar 02 15:56:38 will it have enough ampage for a DVI monitor? Mar 02 15:56:45 HDMI or DVI? Mar 02 15:56:58 DVI Mar 02 15:57:15 Do you have an HDMI to DVI cable? Mar 02 15:57:20 yes Mar 02 15:58:31 Ok. Without a usb-Y cable or 5v power supply, you still won't get far. The board draws ~1.2 amps on boot, which is more than a single usb cable can provide. Mar 02 15:59:06 If you have a cell phone charger with mini usb and >1amp out, that will also work. Mar 02 16:00:00 GrueMaster: really I need one of these? http://search.digikey.com/scripts/DkSearch/dksus.dll?WT.z_header=search_go&lang=en&site=us&keywords=993-1019-ND&x=14&y=17 Mar 02 16:00:56 That would be optimal. Mar 02 16:01:43 Try checking with someone in the UK office. They may have one at Millbank. Mar 02 16:02:39 If you can't get one before UDS, let me know. I will bring you one then. Mar 02 16:04:28 that won't help with testing beta 2 :) Mar 02 16:07:13 Riddell: you're in the UK? What do you need? Just a panda power supply? Mar 02 16:08:02 rbasak: yes Mar 02 16:08:08 rbasak: know where I can get such an item? Mar 02 16:09:04 Riddell: how soon do you need one? I got mine off eBay, I can find you a link Mar 02 16:09:11 rbasak: toot sweet Mar 02 16:12:43 Riddell, heard of that thing called ebay ? Mar 02 16:12:59 if you order a proper power supply now, you should have it before B2 Mar 02 16:13:18 * GrueMaster is also checking amazon.co.uk for Riddell. Mar 02 16:13:37 (thats seriously better than poking around half breeded solutions with Y cables and USB hubs) Mar 02 16:17:41 ogra_: there are 1295 different power supply types, how will I know I'm getting the right one? Mar 02 16:17:58 the electronics shop tried every one in stock and none fitted Mar 02 16:18:16 ogra_, GrueMaster: I put in an SD card with an image and pressed a button and now I have two green LEDs on, is that a good sign? Mar 02 16:18:54 one should start blinking ... but in any case, give up on the USB idea Mar 02 16:18:57 yes, that means it is booting and resizing. Not sure how far you will get w/o full power though. Mar 02 16:19:03 unless you want to test any headless images Mar 02 16:19:44 you will definitely hit stability issues and wont be able to tell if its a SW prob or caused by a bug Mar 02 16:20:01 right Mar 02 16:20:24 Riddell, http://search.digikey.com/scripts/DkSearch/dksus.dll?KeyWords=993-1019-ND&site=us&lang=en&WT.z_slp_buy=TI_PandaBoard Mar 02 16:20:56 thats the recommended power supply Mar 02 16:21:56 http://www.applegate.co.uk/listings/stock/rs-components-ltd/power-supply-desk-top/PSAC30U-050-4482.html is a UK supplier Mar 02 16:22:48 so it's RS Mar 02 16:23:04 I heard their website is down because of something to do with raspberries Mar 02 16:23:47 I clicked and it came up. Try the link. Mar 02 16:29:57 £25 for a power supply! Mar 02 16:30:39 http://www1.conrad-uk.com/scripts/wgate/zcop_uk/~flN0YXRlPTM2MjUyMTE5MDI=?~template=PCAT_AREA_S_BROWSE&glb_user_js=Y&shop=UK&zhmmh_lfo=&zhmmh_area_kz=&product_show_id=512922&gvlon=&p_init_ipc=X&p_page_to_display=fromoutside&~cookies=1&gclid=&cookie_n[1]=uk_insert&cookie_v[1]=89&cookie_d[1]=&cookie_p[1]=%2f&cookie_e[1]=Tue%2c+03-Apr-2012+16%3a30%3a08+GMT&scrwidth=1024 Mar 02 16:30:44 there is another one Mar 02 16:31:07 well, you use a developer board ... Mar 02 16:33:28 here is one for under twenty http://www1.conrad-uk.com/scripts/wgate/zcop_uk/~flN0YXRlPTM2MjUyMTE5MDI=?~template=PCAT_AREA_S_BROWSE&glb_user_js=Y&shop=UK&zhmmh_lfo=&zhmmh_area_kz=&product_show_id=512922&gvlon=&p_init_ipc=X&p_page_to_display=fromoutside&~cookies=1&gclid=&cookie_n[1]=uk_insert&cookie_v[1]=89&cookie_d[1]=&cookie_p[1]=%2f&cookie_e[1]=Tue%2c+03-Apr-2012+16%3a30%3a08+GMT&scrwidth=1024 Mar 02 16:34:46 nah I trust RS more Mar 02 16:36:22 alternatively just get a universal 5V/3-4A one with plug adapters included Mar 02 16:36:36 that should be below 15 Mar 02 16:36:48 (GBP) Mar 02 16:38:42 ogra_: yeah except the plug adapters don't fit it the ones in my local shop are anything to go by Mar 02 16:38:48 anyway ordered that one Mar 02 16:39:00 I'll be back with more questions next week :) Mar 02 16:39:08 good Mar 02 16:40:05 ogra, GrueMaster! Mar 02 16:40:17 yes ? Mar 02 16:40:18 I go back into the other room with the panda board in and it's booted and showing on the monitor! Mar 02 16:40:22 Riddell: ! Mar 02 16:40:28 Yea. Mar 02 16:40:41 nice ... still, i wouldnt count on stability with that power setup Mar 02 16:42:45 yeah, ordered anyway Mar 02 16:43:06 ogra, GrueMaster: so this thing boots into ubiquity and you have to install it before you can do anything? Mar 02 16:44:32 it boots into oem-config Mar 02 16:44:47 you need to set up a user, TZ, language, kbd etc Mar 02 16:44:47 right, same thing kindae Mar 02 16:44:54 not really Mar 02 16:44:59 everything is installed Mar 02 16:45:27 its just the user cration and initial configuration .... no partitioning, no package installation Mar 02 16:47:16 sure I know Mar 02 16:47:26 this thing is a bit slow :) Mar 02 16:47:41 nope Mar 02 16:47:54 the "thing" is fast ... the SD card isnt ;) Mar 02 16:48:29 the CPU/RAM isnt slower than an intel ATOM ... but you run off an SD car with max 16-17M/s throughput Mar 02 16:49:02 oh really? would attaching a solid state hard disk by usb be faster? Mar 02 16:49:20 that should get you around 24-25M/s Mar 02 16:49:54 so yes, its a bit faster ... but its still just USB ... Mar 02 16:50:16 the panda sadly doesnt have a real disk controller, thats the limiting factor Mar 02 16:52:34 Riddell: sorry, the exact item I got from eBay is no longer available Mar 02 16:52:45 Riddell: I can tell you the maplin code for the DC connector if you like Mar 02 16:52:58 Riddell: if you fancy hooking one up yourself Mar 02 16:54:00 rbasak: I got one from RS Mar 02 16:54:13 thanks for looking Mar 02 16:54:16 np Mar 02 16:55:07 which mmc host does omap3/4 use? Mar 02 16:56:41 Riddell: If you plan on doing development work, I suggest getting an external USB drive and an extra SD (an old 128M or greater is sufficient). Then you can put netboot in the SD and install to the usb directly. For image testing, a 4G SD is sufficient (class 10 highly recommended). Mar 02 16:57:15 Having 1 SD to boot to USB & 1 for image testing is ideal. Mar 02 16:58:26 I couldn't find any info but I hope omap5 has an sdxc controller Mar 02 16:59:13 GrueMaster: so netboot on Sd card then install over ethernet to the USB solid state hard disk? Mar 02 16:59:32 like a decent one with ddr support and a bus speed to match so you can get those 45MB/s UHS cards to work Mar 02 16:59:32 right Mar 02 16:59:45 that gives you a faster system Mar 02 16:59:57 Yes. You should have sufficiently better bandwidth to ports.ubuntu.com than I do, so it should be fairly quick. Mar 02 17:00:05 for testing the kubuntu images you still want to use the 4G SD you have in use now Mar 02 17:00:11 Riddell, at the point you're using USB you don't really need to be solid state on the hard disk, just get a cheap rotating hard drive Mar 02 17:00:27 * ogra_ points Neko to #pandaboard with his questions Mar 02 17:00:47 you think they'd know the down dirty details of the omap5 sdxc controller? Mar 02 17:00:58 worth a try I guess Mar 02 17:01:07 well, there are many TI employees that work on designing the board Mar 02 17:01:24 not sure they will disclose any such info before the board is out though Mar 02 17:01:29 Is omap5 even out yet? Mar 02 17:01:33 nope Mar 02 17:02:12 no but it should be RTM by now according to their schedule, and in devices by the end of the year Mar 02 17:02:27 same as we've got MX6 months ago, someone has to have an OMAP5 on their desk Mar 02 17:03:06 it doesn't matter so much as it definitely has SATA anyway, but... you know :D Mar 02 17:06:25 I think my pandaboard only boots up with no mouse/keyboard plugged in Mar 02 17:06:32 that explains why it didn't boot when I was watching it Mar 02 17:07:20 yeah, mouse and kbd likey draw more power ... Mar 02 17:07:31 Riddell: Exactly. not enough power. Mar 02 17:07:32 and you are on the edge Mar 02 17:38:33 does anyone know if 1ghz is supported in the kernel yet on a beaglebaord xm? Mar 02 17:41:10 not in mainline, still quite a few patches needed to make it stable. Not even sure who at TI is even tasked for the smartreflex 1.5 stuff.. Mar 02 18:38:29 i am trying ubuntu on pandaboard and the screen blanks after 10 mins? how to disable screen blank Mar 02 18:39:07 however if i connect to that pandaboard thru ssh once, then the screen does not blank Mar 02 19:08:29 I believe there is an xset setting for that. It should be the same as on any desktop/server in x86. Try googling for the setting (I don't know off the top of my head). Mar 03 00:04:53 http://wiki.debian.org/QemuUserEmulation <-- it points to http://www.emdebian.org/debian/pool/cross-unstable/g/glibc/libc6-dev-arm-cross_2.3.6.ds1-6_all.deb Mar 03 00:05:01 but that does not exist Mar 03 00:16:29 axisys: That seems like a question for the debian channels. Mar 03 00:17:03 GrueMaster: was replying to twb's comment from yesterday.. i guess he left Mar 03 00:17:31 GrueMaster: trying to find out how to cross compile a kernel module for armv7l.. host is ubuntu on x86 Mar 03 00:18:24 Oh, I'm actually doing the same. Here is the instructions: https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel Mar 03 00:18:39 GrueMaster: :-) Mar 03 00:19:27 how do I know if it is armel or armhf ? dont know the difference Mar 03 00:20:26 axisys, http://www.emdebian.org/debian/pool/main/g/glibc/ Mar 03 00:20:37 they moved it. the debian wiki is out of date, feel free to update. Mar 03 00:20:55 Neko: i dont use debian Mar 03 00:21:11 you're on ubuntu? Mar 03 00:21:16 Neko: my laptop is ubuntu 11.10 x86 64bit Mar 03 00:21:30 axisys: What are you trying to build? Mar 03 00:21:30 twb suggested to read that.. hence my query Mar 03 00:21:32 oh.. ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- Mar 03 00:21:37 to make. it'll work. Mar 03 00:21:44 you really don't need much else than those two Mar 03 00:22:02 i want to build a rtl8150.ko for android tablet Mar 03 00:22:10 usb ethernet driver Mar 03 00:22:31 just the driver on it's own? Mar 03 00:22:34 Neko: i need to get the cross compiler Mar 03 00:22:44 it's part of the kernel since forever so you're better off building the whole kernel from scratch Mar 03 00:22:45 Neko: kernel module .. yes Mar 03 00:22:57 Neko: right Mar 03 00:23:03 Neko: but never done it Mar 03 00:23:16 Neko: cyanogenmod's wiki is not working for me Mar 03 00:23:18 never compiled a kernel or never cross compiled a kernel? Mar 03 00:23:26 neither Mar 03 00:23:47 well did a little bit today with a cross compiler from codesourcery.com ? Mar 03 00:23:56 i think that is the url.. forgot Mar 03 00:24:29 in the past did build an alpha kernel.. but still very limited experience.. Mar 03 00:24:39 them's the guys, but you should be able to use the arm cross compilers in the standard ubuntu repos Mar 03 00:24:49 have been using unix for 10+ yrs.. but now like to dive into lower layer Mar 03 00:24:56 just apt-get install gcc-arm-linux-gnueabi binutils-multiarch Mar 03 00:25:19 don't kick me if that doesn't install anything, I'm remembering those from last time I had to install them :D Mar 03 00:25:36 you'll probably also need u-boot-tools or u-boot-mkimage or whatever they call it now Mar 03 00:25:45 Neko: was looking at GrueMaster's url Mar 03 00:25:53 you're not building an ubuntu kernel though Mar 03 00:25:59 Neko: no Mar 03 00:26:00 so half of that doesn't make any sense for you Mar 03 00:26:36 i think i need a good cross compiler.. i got all the CM kernel Mar 03 00:26:53 but now need to build the kernel and then push the driver over Mar 03 00:27:10 here is my android Mar 03 00:27:12 Linux localhost 2.6.36.3-00020-g3d351b6 #1 SMP PREEMPT Wed Oct 19 10:52:26 JST 2011 armv7l GNU/Linux Mar 03 00:28:05 okay you probably best to get the config from the kernel on the android device, I dunno how you're going to get that off though, find the exact source used to build it, and then just cp myandroidconfig /my/linux/source/.config and then "make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig" Mar 03 00:28:18 hit / and then type rtl8150 and find the menu it's in, go there, enable it as a module, et voila Mar 03 00:28:29 i got the kernel Mar 03 00:28:33 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage Mar 03 00:28:41 You should be able to make the module out of tree. Just add "export CROSS_COMPILE=arm-linux-gnueabi-" to the process of making an out-of-tree module. Mar 03 00:28:42 that's assuming it boots off a uImage Mar 03 00:29:25 ok so first thing first.. what do I run to get the arm cross compiler? Mar 03 00:29:33 you said you already have it Mar 03 00:29:44 i have the kernel Mar 03 00:29:44 I'm gonna leave you to it, I have a ton of work to do Mar 03 00:29:53 you said you got a compiler from codesourcery.com Mar 03 00:30:08 so you're set up and ready to go Mar 03 00:30:09 the cross compiler i used was from there ^ .. but did not build any module Mar 03 00:30:18 .. did you make modules? Mar 03 00:30:33 and use the original config and update it? Mar 03 00:30:41 no wait I said I was gonna leave you to it. sorry, bye :D Mar 03 00:31:17 http://paste.ubuntu.com/865728/ <- this is what I ran so far Mar 03 00:34:34 axisys: I personally don't want to sound like an ass, but I really don't know how to help on this. This is more of an android question than an ubuntu-arm question. Mar 03 00:35:17 well.. do I need to run make modules after make ? Mar 03 00:35:49 There is a way to just make the one module you need. let me look. Mar 03 00:36:58 http://hex.ro/wp/blog/compile-an-android-kernel-module-outside-the-kernel-source-tree/ will give you some ideas. But you should be able to build that module by itsself. Mar 03 00:37:37 GrueMaster: thanks Mar 03 00:38:11 Here's a google search that helps. "kernel module build android". Mar 03 00:38:15 Tons of returns. Mar 03 00:38:51 :-) .. wow you did not give me the lmgtfy .. lol Mar 03 00:39:02 GrueMaster: thank you for your help Mar 03 00:39:05 This one in particular might be more helpful. http://omappedia.org/wiki/Building_Android_Kernel Mar 03 00:39:33 Thant's not how I roll. :P Mar 03 00:40:10 GrueMaster: i was using the first link from that search.. let me bug those guys more Mar 03 00:40:15 i think i am very close Mar 03 00:40:18 Let me know if it works for you. Mar 03 00:40:23 GrueMaster: sure **** ENDING LOGGING AT Sat Mar 03 02:59:58 2012