/srv/irclogs.ubuntu.com/2009/08/18/#ubuntu-arm.txt

=== cbrake_away is now known as cbrake
ograNCommander, uboot executes a bootscript which scans all supported boot devices for a boot script ??14:55
ograwhy would it not look for uImage instead14:55
NCommanderogra, how do you set a kernel command line then?14:55
ograin the uboot environment14:56
NCommanderAs it stands, you can't access the uboot envirionment from userland14:56
NCommanderThere's no SPI-NOR driver in the dove kernel14:56
ograhow do you know ?14:56
ograhave you tried the distro kernel that only exists since two days yet ?14:57
NCommanderI haven't tried that one, I had tried the previous binaries from Marvell and our kernel team14:57
NCommanderEven if we could access u-boot directly, I still think being able to execute boot scripts is a better way to go as then we have more control of the boot process14:57
Meizirkkianyone here familiar with android hacking?14:57
ograright, please work with the kernel team so they get tests from you and you get all options you need14:58
NCommanderMeizirkki, try #android-dev14:58
ograi assume you worked through uboot-tools by now and know how they work ?14:58
NCommanderogra, I'm not getting why we want to touch uboot's enviornmental variables directly if we have a better way to control the boot process14:58
NCommanderogra, right, uboot-envtools, and uboot-mkimage14:58
ogras/tools/envtools/14:58
MeizirkkiNCommander, thanks, i'm looking for anyone who might have some knownledge about the android-on-ubuntu14:58
ograi dont get why you want to move into grub1 hell14:59
Meizirkkithat's why i was asking here14:59
NCommanderogra, grub1 hell?14:59
ogragrub and its menu.lst was always very error prone, if you can avoid such a setup you should14:59
NCommanderHow is it more error prone then just poking the u-boot variables from RAM?15:00
ograNCommander, your boot proposal doesnt tell anything about the image layout or your plans15:00
NCommanderAnd you still need to be able to load the command line from the boot device15:00
ograu-boot should try to load ext2 and fat formats, at /boot.scr and /boot/boot.scr15:00
ogracan you make a decision for one here15:00
ogra(prferably the latter)15:01
NCommanderNo, it should support both15:01
NCommanderHaving a separate /boot should be supported, as well as just one whole root partition15:01
ograyou dont want to have /boot.scr15:01
NCommanderIf /boot is a separate partition, when u-boot mounts it, its going to see it as /boot.scr15:01
ograthere is nothing that indicates a separate /boot15:01
ograplease properly write down how your image will look like first15:02
ograand how the installed system will look in the end15:02
ogramake sure your setup supports what you lay out15:02
ogra*then* add the noce to have stuff like separate /boot15:03
ograor /boot.scr15:03
ograthe layout should be the first thing you describe15:03
ograso people know how it looks like15:03
ograyou should also remove all the mentioning of imx51 in the spec ... its a bit confusing15:04
NCommanderogra, amended.15:09
ograso *will* you have a separate /boot or will you *not* have a separate boot ?15:11
ograyour spec doesnt say that15:11
ogra"Normal vmlinux and initrds will continue to exist in /boot alongside the uImage/uRamdisk. "15:11
ograthats definately something you should quickly tell the kernel team15:11
ograsince they just changed everything to *not* produce vmlinuz15:12
ograplease work closer with them, they are depending on your input15:12
NCommanderogra, both are supported15:12
ograno15:13
NCommanderno?15:13
NCommanderWe don't want to support /boot as its own partition?15:13
ograi was commenting on vmlinuz15:13
NCommanderoh15:13
NCommanderargh, i talked to rtg on this yesterday, and no one said a thing15:13
ograwhat did you tell him to do ?15:14
NCommanderogra, I had asked him on the status of packaging after being pointed at him by bjf15:14
* NCommander sighs15:14
ograthey are modifying the deb package this moment to build uImage15:14
ograafter the deb package sat in NEW since yesterday night15:14
NCommanderogra, this is also why I wanted to use flash-kernel, so nothing would have to change elsewhere in the postinsts, and update-initramfs15:14
ograplease coordinate with them on all the kernel stuff15:15
ograthey will happily give you what you need if you actually tell them15:15
ogravmlinuz is surely not needed at all if the deb can spit out uImage at build time15:16
ograand you save hacking to convert vmlinuz15:16
NCommanderogra, hrm, fiar enough, I was thinking about having the uImage made as the postinst rule15:16
ograwhy if the package can just use make uImage15:16
ograwhat would you use vmlinuz for at all ?15:17
ograNCommander, so what i would like to see in the spec is: the current livefs we build will use a partitioning scheme like: ... blah ...15:28
NCommanderogra, I didn't know we could make uImage, I didn't realize Marvell added that target15:28
ograthe installed system will default to a extX single partition setup (or will have /boot separated by default) etc etc15:28
ograi'm not talking about kernels yet15:29
ograi want to know what you are building and how the installed system looks like with the selected defaults15:29
ograand en explanation why you decided for the layout15:30
NCommanderugh15:30
NCommanderThis may be a stupid question15:30
NCommanderBut is an ext4 filesystem compatible w/ ext2 once extents are enabled?15:31
ograi.e. "the installed system will use a two partition layout by default because we want to support the default used ext4 filesystem for the rootfs but uboot does not support that for /boot"15:31
NCommanderI remember reading that once you enable extents or do a full format, ext2 compatbiility flies out a window15:31
ograsomething like that15:31
NCommanderUgh15:31
ograits your project15:31
NCommanderLet me update the spec to reflect that15:31
NCommanderogra, yes, I know15:31
ogramake a proper design, describe it and give reasoning for the decisions15:31
ografor both the livefs and the resulting installation15:32
NCommanderogra, doing so now15:32
ograok15:32
ogratake your time15:32
ograi assume it will take a day writing that up properly unless you have it prepared already15:33
NCommanderogra, I do have it prepared (I wrote up my ideas on the internal wiki, but I didn't quite get the right level of detail when I started writing :-))15:33
ograright, flesh it out, compare pro and con fo different designs and give an explanation why you decided for a particular design15:34
NCommanderogra, *nods*15:35
NCommanderogra, great, I see having to tweak partman in my future though :-/15:35
NCommanderthe fun just never ends15:35
ograyou could decide for a single partition ext3 setup15:36
ograthat limits the changes15:36
ograu to you15:36
ogra*up15:36
=== bjf is now known as bjf-afk
ogratlee2, hey am i just mailing with you ?16:24
* ogra just notices you are here, we could chat quicker than by mail16:24
=== bjf-afk is now known as bjf
tlee2Orga, hi, yes, that's me.17:13
ogracool ! :)17:14
ogragreat to see you here17:14
tlee2Thx17:15
ograamitk, ogra@dove:~$ uname -a17:15
ograLinux dove 2.6.31-rc5 #1 Tue Aug 18 17:39:23 CEST 2009 armv7l GNU/Linux17:15
ograamitk, meet tlee2, he is working on doves at marvell :)17:15
NCommanderhey tlee217:16
ogratlee2, amit is one of our arm kernel guys17:16
tlee2nice to meet you Amitk.17:16
ograamitk, so make uImage in the package tree gets me proper booting images17:16
ograready to change the packaging :)17:17
amitktlee2: hi there17:17
NCommandertlee2, you won't happen to do anything w.r.t. to uboot on the dove?17:17
amitkogra: awesome. So we'll changes the configs to create uImages instead of zImage17:18
ograyeah17:18
ograperfect17:18
tlee2what's w.r.t?17:18
NCommandertlee2, with respect to :-)17:18
tlee2Well, I am new to this ...  Ok, I use the uboot.  Sometime, I build it too.17:19
tlee2Do u need anything on uboot for Dove.17:19
tlee2Wow, your uImage is newer than mine.....17:19
NCommandertlee2, working USB support would be nice :-/17:19
tlee2Need to upgrade mine now.17:20
ogratlee2, i just built it some mins ago :)17:20
NCommanderThe last drop I got still didn't have it working (I'm not sure if SATA works as I lack the connector cable which I need to try and get today)17:20
ografrom the latest merged tree from our kernel team17:20
ograthey are working on getting a proper kernel package together atm, these are needed for the live images17:21
tlee2I use sata and NFS from uboot.  They are faster, have not try usb from uboot yet.17:21
ograwell, we traget live images, so everything has to be on the same media17:21
ograNFS is no option for that17:21
NCommandertlee2, so SATA support works, that's a win17:22
ogracool would be if uboot could run what it finds on a USB key or SD card17:22
tlee2SATA already work.17:22
NCommanderogra, that's my plan17:22
ograthen you get into a live image and run a normal install to SATA17:22
NCommanderogra, the bootscript is going to iterate through all USB/SATA devices on start17:22
NCommanderogra, like the beagle, with different devices17:22
ograright17:23
NCommanderogra, that's why a boot script is loading from the partition and not mucked w/ uboot-envtools17:23
ograi was trying to explain to tlee2 what we are actually targetting17:23
NCommanderah17:23
* NCommander goes back to writing17:23
ograyeah, if your writeup is done we can just point people there ;)17:23
NCommanderogra, its getting there17:23
ogratlee2, NCommander is the michael i was CCing in the mail before ... he does the dove images17:24
NCommandertlee2, is there a method to load a u-boot into RAM without flashing it? I got a set of steps, but it just caused the board to reset, and I don't have a JTAG flasher or equivelent to recover from a bad flash if that happens17:24
NCommandertlee2, nice to meet you17:24
tlee2Nice to meet you NCommander.17:25
tlee2One few other board, there are way to load uboot to RAM from SATA.  I have not try that on Dove.17:26
tlee2I don't have to change the uboot on my boards.  And I have ice.  :-) Sorry.17:27
NCommandertlee2, well, I read the technical specifications we got, and I know the BootROM can load u-boot from NAND, SATA, NOR, and serial17:27
* ogra knows the beagleboard does that from SD ... so its easy to replace uboot there 17:27
NCommanderogra, no SD support in Marvell's u-boot17:27
NCommander(yet)17:27
ograyeah17:27
NCommandertlee2, but I haven't managed to figure out how to flip the boot device17:27
NCommanderogra, I'm not sure its targetting to exist or not)17:27
ogra??17:28
ogracan you rephrase that ?17:28
NCommanderogra, there's currently no SD/MMC support in uboot (the entire subsystem is missing). I'm not sure if we're excepting it or not to exist17:28
ograwe need one, SD or USB ...17:29
ograi personally dont care which one :)17:29
NCommanderRight, and I know USB is supposed to be coming17:29
ograright17:29
tlee2When are we going rebuilding the karmic with vfp compiler?     How long do u think it will take?18:02
ograas soon as the new build machines are in place18:03
ograthe HW is there but afaik we're waiting for a chunk of new disks18:03
tlee2The build machine is Dove, imx51 or Beagle?18:03
ogracurrently the older marvell boards (v5) new ones will be imx5118:04
ograour IS team lokes to use ubuntu on the build machines, imx51 is the system we have stable images for since last release ... we're hoping to upgrade everthing to dove next cycle18:05
ogras/lokes/likes/18:05
tlee2which v5 board r u using?18:08
tlee278k?18:08
ograi dont know the exact model actually18:08
ograbut yeah, i think its 78xx something18:08
ograi'm luckily not working in the datacenter ;) i just use it18:09
tlee2I see, just remotely....   Cool.18:09
jmc93739653I know this is a little off topic, but does  anyone know if Freescale & Pegatron are still on target for a i.MX515 netbook release in the early fall?  It would be _perfect_ for Linux & ARM development, but I haven't heard anything since January.  128 MB on a Nokia N800 is a bit cramped (and gcc's -Os flag doesn't like to play nice for me).18:13
jmc93739653I've only heard of, and possibly found a single JPG of a Babbage Board, so I'm presuming it's several thousand per dev-kit.  A consumer i.MX515-based rig on the other hand....quite compelling.18:14
ograthere is a company selling an imx51 development board for $750, i sadly lost the link18:15
ograits largely the thing that will go into the pegatron netbooks18:15
jmc93739653ogra: That alone is a lead to work off of.  If I find it, I'll pastebin or tinyurl it and paste it here.18:16
jmc93739653ogra: I had some extra money in January when the i.MX51 line was announced, I would have bought one right then and there. 1000 MHz ARMv7A?  Yes, please.18:17
suihkulokkiogra: presume you are talking about genesi18:18
ograyeah, right18:18
ograthere are nettops coming from pegatron too but i dont know when they will go into mass production18:19
jmc93739653suihkulokki: Genesi finally released the 515 boards?  They had their i.MX projects using Rev B Beagle Boards, last I heard.18:19
ograif you want something *Really powerfull* you wait for the marvell dove boards though ;)18:19
tlee2ogra, the 78k build machine you are using can be use to build and test vfp code.   Is there any issue with that?18:21
ograoutdated kernels18:21
tlee278k kernel is check in to the kernel.org already.18:22
suihkulokkijmc93739653: no idea if they are really released but they have it on their website18:22
jmc93739653Are the Marvell Dove boards based on their Sheeva SoCs?18:22
ograjmc93739653, better :)18:23
jmc93739653ogra: and Marvell's asking price ? (and the system RAM capacity?)18:23
ograno idea yet but ram i have seen was 512M18:24
jmc93739653ogra: Nice. :) Is it true Ubuntu had a custom ARM-based motherboard built loaded to the gills with 2 GB of RAM, and clustered them into a build farm?18:25
ograheh, who told you that ?18:26
jmc93739653ogra: honestly, I don't even remember.  I thought I read it on something like LinuxDevices.com, but at the time I was scanning 7000 tech stories a day from XML feeds.  The story was centered about a company which aided in the manufacture of embedded development boards, but was starting to center upon customized variants of their primary products.18:28
ograwell, its not true18:28
* lool returns and waves18:29
ogralool, have you see the dove kernel in NEW ?18:31
ograthe naming is borked again :/18:31
jmc93739653ogra: damn!  Oh well, dreams are nice.  I'd be OK with QEMU, but it seems like no matter what x86 CPU I throw at it, ARM emulation is, let's say, sub-optimal.  I thought x86-64 would speed things up given better register parity between the ISAs, but I was wrong.  (A Diablo N800 running on QEMU-10.5 is not nearly as agile as I was hoping.)18:33
ograyeah, qemu arm emu is even worse on amd6418:33
ograthats why i only built the qemu-arm-static packge for i38618:34
ograit has massive issues with chroots on amd6418:35
ogra(assuming you have seen https://wiki.ubuntu.com/ARM/BuildEABIChroot )18:36
jmc93739653OK.  Thank you for the heads-up.  Has anyone been able to determine why amd64 causes so many issues?  Toolchain or code-base maturity/testing/deployment-base advantages of i386 over amd64?18:36
ograi stopped looking at qemu-system-arm ... userspace syscall translation is so much faster for the purposes i need qemu for18:37
jmc93739653ogra: Yes, I have.  I was going to tackle the EABIChroot walk-through later this week in some spare time.  I have amd64 Karmic Alpha 4 installed, but if 32-bit from top to bottom pays dividends, I'll leave idealistic ISA daydreams at the door, and go back to i386.18:38
ograheh18:38
jmc93739653ogra: karmic over jaunty for ARM-emulation purposes?18:39
ograyes18:39
ograqemu 0.11 is a real imrpovement18:39
jmc93739653Cool.  The qemu versioning and the addition qemu-arm-static lead me towards karmic.  (I could have sworn I say a qemu-arm-static package for amd64.  Well, that's hay-fever season and extra-drowsy antihistamines for you....)18:40
jmc93739653s/say/saw18:41
ograno, there is none18:41
ograi had one of the hacked up 0.10 in my PPA18:41
loologra: Did you give a heads up to kernel team WRT kernel name?18:42
ogralool, yes, rtg knows my concerns about the header names18:42
ografls is also being worked on i was told18:43
ogra*fsl18:43
ograNCommander, http://people.canonical.com/~ogra/arm/dove/18:43
ograthere is the uImage of my testbuild from todays branch18:43
ogra(note the deb there is old and outdated)18:44
jmc93739653ogra: I never checked the PPA, truth be told. ARM eabi-chroot and QEMU packaging, maintenance and modification are several of your core competencies, I'll take your word over my suppositions. :)18:48
ograheh, i never touched qemu before this release cycle :)18:49
ograbut right, i'm focused on it since a few months18:49
ogramainly for image builders for hardware we dont support ... the arm community is still to small18:50
jmc93739653ogra: Sweet.  All I've done with qemu source is alter the partition table parameters for the Nseries tablet emulation to enable Diablo compatibility.  (I had fun.  amd64's weaknesses hopefully explain why the ARM emulation ran so poorly.)18:51
ograi'm currently banging my head against the missing sched_getaffinity() syscall in qemu-arm-static18:52
ograit makes mono installations fail in the images18:53
jmc93739653A 45nm, 3.0 GHz Core 2 Duo with a 65 watt thermal budget should not be beaten out by a 90nm, 2.0 Pentium-M for qemu emulation.18:56
jmc93739653ogra: do you have any URLs for the issue reports handy?  I'll grep around launchpad all the same.  Am I right in assuming sched_getaffinity() is a QEMU syscall, rather than a libc6 or libpci-dev system-call?18:56
suihkulokkiogra: feel free to send me a patch once you've implemented the syscall in qemu linux-user :)18:57
ograits a libc syscall that needs to be translated between the two arches18:58
ograsuihkulokki, i have a patch that apprently idles around in the suse packages since ages18:59
ograthey didnt bother to every send it upstream it seems18:59
ograsadly i havent mad it work yet ... it applies fine to 0.11 and the "unsupported syscall" messages goes away19:00
ograbut the mono cil assembly installation still doesnt finish19:00
ograsuihkulokki, http://paste.ubuntu.com/255278/19:01
ograin case you hve any idea for improvements19:02
suihkulokkiogra: I guess you'll want to look at the definition of cpu_set_t19:05
ogragood idea19:05
jmc93739653Does any one know if using x86-32's PAE tanks userspace qemu performance?19:06
suihkulokkiogra: also qemu-arm -strace ./foo and comparing it to strace qemu-arm ./foo gives usually good hints where the syscalls go wrong19:06
ograbut not today anymore ... i'm on the kbd since 13h without break ... thanks for the suggestion though i'll dig into it tomorrow19:06
ograi really dont get why suse didnt contribute it upstream though ... i pulled that out of their 0.9 package19:08
suihkulokkiat least suse is sending most of their patches upstream19:08
ograwell, that one not :) and it seems it has been a prob in maemo and scratchbox since ages19:09
ograthough i doubt there are actually many people running mono on n8x0's :)19:10
jmc93739653ogra: I'm hesitant to run Python apps on an N800 :)19:11
jmc93739653Anyways, thanks everyone for your patience and time. My apologies for the rather daft questions.19:11
ograpy is fine though from a design perspective it was intended to run cross arch19:11
ogramono only grew suport for non x86 later19:12
ograanyway, its getting late, i'm working way to long already and will call it a day now19:12
jmc93739653ogra: Take care, again, thank you.19:13
ogra:)19:13
MadsyI followed the RootFromScratch article to setup Ubuntu for QEMU, but the emulated system crashes right away. I'd really appreciate some pointers on what the cause might be.21:03
MadsyHere's my log from running the build-arm-rootfs script, with some of the overly verbose package info omitted: http://gist.github.com/16992021:04
loolMadsy: Looks like the script assumes presence of /etc/init.d/loopback which is not there for you21:37
loolMadsy: perhaps it works with karmic?21:37
loolMadsy: Either file a bug or talk to ogra here21:38
Madsylool: I'll give the updated rootstock script a try first. Thanks for replying.21:43
MadsyGah, I feel stupid. I didn't remember that both QEMU and the kernel parameters take "friendly" values for sizes. I forgot an 'M'21:57
hammadhi, i want to build a portable media player using the arm processor, is there somwhere you can point me to for guidance to start me on it.22:45
hammadit is just n idea right now22:45
hammadm planning on having a touchscreen and a camera and bluetooth for i/o22:46
=== bjf is now known as bjf-afk
hammadwith respect to the above query, if anyone can help me out, please contact me at: hammad.fauz <at> gm ail <dot> com23:46

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