/srv/irclogs.ubuntu.com/2010/07/16/#ubuntu-arm.txt

=== fta_ is now known as fta
=== fta_ is now known as fta
=== bjf is now known as bjf[afk]
=== fta_ is now known as fta
prpplaguejayabharath: don't you ever go home?02:56
=== fta_ is now known as fta
=== fta_ is now known as fta
=== fta_ is now known as fta
=== fta_ is now known as fta
=== hrw|gone is now known as hrw
hrwmorning08:08
=== fta_ is now known as fta
GrueMasterAlready?  I really wish I could go to sleep, but I leave for the airport in 3 hours.08:15
hrwGrueMaster: trip to Prague?08:18
=== amitk is now known as amitk-afk
loolPrague is the hot place to be!08:31
hrw33°C there today08:35
TaalasI have a iMX25 with Ubuntu installed. How can I get the touchscreen working? ts_calibrate throws following message: "ts_open: No such file or directory"08:52
ukleinekTaalas: which file does ts_open try to open?09:01
hrwTaalas: and /proc/bus/input/devices lists ts device at all?09:05
lagsebjan: Sorry if I've asked this before (if I did, I've forgotten the answer)09:08
lagsebjan: Do _any_ of the OMAP chips have Parallel Ports?09:08
lagEither ISA or PCI?09:08
sebjanlag: hi! I would not speak about all omap chips, as there are many variants. I am not aware of such ports.09:10
sebjanlag: you could maybe ask this question on #linux-omap?09:11
lagI can :)09:11
lagAnd have09:12
=== fta_ is now known as fta
cooloney_#linux-omap09:22
Taalasukleinek: I don't know. Where can I see it?09:29
ukleinekTaalas: ask strace09:30
Taalashrw: /proc/bus/input/devices lists 2 devices. One is named N: Name="mxckpd" the other N: Name="imx_adc_ts"09:30
hrwTaalas: did you ever used tslib tools before?09:30
GrueMasterhrw: yea, Prague.09:30
hrwso imx_adc_ts is your touchscreen. check which /dev/input/event it got09:31
cooloneyogra: i tried to turn off swap in the kernel. then one of the oops is gone09:31
hrwtslib is easy09:31
ogracooloney, so it apparently cant handle swapfiles properly09:31
Taalashrw: I never used tslib before. The Handler is event109:31
cooloneyogra: i think swap is required for you Ubuntu system, right?09:31
hrwTaalas: TSDEVICE=/dev/input/event1 ts_calibrate09:32
ogracooloney, well, at least with so low memory09:32
cooloneyogra: https://bugs.edge.launchpad.net/ubuntu/+source/linux-ti-omap4/+bug/60573909:32
ubot2Launchpad bug 605739 in linux-ti-omap4 (Ubuntu Maverick) (and 1 other project) "BUG: Bad page state in process swapper pfn:94d23 (affects: 1) (heat: 6)" [High,In progress]09:32
cooloneyogra: so currently, we are using a swapfile in SD card, how about a swap partition?09:33
ogracooloney, tricky but doable09:34
Taalasukleinek: strace tells /dev/touchscreen/ucb1x00 is not found09:34
ogracooloney, though its still a bug09:34
Taalashrw: same error09:34
ogracooloney, swapfiles work fine on other ubuntu arches09:34
cooloneyogra: but without swap, i saw several memory allocation fails when i was trying apt-get dist-upgrade on the board09:35
ograsounds more like a general memory prob with the kernel09:35
TaalasThe folder /dev/touchscreen is not existing09:35
cooloneyogra: maybe, i need more investigation.09:36
cooloneybut i think 512M memory is OK for Ubuntu on omap4,09:36
=== amitk-afk is now known as amitk
cooloneyalthough i found the system sometime is quite slow09:37
ogracooloney, yes, something is wrong, it got a lot slower between two image tests i did09:37
ogracooloney, but that also happened on omap3 so i suspect thats rather userapce09:37
ograi'll resarch and fix that at the sprint09:38
cooloneyogra: got it. i assume is my SD card's problem.09:38
ograno, we all see it on different SD cards09:38
cooloneysometimes my SD card cannot be recognized by my PC09:38
ograthere is definately something not acting as it should09:39
hrwTaalas: /dev/touchscreen never existed - maybe ltib (or whatever you used before) created it09:39
cooloneyogra: ok, cool.09:39
ograthe MMC driver on the panda *has* some speed issues though09:39
ograbut thats not alone the reason for the slowness09:39
TaalasI created my rootfs with rootstock09:40
hrwTaalas: so use strace to check why it does not work09:47
hrwTaalas: check permissions etc09:47
=== frivas is now known as fjrivash
=== fta_ is now known as fta
=== fta_ is now known as fta
lagamitk: Hi10:45
=== fta__ is now known as fta
amitklag: hola!11:30
lagHey amitk11:31
lagDo you have the ability to search though the kernel mailing list?11:31
amitklag: LKML?11:32
laglinux-kernel@vger.kernel.org11:32
amitkyes, why?11:33
amitkDid Google go bankrupt? ;)11:33
cooloneylol11:33
amitkhttp://lkml.indiana.edu/hypermail/linux/kernel/11:33
amitkhttp://marc.info/?l=linux-kernel11:34
=== cooloney is now known as cooloney-afk
* amitk subscribes to lkml through gmail to use search11:34
hrwlag: gmane ;)11:35
lagamitk: Search for - Stop ARM boards crashing when CUPS is loaded11:35
amitkhttp://marc.info/?l=linux-kernel&w=2&r=1&s=Stop+ARM+boards+crashing+when+CUPS+is+lo&q=b11:37
amitklag: ^^ I see your comment there11:37
lagapw: Mentioned that Lenaro may have the funding to make the LK better in this way11:40
amitklag, are you pitching a project for Linaro? :)11:40
* apw referred to the 'platformisation' of things like the paralellel port driver ...11:40
lagMaybe :)11:42
lagapw: Yep11:43
lagSimilar to the work that was undertaken on the serial driver a little while ago11:44
lagMentioned by Russle11:44
lagMentioned by Russell11:44
lag:)11:44
amitklag: This is unlikely to be a priority for Linaro (parallel port is not an interface that many people care about anymore). You might try pitching it to to GregKH for his Linux drivers project.11:45
amitksome student wanting to get their feet wet might want to dive into it11:45
lagOkay, I'll ping him an email explaining11:47
amitklag: I'll ask around in Linaro, but don't expect too much.11:47
lagNo problem, thanks11:47
lagCan I mention Linaro in an email to Greg and Russell?11:48
lagI'm assuming I can if I can mention them here11:48
amitklag: mention Linaro in what context?11:49
=== fta_ is now known as fta
lag"I've put in a pitch for Linaro to complete the work, however, this is unlikely .... <blar>11:50
lag"I was wondering if you'd be interested ... <blar>11:51
lagamitk: --^11:53
lagHi mythripk11:53
amitklag: sure, but TBH this isn't the kind of work Linaro is geared for. I can almost certainly say that no machine ships with parallel ports anymore (on any platform). So just ask Greg if he knows anybody who might be interested in taking on this challenge11:55
lagamitk: np11:55
hrwamitk: parport_pc is not only LPT1:11:57
hrwparport_serial which handles multi port PCI serial cards depends on parport_pc11:57
hrwthere are ARM boards with PCI slots...11:57
amitkhrw: interesting. But are these modern boards?12:00
hrwI know that pcie multi i/o cards also exists. and pcie is present in modern arms too12:01
hrwamitk: intel ixp4xx had pci but it is xscale12:01
=== fta_ is now known as fta
amitkhrw: that is not really an architecture linaro cares about, is it? The discussion here is whether this is something that is a blocker for Linaro. There are ARM boards doing all sorts of things, but Linaro only cares about a small percentage of those12:03
lagamitk: Is it worth mentioning that you suggested to email Greg? I.e. does he know who you are by name?12:03
hrwI would just disable parport_pc from default configs12:04
laghrw: Check the kernel-team mailing list12:04
amitklag: you're being too formal about this (intros and references) :) And no, I'm not that famous ;)12:05
lagOne must be professional :)12:05
ograwhich one ?12:08
hrwlag: did not found 'parport' in last 3 months12:08
laghrw: Are you searching in subject lines or main body?12:12
laghrw: Search for "Stop ARM boards crashing when CUPS is loaded"12:13
hrwfound12:15
lag:)12:15
hrw!ARCH_OMAP one12:15
ubot2Factoid 'ARCH_OMAP one' not found12:15
lagYup12:15
ogralag, cooloney-afk, "omap_device: mmci-omap-hs0: new worst case deactivate latency 0: 30517" any idea what that cound mean ?12:15
ograi wonder if thats the reason for the SD slowness12:15
lagSlow read?12:15
ograi get that on the console if fsck runs before resizing the filesystem12:16
ogra(on panda)12:16
lagIt's not a kernel message12:16
lagWait12:17
lagSorry12:17
lag1 min12:17
ograit must be kernel or a driver12:18
lagogra: That's just wake-up latency12:22
lagogra: It's putting the card to sleep - saving power12:22
ograwhile writing to it ?12:23
ograwow12:23
lagYeah, that doesn't sound good12:23
ograit appears immediately after fsck starts12:23
lagAre you sure it't not _after_ it finishes?12:23
ograyes12:23
ograprintf "Checking filesystem before resizing..."12:24
ogra/sbin/e2fsck -fy /dev/${DISK}${SEP}2 >>${LOG} 2>&112:24
ograecho "[done]"12:24
ograthats the code12:24
ograit appears between the ... and done12:24
ograimmediately after the printf was run12:25
lagAnd in the ${LOG}?12:26
ograso either while e2fsck runs or right before it starts12:26
ograstill waiting for the resizing to finish12:26
ograi'll grab the log but usually there is just plain e2fsck babbling12:26
ogralag, http://paste.ubuntu.com/464486/ nothing special from e2fsck12:30
=== fta_ is now known as fta
lagdo cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed12:30
ograhrm12:31
ograi have no user on that system yet12:31
ograthat will take a while12:31
lagI don't think that messages is an issue12:33
lagIt's just showing you the worst case latency of the MMC card12:33
lagOnce it's awake, it's awake12:33
lagHow slow is e2fsck?12:33
ogratakes around a minute12:35
ograprobably two12:35
ogra(1.5G filesystem)12:36
ograoverall the SD I/O seems to be way to slow though12:36
ogralag, no cpufreq at all12:40
lagHold on12:41
ogra(in another note i tried to run iotop yesterday and it seems we're missing config options for it to work)12:42
lagWhich board is this?12:43
ograpanda12:43
lagFrom initramfs?12:46
=== fta_ is now known as fta
ograyep12:47
lagHow can I replicate?12:47
lagmythripk: ping12:48
ogragrab a recent preinstalled image12:48
ograand i can give you a uInitrd to replace on the SD card with the jasper changes12:48
lagI'm still having monitor issues12:49
ograjust change the shipped boot.scr and use a serial console for that12:50
mythripklag: That is in the PSM mode and when it is on ,it is working fine with the patch right ?12:52
lagMythripk: Yes12:54
lagIs the delay in the correct place?12:54
lagIs it long enough?12:54
lagogra: Okay12:55
mythripki have sent a single clean patch with this i was not able to reproduce the on/off issue12:55
ogralag, http://people.canonical.com/~ogra/uInitrd12:59
lagogra: debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: No space left on device13:30
lagOn a 16GB SD - WTF?13:30
ograthat was with a fresh image and you only added the console entry to the existing boot.scr ?13:30
ogra(it didnt resize, thus the no space message)13:31
lagI had to mkimage it again13:31
lagBut yes13:31
lagFresh image, only the boot.scr changed to add console13:31
ogralooks to me like the image is already configured13:31
lagIt was brand-spanking13:31
ograhmm13:31
=== fta_ is now known as fta
lagI dd'ed myself13:31
ogracan you check if 7var/loga7jasper.log exsists in the foorfs ?13:32
ogra*rootfs13:32
ogragah13:32
ogra /var/log/jasper.log13:32
lagNope13:32
lagNo consle13:32
lagconsole*13:32
ograon your PC13:32
ograjust mount the Sd13:32
ograthe resizer only doesnt run if root=UUID= is set on the cmdline13:33
mythripklag: can you try and let me know13:33
ograand thats set by the second part of jasper13:33
lagmythripk: Doing it right now13:33
lagmythripk: Monitor entered PSM/on/PSM/on ...13:35
lagmythripk: You want the log?13:35
lagmythripk: http://paste.ubuntu.com/464515/13:36
mythripklag:looking at the log give me a min13:41
lagogra: /var/log/jasper.log is missing13:43
ogralag, very weird13:43
lagogra: I haven't used your initrd yet13:43
lagThe only thing I changed was the boot.scr13:43
ogramy initrd just adds more output to jasper13:43
ograapart from that it shoudl be identical to whats on the image13:44
lagSo why isn't it resizing then?13:44
ograno idea13:44
ograand hard to say without log13:44
lagAre there any other logs which may help?13:44
ogranope, its all in initramfs, nothing logs there by default13:44
ograit works fine here with the latest image and my hacked initramfs13:45
ograas well as with the shipped one13:45
mythripklag: did you try with debug today and with debug prints it works is it13:45
lagNot yet13:46
lagWait one13:46
lagYes, it works fine with debug on13:47
lagogra: http://paste.ubuntu.com/464520/13:47
ogralag, how long did it sit between line 243 and 244 ?13:49
ograshould be like 30min for a 16G card13:49
lagNowhere near that13:50
ograso resizing failed for an unknown reason13:50
lagHow do I debug?13:52
ograyou cant13:53
ograwell, you could use break=premount and try to run jasper_growroot manually13:54
ograor use break=bottom and inspect /dev/.initramfs/jasper.log13:55
ograbut i doubt you will get much info from that13:55
lagWell I need to fix it13:56
lagSo I need somewhere to start13:56
ograright, on a fresh image break=bottom and checking /dev/.initramfs/jasper.log is probably the best13:57
lagDoes growroot have a -vvv setting?13:57
ograheh, its a script13:57
lagOkay13:57
lagI'll hack the script13:57
ogradepends how good you are with ed :)13:57
ograthere is no editor in the initramfs13:57
=== fta_ is now known as fta
lagI'll mount it on my PC13:58
ograyou mount the initramfs ?13:58
ogra:)13:58
lagIs that where the script is/14:02
lag?14:02
ograyes14:02
ograthats why making or testing changes is so hard14:03
ograor debugging14:03
ograall commands called by jasper redirect their output to jasper.log though, if you boot with a break= statement you can at least cat that file from the busybox prompt14:04
loolFolks, do you know why we don't have ddebs for armel ATM?14:08
hrwwhat are ddebs?14:08
ogralool, no idea14:09
ogralool, ask pitti ?14:09
ograi think he fiddled with pkgbinarymangler14:10
lagogra:14:10
lag(initramfs) ls /dev/.initramfs14:10
lagbootchart.pid14:10
lag..14:10
ograwhere did you break ?14:10
lagbreak=bottom14:10
ogratry premount14:10
lagDo I have to reflash?14:11
ograbottom might be to late ... the script in local-bottom has a mv command for the log14:11
ograyes14:11
lagOh no, I tried premount14:11
lagShould I try bottom?14:11
ograwhats the last you see on the screen ?14:11
ogradid it run local-premount already ?14:12
lagdevice-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com14:12
ograor only init-premount14:12
lagudev: starting version 15114:12
lagomap_device: mmci-omap-hs.0: new worst case deactivate latency 0: 3051714:12
lagBegin: Loading essential drivers ... Btrfs loaded14:12
lagdevice-mapper: uevent: version 1.0.314:12
lagdevice-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com14:12
lagdone.14:12
lagSpawning shell within the initramfs14:12
ograk14:12
lagSo?14:12
lagNow what?14:12
ogrash /scripts/local-premount/jasper_growroot14:13
ogrash shouldnt be necessary though14:13
ograthen check for the log again14:13
lag(initramfs) sh /scripts/local-premount/jasper_growroot14:14
lagscripts/local-premount/jasper_growroot: line 104: syntax error: /255/63/51214:14
lagOooooooooooooooooooooooo14:14
ograhmm, seems the mmc isnt there14:14
ogracheck /dev if mmcblk0 exists14:14
ograyou probably need to break later14:14
lagDoh!14:14
lagMy bad14:15
lagWait one14:15
lagResizing root fiomap_device: mmci-omap-hs.0: new worst case deactivate latency 0: 3051714:18
laglesystem please wait, this will take about ten minutes ...14:18
lag(initramfs)14:18
ograheh, thats it ?14:19
ograit should have taken 10mins :)14:19
ograwell, check for jasper.log14:20
laghttp://paste.ubuntu.com/464529/14:21
ograweird14:23
ogragiven that e2fsck just ran before14:23
* ogra has no idea how that could happen14:24
lagWell learn ;)14:25
lagThis is userspace :)14:25
ograwell, that would mean that something in your FS is dirty14:25
ograwhich cant be14:25
lagIt's a new dd14:26
ograresize2fs is the next line after e2fsck ... the disk isnt mounted so there is no way it could get dirty again after it was just checked14:26
lagAnything else I can try?14:28
ogranot really14:28
ograi have no clue why your SD appears dirty right after e2fsck -fy14:29
ograthats technically impossible14:29
ograyou could try the same with the other uInitrd14:30
lagWith your one?14:30
ograbut i doubt it will change much about the fact that either e2fsck or resize2fs cant handle your Sd properly14:30
ograyes, with mine14:30
ograyou dont happen to have it mounted manually or some such ?14:39
=== fta_ is now known as fta
lagogra: I flash the card and put it in the Panda14:52
lagogra: I do nothing else14:52
ograright, but there is no technical explanation for that error14:53
lagogra: It must do something, cause it trashes the boot partition14:53
ogratrashes in what way ?14:53
lagWon't mount on my PC any more14:55
ogralike you issue mount /dev/mmcblk0p1 /mnt and get an error ?14:57
ograor how does that manifest ?14:57
* ogra quickly makes some coffee before the call14:58
lagIt does mount14:58
lagIt just doesn't auto mount14:59
ograthats how its supposed to be :)15:01
ograit shouldnt show on your desktop or in places or automount15:01
ogramount it manually if you need to manipulate it15:02
ogralag, when the repartitioning happens the vfat partition gets recreated and gets a label added that udev explicitly ignores15:18
lagk15:18
lagSo it gets that far15:18
ograit runs the whole stuff apart from resizing15:18
lagSeemingly so15:19
ograi'm pretty sure even the jasper_setup script from local-bottom runs fine15:19
ograi could add a force to resize2fs but that scares me a bit15:19
ograit might ignore if the FS is dirty15:20
ogranot sure what checks -f disables i know it doesnt drop all of them15:20
lagWell it can't be any worse than it already is15:20
ograindeed15:20
ogralet me roll you another uInitrd with -f15:22
lagk15:22
ograhttp://people.canonical.com/~ogra/uInitrd15:24
ogratry that one on a fresh dd'ed card15:24
* ogra takes a break 15:25
=== bjf[afk] is now known as bjf
ogralag, any change ?15:51
=== hrw is now known as hrw|gone
ogralag, did you have any luck with the other uInitrd ?16:24
XorA|gonehmm, is there any 4430 SDP compatible images?16:28
XorA|gonemaverick ones16:28
ograonly for panda16:29
* XorA|gone suspects has destroyed image trying to upgrade :-)16:30
ograhttp://cdimage.ubuntu.com/ubuntu-netbook/ports/daily-preinstalled/current/16:31
XorA|goneoh no, just too a long time for ext3 recovery16:31
=== JaMa|GoNe is now known as JaMa
lagogra: How do I know if the resize has completed correctly?16:50
lag(initramfs) sh /scripts/local-premount/jasper_growroot16:50
lag mmcblk0: p1 p216:50
lagResizing root filesystem please wait, this will take about ten minutes ...16:50
lag(initramfs)16:50
ogracheck jasper.log16:51
ograbut for my hand rolled initramfs thats not enough output16:51
ograso i guess it died again16:51
laghttp://paste.ubuntu.com/464598/16:54
ograsigh16:54
lagFix it16:56
ograbuy a better SD :P16:56
lagbug 37340916:57
ubot2Launchpad bug 373409 in gparted (Ubuntu) (and 1 other project) "resize2fs doesn't notice the partition was fsck'ed (affects: 1) (heat: 13)" [Undecided,Confirmed] https://launchpad.net/bugs/37340916:57
lagIt's a Kingston16:57
ogragparted ?16:57
ogralol16:57
* lag shrugs16:58
=== fta_ is now known as fta
ogralag, hmm17:03
ograwe actually set the clock to last mount time in omap17:04
ograso that such a broken clock setting cant interfere with mounting17:04
ograhmm17:07
* ogra has an ugly idea but one that will surely fix it17:07
* ogra rolls a new test initrd17:09
lag(initramfs) /sbin/resize2fs /dev/mmcblk0p217:13
lagresize2fs 1.41.12 (17-May-2010)17:13
lagext2fs_check_mount_point: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/mmcblk0p2 is mounted.17:13
ogralag, http://people.canonical.com/~ogra/uInitrd updated, i bet it works now17:13
lagWhat did you do?17:13
ograi mount/unmount it once before e2fsck runs :)17:14
lagOkay17:14
ograjust to confirm its the same17:14
ograif its the same bug it should have a new last mounted timestamp and stop complaining17:14
lagk17:15
ograindeed thats not the right solution17:15
lagDid you see the output of my /sbin/resize2fs /dev/mmcblk0p217:15
ograyour jasper.log you mean ?17:16
ograoh, i missed the lines above17:16
ogradont worry, the script creates an mtab17:17
ograand removes it at the end again17:17
ograyou would have to do the same if you want to run it manually ... just link /proc/mounts to it17:17
lagk17:23
=== fta_ is now known as fta
=== bjf is now known as bjf[afk]
=== fta_ is now known as fta
=== fta_ is now known as fta
=== fta_ is now known as fta
=== fta_ is now known as fta
=== bjf[afk] is now known as bjf
=== fta_ is now known as fta
=== bjf is now known as bjf[afk]

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