/srv/irclogs.ubuntu.com/2012/04/21/#ubuntu-arm.txt

=== gry is now known as gry2
=== gry2 is now known as gry
steevi was going to suggest he add rootwait to his bootargs04:47
steevsome mmc devices are rather slow04:47
jeinorI get this while booting kernel 3.3.1: "EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)"09:31
jeinorthen "EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended"09:31
jeinorand then "EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)"09:31
jeinorand last "VFS: Mounted root (ext4 filesystem) on device 179:2."09:32
jeinorthe partition is a ext2 partition, but still it seems ext4 mounts it09:32
jeinorthe last line in the log is "Freeing init memory: 248K", but I still don't get any login console09:33
jeinorshould I?09:33
XorAyou sure the recomended fsck isnt running?09:34
jeinorno. how do I know?09:35
XorAno idea unless you have disk activity light09:36
XorAalso not sure which ubuntu versions give a console prompt and which just go to desktop with nothing on serial09:36
jeinorI don't think I do. It's a small ARM system (Cubox). But the partition is only 4 GB, so I figured it would be done by now if so09:37
jeinorI'm running Ubuntu Core 12.04 beta2, there's no desktop to go to09:37
XorAyou could try fscking the card on a PC09:38
XorAit may have got stuck with an unrecoverable error or something09:38
XorAbut thats all I can think off09:38
jeinorgood idea. Would it be enough to just reformat the partition?09:38
XorAI always try and recover before getting drastic09:39
XorAjust to try and understand what happened09:39
jeinorok, I'll try that09:39
jeinorit found some errors, fixed them, recreated the lost+found and the error message "EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended" disappeared09:44
jeinorso it did something :)09:44
jeinorstill it cannot mount the filesystem using ext2, even if it is an ext2 filesystem. it mounts it using ext409:44
jeinorand still no login console09:44
XorAat some point in time you mounted it as ext4 and wrote a file09:44
jeinorhmm09:44
jeinorperhaps if ubuntu did it automatically when I inserted the SD card in another computer?09:45
XorApossibly09:45
XorAbut as to why its not booting no idea09:45
ogra_ubuntu doesnt do such stuff, does your kernel have ext2 support ?09:46
jeinoryes, its compiled into the kernel09:46
ogra_if not, it will indeed try different FS drivers09:46
ogra_also does your fstab have a proper entry for it pointing to ext209:46
jeinorno, it does not. that file is just empty09:48
jeinor(heh)09:48
ogra_well, that means you leave it to the kernel to do guesswork :)09:48
ogra_(ubuntu-core is seriously not thought as a rootfs if you dont know how to configure it and do all bits the installer would do ...)09:49
lilstevieI am having a freezing problem :/ after "init: unreadahead main process (105) terminated with status 5" it hardlocks09:49
ogra_are you sure it hardlocks or does it just not display anything ?09:50
jeinorwell, I am learning. I had Ubuntu Core running on qemu arm, and the only modification I did to get a login prompt was to setup a root password there.09:50
lilstevieyeah it hardlocks09:50
ogra_weird09:50
ogra_ceck your boot.log ;)09:50
ogra_*check09:50
lilstevieI have an image on sdcard that should just go to console login rather than starting x09:50
lilstevieand also logs are not written to09:50
ogra_you dont have the SD locked to readonly, do you ?09:51
lilsteviethis is both emmc and microsd09:51
ogra_hmm09:51
lilstevieon transformer prime09:51
lilsteviewe think it is probably the kernel, just don't know why, and seriously lacking some debugging options09:51
ogra_your kernel has all necessary bits ?09:51
lilstevieyes09:51
lilsteviehttp://paste.ubuntu.com/939433/ <-- my config09:54
lilsteviejust incase you do see something I may have missed09:54
ogra_bug 936667 came to mind, but you should at least see error messages09:54
ubot2Launchpad bug 936667 in upstart "Upstart early job logging causes boot failure for systems with no initramfs (error is "No available ptys")" [High,Fix released] https://launchpad.net/bugs/93666709:54
lilsteviewell I do have a different error when running noinitrd09:55
lilsteviebut it still ends up in the same lockup09:55
ogra_hmm, you have legacy pyts on09:56
ogra_not sure if that can get in your way, but the latest upstart is picky about kernel options at times09:56
lilstevieoh that was me trying to work around failed to create pty with noinitrd09:56
lilstevieI had this problem without legacy ptys09:56
ogra_wow, why do you compile loopdevice support into the kernel ?09:57
ogra_8instead of making it modular)09:57
lilsteviecause that is how it is for android09:58
lilstevieI haven't finished with the kernel yet09:58
ogra_wow, and also DM09:58
ogra_your kernel must be huge09:58
lilstevie3.5MB09:58
lilsteviethis is just how things are in the default android config that I haven09:59
jeinorogra_: do you know any place I can find the minimum configuration I need to do in order to get ubuntu core up and running?10:00
lilsteviehaven't bothered changing yet10:00
ogra_wowhmm your wlan driver is also hard compiled in and has a hardcoded firmware part ...10:00
lilstevieyeah, that is bcmdhd10:00
ogra_jeinor, http://omapedia.org/wiki/OMAP_Ubuntu_Core has some hints10:01
jeinorthanks10:01
lilsteviethe firmware part is hardcoded cause I needed to rearrange some things :)10:01
ogra_lilstevie, i would make a lot stuff in your kernel modular10:01
ogra_as a first step10:02
lilsteviebcmdhd does not work, at least on android without being compiled in10:02
lilsteviethis is a very early 3.1.10 port, a lot of the asus stuff is still horribly intertwined10:02
ogra_well, if you are sure it is locked up hard ... hard to say what it is ... if you wouldnt be sure about that i would just have guessed for a worng console= arg on the cmdline10:04
lilsteviethe commandline is certainly correct10:05
ogra_(the ureadahead message is usually the last bit you see before the userspace console kicks in)10:05
lilstevieand this kernel will boot android with its config differences too10:05
lilstevieand yeah I know10:06
ogra_well, that it boots android has nothing to say :)10:06
lilsteviethats why I was wondering if there was something extra for a more verbose output10:06
lilstevieand haha yeah .39 boots android too, but has a horribly broken framebuffer in ubuntu10:07
ogra_since you seem to properly get through the initrd i would boot with something like break=top or break=premount or so in your cmdline10:07
ogra_that will drop you into the initrd shell for further debugging10:07
lilstevieok10:07
ogra_(and indeed make sure to not have "quiet" set ;) )10:08
ogra_jeinor, note that the above url refers to pandaboards, so dont pick up things like bootloader4 config etc from there since this is HW specific10:09
lilstevieyeah I only have root= at the moment10:10
jeinorogra_: got it. I used it for configuring network and root user so far10:10
jeinorI also recreated the filesystem using mkfs.ext3 and reuntared ubuntu core to it10:11
jeinorlet's see what happens... :)10:11
ogra_lilstevie, right, try break=top ... that should get you the initrd prompt right after uncompressing10:11
jeinorogra_: that removed all error messages on the filesystem. it now properly detects the filesystem as ext3 and mounts it without any error messages.10:14
ogra_good10:14
jeinorogra_: i still get no login console, but I'm starting to believe there's a problem with the graphics driver. I see no output whatsoever on the monitor connected via HDMI during the boot process10:15
ogra_well, do you see anything on the serial console ?10:15
jeinorI don't think I have setup a serial console. Learned yesterday how to connect through putty to be able to view the output to ttyS010:16
jeinorso I see all kernel messages in the putty console window10:16
jeinorbut I don't think I can do anything from there10:16
ogra_well, see the hints on the webpage for setting up serial login then10:17
jeinorright10:17
lilstevieogra_: testing with break=top now10:25
ogra_good10:25
jeinorogra_: how do I connect to my new serial console? do I use putty?10:25
ogra_do you use windows on your host PC ?10:25
jeinorno10:25
jeinorubuntu10:25
ogra_why do you use putty then and not a sane terminal program ?10:26
ogra_putty is a windows terminal emulator (that happens to have been ported to linux)10:26
jeinorthe guide from the Cubox wiki contained instructions for using putty10:26
jeinorI see10:26
jeinorwhat is a sane terminal program?10:27
ogra_try screen ...10:27
ogra_i.e.:10:27
ogra_screen /dev/ttyUSB0 11520010:27
ogra_that should get you a serial console in the terminal you run it in10:27
ogra_(see man screen for the commands to attach/detach from that session etc)10:28
jeinorthat gave me a flashing prompt. Would I need to switch tty using ctrl+alt+fX?10:28
ogra_no10:28
jeinorok. that SHOULD have given me a login prompt then, right?10:29
ogra_it talks directly to your serial port and will exactly output what the cubox sends to the serial port10:29
ogra_(you should see boot messages (and possible errors) if you reset the cubox)10:29
jeinoryep, that gives me the same output as putty did before (but nicer in a normal terminal window)10:31
jeinorthanks for the tip10:31
lilstevieinteresting10:31
lilstevieogra_: it boots when exiting from the initramfs shell10:32
jeinorbut if I had succeeded in configuring the serial-console, I should have gotten a login prompt here, correct?10:32
ogra_lilstevie, race then ...10:32
lilstevieheh fun10:32
ogra_jeinor, not if there were errors during boot10:32
lilstevieogra_: what do you suggest10:32
ogra_jeinor, reset the cubox and see if you see any boot errors now10:32
ogra_lilstevie, debugging :P10:32
lilstevieheh10:33
ogra_try break=premount next ... that drops you into the console a bit later10:33
ogra_if that works too, try =bottom ... that gives you the console after it mounted the rootfs10:33
jeinorogra_: same output as before, ends with "Mounted root (ext3 filesystem) on device 179:2", "devtmpfs: mounted" and last "Freeing init memory: 248K"10:34
lilstevieok10:34
jeinorI'll check earlier in the log10:34
ogra_jeinor, whats your kernel commandline ?10:34
ogra_i.e. what does the bootloader tell the kernel when it loads it10:35
jeinor"console=tty0 console=ttyS0,115200n8 vmalloc=384M root=/dev/mmcblk0p2 rootdelay=2 clcd.lcd0_enable=1 clcd.lcd1_enable=0 --no-log --verbose"10:35
ogra_are you sure you need the  clcd bits in there ?10:35
jeinorno, I'm not sure what they do. I copied them from the stock kernel command line10:36
jeinorTried to google that, didn't find anything so I figured I'd better leave them as is10:36
ogra_well, i guess the device has two lcd ports on borad10:36
jeinorLCD = HDMI/DVI/VGA?10:37
ogra_no idea how marvell defined them :)10:37
jeinorok :) I'll try removing them10:37
ogra_one could be attached to the hdmi port and one to an internal socket that gets used in other devices for touchscreens etc10:38
jeinormakes sense, there is one HDMI port on the Cubox, no VGA/DVI10:38
ogra_btw, are you using the armel or armhf tarball ?10:40
jeinorcurrently the armel10:41
scienteseek,10:41
ogra_k10:41
scientesnot using to your full potential!10:41
ogra_that should be on the safe side then10:41
jeinornot using at any potential right now... :)10:41
scientesjeinor, you know you can always use multiarch to install armel packages if you have problems right?10:41
ogra_right, but it will make sure he wont be hit by any floating point issues for now10:41
ogra_getting a first boot up is the current focus ;)10:42
scientesogra_, kernel could still be compiled with VFP support, but that kernel floating point but a few revs back only affected x86-3210:42
scientes*bug10:42
ogra_the kernel doesnt care10:42
scientesogra_, it actually has a VFP option10:43
jeinorscientes: didn't know that. Will try the armhf as soon as I got an armel up and running10:43
scientes(wouldn't make much of a speed diff as there is *very* little fp in the kernel)10:43
jeinorhow do I scroll in screen? the --verbose option gives lots of output10:45
scientesjeinor, pipe it to less?10:45
scientes | less10:45
ogra_man screen (in a second terminal you put next to it)10:45
ogra_scientes, wont help much with dmesg from a serial port :)10:45
scientesogra_, well if you have that you can just turn on infinite back scrolling in your terminal emulator10:46
jeinoruhm... feeling a bit stupid here... what does "C-a" mean? what key is that?10:48
ogra_C means control10:48
ogra_a means a :)10:49
scientes^10:52
jeinor:) thanks. entered copy mode, and now I can scroll in the buffer10:52
jeinorinit is doing a whole lot of work here10:52
jeinorbut there are no error messages, just a lot of "Handling start event"10:53
jeinorI must have done something wrong when configuring that serial console. everything looks fine10:54
ogra_anything on the monitor btw ?10:56
ogra_8since you dropped the lcd args)10:56
jeinortesting now11:01
jeinorno, still nothing there. And still no login terminal.11:04
jeinorhmm11:04
jeinorperhaps that serial-console script on the web page parses my first console= line, thus missing the correct options for the ttyS011:04
jeinorI have two, console=tty0 console=ttyS0,etc11:05
ogra_the first console line defines the console the kernel dumps dmesg to ...11:05
ogra_the second one defines whats used for userspace11:05
ogra_oh11:05
jeinorthe first one is console=tty0, so it should dump dmesg to the screen then11:05
ogra_your second one say console=ttyS0 ?11:05
jeinorconsole=ttyS0,115200n811:06
* ogra_ wonders if the armada actually defines the serial console as S011:06
ogra_try dopping *all* console args for a test11:06
jeinorhm11:06
jeinorok11:06
ogra_and see what happens :)11:06
ogra_though looking at the cubox wiki they all seem to use a single console arg defined as console=ttyS0,115200n811:08
jeinoryeah, that's where I got it from11:09
jeinorbut you're right, perhaps I should drop the first console at least (trying without all now)11:09
jeinorok, so removing all made screen stop receiving output after "Uncompressing Linux... done, booting the kernel."11:10
jeinorI'll try just the first one, console=ttyS0,115200n8 now11:10
ogra_right, but did you see anything on the monitor ?11:11
jeinorno, I checked that too. tried to switch tty as well (ctrl+alt+fX)11:11
ogra_(and make sure to wait for a while, it might take a bit to get to the login prompt, giv it time)11:11
jeinor... that I didn't do. will redo that attempt after trying the single console=11:12
ogra_its an 800MHz system booting off slow media after all11:12
jeinortrue11:12
ogra_"After a while (it takes a bit) a framebuffer console will appear, hiding the boot messages. Don't be scared, and wait for a few minutes. The login prompt will finally appear. "11:13
ogra_from the wiki :)11:14
XorAthis is why us old school guys like out console messages, gives us hope :-D11:14
ogra_yeah11:14
jeinor:)11:14
jeinorwell, I think the framebuffer console won't appear here, this is not the stock kernel. The 2.6 kernel had graphic drivers and used a second command line arg, video= with resolution and stuff11:15
ogra_what kernel is it then ?11:15
jeinor3.3.111:15
ogra_and are you 100% sure that kernel is supposed to work at all11:15
ogra_(with ubuntu)11:15
jeinorcompiled by me, config from forum post where they said it booted fine11:16
ogra_on ubuntu ?11:16
jeinorthey had Debian11:16
jeinorperhaps it just wont work?11:16
ogra_well, the debian kernel should tehoretically work11:16
jeinorhttp://www.solid-run.com/phpbb/viewtopic.php?f=9&t=49311:17
jeinorthis is the link where this user (which doesn't respond back) says he got it working with stock 3.3.1 kernel11:17
jeinorand Debian 611:17
jeinorso I figured Ubuntu Core would work with that kernel as well11:17
jeinorfirst tried booting Ubuntu Core with kernel 2.6, but got looping error messages from dmesg complaining about missing functionality11:18
jeinorthe kernel I used is downloaded from www.kernel.org11:19
lilstevieogra_: all three work top, premount and bottom11:19
ogra_lilstevie, well, then blame usersapce or some kernel option the userspace needs11:20
lilstevieheh11:20
lilsteviebut I'm still in no better position to debug :/11:20
jeinorbut if the serial-console would have been working, I should have been given a login prompt in my screen session to /dev/ttyUSB0, correct?11:20
ogra_"Also note that currently, the "make modules" fails, there is some sort of compile error for the framebuffer modules. I just ignored them at initial testing...."11:20
ogra_so why would you expect anything on your monitor at all ?11:21
jeinorogra_: yeah, I've read that. I figured that was the framebuffer module (with support for higher resolution and such), and that it would fallback to just displaying the console using some basic graphics drivers11:21
jeinorbut perhaps you're right, perhaps it just doesn't work at all11:22
jeinorbut I still should get a login console on the serial-console11:22
ogra_true11:23
ogra_can you pastebin your full output from the screen session ?11:24
ogra_(from one boot attempt indeed)11:26
jeinorhmm, trying to get the whole screen buffer11:26
jeinorhardcopy gives me the current window11:26
jeinorI'm on it11:28
jeinorwhere do screen logs go with the -L option?11:32
ogra_C-a H       (log)         Begins/ends logging of the current window to the file "screenlog.n".11:33
jeinorhttp://pastebin.com/NqfgpiCT11:36
jeinorogra_: I have to leave for a few hours, will be back here later. I am really grateful for your help, I've been stuck on this problem for some days now and it's frustrating when I don't know even where to start looking11:39
ogra_yep11:39
ogra_i might not be around though (i usually dont work on weekends :) )11:39
ogra_i wonder what /etc/init,conf is supposed to be11:40
jeinorthe /etc/init.conf in the rootfs?11:41
jeinorthey don't mention that one in the OMAP guide11:41
ogra_well, it usually doesnt exist on ubuntu systems11:41
ogra_but seems ot be read on yours11:42
jeinorhmm.. something specific to ubuntu core perhaps?11:42
jeinormaybe upstart doesn't properly start my serial-console script because of some errors with /etc/init or /etc/init.conf11:43
ogra_as i said, /etc/init.conf shouldnt exist11:43
ogra_and it seems the boot stops at upstart-udev-bridge11:44
ogra_probably soemthing you should take to our upstart maintainer on monday11:44
ogra_(he is jodh in #ubuntu-devel)11:44
jeinoractually, when I mount the root partion on another computer and look in /etc/ the file isn't there (init.conf)11:44
ogra_yes, as its supposed to be, not sure why there is that message in your dmesg11:45
jeinortrue, maybe to notify me that if the file had been there, it should have been read11:45
jeinorI do have the --verbose option on11:46
ogra_yeah, likely11:46
ogra_in any case it doesnt seem to even get to fire up a getty process11:46
ogra_either a kernel misconfiguration or some issue with upstart11:47
jeinorok11:47
jeinorthen I have a pointer on where to continue next11:47
jeinorthanks a lot for all your help!11:47
ogra_np :)11:47
jeinorI'll report back here on how it goes :)11:47
jeinorreally appreciate your help, worth a lot for me. take care!11:48
lilstevieok ogra_ I can trace it to something in bottom12:15
lilstevieI get a panic some boots with break=bottom12:15
danboidAre there no mirrors of Ubuntu ports?12:46
jeinorogra_, you here?14:42
jeinorogra_: I got it working!!! the reason I didn't get a console was that I had accidentally placed the serial-auto-detect-console.conf in /etc/, not in /etc/init14:51
jeinor!!!14:51
jeinorthanks again for all your help! now that I have a root console, I'm in my safe place again :)14:52
jeinorogra_: in case anyone else comes in asking questions about kernel 3.3.1 and ubuntu core :) http://www.solid-run.com/phpbb/viewtopic.php?f=4&t=54418:37
infinityjeinor: Not that it matters for kernels that are ABI-agnostic, but if you're going to recommend people install an ARM cross-compiler, recommend they install gnueabihf, please.18:54
infinityWe really want to encourage people to switch to armhf completely.18:54
infinityjeinor: Err, and same for core itself, you tell people to use armel, again, they'll be much happier with armhf.18:55
jeinorIl19:21
jeinorwops, I'll change that19:21
jeinorinfinity, what is ABI-agnostic?19:21
jeinorto run a ubuntu core armhf, will I need to recompile kernel using the gnueabihf cross compiler?19:22
jeinormore importantly, will it make any performance difference?19:24
infinityjeinor: No, the kernel doesn't care what ABI your userspace is at all.19:24
infinityjeinor: Using either compiler will get you an identical kernel.19:25
infinityjeinor: I'd just prefer we encourage people to use hf in all cases.19:25
jeinorI'll test that for my install and if everything works as before I'll change it in the post19:32
jeinorthanks for pointing it out19:32
jeinorhmm, what happens to all the armel-packages out there? in apt repositories for example? can I run armel compiled binaries on armhf systems?19:41
infinityWith multiarch, you might be able to.19:41
infinityBut generally, you should compile things for armhf.19:41
infinityThey're ABI-incompatible.19:42
infinityThe question is basically the same as "can I run i386 binaries on amd64", to which the answer is "sometimes".19:42
jeinorI see. What about the packages in apt repositories? Are most armhf or armel nowadays?19:43
jeinoropenjdk, for example?19:43
mythosi think, there are two ports. one for armel and one for armhf19:47
mythosand as far as i know, the armhf port was completely rebuild (some weeks ago?). openjdk is also in the armhf-universe-repo of precise19:52
jeinorok, thanks19:53
jeinorwhen you're saying "the armhf port was completely rebuilt", do you mean all packages in the official ubuntu repo were rebuilt for precise?19:55
mythosfor armhf in generell, i think19:55
jeinorsounds promising, I'll see what packages are there when I begin to setup my system19:59
mythosit's quite eays to geht the package-information: download http://ports.ubuntu.com/dists/precise/universe/binary-armhf/Packages.gz for main/restricted/universe/multiverse and grep for the "Package: "20:01
mythos* row20:02
jeinornice, thanks for the tip20:04
mythosnp, you are welcome20:04
mythosjesus, my grammar is bad today20:06
infinityjeinor: There are two different prices ports.  armhf and armel.  armhf is the one we're supporting.20:58
scientesjeinor, http://packages.ubuntu.com22:04
=== Ursinha` is now known as Ursinha
=== Ursinha is now known as Guest65814
mythosscientes, there is only i386, amd64 and powerpc selectable22:44
scientesoh yeah ubuntu has an ugly split unlike debian22:45
scientesthere is another site, but i forget where it is22:45

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