[10:42] <tgreer> hrw: ping?
[11:20] <hrw> tgreer: pong
[11:36] <tgreer> hrw: tried setting that flag to Y
[11:37] <tgreer> but still getting the same issue
[11:37] <tgreer> was just wondering if you had any other tips
[11:38] <tgreer> although i ticked another few boxes so not sure if that made a mess or not
[11:39] <tgreer> Support for the traditional ATAGS boot data passing is selected
[11:39] <tgreer>  Provide old way to pass kernel parameters
[11:39] <tgreer> is selected
[11:39] <tgreer> as is Supplement the appended DTB with traditional ATAG informati
[11:45] <hrw> tgreer: but have you appended dtb to the kernel?
[11:45] <tgreer> er
[11:45] <tgreer> no idea
[11:45] <tgreer> how would i do that
[11:47] <tgreer> i think i can see the option for it in make menuconfig
[11:47] <tgreer> but no idea what to put
[11:47] <hrw> tgreer: https://patchwork.kernel.org/patch/1432321/
[11:51] <tgreer> hrw: so i need a dtbImage.... where would I get one of those?
[11:53] <tgreer> board-dt-tegra20.c << aha
[11:55] <tgreer> still no idea how to use it :(
[11:56] <hrw> marvin24: you know Tegra more than I do. can you help tgreer?
[12:00] <marvin24> tgreer: make dtbImage?
[12:00] <tgreer> oh that simple?
[12:01] <marvin24> I usually attach it "by hand"
[12:01] <marvin24> so I don't know, but it seems like this
[12:01] <tgreer> marvin24: so what make dtbImage
[12:01] <tgreer> and then flash that to the bootloader
[12:01] <tgreer> or is that not the right image?
[12:01] <marvin24> ah, there is a .<dt>
[12:02] <marvin24> tgreer: what do you want to do at all
[12:02]  * marvin24 didn't read the backlog
[12:02] <tgreer> tegra 250 harmony development board
[12:02] <tgreer> trying to get an updated kernel on it to include pcie and the wifi drivers
[12:03] <tgreer> currently running  3.1.10-g1ff6b94 that came with ubuntu core
[12:03] <tgreer> got the latest kernel source from ubuntu's git repo
[12:04] <tgreer> i have 2 questions: which are the right options under Boot options in make menuconfig
[12:04] <tgreer> and the 2nd is what commands should I run to get the relevant file
[12:04] <tgreer> normally i do make menuconfig
[12:04] <marvin24> ubuntu has a tegra kernel?
[12:04] <tgreer> and then make zImage
[12:04] <tgreer> marvin24: the armhf kernel boots on it
[12:04] <marvin24> you have to make dtbs target
[12:04] <marvin24> and then cat arch/arm/boot/dts/tegra20-harmony.dtb >> zImage
[12:05] <tgreer> is that after i make zImage?
[12:05] <tgreer> or instead of
[12:06] <marvin24> at the same time ;-)
[12:06] <tgreer> blah
[12:06] <marvin24> make zImage dtbs
[12:06] <tgreer> marvin24: ok thanks
[12:06] <tgreer> before i make the image again
[12:06] <tgreer> was just wondering if you could confirm if i have the right options ticked
[12:06] <marvin24> this dtbImage isn't upstreamed as it seems
[12:07] <tgreer> i will be documenting ALL of the things once i get it working
[12:07] <marvin24> tgreer: make tegra_defconfig should give you a usable config
[12:07] <tgreer> okay
[12:07] <tgreer> will just double check it has the right bits in it for pci-e and then boom we're on
[12:10] <tgreer> okay make zImage dtbs -j2 running just now
[12:10] <tgreer> and then will do the cat
[12:10] <tgreer> all going well i owe you some beer
[12:10] <tgreer> :)
[12:12] <marvin24> does you board run uboot or fastboot loader?
[12:12] <tgreer> fastboot
[12:13] <tgreer> the nvidia dev kit instructions to load u-boot onto it just make it KO
[12:13] <marvin24> tgreer: in this case you need to modify the tegra_defconfig defaults
[12:13] <marvin24> e.g. appended_dtb you know already
[12:13] <tgreer> damnittttt
[12:14] <tgreer> making clean and starting again
[12:14] <marvin24> no need to clean
[12:14] <tgreer> so set appended dtb to y
[12:14] <tgreer> and thats it?
[12:14] <marvin24> I think you also need COMPAT_ATAGS
[12:14] <marvin24> mmh, maybe not
[12:14] <marvin24> that's only for 3.1 and uboot
[12:15] <tgreer> ok set appended_DTB
[12:15] <tgreer> starting compiling again
[12:15] <marvin24> also ccache helps speedup kernel builds
[12:15] <tgreer> (for the record I'm not cross compiling)
[12:15] <tgreer>  Supplement the appended DTB with traditional ATAG information (ARM_ATAG_DTB_COMPAT) [N/y/?] (NEW)
[12:15] <tgreer> i'm getting propmpted for this
[12:15] <marvin24> fastboot isn't really supported on mainline
[12:16] <marvin24> tgreer: answer no for now
[12:16] <tgreer> okdaydoke
[12:16] <marvin24> mainline doesn't have atags
[12:16] <tgreer> is there a better kernel tree to use instead of the generic ubuntu one?
[12:17] <marvin24> I think the ubuntu kernel doesn't compile at all on arm, I mean the 3.10 one
[12:17] <marvin24> at least not last time I tried
[12:18] <marvin24> but that's because mainline is broken for multisoc
[12:18] <marvin24> tgreer: just try and find out
[12:18] <marvin24> tgreer: I have CONFIG_ARM_ATAG_DTB_COMPAT set in my config btw
[12:18] <ogra_> mainline broken for multisoc ?
[12:18] <ogra_> we ship it with multisoc
[12:19] <marvin24> well, mutlisoc + enabling all kinds of modules
[12:19] <marvin24> in 3.10
[12:19] <ogra_> for armadaxp, omap and highbank iirc
[12:19] <marvin24> (the saucy kernel)
[12:19] <marvin24> they are not build I guess
[12:19] <marvin24> at least now two weeks ago
[12:19] <ogra_> hmm, i thought they were
[12:19] <tgreer> marvin24: ok will try it without
[12:20] <marvin24> ogra_: some fixes are already upstreamed
[12:20] <marvin24> but I guess not all will make it in
[12:20] <marvin24> tgreer: you won't be able to supply kernel command line without
[12:20] <marvin24> or you need to compile in a command line
[12:20] <ogra_> well, i guess the kernel team will maintain them as sauce patches then
[12:20] <marvin24> yes, sad enough
[12:20] <ogra_> and aim for the next merge window for upstreaming
[12:21] <tgreer> marvin24: do i need to?
[12:21] <tgreer> marvin24: i dont supply any kernel command lines at the moment
[12:21] <marvin24> tgreer: well, you won't get far I think without (e.g. no root), but you can try
[12:22] <tgreer> hmmm
[12:22] <tgreer> ok will just stop and add it
[12:22] <marvin24> do you have hdmi output connected?
[12:22] <ogra_> (or a serial console)
[12:22] <tgreer> serial console
[12:23] <tgreer> no hdmi output working yet
[12:23] <marvin24> yes, serial console should work
[12:23] <tgreer> so added in CONFIG_ARM_ATAG_DTB_COMPAT=y
[12:23] <marvin24> hdmi should also work btw
[12:23] <tgreer> marvin24: getting nothing out on it currently
[12:23] <tgreer> but that's next on my hitlist...
[12:23] <ogra_> you will need fbcon and friends enabled in your config
[12:23] <tgreer> do i need to add anything else into the .config
[12:23] <ogra_> for hdmi
[12:23] <marvin24> tegra_defconfig should have them already
[12:23] <tgreer> i need what?
[12:24] <ogra_> framebuffer console
[12:24] <tgreer> neither of them are in the .config
[12:24] <marvin24> oh, it doesn't ;-)
[12:24] <tgreer> lets make menuconfig
[12:24] <tgreer> and find them
[12:24] <tgreer> where abouts are they
[12:24] <ogra_> device drivers ... graphics devices
[12:25] <ogra_> also take a look at character devices, youo want virtual terminals ... (i.e. if the config pmes originally from android thats always off)
[12:25] <ogra_> *comes
[12:25] <tgreer> they're enabled
[12:25] <tgreer>  <*> Framebuffer Console support
[12:25] <tgreer> as is  <*> NVIDIA Tegra DRM
[12:26] <marvin24> maybe I was looking at the wrong branch
[12:27]  * tgreer gets some air while it compiles
[12:27] <tgreer> i shall report back in when done
[12:27] <tgreer> thanks ogra_ marvin24 and hrw
[12:36] <marvin24> gl
[13:08] <tgreer> compiled :D
[13:11] <tgreer> moment of truth :)
[13:12] <tgreer> yuuussssssssssssss
[13:12] <tgreer> kernel booting :)
[13:12] <tgreer> root@tegra:~# uname -r
[13:12] <tgreer> 3.8.13
[13:12] <tgreer> WOOOOp
[13:12] <marvin24> concrats!#
[13:12] <tgreer> annoyingly i dont see the wireless card though
[13:13] <marvin24> you need to build the modules
[13:13] <tgreer> oh
[13:13] <marvin24> and install on mmc before booting
[13:13] <tgreer> i thought when it was * it was build directly into the kernel
[13:13] <tgreer> not as a module
[13:14] <marvin24> well, wifi cannot be in the kernel because it needs firmware
[13:14] <tgreer> damnit
[13:14] <marvin24> maybe this changed today, but I don't know
[13:14] <tgreer> ah right ok
[13:15] <tgreer> but the drivers in the kernel tree these days?
[13:16] <tgreer>   │ │    <*>   Atheros mobile chipsets support                            │ │
[13:17] <tgreer>   │ │    <*>     Atheros ath6kl SDIO support                              │ │
[13:17] <tgreer>   │ │    <*>     Atheros ath6kl USB support                               │ │
[13:17] <tgreer>   │ │    [*]     Atheros ath6kl debugging
[13:17] <marvin24> they should
[13:18] <tgreer> root@tegra:~/ubuntu-raring# modprobe ath6kl
[13:18] <tgreer> libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.8.13/modules.dep.bin'
[13:18] <marvin24> yes, no modules installed
[13:18] <tgreer> derp
[13:18] <marvin24> copy them to a usb drive
[13:18] <marvin24> if you have usb-storage compiled in
[13:18] <tgreer> i havent built the modules
[13:18] <tgreer> also
[13:18] <marvin24> make modules ...
[13:18] <tgreer> all the kernel compilcation is on the live SDcard
[13:19] <tgreer> making it just now
[13:19] <marvin24> ah, lucky you
[13:23] <tgreer> do i need to do a make moduleinstall or something?
[13:24] <tgreer> make modules_install it seems
[13:27] <tgreer> usbcore: registered new interface driver ath6kl_usb hmmm
[13:31] <tgreer> you mentioned firmware... should i stick that in lib/firmware/ar6000?
[13:32] <marvin24> yes
[13:33] <tgreer> righto. so it cant be in the kernel because it needs firmware... so i should rebuild the kernel without that module in it...
[13:33] <tgreer> have it as an actual module
[13:33] <tgreer> and then modprobe it to get it in?
[13:33] <marvin24> it should auto probe
[13:33] <marvin24> so all should work as it is now
[13:33] <tgreer> right just by putting the firmware in the right place?
[13:34] <marvin24> if you installed linux-firmware it should be there already
[13:34] <tgreer> er dont think i have..
[13:34] <marvin24> check the dmesg, maybe you find some hint
[13:34] <marvin24> it should be automaticly installed
[13:35] <tgreer> usbcore: registered new interface driver ath6kl_usb is the only mention of it
[13:36] <marvin24> nothing before that line?
[13:36] <marvin24> do you have /lib/firmware/ath6k/AR6004 ?
[13:36] <tgreer> no.. but then i didnt have linux firmware... i had the firmware from the nvidia devkit
[13:36] <tgreer> let me install linux firmware and try again
[13:37] <marvin24> well, both should work
[13:37] <tgreer> root@tegra:~# ls /lib/firmware/ath6k/AR600
[13:37] <tgreer> AR6003/ AR6004/
[13:37] <tgreer> i think mine is a 6002
[13:37] <tgreer> i'll put my ar6002 folder in there
[13:39] <tgreer> only mention of ath is in: usbcore: registered new interface driver ath6kl_usb
[13:39] <marvin24> maybe you are still missing something
[13:46] <tgreer> no luck with the wifi...
[13:46] <tgreer> any ideas on getting hdmi out to work
[13:47] <tgreer> Error: Can't open /dev/nvhost-ctrl
[13:47] <tgreer> Opening channel failed 7
[14:13] <marvin24> tgreer: that's old userspace
[14:13] <marvin24> you need to remove it and install opentegra
[14:14] <marvin24> what's the output of lsusb? (to some pastebin please)
[14:16] <tgreer> http://pastebin.com/GS6GqNsT
[14:17] <marvin24> tgreer: there is no usb wifi
[14:17] <marvin24> only the 3g modem
[14:17] <tgreer> i've noticed..
[14:17] <tgreer> also: https://launchpad.net/~ac100/+archive/ppa/+build/4306566 << this one?
[14:17] <marvin24> yes
[14:18] <tgreer> https://wiki.ubuntu.com/ARM/TEGRA/AC100#Hardware says to use nvidia-tegra
[14:18] <tgreer> The nvidia-tegra package is not yet available for armhf. For now, just stay with the default open source driver.
[14:18] <tgreer> ignore me
[14:20] <marvin24> tgreer: the nvidia tegra package is for downstream kernels only (v3.1)
[14:21] <tgreer> ahhh
[14:21] <tgreer> removing and adding opentegra
[14:21] <marvin24> mainline uses a totally different driver (open source)
[14:23] <tgreer> damnit
[14:23] <tgreer> libudev0 is needed
[14:23] <tgreer> and isnt in raring packages
[14:28] <infinity> Nope, you can fish it out of quantal, if you really need it.
[14:28] <tgreer> oh its in raring-proposed it seems
[14:28] <infinity> But if you run into upstream binaries that link libudev0, please yell at them to recompile.
[14:29] <infinity> If it's in raring-proposed, that's NBS cruft, and I'll remove it. :P
[14:29] <tgreer> its not
[14:29] <tgreer> its gone now
[14:29] <tgreer> its the opentegra package thats linking it
[14:30] <infinity> Where does this opentegra come from?
[14:31] <tgreer> https://launchpad.net/~ac100/+archive/ppa
[14:31] <tgreer> only place i can find it
[14:32] <infinity> Oh, a simple rebuild might fix that.
[14:32] <infinity> marvin24: Want to rebuild that PPA upload? :P
[14:34] <tgreer> tegra-hdmi hdmi: cannot set audio to 44100 at 81620000 pclk
[14:34] <tgreer> well thats progresss
[14:34] <marvin24> tgreer: rebuild for saucy?
[14:34] <marvin24> tgreer: that's harmless
[14:35] <infinity> marvin24: The libudev0 -> libudev1 transition happened in raring, you probably want to rebuild https://launchpad.net/~ac100/+archive/ppa/+build/4307597
[14:35] <tgreer> marvin24: yes harmless
[14:35] <marvin24> infinity: I think I build on raring, should I change depends
[14:35] <tgreer> but still not output on hdmi
[14:36] <infinity> marvin24: You built on raring, but before the transition.  A no-change rebuild should fix it.
[14:36] <marvin24> ok
[14:37] <tgreer> xrandr gives me Can't open Display
[14:37] <tgreer> marvin24: do you have an example xrandr?
[14:38] <marvin24> tgreer: check Xorg.0.log first
[14:40] <marvin24> infinity: sorry, how to rebuild - I cannot find it in the web interface, do I need to bumb the version?
[14:41] <infinity> marvin24: Yeah, bump the version and reupload.
[14:42] <infinity> dch -i 'No-change rebuild for the libudev0 -> libudev1 transition.'
[14:42]  * marvin24 really hates launchpad for you cannot replace a package version ...
[14:42] <infinity> That's a feature, not a bug. :P
[14:42]  * marvin24 hates this "feature"
[14:42] <infinity> Having two different packages with the same filename/version is generally a Bad Thing.
[14:42] <marvin24> I know
[14:42] <marvin24> but I still hate it ;-)
[14:43] <infinity> Heh.
[14:49] <tgreer> http://pastebin.com/raw.php?i=h0iu2j4B
[14:49] <tgreer> output from startx
[14:57] <marvin24> tgreer: looks fine
[14:57] <marvin24> what kind of device is this "800x480" with hdmi?
[14:58] <tgreer> except nothing on display
[14:58] <tgreer> its a small touchscreen device
[14:58] <marvin24> change the console
[14:58] <tgreer> i need a keyboard for that
[14:58] <marvin24> chvt maybe
[14:59] <marvin24> btw, you can get rid of all the command line parameters except root= and rootwait
[15:00] <marvin24> they are all downstream kernel specific
[15:00] <marvin24> and console=ttyS0 of course
[15:02] <tgreer> still 0 on display
[15:02] <tgreer> its showing as no input
[15:03] <tgreer> if i plug it into my laptop works fine
[15:05] <marvin24> tgreer: hdmi is not hotplug capable yet
[15:05] <marvin24> did you rebooted?
[15:05] <tgreer> hmm yes but i'll try again
[15:06] <marvin24> maybe adding cma=64M may also help, but I think this is only required for large screens
[15:08] <tgreer> <.<
[15:08] <tgreer> let me try vga..
[15:09] <tgreer> still no signal :(
[15:10] <marvin24> tgreer: paste output of dmesg
[15:11] <tgreer> http://pastebin.com/CB6AFbkE
[15:12] <tgreer> i wonder if video=tegrafb  is the issue
[15:13] <marvin24> remove it
[15:13] <marvin24> remove everything not needed
[15:13] <tgreer> i dont know where thats set..
[15:13] <marvin24> something which created the bootimg
[15:13] <marvin24> mkbootimg ?
[15:15] <marvin24> vdd_ldo7,avdd_hdmi: disabling
[15:15] <marvin24> vdd_ldo8,avdd_hdmi_pll: disabling
[15:15] <marvin24> that's bad
[15:16] <tgreer> so remove videospec
[15:17] <marvin24> I'm off for now, but will come back in a few hours ...
[15:17] <tgreer> ok will try it without videospec and see what happens
[15:20] <tgreer> made no diff
[15:38] <tgreer> blahhragggeeeeeeeee
[15:43] <tgreer> would i be better off with u-boot as my bootloader?
[15:43] <tgreer> seems the fastboot binary has those details hardcoded
[15:50] <tgreer> this is so complex... tried changing the fastboot.bin and still same kernel command lines
[18:04] <marvin24> tgreer: how do you flash the kernel?
[18:04] <tgreer> using the flash.sh included in the nividia sdk
[18:19] <marvin24> tgreer: so I guess you need to edit this one