/srv/irclogs.ubuntu.com/2011/06/24/#ubuntu-arm.txt

NTULOL @ ubuntu on ARM!!01:03
infinity...01:04
infinityThat was constructive.01:04
=== prpplague^2 is now known as prpplague
lilstevieinfinity: its the little things01:40
=== asac_ is now known as asac
persiaericm|ubuntu, Good morning.  Quintasan was trying to compile imx-libs against linux-headers-2.6.35-1001-linaro-lt-mx53_2.6.35-1001.1_armel.deb based on guidance from http://boundarydevices.com/blogs/building-gstreamer-plugins-under-ubuntu  and ended up withhttp://paste.kde.org/86929/.  Do you happen to know of more modern (or working) instructions?02:22
ericm|ubuntupersia, paulliu knows the detail - btw, can you let Quntasan send email to us, me and pualliu, thanks05:05
persiaI'll try to convince him.  Thanks for the pointer.05:08
=== Lopi is now known as Lopi|idle
=== fairuz_ is now known as fairuz
=== apachelogger is now known as rohansgoogle
=== rohansgoogle is now known as apachelogger
ograsoo, seems we have images again10:49
lilstevieog?10:50
lilstevietabcomp fail :p10:50
ograand the oversizedness is caused by the fact that the images contain *all* langpacks10:50
lilstevieoh dear10:50
lilstevieso how does one go about getting a package in universe10:50
lilsteviesay a kernel10:50
ograyou file a bug pointing to the package and then find a sponsor10:51
lilstevieok, sounds easy enough10:51
ograor you get it into debian ...10:51
ograwhich is the preferred way10:51
ograbut might be hard in case of kernels10:51
lilsteviewould be hard in the case of my tab kernel10:52
ograin any case it would be better to have upload privileges10:52
ogragoing through sponsoring with a kernel is painful10:52
lilstevieheh10:53
ograat least for followup changes and fixes10:53
lilstevieyeah that is what I am not looking forward to, with the sponsor method that is10:53
ograneither will your sponsor10:54
ograuploading a 90M package for every change is annoying, finding sponsors for that will not be easy10:55
ogralong term i would suggest to earn upload privs10:55
lilsteviehm10:55
ograor have someone with these privs in your team that maintains the arch10:56
lilsteviethat sounds the hardest10:57
kunguzHi all, I have installed Ubuntu arm 11.04 on my beagleboard C3. The thing is usb devices attached to it works in the early stages of booting of the system. But when the booting finishes the usb devices stop working. Any ideas?10:57
lilstevieI don't know anyone with upload privs10:58
lilstevieogra: the good news is though I am killing the last bug that affects basic usability since switching up to the new kernel11:01
ograwhat version are you on now ?11:02
lilstevie2.6.35.711:02
ograoh, still ancient11:02
lilstevieyeah11:03
lilsteviebut newer11:03
persiaFinding sponsors doesn't have to be that hard.  I'm almost always willing to sponsor kernel uploads to universe, for example.11:04
persiakunguz, Maybe bug #784474?11:06
ubot2Launchpad bug 784474 in linux-ti-omap "usb enumeration fail on beagleboard" [Undecided,New] https://launchpad.net/bugs/78447411:06
kunguzubot2: persia seems similar, thank you11:07
ubot2kunguz: Error: I am only a bot, please don't think I'm intelligent :)11:07
kunguzubot2: but you are clever one :D11:07
ubot2kunguz: Error: I am only a bot, please don't think I'm intelligent :)11:07
persiakunguz, I'm not sure that's precisely the bug: it has a decent test scenario written up.  If you can't replicate precisely that way, it's always safest to search a bit more for a bug you can precisely replicate, or file a new one.11:08
* ogra ponders what to do with the images11:08
persiaWhat do you mean?11:08
ograWe should have enough space to include all langpacks on the 1 GB armel desktop11:09
ogralive images:11:09
ogra * /^language-pack-[^-]+$/ [armel]11:09
ogra * /^language-pack-gnome-[^-]+$/ [armel]11:09
ograthat ...11:09
ogra(paste from the live seed)11:09
ograseems lool added that back when we still rolled live images11:09
persiaLet them be oversized for a bit more.  In #ubuntu-devel there was some talk about sorting the internationalisation bit next week.11:09
ograwell11:10
ografor live, yes11:10
persiaThere's some reason to have *lots* of languages right now.11:10
ografor preinstalled we likely need some extra code11:10
ograand i dont really want 1G images11:10
persiaI suppose.11:10
persiaMy suspicion is that the work on making sensible international images will end up reducing that substantially.11:11
lilsteviepersia: even my galaxy tab 7" image? :)11:11
persialilstevie, *especially* your galaxy tab image.  I would really like Ubuntu to support as many retail devices as we can.11:11
ogra++11:11
persiaBut I'm not a kernel hacker, so all I can do is review other folks kernels, make sure they're packaged sanely, and help them get images from them.11:12
lilstevie:)11:12
lilsteviewell I am within 24hours of a sane kernel11:12
lilstevie:)11:12
persiaFor packaging, I'd recommend starting from either jcrigby's scripts or linux-n900 (derived from those)., depending on which makes you more comfortable.11:12
ograpersia, note that the hack above is armel only, no other arch ships all langpacks11:13
persiaI'm within 24 hours of my weekly "ignore IRC traffic for 20-30 hours" time, but I'd be happy to upload later in the weekend.11:13
lilstevietbh I will need a bit of help with the packaging, the only debs I have ever packed have been for apt on arm-darwin11:13
persiaogra, So, we should undo that.  I'm still not tempted to undo it until we understand the i10n plan.11:13
ograwell, i'm happy to go with the defaults all arches use11:14
* ogra drops the lines from the seed11:14
persiaIf you want to have a seed commit today, I'm 100% in favour of doing anything to make armel less special in the seeds.11:14
persiaI just expect that we'll have to fiddle it again later.11:14
ograwhy ?11:15
ograwe will inherit whatever desktop does11:15
persialilstevie, I *may* have time on Sunday, depending on your timezone, etc.  If not, I'll try to catch you as soon as I have time.11:15
lilstevie:)11:15
persiaBecause preinstall != live.11:15
lilsteviewell it is 8:15pm friday here :p11:15
persiaAh, a *good* timezone :)11:15
lilstevie:)11:16
ograpersia, well, the only difference is casper vs jasper11:16
ograwe use the live seed on preinstalled11:16
persiaSo, yeah, there's a chance I'll have time Sunday evening then.11:16
ograseed change pushed11:16
ogralets see how much that saves11:16
ograi guess we should come out below 800M now11:16
persiaGiven that there is a *new* method of doing internationalisation in the works, I'm expecting *both* jasper and casper to need adjustment, along with live-build configu.11:17
persiaBut yeah, for the weekend, we can have smaller images.11:17
ograwell, desktop will not go to bigger images for now11:18
persialilstevie, Be aware that the release manager has all sorts of requirements for generating images.  In practice, this typically means that if we get a kernel into the archive in one cycle, we can have proper images the *next* cycle.  That said, if your kernel is good enough, and there are testers, etc.., we may be able to work around that.11:18
ograso they will rather drop langs than add11:18
persiaIt's changing.11:18
ogranot yet11:18
persiaStuffing bundles of langs into a single image may not be how it is done in the future.11:18
ograas i understood we still go for 700M in oneiric11:19
persiaAnd there is no way to have any idea about this until next week.11:19
lilsteviepersia: heh I don't think we will be working around that11:19
persiaYes, oneiric images will be 700M.  Nonetheless, per-locale customisations are happening in a *completely* different way than in the past, and much more comprehensively, which likely has implications about how locale-specific code ends up in default images.11:20
persialilstevie, Fine by me, as long as you don't mind it being a remix for 11.10.11:20
ograi dont care about customizations :)11:20
ograonly about the default image11:20
persiaIf there are enough users, etc. then we can apply to have proper images for 12.04.11:20
persiaYes.  Please read my last sentence again.11:20
lilsteviepersia: that said I always tend to understate my stuff11:21
lilsteviepersia: my problem is the lack of hardware support11:21
persialilstevie, It's a geographical limitation.  You're just following your peers.11:21
lilstevieheh11:21
lilsteviepersia: well there already have been some testers just FYI11:24
lilstevieon the utouch team11:24
persiaMore folk always help, but we're going to need someone to commit to the milestone testing, which basically means being nearly continuously available (for respins) for ~3 days for each milestone release to ensure image quality.11:25
persiaAnd that usually requires user numbers in the 100s, unless one happens to get lucky and catch a great tester early.11:26
lilsteviehm, well I don't know about 100s :/11:26
persiaHeh, yeah.  That's part of why it's sensible to start slowly.11:27
persiaIf you make something great, and then you tell your users that someone has to volunteer to help test in order to continue, you'll either get a volunteer, or you'll have confirmation that there isn't enough interest.11:27
lilstevieheh11:27
ograhmm11:37
ograso how do i make preinstalled images use the oem user11:37
ograshould that be created at image build time or by jasper11:38
persiaBy jasper.11:41
ograwhy ?11:41
persiaTo parallel casper, and keep live-build config more similar.11:41
persia(yes, there's messiness now, but I'd rather clean that up than add to it).11:41
ograwell, do you see a reason why preinstalled images shouldnt have an oem user and oem-config enabled by default11:42
persiaRemastering.11:42
ograi actually think that code should move into the build process11:42
persiaFor live also?11:43
ograno11:43
persiaOK.  Why should live and preinstall be different?11:43
ograwell, for remastering its actually an advantage11:43
ograbecause they are totally different things by design11:43
ograpreinstalled images will always have oem-config installed11:44
ograso why not enable it by default (including the user)11:44
ograwrt remastering ... if you dont use the jasper initrd, you are screwed today11:45
persiaWhy?11:45
ograbecause jasper enables oem-config11:45
persiaI know of people who have extracted the rootfs from a preinstall, generated a *different* initrd, and used it on devices.11:45
ograi know of people trying to use our preinstalled rootfs as is but without initrd :)11:46
persiaHeh.11:46
ograif you only want the rootfs then you have to manually fiddle with it to get oem-config up11:46
lilstevieI had to manually touch /var/lib/oem-config/run11:47
persiaSo the basis of my argument is mostly "There should be no difference between live and preinstall".11:47
ograi.e. you have to do all the bits jasper does to the rootfs11:47
persiaBut I can see the argument "There should be no difference between preinstall and the results of booting live and performing an orm install".11:47
ograjasper should *only* care about partitioning and resizing11:47
ograand the peripherial bits that includes like bootloader config and fstab creation etc11:48
ograi want to get all unrealted hacks out of the code11:48
persiaOK.  I can accept that.11:48
ograenabling oem-config is one11:48
persiaAnd jasper might end up going away completely, replaced by spices, or similar.11:48
ograand we dont even do it right atm11:48
persia(or be the instrument of spice implementation)11:48
ograyou will always need the resize on boot bit11:49
persiaRight.  You've convinced me.  oem-config should be enabled by live-build.11:49
ograwhich in turn means you will need to create fstab and bootloader config at the same time11:49
ograthat cant be handled by seeds only the package can be pulled in or be omitted by seeds11:50
ograi dont expect jasper to go away as long as we have the resizing11:50
persiaAh, and if jasper is pluggable, fstab can be generated dynamically, and bootloader config can be done by spice insertion to some conf.d.11:50
ograwell, bootloader config is something that should better live in flash-kernel-installer ... but that will require more changes11:51
ograsince its only available in udeb form atm11:51
persiaWe could add it to oem-config.11:51
persiaOr, no, you need it earlier, don't you.11:51
ograno11:51
ograwell11:51
ograyes11:51
ograheh11:51
ogratricky11:51
ograi need a change of the cmdline earlier11:52
ogranot necessarily a full new setup of the bootloader11:52
persiaWe already did the work to have a ubiquity controller for flash-kernel-installer, so it would be handy if we didn't need it until oem-config runs, but because we need it early, jasper has to do it.11:52
ograthe actual setup could be done by oem-config11:52
ograbut that wouldnt get rid of bootloader code in jasper11:53
persiaIf we're going to have bootloader code in jasper, let's use flash-kernel.11:53
ograthats what it does ... just not for the setup11:53
ograi.e. the generation of config11:53
persiaflash-kernel-installer won't generate the config?11:54
ograflash-kernel-installer isnt existent in jasper11:54
ograi would have to pull it into the initrd11:54
persiaNot all of it.11:54
ograwith a big penalty (lots of different bootloader deps)11:54
persiaSo, the way ubiquity does it is to embed the flash-kernel source in the ubiquity source, and then copy flash-kernel-installer.postinst to somewhere useful when building the binary.11:55
ograby current design, all of it11:55
persiaIt then calls that script to do the setup.11:55
ograi know how ubiquity works11:55
ogra(i worked on that code too)11:55
persiaCan't we do the same thing for jasper?11:55
persiaAnd inject only the bootloader support demanded by the spice?11:55
ograyes, but to keep it generic you would have to pull all bootloader tools into the initrd11:56
ograthat will get huge11:56
persiaYeah: just refreshing both our memories to make sure we're talking about the same thing :)11:56
persiaWe don't need generic at that point: this is what spices are supposed to do.11:56
persiaThat's the entire point of the two-stage image build process.11:56
ograwell, thats not how flash-kernel-installer is workigng currently11:57
ograso that would need some massive redesign11:57
persiaI thought that flash-kernel-installer simply assumed that everything was present, but then only called the bit it needed for the board it was using.11:57
ogramodularization ... and support for initrd11:57
ograflash-kernel-installer *makes* everything present11:57
ograthats part of its job11:57
ograit chroots and installs the bits and pieces for the currently used arch11:58
persiaYes, but that's the dependencies.  flash-kernel-installer.postinst doesn't do that on it's own, does it?11:58
ograwhich means you need support for *all* arches in the ship seed11:59
persiaAnd flash-kernel-installer.postinst is *designed* to run from an initrd (the d-i environment)11:59
persiaWhy?11:59
ograflash-kernel-installer.postinst chroots and calls apt_install11:59
ograflash-kernel-installer.postinst is not designed to be run from an initrd11:59
ograit is designed to be run in d-i context12:00
persiaThe d-i context *is* an initrd, but we stray :)12:00
ograit expects certain d-i copmponents to be there12:00
persiaIt calls apt_install for *everything*, rather than just the currently-detected platform?12:00
ograno12:01
persiaRight.12:01
ograits doable but as i said in the beginning it takes a lot of changes12:01
persiaAh. because in the preinstall context, we don't have a chroot.  Right.12:01
ograand essentially a complete redesign of flash-kernel-installer12:01
persiaLet's not do that.12:01
ograwe do have a chroot12:01
ografrom initrd12:01
persiaSo, why do we need to change anything?12:02
persiaapt_install is a no-op if the package is already installed.12:02
ograif we want to use it out of context we need to change it12:02
ograapt_install doesnt *exist* in  non d-i initrds12:02
ograthere are plenty of calls to d-i tools in the scripts12:03
ograyou cant just dump it into an initrd12:03
ograit wouldnt run12:03
persiaAh, so we'd end up embedding all sorts of things, essentially duplicating ubiquity, and we'd get all sorts of annoyed trying to maintain it.12:03
persiaRight.12:03
ograyeah12:03
ograso it would have to become more modular (so you only pull in the snippets you need at initrd generation time) and would need a layer that can switcfh between d-i tools and normal initrd binaires12:04
persiaSo, we have flash-kernel available in the chroot, right?  And whatever bootloader support bits we need for the target?12:04
ograand you would need arch specific hooks in initramfs tools so you can select which bootloader tools go into the initrd12:05
persiaOh, but that won't generate the initial configuration.12:05
ograright12:05
persiaNo I don't.12:05
persiaI can control that by which packages I happen to have installed at initrd generation time.12:05
ograthe first change of the cmdline is the bit12:05
ografor the actual final initrd we can actually use flash-kenrle-installer12:05
* persia wishes someone would port grub2 already, *again*12:05
ogra*kernel12:06
* ogra doesnt :P12:06
persiaflash-kernel-installer, or flash-kernel?12:06
ograthe former12:06
ografrom oem-config12:06
persiaOh, right.  Because that gives us a d-i context.12:06
ograright12:06
persiaSo, really, we just need to be able to boot *this one time*.12:06
ograits only the jasper bits12:06
ograwhere i parse the cmdline and adjust it after resizing12:06
persiaSo, I don't believe there's a generic way to change the commandline.12:07
persiaWe've different requirements for different bootloaders.12:07
ogranot generic, but pretty generic12:07
ograwe currently support what, two bootloader variants in ubuntu ?12:07
ograu-boot and abootimg12:08
ograredboot is gone from teh achrive and from flash-kernel since a few days12:08
ogra(and from d-i)12:08
persiaYeah.  I have to add some of it back one of these days, if I ever get around to upgrading my netwalker (I kinda wish someone would come out with a satisfactory replacement I could just buy instead).12:09
persiaBut what I'd add back for redboot is *completely different* from what was there, so that's not strictly relevant.12:09
Davieyogra: Do you know if PXE boot is likely going to be an option for next?12:09
persiaAnd there's the messiness for the Nokia devices, but that's something else.12:09
Daviey(or anyone else)12:09
persiaDaviey, "next"?12:09
ograDaviey, the code is in our oneiric u-boot package12:10
ograDaviey, we'll run some tests next week12:10
persiaDaviey, You want to watch https://blueprints.launchpad.net/linaro-ubuntu/+spec/linaro-platforms-o-uboot-pxe-support andhttps://blueprints.launchpad.net/linaro-ubuntu/+spec/linaro-platforms-o-uboot-initial-usb-tftp-support-panda12:10
persiaSupposedly, as part of those implementations, we'll end up with docs that describe how to enable PXE for arbitrary u-boots (needs device driver porting) as part of that delivery.12:10
ograpersia, yeah, well, we largely dropped imx5112:11
ograand all bootloader code it had12:11
ograor better lool dropped i just nodded :)12:11
persiaExcept for the netwalker, all the i.MX devices I have use u-boot.12:11
ograyup12:11
ogramost future devices will use fastboot i suspect12:12
persiaDunno.  u-boot has a lot of following, and Freescale supports it.12:12
ograif we cover these two we should be largely generic ;)12:12
persia(plus, we *could* have grub2, and not have to worry about any of this mess)12:12
ograpfft12:12
ograunlikely that you get the vendors to support it12:13
DavieyAh lovely!12:13
ogratook long enough to get most of them to u-boot12:13
Davieyogra / persia: we might be pestering you next week. :)12:13
ograwe hope so !12:13
DavieyThanks! :)12:13
persiaAnyway, for supporting two bootloaders, should that be pluggable?12:14
persiaHave the bootloaders provide some file that, when jasper is installed, jasper uses to define *how* to change the cmdline?12:15
persiaThat's likely more compatible with spices than jamming everything in jasper and hoping the initrd doesn't overflow.12:15
loolI actually think we should consider grub as a third stage bootloader12:15
ogralool, what would be second stage ?12:17
persialool, I'd love to have a discussion about why we shouldn't use grub as *second* stage, but I really want to figure out the design for pre-oem-config booting first :)12:17
lilstevieI'd love to see grub2 for arm12:17
persiaogra, So, pluggable, or bundle-everything-in-the-initrd and hope we don't get too many bootloaders?12:17
ograpersia, well, on the ac100 i have exactly 4M for the initrd12:17
persiaThat's a good argument for pluggable :)12:18
ograevery byte above makes the system oops12:18
persiaSo we have /usr/share/jasper/bootloaders.d/*.conf, and we source that, and then call "fix_command_line()" ?12:19
ograsomething like that12:19
persiaOh, right.  initrd.  Change the names :)12:19
persiaAnd then we add the magic file to abootimg and u-boot.12:19
ograright12:20
persiaSo, here's the worry.  The magic file will end up in the initrd after jasper is purged.12:20
persiaDo we care that much?  They should be very small.12:20
ograwhy would it ?12:20
persiaBecause it lives in the bootloader package.12:20
ograoem-config runs update-initramfs after jasper is removed12:20
persiaRight, but that won't remove the files from the bootloader packages.12:21
ograbut the hoooks that would install it to the initrd12:21
ogras/it/them/12:21
ograthe files live in the filesystem, but not in the initrd if no hook installs them12:22
persiaAha, so it *would* be somewhere like /usr/share/jasper/... and then jasper would provide the hooks for initramfs-tools, which would be purged on jasper-purge, which would result in the magic files not being in the initrd when update-initramfs is called?12:22
ograwell, in /usr/shar/initramfs-tools/hooks, but yeah12:22
persiaWell, the hooks go there, but the bootloader implementation files?12:23
ograthe hooks define what ends up in the initrd12:23
persiaYes.12:23
ograactually /usr/shar/initramfs-tools/hooks/jasper does12:23
persiaBut in order to end up in the initrd, stuff has to be in the filesystem.12:23
ogra /usr/shar/initramfs-tools/hooks/jasper is part of the jasper package12:23
ograthe bootloader config templates can come with the bootloader12:24
persiaAnd the bootloader packages need to deliver the implementations to the filesystem to ensure we don't have multiple (assuming we didn't spice the image to have multiple).12:24
ograright12:24
persiaRight.  I'm suggesting that the bootloader config templates should be installed to /usr/share/jasper/bootloaders/ or similar.12:24
ograbut they wont end up in the initrd ever if /usr/shar/initramfs-tools/hooks/jasper is gone12:24
persiaWhere jasper ships either an empty directory or a directory containing only .placeholder to support this.12:25
persiaRight, which is the correct behaviour.12:25
* ogra wishes he would find out why this 4M limit exists on the ac10012:26
persiaInsufficiently hackable bootloader.12:27
lilstevieogra: partition size?12:27
persialool, So, why wouldn't we want grub as second stage?  Wouldn't using it as third stage add ~8 seconds to boot time?12:27
loolpersia: I'm not sure where the 8 seconds are from12:28
lilstevieogra: is the ac100 fastboot?12:28
persiaRandom guess on my part to load grub, detect time, timeout, and load the kernel.12:28
persialool, To put that another way, if we're loading grub2, why wouldn't we want that to be second-stage?12:29
loolit's a bit of a complex story; we could discuss it next week if you like; first, you often need a SPL which just loads the real bootloader into the initialized RAM12:29
loolthen you need a bootloader which does good stuff, this could be grub; but we're already at the TPL12:29
persiaTPL?12:30
loolinvented that one just now for tertiary or third program loader  ;-)12:30
loolSPL being secondary program loader12:30
persiaRight.12:30
loolthe second stage loader is hard for various reasons12:30
loolfirst, it's extrenely device specific; it's hard to make it generic12:31
loolsecond, it needs to be extremely small12:31
persiaSo, for example, on beagle, we do ROM -> FPL (xloader) -> SPL (uboot) -> TPL (linux), right?12:31
loolno, ROM is first stage12:31
loolxloader is a SPL12:32
persiaAh, OK.12:32
persiaSo you want ROM -> (something) -> grub2 -> linux ?12:32
ogralilstevie, yeah12:33
lilstevieogra: wonder if it is bootloader related, or if it is partition size12:33
lilsteviefastboot is a pita12:33
ograi'm pretty sure its bootloader related12:33
ograit seems to be related to the unpacked size12:34
loolpersia: that's right; the something could perhaps be UEFI related  :-)12:34
lilstevieogra: oh12:34
ograi.e. i can squeeze more into a bz2 or lzma initrd, but that will cause an oops12:34
persialool, Right.  We completely agree, but were previously using different nomenclature.12:35
lilstevieogra: so maybe its memory hole isnt big enough12:35
persiaI also want grub2 as TPL.12:35
ogralilstevie, right12:35
loolpersia: also, "something" might need to be in two pieces itself12:35
ograin *some* pieces :)12:35
loolso grub 2 might be QPL or something  :-)12:35
* lool lunch12:36
lilstevieogra: FYI memory layout from bootloader is what was causing my issue too, turns out the drivers for 2.6.32 expected FB mem to be at 1 address and the new bootloader has the memory location offset a bit highre12:36
lilsteviehigher*12:36
persialool, I'd really prefer a less capable *something* than a split one.  For example, u-boot is often no longer used as SPL beause it has too many features to fit in the small memory barriers, but realistically most of those features aren't needed if handing off to grub2.  The same applies, only moreso, for UEFI.12:36
ograoften used as ?12:37
ograu-boot *is* an SPL, no ?12:37
persiaogra, For panda, it's TPL.  xloader is SPL.12:38
ograwell, yeah12:38
ografor panda12:38
persia(according to the nomenclature lool and I are using for this discussion)12:38
ograusually its SPL though12:38
ograomap is special since it doesnt fit enough into its rom apparently :)12:39
ograelse x-loader would just live on the board12:39
ograpreinstalled in rom12:39
persiaNo.12:39
persiax-loader is just a trimmed u-boot because u-boot can't all fit in the environment started by the ROM.12:39
ograthats what i said, just the other way round :)12:40
persiaBut nearly *every* ROM boot code ends up just jumping to somewhere to do setup, and isn't nealy as complex as e.g. x-loader.12:40
ograin non omap boards that bit lives in rom12:40
persiaNo.12:40
persiaSo, ROM always just does a jump to somewhere after absolute minimum startup.12:40
persiaBut ROM is *never* complicated.12:40
persia(this is FPL).12:41
persiaDepending on the capability of the ROM, it *may* have enough of an environment to use u-boot as SPL, but it may not.12:41
ograrom inits ram, loads the BL and jumps to it12:41
ograin case of omap the initialized ram is to small12:41
persiaIf one enables *all* the features in u-boot it's fairly easy to end up with needing something else as SPL.12:41
persiahence the comment above '"something" might need to be in two pieces itself'12:42
ograi didnt debate that :)12:43
ograi just said that generally u-boot is SPL by design12:43
persiaMy contention is that u-boot is an operating environment that neither knows nor cares where it's loaded.12:43
ograthat we deal with the special case of omap doesnt change that fact12:44
persiaIt could be PPL and be happy.12:44
persia(rom -> uefi -> grub -> linux -> u-boot, for example)12:44
ograwell12:44
ograyou could: rom -> linux12:44
ograthat doesnt make the kernel an SPL :)12:45
persiaSure.12:45
persiaYes it does.12:45
ografor that particular case, yeah12:45
ograbut not generally12:45
persiaI don't happen to think it's a particularly *good* SPL today.  Needs *lots* of work.12:45
persiaBut some folk use it that way.12:45
ograif you talk to linus you wont talk about his coll SPL12:45
ogra*cool even12:45
persiaSo, I agree that u-boot is often used as SPL.  I'm just arguing that there isn't anything about u-boot design that makes it especially suited for that role.12:46
ograapart from its design as SPL you mean ?12:46
ogra*g*12:46
persiaI might, actually.  I happened to be discussing boot loaders last time I was in the same room as Linus (although not with him)12:46
ograthats something else12:47
persiaSo, what about the u-boot design allows it to even *tell* in which layer it's running?12:47
ograyou could discuss u-boot as rootfs with wolfgang12:47
persiaI believe it can't.12:47
ograwouldnt change its default purpose12:47
persiaSo, I just looked at the u-boot design documentation.  It explicitly lists several different use cases, and completely fails to mention anywhere at which point it belongs in the boot process.12:50
persiaBut I also don't care enough to keep banging on the difference between "some" and "any" in specific application to bootloader purposes any longer.12:50
persiaOn the other hand, I completely fail to understand the point of x-loader: u-boot is claimed to support devices with 128K RAM.  Does OMAP really not have that much on startup?12:51
ograi think its half of it, not 100% sure12:53
persia64K!!!!!12:54
ograbut even if you had 128 ...12:54
ograyou would have to rip out many important features from u-boot to make it fit12:54
ograespecially the hush shell support adds a lot12:54
persiaIf I'm using u-boot as an SPL and loading a real boot loader (e.g. grub), that's fine :)12:55
ograwithout it we lose .scr support12:55
persiaThat's fine.12:55
ograno, its not12:55
ograyou would have to recompile to change the cdmline12:55
persiaWhy not?  .scr support is just a dirty hack we tossed together because we didn't have a good bootloader.12:55
ograno12:55
persiaNo you wouldn't, because your TPL would set it dynamically.12:55
ograits a design feature of u-boot12:55
ogranothing we put together at all12:56
ograwe just use it12:56
persiaYou and I are using different definitions of "we" here.12:57
ograwe as people in this chatroom :)12:57
ogra(awake or not)12:57
ograscr support comes from upstream12:58
ograanyway, your u-öboot would be pretty limited if you would have to fit it in 128k12:58
persiaI'm not willing to assert that nobody who occasionally follows #ubuntu-arm works on u-boot upstream, but we're off-point.12:58
persiaRight, which is *fine* if I'm using it as SPL.12:58
persiaAs long as I have a capable TPL.12:59
ogradefine capable :)12:59
ograapparently linux isnt capable as TPL in the omap case12:59
ograas long as x-loader is needed to actually initialize subsystems like usb13:00
persiaCan detect attached bootable media, and dynamically generate command lines (perhaps based on on-disk configuration) to load QPL from that media.13:00
persiaThe problem there is that x-loader isn't a good enough SPL to get things working.13:00
ograonly if x-loader is your SPL :)13:00
ograwrong way round :)13:01
persiaDue to long history of using xloader + u-boot, bring-up patches were randomly distributed between the two.13:01
ograx-loader is abused for initializing bots the kernel should initialize13:01
ogra*bits13:01
ogranot two ... sadly three13:01
persiaSo, every image should probably reinitialise everything.  Not doing so is likely a bug.13:01
ograx-loader, u-boot and kernel13:01
ograimage ?13:02
persiaexecutable image that is loaded.  *PL.13:02
ograstage :)13:02
ograbut you dont need to initialize everything ...13:03
persiaSo, I accept that all FPLs must suck, by design.13:03
ograx-loader only needs ram and the device it pulls the bootloader from13:03
persiaI want my SPL to turn on all my hardware.13:03
ograwhich as i said above should actually be the job of the rom13:03
persiaI want my TPL to use that hardware to figure out how to boot.13:03
persiaAnd I want my QPL as my default operating environment.13:04
persiaI just don't happen to like the current SPL and TPL.13:04
loolpersia: Note that u-boot is being used increasingly as a SPL rather than the reverse -- but split in two stages13:04
ograthey can be merged though13:04
persialool, Hrm?  So *both* SPL and TPL?13:04
loolyes13:05
loolwith different configs13:05
persiaRight.13:05
persiaI should have said that u-boot is seeing increased use as a TPL, rather than saying it was seeing decreased use as SPL.13:05
loolit takes some efforts to bring u-boot down to a size where it can be used as SPL13:06
loolthere are also various platform specific things which prevent it; secure boot is one example  :-/13:06
* persia vaguely wonders if the sequence "F, S, T, Q, P" has ever been used for cardinality before, considering that it doesn't match *anything*13:06
persiaHow does secure boot prevent u-boot as SPL?  Can't one just sign some known perfect SPL u-boot?13:07
loolthere are many reasons; first, basing on u-boot has less advantages since other people can't necessarily deploy it13:08
persiaOr is it that the secure boot implementation must necessarily be the SPL?13:08
loolsecond, the GPL is a problem for some people13:08
loolthird, the secure boot bits are often developed in R&D before considering u-boot13:09
persiaOh, right.  Depending on the IP involved in the secure boot mechanism...13:09
persiaNow, you suggested UEFI as SPL: does that address any of these aside from the GPL issue?13:10
loolpersia: If you're interested, we've started some long term boot architecture discussion on the boot-architecture@llo list and on weekly calls13:10
persiaI'm interested, but I'm not sure I can dedicate that much time.  My opinions are mostly driven by user experience, but I think those are shared widely enough that repetition in that forum won't help.13:11
persiaAlthough I'm glad to know it's happening, and will likely browse the ML archives once in a whle.13:12
loolSo by UEFI I don't mean one specific implementation of it; we'd likely focus on tianocore ourselves for some boards, but each vendor could provide other compatible implementations13:13
loolthey could even be basaed on GRUB, albeit that's extremely unlikely13:13
persiaHeh, indeed.13:13
persiaFrom prior exposure, I just thought that UEFI tended to be large, which might cause some of the same issues as for u-boot as SPL.13:14
persiaAh, so the goal of the boot architecture discussions is to have some spec that clearly separates IHV and OSV roles.  I *really* like that.13:17
persiaAnd I completely agree that it makes sense to *not* specify specific payloads, etc., but rather just specify how the payload is accessed.13:17
persias/specific/particular/13:18
* ogra sighs about firefox in oeniric13:25
ograoh, sweet13:27
* ogra likes software-center 13:27
lilstevieogra: ?13:27
ograi didnt know it asks you if it should add a new app you install to the launcher13:27
lilstevienice13:27
lilsteviewhat about firefox?13:27
ograand while the app installs you can read reviews13:28
ograits slow, clunky and leaks memory13:28
ograi'm just installing chromium ;)13:29
lilstevieheh13:29
lilstevieI have been using chromium on my tab13:29
kunguzAfter a while, my usb mouse stop working on ubuntu-arm installed on beagleboard c3, any suggestions?13:45
persiakunguz, Is there anything associated with it stopping?  Anything in the syslog?  Changes in /dev/input/*, etc.?13:47
kunguzpersia: actually on the serial port, there is no output from beagleboard and I can not use any other device.13:48
kunguzpersia: I can check the mmc card on other computer for the syslog13:49
persiakunguz, That sounds like a system freeze to me, rather than just the USB mouse stopping.  Why do you suspect the USB mouse?13:51
kunguzpersia: the same thing happend during the installation but the installation proceeded and completed with success13:51
kunguzpersia: for example if I wait long enough the system shows a blank screen saver13:52
persiaOK.  Do you have any other input devices (keyboard, etc.)?13:52
kunguzpersia: only mouse at this moment13:52
persiaNothing happening on the serial port is normal.13:53
kunguzand an unrecognised wireless adapter13:53
persiaHrm.  Debugging one's only input device is tricky :)13:53
kunguzpersia:  now I am trying to reboot it only with an USB mouse attached.13:54
kunguzpersia: by the way I am using an usb hub13:54
kunguzpersia: so to say only devices attached are screen, an usb hub and an usb mouse.13:55
persiaThat makes it more likely to work :)13:55
kunguzand in my beagleboard it takes like 5 min. to open the whole system13:56
persiaWhich image are you booting?13:57
kunguzpersia: http://cdimage.ubuntu.com/releases/11.04/release/ubuntu-11.04-preinstalled-netbook-armel+omap.img.gz13:57
kunguzthis one13:57
persiaAh.  The only reason I boot that on my beagle is to remove lots of stuff.  I really doesn't perform very well with that little RAM.13:58
persia(I also have a C3)13:58
kunguzpersia: is there a lubuntu-arm available?13:58
persiaTry http://cdimage.ubuntu.com/releases/11.04/release/ubuntu-11.04-preinstalled-headless-armel+omap.img.gz13:58
kunguzpersia: gnome is a bit too much for beagleboard13:59
kunguzpersia: what is this headless?13:59
persiaI don't know of such an image.  If you install headless, you can `apt-get install lubuntu-desktop`13:59
kunguzpersia: oh i see thank you very much13:59
persiaIt's a minimal image, so you can install just the stuff you want.13:59
kunguzpersia: that looks nice, so I am trying it13:59
ograyou better install the task though14:00
persiaGood luck.  I don't consider this to be a step towards debugging your USB mouse issue (if you have one), but I don't think we *can* usefully debug it with no keyboard and such sluggishness.14:00
ograsudo tasksel install ubuntu-desktop14:00
ograor so14:00
kunguzogra: task?14:01
persiaOr lubuntu-desktop, rather, in this case :)14:01
ograor that14:01
kunguzogra: ok I am trying14:01
persiaBut I don't think lubuntu-desktop has a task for natty.14:01
persiaBetter to use apt-get and install the metapackage in this special case.14:01
ograno, lubuntu was just added as a task today14:01
ograso its only in oneiric14:01
persiaRight.  The meta landed in maverick, I think.14:01
ograyep14:01
ograwell, indeed, in this case the package is better14:02
persiaIn general, it's better to use tasks.14:02
kunguzpersia: http://www.sudrap.org/paste/text/14408/ , that's what keeps happening when usb failes14:40
persiaOh, excellent!14:41
persiaFile a bug.  Be sure to include specifics about your hub and mouse.  lsusb -vv output is probably helpful.14:41
persiaWhen I have issues like that, I generally try to change my USB routing (move devices and hubs around, swap hubs, etc.).  That said, I've never seen that on my beagle, so it may be something different than the issue I work around.14:42
=== prpplague is now known as prpplague^2
Spider-PorkHi, i've ubuntu 11.04 headless installed in my pandaboard. It can play correctly sound but if i record, the file will contain only mute sound. I know there is an issue about alsa, thre is a way to get arecord run correctly? Thank you16:05
Spider-PorkI sownloaded and compiled latest stable packages of alsa16:06
Spider-Pork*downloaded16:06
ogradid you read the bug i pointed you to ?16:07
Spider-Porkyep ogra16:08
ograso you are using an mp3 player as input ?16:08
ograand have enabled the Record verb ?16:08
ograas described in the bug16:08
ograand it still doesnt work ?16:08
Spider-Porksorry for paste16:08
Spider-Porksudo alsaucm set _verb HiFi sudo alsaucm set _verb Record sudo rm /var/lib/alsa/asound.state sudo reboot16:08
Spider-Porknope for mp3 player16:09
ograright, that enables all driver bits16:09
Spider-Porki do it now16:09
ograthe input is wired as line in ... mics wont work16:09
Spider-Porkok thank you ogra16:09
Spider-Porki'll try with an mp3 player16:10
ogranote that you might have overwritten alsa stuff with your self compiled stuff now16:10
Spider-Porkand a male/male 3.5 cable16:10
Spider-Porkah16:10
ograso no guarantee it still works :)16:11
Spider-Porkif it will not works with mp3 player i will reinstall from zero16:11
Spider-Porkaplay sounds good16:11
Spider-Porkogra: is there some route must be enabled with alsamixer?16:12
Spider-Porkto record i mean16:12
ograno16:12
Spider-Porkok16:12
ograthe defaults should just work after you issued the two alsaucm commands16:12
Spider-Porkah ok16:13
ograthey do for everyone else at least16:13
Spider-Porkbut maybe not for me16:13
ograthough you said you are using headless, not sure how well that works without pulse in the loop16:13
Spider-Porkok16:13
ograwe only test such stuff on the desktop/netbook images16:13
Spider-Porkso maybe i can try to install pulse too16:13
Spider-Porkpulse on your repo16:14
Spider-Porkhttp://people.canonical.com/~ogra/natty-omap4-pulse/16:14
ograno16:15
ograthats outdated testing crap16:15
Spider-Porkah ok16:15
ograthe pulse in the archive works just fine16:15
Spider-Porkok thank you ogra16:15
=== fairuz is now known as fairuz_
infinityapachelogger: I hear you have an iMX53 Quickstart that does fancy things like boot?18:45
apacheloggeryes18:47
infinityapachelogger: Did you use the provided Ubuntu-esque micro-SD from Freescale, or did you have to homebrew something to make it work?18:48
apacheloggerinfinity: https://wiki.ubuntu.com/ARM/iMX53QuickStartBoard18:49
infinityapachelogger: Yeah.  I've been pointed to that.  Was curious if anyone's booted one with the SD Freescale is now shipping.18:49
apacheloggerFWIW the default microsd image did not manage to bring up VGA for one reason or another18:49
infinityapachelogger: But I guess I'll try the crazy homebrew method.18:49
apacheloggerI replicated the image and it worked18:49
apacheloggerwhich is also pretty simple18:50
apacheloggerjust get the image tar.gz from freescale and follow the guide that is shipped inside the tar18:50
infinityapachelogger: Not bringing up VGA, I'd be okay with, but the default image doesn't seem to give me serial either, so I have no way of knowing if it's doing... Anything.18:50
apacheloggerwell, recreating the image definitely works18:50
infinityKay.18:51
apacheloggerinfinity: http://i.imgur.com/WTJbh.jpg18:51
infinityWhere do I get this freescale tgz?  I only see linaro links on the wiki.18:51
apacheloggerthat is running the ubuntu image18:51
apacheloggerinfinity: freescale's quickstart board site18:51
apacheloggerthere is a downloads section18:51
=== Ursinha is now known as Ursinha-lunch
persiaapachelogger, So, one potential candidate for what is "wrong" with the 2.6.38 image is that the 2.6.35 kernel is a BSP kernel, and has *all* the patches, whereas the 2.6.38 kernel is a targeting-mainline kernel, and so doesn't have as many ugly hacks.20:05
apacheloggerpersia: that adds kernel patch issues to the list of possible causes for not working EGL init :S20:15
persiaIndeed.  So, Quintasan was talking with paulliu about stuff, and paulliu is working on linux-linaro-lt-mx5, which is 2.6.3520:16
persiaBut the shiny is linux-linaro-mx5, which is 2.6.3820:16
persiaThe *lt* kernels aren't in Ubuntu, and aren't likely to be.20:17
apacheloggerpersia: I see20:41
=== jkridner_ is now known as jkridner
=== Ursinha-lunch is now known as Ursinha
=== Jack87|Away is now known as Jack87
=== prpplague^2 is now known as prpplague
=== Jack87 is now known as Jack87|Away
=== Jack87|Away is now known as Jack87

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