/srv/irclogs.ubuntu.com/2012/03/06/#ubuntu-arm.txt

pnphiHow choice RAM of qemu-system-arm02:01
mythospnphi, qemu-system-arm -m 256 -append "mem=256M ..." <-- do you want to specifiy how much ram is available?02:06
pnphii want > 25602:06
pnphimore ?02:06
mythosresults in segfaults, as far as i know02:07
pnphiwhat is segfaults ?02:07
mythospnphi, http://en.wikipedia.org/wiki/Segfault02:08
twbYou could use qemu-arm-static instead and just run it in a chroot instead of with a separate arm kernel02:20
twbThen you'd have access to the entire host system's ram02:20
pnphihow to change Memory of qemu-system-arm ? ? more 256 ??02:22
=== Jack87|Away is now known as Jack87
steev_is there any way to get rid of the 'Gtk-Warning **: Unable to locate theme engine in module_path: "pixmap",' messages? I can't seem to find the pixmap engine04:00
steev_i thought it was part of gtk2-engines, but that is already installed04:02
steev_aha, it's gtk2-engines-pixbuf (why is it called pixbuf when it installs libpixmap.so ?)04:03
twbsteev_: hysterical raisins04:05
twbYou should not need that driver unless you're using a very silly and inefficient GTK theme, though04:05
steev_twb: well i'm running arduino, though there are a few other apps that pop up the messages that get installed by ubuntu-desktop04:06
twbSpecifically, one that works by stretching small images (usually 2x2) to fake gradients.04:06
steev_and it's using the defaults04:06
twbsteev_: interesting04:06
lilstevieeven chromium shows that04:07
lilstevieon x8604:07
twbYou could try something like echo 'gtk-theme-name = "Raleigh"' >> ~/.gtkrc-2.004:07
twbAlthough gnome will cause that dotfile to be ignored :-/04:08
lilsteviesteev, I wouldn't be overly concerned04:08
twbHmm, on oneiric I don't have gtk2-engines-pixbuf, I do have libgdk-pixbuf2.0-0, I do not get that warning AFAIK04:08
twbhttp://cyber.com.au/~twb/.gtkrc-2.0 is my GTK2 theme04:09
twbUsing epdfview and midori GTK2+ apps, but no gnome04:09
steev_twb: this is on a precise armhf install from -core, apt-get installed minimal, standard, desktop, then adding a few special things04:09
steev_namely our ancient efika kernel (we're working on a new one, i swear)04:10
twbWell, suffice to say that it WFM without that warning and without that .so, so it is apparently POSSIBLE to avoid the warning04:10
steev_i haven't changed anything from the defaults (except editing /usr/bin/ubiquity to change oom_score_adj to oom_adj otherwise ubiquity dies, and deleting the /usr/share/applications/ubiquity-gtkui.desktop file because I was tired of seeing Install RELEASE in my sidebar)04:11
lilsteviesteve@steve-tf201:~/Downloads$ chromium-browser04:12
lilstevie(chromium-browser:4567): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",04:12
twblilstevie: is gnome-settings-daemon running?04:12
lilsteviethat is on oneiric-armel04:12
lilstevie 1259 ?        Sl     0:16 /usr/lib/gnome-settings-daemon/gnome-settings-daemon04:13
twbThat's why04:13
lilstevieheh04:13
twbIt causes all your dotfiles to be ignored and overridden by gconf04:13
twbSo whatever silly pixmap-based theme you're using, is not mentioned in .gtkrc-2.004:14
twbYou may find changing your theme to (e.g.) raleigh in GNOME's control center, causes the warning to go away04:14
steev_i haven't bothered to look in precise, i'm okay with installing pixbuf, it's all of one file and like 4 docs04:15
twbIndeed, but using it will increase (probably significantly) the bandwidth consumed between X server and apps04:16
lilsteviein any case, it is only a warning04:16
twbAnd also it's a stupid ugly irresponsible design :-/04:16
twblilstevie: right04:16
twblilstevie: although not loading that driver basically means you get a GTK theme that looks different04:17
lilstevietwb, well this is an out of the box configured install04:17
lilstevieand same as on my desktop04:18
lilsteviesame deal there too04:18
lilstevie:p04:18
twbThen I guess ubuntu's default theme is silly and asks for a feature it doesn't install by default04:18
lilstevieso maybe it needs a bugreport04:18
twbI agree04:18
steev_i'll let twb file it and get the karma04:20
lilstevieyep twb can have it :p04:20
lilstevieI don't care enough to file a bug report04:20
lilstevie:p04:20
twbI can't even reproduce your silly problem, so I won't report it04:21
lilstevieif(WARNING){ ignore;}04:21
twbAlso I have a policy on not reporting problems to launchpad because it isn't debbugs04:21
lilstevietwb, heh you can't reproduce it because you are silly and use xinit04:21
twbIf you mean I don't waste time starting X when I don't need it, sure04:23
lilsteviewell samsung repair man be here04:24
lilstevielater04:24
* twb struggles to turn that into a joke04:24
=== Jack87 is now known as Jack87|Away
recurfrom make, is there a way to force use of a different linker?06:02
twbmake LD=gold06:02
twbOf course that assumes your make rules aren't silly06:03
recurah interesting, it's still using the wrong one when I pass that06:03
recurI'm trying to crosscompile libpng06:03
recurI'll take a look at the make rules, tahnks :)06:03
twbCross-compiling is a whole extra ballgame, one with which I am less familiar06:03
twbHmm, default gmake rules actually don't call LD, they call CC or FC with linker options06:04
twbhttp://paste.debian.net/158723/06:05
recurohh, hmm06:05
twbSuggest you find someone good at cross-compiling and ask them06:05
recurthanks, will do :)06:05
NekoXPrecur, what linker are you trying to use?06:27
recurHi NekoXP :  I was able to get it working by editing libpng's Makefile :)07:07
hrwogra_: thx for comment09:28
ogra_np :)09:28
twbAhahahaha09:36
twbSorry, wrong channel.09:36
twbWhen someone has a minute, I'd like to know if "w3m http://www.menumate.com.au/sofias-pizza-house" generates gc warnings09:38
twbposs. only happen when w3m-img is installed.  I'm getting them on oneiric in screen in fbcon.  I wasn't geting them a while back, might have been before I switched to ARM tho09:38
twb(Except tell me tomorrow because I'm about to go to dinner.)09:39
sveinseogra_: What does fixrtc do specifically? Could it affect valid time (Hw clock > Fs timestamp) in any way?09:40
ogra_it checks if the last mount time of the disk is in the future, if so, it sets the hwclock to that time09:41
ogra_(plus a few seconds)09:41
hrwogra_: janimo` will be next to comment - he complained yesterday to me about 'why you are not motu/core-dev yet' :D09:41
ogra_heh09:41
hrwhttps://blueprints.launchpad.net/linaro-ubuntu/+spec/toolchain-backports-ppa-update-12.03 - one 'simple' ppa update09:42
ogra_sveinse, indeed it could, if the time of the machine that last mounted the disk was wrong (in the future) it would move your board to that time (plus a few seconds) ;)09:43
sveinseogra: interesting. So if user erroneously sets the date to sometime in the future, he will either have a non-working system or stuck with this future time, right?09:45
sveinseogra_ ^09:45
ogra_not if his system is networked09:45
ogra_ifup calls ntpdate on connect09:45
ogra_that will correct the time and on unmount (shutdown) the time of the disk will be correct09:46
ogra_if the system is non networked your statement is true indeed09:46
ogra_but thats still better than hanging in an endledd mountall fsck loop on boot ;)09:46
sveinseIf the mounttime is indeed written on umount, then it does not matter if its ntp or the user which corrects the clock09:47
ogra_right, but something *has* to correct it indeed09:48
sveinseyep, I feared that fs mounttime was the last 'mount' time and not umount09:48
ogra_well, check the code, iirc i made it check for the last unmount time, if not, thats indeed a bug09:49
sveinsein mountall source, right?09:49
ogra_no, the fixrtc script somewhere in /usr/share/initramfs-tools09:50
sveinsethanks, I'll check09:50
ogra_oh, i think i did use last mount time, but that gets updated on umount09:52
* ogra_ remembers again09:52
janimo`hrw, I am missing the context in the scrollback. Not sure what I am next to comment on. If you have a MOTU application written up then great :)10:27
ogra_i guess he wants you to comment on his wiki ;)10:28
janimo`ogra_, I think that's the context/link I miss in scrollback10:30
hrwjanimo`: https://wiki.ubuntu.com/MarcinJuszkiewicz/DeveloperApplication-MOTU10:31
hrwbtw: http://marcin.juszkiewicz.com.pl/2012/03/06/updated-cross-toolchain-for-ubuntu/10:31
janimo`hrw, added note. Good luck! :)10:36
hrwjanimo`: thx10:40
sledgeshello11:40
sledgeswhere can I access sources to i.MX53 hardware graphics drivers?11:41
sledgesused by UBUNTU 1109 IMX53 build11:41
ubot2`Ubuntu bug 1109 in gringotts "No desktop entry in /usr/share/applications" [Medium,Fix released] https://launchpad.net/bugs/110911:41
ogra_sledges, no, you used the linaro 1109 ubuntu build, ask in #linaro12:04
ogra_ubuntu didnt have any 11.09 release :)12:05
sledgesogra_, you are right12:07
sledges'cause all i could obtain for now were source of kernel, but nothing outside12:07
ogra_i dont think the binary drivers for mx53 are made available by freescale though12:08
ogra_*the sources for the binary drivers12:08
ogra_but ask the guys that build the image ;)12:08
sledgesi use ltib from freescale for imx53, and their kernel is just rubbish :)) but provides the rest of binary drivers from sources..12:10
sveinseogra_: We're seeing that the mount time (or last write time) is never updated in the fs. This is why the clock is always reset by fixrtc. / is mounted with noatime, could this be the cause?12:37
=== chrisccoulson_ is now known as chrisccoulson
ogra_no, noatime shouldnt affect mount time12:38
ogra_iirc12:38
ogra_try it ;)12:38
sveinseI just did and I see that dumpe2fs always reports the same timestamp on last write time and last mount time12:39
ogra_hmm, it shouldnt12:39
ogra_but try with noatime removed and see if that fixes it12:40
sveinseThis is weird! noatime does not affect the last mount time either12:44
sveinseBut I am indeed writing to the fs12:45
sveinseThat shouldn't matter when I come to think about it. As long as the hw clock is newer than the fs, then it ought to work12:47
sveinseWhat I'm seeing is that the clock is _always_ reset to the date of the last mount time, so getting the clock from HW might not work properly12:48
ogra_well, do you power off the board com,pletely and have no RTC battery on that board ?12:53
ogra_then you indeed will always have a reset HW clock12:53
sveinseogra_, there is a RTC battery and hwclock reports correct rtc clock across reboots.13:07
ogra_then it should not attempt toi set the clock at all13:08
sveinseWhere does it compare the clock? My /usr/share/initramfs-tools/scripts/local-premount/fixrtc contains http://paste.ubuntu.com/871392/13:10
ogra_it doesnt13:11
ogra_intrestingly13:11
ogra_i know my original version did13:11
sveinsethis is in natty13:11
ogra_the script comes from lucid13:11
ogra_sveinse, that looks like a bug13:14
sveinseOk. I think we need to refrain from using fixrtc and rather make our own init script which replaces hwclock and make it last-mount-time aware13:15
ogra_well, you should file a bug and make me fix fixrtc ;)13:15
sveinseThis is currently holding back production, so I can't wait for an upstream resolution13:16
ogra_all you need it to convert the date to a timestamp and compare against the hwclock13:16
sveinsewhere should I file the bug? Ubuntu-11.04 ?13:17
sveinseogra_ bug #94798813:27
ubot2`Launchpad bug 947988 in initramfs-tools "fixrtc kernel option always sets system time" [Undecided,New] https://launchpad.net/bugs/94798813:27
ogra_thx13:28
sveinsenp13:28
ogra_sveinse, bug has a patch, could you test it ?13:51
ogra_argh and LP messed up the style13:51
ogra_added a .patch file now13:54
* sveinse is embarrased. Forgetting all about update-initramfs...14:26
sveinseogra_ it works14:26
sveinseyet I observe that my ext4 fs "last mount time" seems to be written at mount and not on umount. last write time is never touched14:27
sveinseif and if ubuntu shutdown really runs any umount on rootfs14:28
ogra_great, did you counter test (with a mount time in the future) too ?14:31
sveinseYes, I did. Both prior and former dates14:32
ogra_i need to be sure the old behavior still works before applying the patch14:32
ogra_awesome !14:32
* ogra_ includes in the next upload then14:32
sveinse(when) will this be published into natty?14:32
* sveinse is holding back production until fix is available...14:33
sveinseI confirm that my ubuntu system does not write "last mount time" to disk when ubuntu shuts down. It only writes upon startup14:38
sveinseThis means that with the fixrtc option, the user will never be able to turn the clock back in time14:38
ogra_thats illogical14:57
ogra_your last mount time will never be newer than the installation date14:58
ogra_if the RTC is set properly after the fist boot (by ntpdate or the user) the mount time will be updated next time you boot to a proper time14:59
ogra_sveinse, ^^^14:59
ogra_indeed that fails if your system clock is set years in the future during install, but thats a special case i'm willing to live with15:01
=== chrisccoulson_ is now known as chrisccoulson
rbasakIs fixrtc in the kernel or early userspace?15:04
rbasak(OOI)15:04
ogra_initrd15:04
ogra_see the backlog15:04
ogra_init-premount to be precise15:05
rbasakthanks, I didn't go back far enough15:07
onerichi all15:14
onerici put SD on Board, when i start with ubuntu, start always the system configuration of ubuntu15:15
onericit not install15:15
onerici have pandaboard15:15
sveinseogra_ The reason I ask is because a user did indeed make a mistake when setting the time. He sat i to 2013. In this case, and if rtcfix is used, the user nor ntpdate will never be able to correct the time back to 201215:16
xranbyoneric: thats normal, you are booting a preinstalled image15:16
sveinseBecause AFAICS "last mount time" is only updated when ubuntu is mounting root, never on shutdown15:17
ogra_sveinse, right, he can just drop fixrtc from the cmdline in that case15:17
sveinseHence, the "last mount time" will only move forward in time15:17
ogra_and it will be updated properly on next boot15:17
xranbyoneric: you are expected to see a welcome screen where you select language timezone keyboard etc. when the setup are complete your panda will reboot and start ubuntu from the same sdcard15:17
ogra_i think for the normal usecase its a proper assumption that your clock moved forward normally and RTC will be > mount time and thus the mount time will be updated15:18
onericxranby when the setup is complete my panda reboot and restart configuration15:18
ogra_in cases where you did weird things to the clock, manual intervention is required15:19
sveinseIs this limitation (linux wont boot when date is in the past) constant across all linuxes? Because I've never seen this issue until now15:19
ogra_it will boot ...15:20
sveinseWith that rationale I agree that it's not occurring very often15:20
sveinseboot = start in runlevel 2 ;)15:20
ogra_thats a weird statement as runlevel 2 is identical to 3-5 in debian and ubuntu :)15:20
xranbyoneric: can you tell which install image you used and which instructions you followed to prepare your sd card?15:21
sveinse"on stopped rc" to use more upstart lingo then15:21
ogra_the original issue for having fixrtc was that mountall/fsck freaked out and went into an endless loop when you didnt have an RTC battery (like 99% of the dev boards we support)15:21
ogra_that it fixes a wrong RTC setting is just a sideefect15:22
ogra_*effect15:22
onericxranby: http://www.omappedia.com/wiki/Prebuilt_ubuntu_binaries15:22
sveinseour board just stopped in mid-boot. mountall seemed to hang forever (not fsck)15:22
ogra_oneric, http://wiki.ubuntu.com/ARM/OMAP15:23
ogra_sveinse, thats weird15:23
ogra_mountall itself doesnt even care about timestamps15:23
ogra_but it calls fsck which has been fixed since i wrote fixrtc15:23
ogra_the loop shouldnt happen at all anymore and fsck should just exit with a warning15:24
ogra_(which you dont see due to the splash)15:24
onerici have used this ogra https://wiki.ubuntu.com/ARM/OmapNetbook is correct but restart always configuration system15:24
ogra_but in any case if you dont do weird things with your clock, fixrtc should work properly15:24
onericogra you speak to me?15:25
ogra_oneric, start over, i would guess your SD is corrupt somehow15:25
sveinseAnd no or invalid date (including into the future) is the state of the RTC when it comes fresh out of production. If ubuntu is booted on a system with future RTC date, then rootfs is mounted and last mount time is updated with the future, which we're stuck with.15:26
sveinseUnless altering kernel params post install then15:26
onericogra i must reformat SD?15:27
onerici formAT sd like ext315:27
ogra_oneric, just follow the setps from the wiki again15:27
ogra_you dont format anything15:27
onericnothing?15:27
onerici only rewrite?15:27
ogra_just follow the steps on the wiki, there is no formatting at all involved15:27
onericbut i have used 11.1015:28
xranbyoneric: http://wiki.ubuntu.com/ARM/OMAP use these instructions15:28
ogra_right15:28
onericyes15:28
onericno problem with ubuntu 11.10?15:28
ogra_nope15:28
ogra_has been tested many times and is used by many people15:28
onericbut now15:29
ogra_just follow http://wiki.ubuntu.com/ARM/OMAP15:29
onerici had format sd ext315:29
onericcan be this a problem?15:29
xranbyoneric: then you are doing something wrong15:29
ogra_and use the instructions for your release15:29
onericxranby now?15:30
ogra_just follow the instructions on the wiki15:31
ogra_the method there will wipe the ext3 filesystem anyway15:31
xranbyoneric: for example if your sdcard reader are at /dev/sdX      you should be using the sudo sh -c 'zcat ./ubuntu-11.10-preinstalled-desktop-armel+omap4.img.gz |dd bs=4M of=/dev/sdX ; sync'15:31
onericyes yes15:31
onericthanks for help i retry15:32
onericbut i moust unmount SD first?15:32
ogra_you should, yes15:33
onericahh15:33
onerici before not unmount,,, can be this a problem?15:33
shadeslayerhi,I was wondering, does anyone have instructions on how to setup a ARM VM with qemu?15:33
sveinseogra_ how would you do this in production when the RTC is invalid/has random contents: 1) Boot the system with fixrtc to allow the system to boot, 2) Set the proper date, 3) Remove the fixrtc kernel option15:34
xranbyoneric: that can cause problems15:35
infinitysveinse: Why is (3) required at all?15:35
sveinseYou see, I'm not too fond of changing critical files during boot, like bootloader setting because it increases the product to fail later15:35
sveinseinfinity: Because fixrtc ensures that the system clock is the newest of the HW clock or the 'last mount time' from the rootfs.15:36
ogra_infinity, because he has users that set their date to 201315:36
sveinseOr the RTC is invalid (future date) from bugus data in production15:36
ogra_which on next boot sets the mount time to 2013 ... then if the clock is corrected your mount time is in the future for the next year15:37
ogra_so fixrtc will go on to update over and over15:37
infinitysveinse: It doesn't actually do that.  But Oli's point is fair.15:37
sveinseinfinity: I'd like to agree, but I have devices which fails production over this right now15:38
ogra_fixrtc indeed functions on the assumption that the last mount time was the install date and is in the past while the clock is updated to a correct date15:39
infinitysveinse: Hrm?  I'm looking at the code.  It doesn't pick the "latest", it just sets it to the rootdev's timestamp, full stop.15:39
onerichow unmount SD15:39
sveinseinfinity: yep, that15:39
oneric?15:39
ogra_infinity, see bug 94798815:39
ubot2`Launchpad bug 947988 in initramfs-tools "fixrtc kernel option always sets system time" [High,Triaged] https://launchpad.net/bugs/94798815:39
ogra_i'm about to add that code bit15:39
onericogra how unmount sd from terminal?15:40
infinityogra_: I think fixrtc should have been named nortc, so it discouraged use in cases other than the one it was written for. :P15:40
ogra_heh, feel free to rename it15:40
ogra_though i think the check is valid15:40
ogra_oneric, sudo umount <path to your SD device>15:41
ogra_iirc thats described on the wiki15:41
sveinsein our setup the problem is this: 1) our fs image has valid dates when produced, hence "last mount time" is always correct. 2) The RTC may or may not have valid date and/or a date into the future15:41
infinityogra_: The check is reasonable, right up until someone makes a dev board with no rtc that has a default system time of 2020.15:41
ogra_heh, who would do that15:42
onericsudo unmount /dev/sdb/ not work15:42
ogra_probably people in 2021 ...15:42
sveinseThe current (before 947988) is not good that either, because it *always* sets the systime from last mount time15:42
onericsudo: unmount: command not found15:42
infinitysveinse: But this is a preinstall / factory imaging thing, right?15:43
ogra_oneric, read exactly what i typed above15:43
infinitysveinse: In your case, you can surely have your installed re-run flash-kernel with a new cmdline as the last step.15:43
sveinseinfinity: Preinstalled sdcard and then booted in production15:43
infinitys/installed/installer/15:43
infinityOr is there no "installer", per se?15:43
infinity(I assume there's at least something)15:44
sveinseNo installer. Everything is preinstalled.15:44
ogra_you could preseed a late-command in oem-config15:44
ogra_(if preseeding would work)15:44
infinityIf he was using oem-config.15:44
onericogra you can write command pls?15:44
infinityBut he did just say "there's no installer".15:44
ogra_which remonds me ...15:44
ogra_oneric, there is no "n" in umount15:44
ogra_well, there is one15:44
sveinseWe have a oem-config-like system, so we can run something post first-boot15:44
ogra_just not in the place you put it15:44
onericsorry15:45
oneric:)15:45
ogra_sveinse, well, then do that15:45
ogra_and remove the fixrtc option15:45
infinitysveinse: Right, then it makes sense to use fixrtc on first-boot, and rewrite the cmdline after that.15:45
sveinseWe are not updating any kernel or initramfs at this stage, so I'd try, for the risk of the product, not to have to mock around with anything related to booting15:45
infinitysveinse: I don't see a sane way to make fixrtc guess what it should do.  Either it compares and that's wrong, or it doesn't compare and that's wrong.15:45
ogra_you should rewrite it anyway to have a proper root=UUID= entry15:46
sveinseI'm considering dropping the use of fixrtc, as is creates more troubles than good, i think15:46
* ogra_ doesnt think so ... unless someone sets a relly weird date 15:47
ogra_but up to you :)15:47
ogra_i will add the check anyway15:47
sveinseogra_ you don't want to know: All produced sdcards have the same uuid as this is generated before the card is copied15:47
infinityogra_: Really weird dates are precisely his issue, I think.15:47
ogra_oh my15:47
infinityogra_: And I think your check might actually make it strangely worse (or differently broken).15:47
sveinsethe purpose of the first-boot (oem-config-ish) is to uniquify the product15:48
ogra_infinity, well, on the assumption that a user sets the date manually (while ntpdate already set it correctly) to a weird time in the future15:48
infinitysveinse: You can set a new UUID during your uniquification process.15:48
onericogra how can i check for device for my SD?15:48
onericsde1,sde2,sde3?15:48
ogra_checl dmesg15:48
onerici must put sde3 or sde?15:48
sveinseinfinity: yep, exactly15:48
ogra_*check15:48
infinityogra_: His issue wasn't about users, it was about the battery-backed RTCs potentially having "weird dates" even before the system is imaged.15:49
ogra_infinity, well, the initial start of this discussion was about a user who set a date of 201315:49
infinityogra_: Which, to be fair, is (way) out of the scope of what fixrtc is meant to deal with.  But yeah, it means your fix will fix the constant re-running, but break that case.15:49
ogra_hours ago15:49
sveinseWell coming back to our issue at hand: I can't be without some fixrtc in some form as mountall hangs if the RTC date is older than the more correct 'last mount time'15:49
sveinseI can't use fixrtc as the RTC date may be into the future, and then 'last mount time' gets updated with the invalid future date15:50
infinitysveinse: If Oli makes the comparison fix, I think that's probably correct, in the face of what fixrtc is meant to do, but it does, obviously, fail to fix anything if clocks are in the future.15:50
ogra_sveinse, it wont unless your SD write date is even further in the future15:50
ogra_as i said several times already15:51
infinitysveinse: And, I'm afraid, there's no fix for that.  You can't write something that says "sometimes pick the RTC, and sometimes pick the filesystem, but we can't tell you which without talking to a human or checking a wall clock."15:51
onericogra: you know LTIB?15:51
ogra_oneric, nope15:51
onerici have also another Board IMX53 freescale15:51
sveinseinfinity: IMHO there is one remedy to all of these issue: Apply Oliver's patch, and then if ubuntu could update 'last mount time' to the system time when umount is called, then that would work I think15:51
ogra_oneric, we do have images for imx53 too15:51
infinitysveinse: No.15:52
onericit not start15:52
* ogra_ hasnt tested any mx53 images since i dont own the HW15:52
infinitysveinse: Because with Oli's patch, you get the issue that dates set in the future stay in the future forever (or weird pre-imaging RTC dates end up being the true date), which you're arguing you don't want.15:52
ogra_the only sane way is use fixrtc with my patch and update the cmdline during sys configuration15:53
infinitysveinse: We literally can't fix both issues without human intervention.  Your computer can't know which date is right.  We can either say "pick the biggest one", "pick the smallest one", "always use the RTC" or "always use the filesystem", but we can't mix and match.15:53
onericfist i want start with panda board!15:53
onericok ogra i have put sd on panda15:54
sveinseinfinity: No, because assuming the user or NTP changes the system clock while the system is running, hwclock-save will save the correct time into the RTC. If umount also wrote the system time into 'last mount time', then the system would start correctly the next time even with fixrtc15:54
onericboard15:54
onericand it start with ubuntu15:54
infinitysveinse: Oh, I see what you're saying.  So, even if it's incorrect on one boot, you want it to be forced correct for subsequent ones by rewriting the last mount time.  That solves all but the "RTC is wrong" problem, I guess.15:55
ogra_right, we did have that in the past (a hwclock init script on shutdown)15:56
infinitysveinse: Of course, it also becomes a complete lie then, and breaks long-running systems.15:56
sveinseYes. If RTC is wrong, then its wrong. Either user or NTP can correct that15:56
infinitysveinse: (Last mounted is *meant* to be last-mounted, not "last-touched")15:56
ogra_and as i said before, fixrtc was written for the usecase where you actually install ubuntu15:57
infinitysveinse: If you have a system up for 400 days, the last-mount time should be 400 days ago, not "Just now, because I rebooted".  If we update it that way, timed fscks never happen.15:57
ogra_the time drift you have then wont be big15:57
onericogra i entered on ubuntu and now i'msetting system configuration15:58
sveinseinfinity: I totally agree. It's just that we assume in fixrtc that the written timestamp is correct, which it may not.15:58
ogra_oneric, did it do the resizing and one reboot properly ?15:58
infinitysveinse: No real fix for that.  Like I said, we should probably rename fixrtc to nortc, so people use it for what it was intended, a best-approximation of having no battery-backed RTC. :P15:58
onericresizing?15:58
ogra_sveinse, right, as i saidm, it was written for our images where a user installs them manually15:59
sveinseI agree that this isn't neccessarily a fix for every ubuntu system out there (the shudown last mount thing)15:59
ogra_oneric, yes, the image resizes itself to the full size of the SD and then reboots15:59
sveinseI'm considering doing a remount on rootfs on these special occations15:59
infinitysveinse: The shutdown last-mount thing is just plain wrong.  It's overloading last-mount to now be a timekeeping service, and breaks its actual intended use.15:59
sveinseagree16:00
onerici dont know, now ubuntu is installing keyboard configuration16:00
infinitysveinse: Now, doing that on your own images, say, on a product that never does times fscks anyway (and has that set to -1), then go nuts. ;)16:00
infinitys/times/timed/16:00
ogra_oneric, well, did it reboot once before you got into the setup program ?16:00
ogra_else your system may not function correctly16:00
sveinseinfinity: That's another good point. The image is valid prior to the first boot. Then the RTC is wrong and 'last mount time' is set into the future. Now the image will never be checked (except for mount counts) until this future time is met...16:01
sveinseOOI does desktop linux behave the same way? I.e. won't do a full start unless the hw clock is newer than the 'last mount time' ?16:03
infinity"desktop linux"?16:04
infinityMaking Ubuntu what, exactly? :)16:04
sveinsenatty amd64 using gnome ;)16:04
infinityamd64 and armel are no different in that regard.16:04
onericogra16:04
infinityOr in any regard, really.16:04
onericogra: it work16:05
onericthanks16:05
onericmany thanks!16:05
sveinsethat intersting, because this is the first time I've actually had to struggle with clock settings16:05
GrueMastersveinse: For a test, I took a panda daily image, removed the "fixrtc" from the commandline, and booted with no networking.  The system came up with 1989, which is still more valid than 1970, and it booted through oem config into unity with minor issues (background mainly).16:05
infinityBecause your amd64 system has a battery-backed-rtc and doesn't use 'fixrtc' on the command line.16:05
infinityIf an intel/powerpc/whatever system suddenly finds itself in 1970, you have exactly the same problems.  Now, as GrueMaster points out, this has been reduced from errors to warnings in precise.16:06
sveinseOur HW system don't work without fixrtc. We're running natty and mountall simply hangs duing boot if the RTC time is less than the last mount time from the rootfs16:06
infinity(And possibly oneiric?)16:06
infinitysveinse: Yes, this is fixed in newer releases.16:07
sveinseThat is perhaps and probably a bug, but we haven't time to fix that16:07
infinityIt occurs to me that natty is EOL, and this discussing (from an Ubuntu perspective) is somewhat moot as a result.16:07
infinityCause we can't "fix it" for you, even if we want to.16:08
infinityie: we can no longer upload to the archive. :P16:08
infinityOh, wait.  No.16:08
infinityI can't count.16:08
infinityBut it's almost EOL! ;)16:08
onericsomeone know LTIB?16:08
ogra_GrueMaster, well, the issue is that he isnt using a panda and that his systems can have really really weird clock settings apparently :)16:08
sveinseI'm not asking for a fix either, just advice16:08
* ogra_ thought we gave the right advice already16:08
ogra_use fixrtc on first boot, remove it from the cmdline after system configuration16:09
infinitysveinse: My advice would be, perhaps, to install a small shutdown script that does your hackish "set last-mount stamp on shutdown", and combine that with ogra's patch.16:09
GrueMasterWhat type of system?  I'm assuming arm based (otherwise the conversation should be somewhere else).16:09
infinitysveinse: But do that if (and ONLY if) you also aren't doing timed fscks.16:09
ogra_GrueMaster, no idea :) but yeah, likely arm based since we are in #ubuntu-arm16:09
onerici have freescale imx5316:09
onericbut i have problem with ltib16:09
onerici want install ubuntu on my imx5316:10
infinitysveinse: And yeah, "use it only on first boot" is also a perfectly valid option.16:10
infinitysveinse: I tihnk the paranoia that end users might screw up their RTC is sort of out of your domain.16:10
sveinseGrueMaster: omap3 devices. Custom HW for custom application16:10
GrueMasterWhat about preloading the rtc with a semi-sane time from u-boot?  Like the u-boot build timestamp?16:10
infinityGrueMaster: This is a battery-backed RTC, it shouldn't need preloading at all.16:10
ogra_aww, dont bring more variables into the discussion !16:10
GrueMasterThis way, your rtc is always in the past, but reasonablly close.16:11
infinityGrueMaster: His complaint is that it might be wrong on first boot, not that it will be wrong forever.16:11
sveinseinfinity: It certainly is. My concern is that production works, not if uses is capable of setting the correct date!16:11
ogra_GrueMaster, the prob is that you would have to have u-boot to only do it once16:11
GrueMasterinfinity: I have x86 systems that have had failing rtc batteries.  I don't rely on that always.16:11
infinityGrueMaster: Yes, but resetting the date on every boot when it may have already been correct (and now you've just made it incorrect) is a bit odd too. ;)16:12
* sveinse is grateful for advice from ogra_ and infinity16:12
ogra_and we happily give it :)16:12
infinitysveinse: I honestly see no One True Solution to any of this.  fixrtc + running ntpdate as early as possible gets you past most of the big hiccups, though.16:13
infinitysveinse: And, at the end of the day, who cares if your last-mount time is incorrect forever?16:13
infinitysveinse: I mean, it matters if you're using that feature, but given your willingness to overwrite the date with bogus values, you're obviously not. ;)16:13
ogra_it wont be once your rtc is right, fixrtc is gone and you reboot :)16:14
suihkulokkifixrtc and running ntpdate before mounting root partition read-write would be quite bulletproof (assuming available network)16:14
ogra_suihkulokki, right, and it falls with that assumption :)16:14
infinityogra_: Yes, running once feels right to me, but then he's paranoid about users setting their clocks incorrectly later, and wants to force-fix it again.16:14
ogra_yep16:14
sveinseinfinity: I have never cared about last mount time until mountall stopped working! When the RTC always is newer than the FS, I really don't care about last mount time16:15
infinitysuihkulokki: There'd be a lot of early boot mangling to do for him to rethink things and bring up the network in time for an initramfs-based ntpdate, I imagine.16:15
ogra_mountall not working is worth a bug btw ...16:15
suihkulokkiotoh if you don't have network, your sense of "real time" is kinda lost16:15
ogra_in case i didnt mention that yet :)16:15
infinitysuihkulokki: Unless he's already booting via a method that gives him a ghetto network (ie: bootp/tftp)16:15
ogra_suihkulokki, exactly ... and thats what fixrtc is for16:15
sveinseogra_, I'll do that when I've untied the flock in production16:16
ogra_in its current state it just forces the clock to last mount time of the disk16:16
ogra_sveinse, thanks !16:16
ogra_under the assumption that you used an ubuntu image and wrote it to the disk at some point ... to make sure your RTC isnt set to the epoch... nothing more16:17
ogra_(indeed that also fails if the machine you wrote it on has no rtc .... *g*)16:17
infinityogra_: No it doesn't...16:18
sveinseogra_, ubuntu image = debootstrapped ubuntu-minimal with our custom kernel on top? Does that count?16:18
infinityogra_: The last-mount time is from the buildds.16:18
ogra_infinity, is it ?16:19
ogra_oh, right, it is the filesystem we look at16:19
infinityogra_: Well, unless you make a habit of mounting your SD cards after you zcat/dd them, I don't.16:19
ogra_not the device16:19
ogra_yeah16:19
ogra_i was thinking device ... i usually mount them though to make surer the dd worked fine :)16:19
onericsomeone can help me pls?16:20
ogra_but i'm special and paranoid in that regard16:20
infinityoneric: I'm not sure what you need help with.  You said you have an i.MX53 (Quickstart, I assume?), and you want to play with Ubuntu on it?  We have an "mx5" image, and instructions on how to boot it.16:21
infinityoneric: https://wiki.ubuntu.com/ARM/MX516:22
sveinsePlease let me get this straight: If fixrtc isn't used, the system wont start (in fact mountall hangs, but that's a bug) if the RTC time is older than the FS. If fixrtc is used the system will always start, but the user can never set the time backwards.16:24
ogra_only with my recent fix16:26
ogra_else you will end up in the condition you had before we discdussed the fix16:27
sveinseAltering 'last mount time' may have sideeffects in respect of time based disk checking16:27
sveinseyes16:27
sveinseI foreseeing that customer services won't be happy because there will be at least one customer which happens to set the wrong date into the future. Neither options are a solution :(16:29
sveinseWell, I'm repeating myself. Thanks all for your considerations16:29
sveinseI have to think about this. It's apparently not straight forward16:29
sveinsewhen will support for natty be dropped?16:31
ogra_in 12 months16:32
ogra_all arm releases we had up to now are 18months supported16:32
ogra_err, in less than 12 actually16:32
ogra_7 or so16:33
GrueMasterNatty will drop off shortly after 12.10 release.16:33
GrueMasterNovember time frame.16:33
sveinseAs an end-user mfg, we are ultimately responsible for the product we ship. We have a full natty mirror which we froze some time ago to run QA on the system.16:35
sveinseThe product will be supported by us well beyond when natty is dropped by ubuntu16:36
ogra_ouch16:36
ogra_that will surely leave you with security holes at some point16:37
ogra_unless you backport all CVEs yourself to your mirror16:37
GrueMastersveinse: What is your targeted release date?16:38
sveinseQ2, but we are ramping up production now16:38
GrueMasterOuch.  So too late to update to at least Oneiric.16:39
sveinseoh, indeed. that's why I'm bothing with natty16:39
sveinseWell I have to leave. Thanks all, esp. ogra_ and infinity16:42
GrueMasterWill they be field upgradeable?  It isn't too painful to do a kind of firmware reflash a few months after the first production iteration.16:42
ogra_enjoy your evening16:42
GrueMasterHave a good evening.16:42
sveinseGrueMaster: Yes. It's sdcard based. Upgrade is in fact apt-get dist-upgrade.... One of the huge benefits from using debs in a system16:43
GrueMasterOk, so it isn't going to be locked down.  That is good.  Otherwise I would have suggested that once you get this natty based image frozen, start working on a precise image for release mid-late Q3.16:44
ogra_you still need an oneiric one ... else you have no upgrade path16:45
GrueMasterogra_: I don't know the project or the design.  I was thinking along the lines of a complete system upgrade, treating the image as a contained firmware set.16:46
GrueMasterBut open upgradeable is better.16:46
=== zyga-xchat is now known as zyga
=== prpplague^2 is now known as prpplague
danboidI've installed last nights omap4 amhf 12.04 server and the nic isn't working on my pandaboard17:02
danboidAny other panda users here having this prob or not?17:04
danboid'usb start' in u-boot sees my network port OK17:05
GrueMasterdanboid: I haven't tried it yet.  Give me 20 minutes and I can check.17:05
danboidGrueMaster, OK, thanks17:05
danboidbbl17:07
AbuDawudI have a Transformer Prime running Ubuntu 9.10. I'd like to try and get it up to current release but when attempting a distribution upgrade I am getting repo errors for Lucid.17:34
AbuDawudIs there a repo I should add before attempting to upgrade the distribution or am I stuck on Karmic for the time being17:35
AbuDawudThe errors are "W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/main/binary-armel/Packages.gz17:36
GrueMasterAbuDawud: You are getting repo errors on Armel Lucid?  What kind of errors?17:36
AbuDawudit appears the directories for armel do not exist there17:36
GrueMasterAh.  If this is armel, you need ports.ubuntu.com/ubuntu-ports.17:36
AbuDawudGrueMaster: Trying that, thanks17:37
AbuDawudGrueMaster: should the line be 'deb http://ports.ubuntu.com/ubuntu-ports karmic non-free' ?17:39
GrueMasterI use "deb http://ports/ubuntu.com/ubuntu-ports main restricted multiverse universe".  That should get you everything except ppa's and private repos.17:40
GrueMasterOops.  Add "karmic" before main.17:40
AbuDawudhm, I guess I have to let my stupidity show a bit, the oldest dist there is lucid, if I am moving from old-releases to ports how to I do that?17:44
GrueMaster"do-release-upgrade" ?17:45
AbuDawudwhat I'm saying is I'm transitioning from archive.ubuntu.com to ports.ubuntu.com, if I add the ports repo it still throws an error about not finding the archive repo when attempting to upgrade17:49
GrueMasterHmm.  I'm really not sure what to tell you.  Even Lucid is no longer really supported on arm, it just floats along with the LTS on x86.17:50
GrueMasterAnd I don't ever remember arm being available on archive.u.c.17:50
AbuDawudfor lucid its not, it stops at karmic -.-17:51
GrueMasterTry setting the apt sources to "deb http://ports.ubuntu.com/ubuntu-ports lucid main restricted multiverse universe", then "apt-get update" followed by do-release-upgrade.17:53
GrueMasterI meant, I don't remember arm EVER being on anything but ports.ubuntu.com.17:54
AbuDawudGrueMaster: looks like thats working, oh well not enough disk space, new problem!18:01
AbuDawudthanks though18:01
GrueMasterCan't help there, sorry.  :P18:01
AbuDawudit looks like its trying to write to the device root instead of the chroot I assigned, man I suck at this18:02
=== zyga is now known as zyga-afk
=== yofel_ is now known as yofel
shadeslayerHi, I don't suppose someone could point me to a precise arm kernel that I could use with qemubuilder?18:55
GrueMastershadeslayer: Try the omap kernel.18:55
GrueMasterhttp://ports.ubuntu.com/ubuntu-ports/pool/main/l/linux/linux-image-3.2.0-18-omap_3.2.0-18.28_armhf.deb18:56
shadeslayerGrueMaster: sure, but where is it? Inside this : http://cdimage.ubuntu.com/daily-preinstalled/current/precise-preinstalled-desktop-armhf+omap4.img.gz ?18:57
shadeslayerokay18:57
shadeslayeruhh18:57
shadeslayerGrueMaster: I need a vmlinuz19:02
GrueMasterdownload the deb, run "dpkg -x linux-image-3.2.0-18-omap_3.2.0-18.28_armhf.deb ." and you will have one in ./boot.19:04
shadeslayeraha19:09
shadeslayerGrueMaster: thanks!19:09
* prpplague grumbles about the "issues" with firefox on his desktop ubuntu installation after doing an upgrade19:22
GrueMasterprpplague: Do you know much about the beagleXM, rev b in particular?19:25
rcn-eejust an es core bump over the rev a. ;)19:26
prpplagueGrueMaster: just general info, i wasn't on the team for that19:26
GrueMasterHmmm.  I'm seeing an issue with the nic not detecting link unless I physically unplug and plug in.19:27
GrueMasterOur kernel dev has a Rev A & Rev C, and claims they just work.19:27
GrueMasterOk, nic just sprouted to life.  System was idle at the desktop for ~10 minutes.  Seems like it isn't getting enough power or something.19:28
rcn-eeGrueMaster, one of my xM B's does that every once in a while.. seemed kernel dependent..  rmmod smsc95xx /modprobe smsc95xx always seemed to bring it back..19:28
GrueMasterinteresting.19:29
GrueMasterWell, it has been like this since beginning Oneiric.  Odd that it only happens all the time on mine.19:30
GrueMasterFully reproducible.19:30
GrueMasterI also found that if I compile smsc95xx into the kernel (instead of as a module), it works consistently.19:31
GrueMasterAnd the Angstrom test image works of course.19:32
rcn-eebtw, they are also touching the power rails for smartreflex 1.5, so it could be a power sideeffect..19:34
GrueMasterYea, it feels like a low power issue.  Like a capacitor isn't charging or something.19:37
=== pizthewiz_ is now known as pizthewiz
ogra_shadeslayer, http://ports.ubuntu.com/dists/precise/main/installer-armel/current/images/ has a plain kernel20:00
ogra_http://ports.ubuntu.com/dists/precise/main/installer-armel/current/images/omap/cdrom/ actually20:00
shadeslayercool! But I already ran qemubuilder, so ... :)20:01
ogra_heh, k20:01
* prpplague grumbles20:23
prpplagueGrueMaster: after i did an upgrade last week my desktop is acting totally funky20:24
prpplagueGrueMaster: i think we should just blame ogra_20:24
ogra_prpplague, yeah, sorry, i wasnt cautious and broke it ... will fix it with the next update you run :P21:07
prpplaguehehe21:07
ogra_:)21:07
* prpplague had a cow when looking at travel prices for the next linaro connect21:16
newtony2so ummm i need python on and iphone... ummm i found a git but i dont know anything about git... any help?23:16
infinitynewtony2: That's really way out of scope for this channel.23:20
newtony2oh well iphone is an arm processor23:21
infinityIs your iPhone running Ubuntu?23:22
lilstevienewtony2, you would be better off asking in a iPhone room23:22
lilsteviethere is python stuff on cydia23:22
newtony2kewl thx23:24

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