**** BEGIN LOGGING AT Thu Jun 28 02:59:58 2012 Jun 28 13:30:43 I loaded ubuntu desktop image for beagleboard-xM. when I am connected it through the serial cable, I get this output http://paste.ubuntu.com/1064274/ and I have waited more than 30 min, it does not proceed. When I pres the user button, I get the same output from the beginning. If I press the enter during the boot, I get the following output http://paste.ubuntu.com/1064278/ . I inserted video cable, mouse, keybord, I do not see any output on the Jun 28 13:30:43 monitor. I use 5V, 2.5A power supply to power the board. Can anyone tell me what is my problem Jun 28 13:31:59 angs: your board is not booting at all Jun 28 13:32:22 angs: did you change anuthing in env vars? Jun 28 13:34:01 sorry, what is env vars? Jun 28 13:35:57 ogra_, did you get to test the new 3.1 kernel in the archives? Jun 28 13:36:40 I downloaded the image http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-preinstalled-server-armhf+omap.img.gz the md5sum matches of the downloaded image matches. then I typed zcat ./ubuntu-12.04-preinstalled-desktop-armhf+omap.img.gz |sudo dd bs=4M of=/dev/mmcblk0 ; sudo sync Jun 28 13:37:19 after loading finishes, I inserted the sd card and powered the board Jun 28 13:37:45 janimo, nope, but i just grabbed my test ac100 from the basement :) Jun 28 13:37:45 should I load the image again? Jun 28 13:38:22 angs: but your board is not booting at all Jun 28 13:38:32 angs: OMAP3 beagleboard.org # Jun 28 13:38:38 ogra_, ok. I did not test the images yet, I thought I will when you're done with the obvious things that you know need fixing Jun 28 13:38:40 angs: this is u-boot prompt Jun 28 13:38:49 angs: what happens if you type boot there? Jun 28 13:39:10 janimo, well, i dont really feel like adding console= and with the new flash-kernel thats not as easy anymore Jun 28 13:39:53 ppisati: it works fine with the default OS (angstroms dist). when I type boot, it boots and shows the same output that I had before (Uncompressing Linux... done, booting the kernel). Jun 28 13:40:43 what could be the reason that it does not boot the ubuntu image that I have Jun 28 13:42:45 angs: the image you pasted doesn't show the board booting Jun 28 13:43:05 angs: what does it happend if you insert the sd card and type boot? Jun 28 13:44:13 ppisati, the sd card is already inserted. should I take it off then insert it again? Jun 28 13:44:55 angs: no! i said "what does is happen if you type "boot"? Jun 28 13:45:43 when I type boot, it outputs http://pastebin.com/pRXPZHej Jun 28 13:46:27 it stucks on the last line Jun 28 13:48:05 this looks all fine, but it should move on into the installer from there Jun 28 13:48:19 (given thats a server image) Jun 28 13:48:38 i bet it's resizing Jun 28 13:48:47 well, in fact it should first print some stuff about resizing the partition and *then* reboot Jun 28 13:48:55 angs: what's the size of your sd card? Jun 28 13:48:58 ppisati, it doesnt do that quietly on the server image Jun 28 13:49:17 there is a lot of output by default Jun 28 13:49:28 i assume he doesnt even get through the initrd Jun 28 13:49:38 4 GB, I use the SD card that comes with the beagleboard Jun 28 13:49:40 if he reaches that at all Jun 28 13:49:54 angs: ok then Jun 28 13:50:09 angs: mount your ubuntu sd card somewhere Jun 28 13:50:39 angs: the copy *only* the text content of boot.scr in a new file called boot.cmd Jun 28 13:51:07 angs: if the "quiet splash" parameters are presente, remove them (shouldn't be your case though) Jun 28 13:51:22 angs: and add "console=ttyO2,115200" Jun 28 13:51:47 this is the boot.script > http://paste.ubuntu.com/1064315/ Jun 28 13:51:50 they are by default Jun 28 13:51:58 angs: then execute "mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Ubuntu 10.10" -d ./boot.cmd ./boot.scr" Jun 28 13:52:01 console is set by default too on the server image Jun 28 13:52:11 so definitely drop the quiet ... Jun 28 13:52:19 splash shouldnt matter on a serial image Jun 28 13:52:22 angs: and copy the new boot.scr over the old one (maybe backup the old one somehwre - you never know) Jun 28 13:52:33 angs: put the sd card back in Jun 28 13:52:36 angs: reboot Jun 28 13:55:35 ppisati: should I remove the whole line (root=UUID=12093961-64a9-4225-a5a9-2200080a8ab4 fixrtc quiet splash) ? Jun 28 13:56:06 or ( setenv bootargs ro elevator=noop vram=12M omapfb.mode=dvi:1280x720MR-16@60 mpurate=auto root=UUID=12093961-64a9-4225-a5a9-2200080a8ab4 fixrtc quiet splash) Jun 28 13:56:22 angs: just those 2 params Jun 28 13:56:31 angs: and add the console one i told you above Jun 28 13:56:49 brb Jun 28 13:57:08 ppisati: thank you Jun 28 13:57:19 should it be fine like this http://pastebin.com/ruzchCa4 Jun 28 14:13:59 lool, urgh, flash-kernel is really unhappy on ubuntu-desktop ... we need to add a umount function, the desktop automounting the SD somewhat causes odd results Jun 28 14:53:22 ogra_: flash-kernel is lower level than the desktop automounting; it would make more sense to fix this in the desktop images surely? Jun 28 14:54:20 lool, well, flash-kernel cant handle it if partitions are mounted while it should imho Jun 28 14:54:29 no matter how the mounting happened Jun 28 14:56:27 ogra_: it should deal with already mounted partitions fine; I think I had tried it Jun 28 14:56:46 well, i always end up with partitions mounted twice Jun 28 14:56:59 and then flash-kernel quits with an umount error Jun 28 14:58:08 lool, http://paste.ubuntu.com/1064425/ .. the prob is that udisk mounts with nosuid nodev and so on ... Jun 28 14:59:58 ogra_: Ah it's mounted as a different user Jun 28 15:00:15 lool, right, so i think forcing an umount is essential Jun 28 15:00:48 ogra_: I think we need to find a way to prevent the mounting from happening Jun 28 15:01:03 (i will surely hack back in the hiding of the boot partition, but would like to see that bug fixed nontheless) Jun 28 15:01:04 either at Ubuntu install time or with some generic rule for this or that devie Jun 28 15:01:07 device Jun 28 15:01:32 yes, we did that in the old flash-kernel through adding a special LABEL Jun 28 15:01:43 udev then automatically hides it Jun 28 15:02:05 ogra_: BTW I know why the mv complain (albeit they probably succeed) -- it's because the files can'tbe chown-ed to root -- but I'm still puzzled why umount fails Jun 28 15:02:49 right, so here you want to avoid the SD card from being automounted in exactly the same way, it should fix the mv warnings and the umount error; I don't understand why umount fails though Jun 28 15:03:34 i dont see any umount in "functions" Jun 28 15:03:39 only for cleanup Jun 28 15:06:15 ogra@osiris:~/Devel/packages/flash-kernel-3.0~rc.4ubuntu4$ grep -r umount * Jun 28 15:06:15 debian/flash-kernel-installer.postinst: umount /target/dev || true Jun 28 15:06:15 debian/flash-kernel-installer.postinst:umount /target/dev || true Jun 28 15:06:15 functions: umount "$boot_mnt_dir" Jun 28 15:06:15 functions: # if umount fails Jun 28 15:07:11 and cleanups isnt called until we exit Jun 28 15:26:15 ogra_: cleanups() is run when flash-kernel exits and umounts the /tmp/xyz location where the firmware space was temporarily mounted Jun 28 15:26:37 ogra_: in the case where this FS is already mounted on the system, a bind-mount is created automatically by mount or by linux and unmount should work just fine Jun 28 15:26:46 right, but there is no umount before it attempts to mount the device to a tempdir Jun 28 15:26:51 (No idea why it doesn't work there, perhaps due to special mount options) Jun 28 15:26:58 ogra_: But that's normal Jun 28 15:27:00 hmm Jun 28 15:27:07 i didnt know mount is that clever Jun 28 15:27:19 ogra_: mount + umount usually works in both cases, whether it's already mounted or not Jun 28 15:28:11 ah, learned something new :) Jun 28 15:28:40 i know i see two mounts, i didnt know the subsequent ones are bind mounts by default Jun 28 16:30:10 I loaded ubuntu desktop image to another SD card and inserted to another beagleboard-xM rev C1. I have *** Warning - readenv() failed, using default environment and some error/warnings during boot time then it stucks on the last line http://paste.ubuntu.com/1064586/ has anyone else experienced the same problem? Jun 28 16:33:10 thats exactly the right behavior for ubuntu-desktop Jun 28 16:33:24 after printing that line it switches to the monitor Jun 28 16:33:46 only ubuntu-server doesnt do that Jun 28 16:35:19 approximately how long do I need to wait to see the monitor output? Jun 28 16:35:40 did you see any problem on the output that I pasted? Jun 28 16:38:02 no Jun 28 16:41:28 ok, thank you. So, I will wait some more to see an output Jun 28 16:50:12 I still have not got any output on the monitor and the line after (Uncompressing Linux... done, booting the kernel. ), is it normal to wait long for the boot procedure? Jun 28 16:52:59 no Jun 28 16:54:38 is there anything that I can do for it? Jun 28 17:02:23 apart from using an image that does the install on serial you mean ? Jun 28 17:09:41 I do not have a monitor output and all I can see on the serial output is "Uncompressing Linux... done, booting the kernel." it seems like it stucked. I guess I do something wrong in the image loading, because the board works fine with the default OS in the image. Jun 28 17:10:22 well, you cant do anything wrong with these images Jun 28 17:10:41 if you use the server image it will immediately show output on serial after the kernel booted Jun 28 17:12:20 I will load the server image then try it again. Jun 28 17:13:55 are you actually sure thats a beagle XM you have there ? Jun 28 17:15:16 beagleboard xM is printed on the board and the box. I just bought it couple days ago. Jun 28 17:15:58 ok Jun 28 17:17:10 angs: Is your monitor capable of HDMI or DVI-D input? Jun 28 17:17:28 Or are you using a dvi-cga converter? Jun 28 17:17:29 if I am the only one who has problem with it, I should do something wrong Jun 28 17:17:38 oops. vga Jun 28 17:17:49 I am using hdmi to dvi-d cable Jun 28 17:17:59 and the monitor has dvi-d port Jun 28 17:18:29 I am using 5V, 2.5A power supply. Jun 28 17:19:02 Ok, that should work, provided the monitor can handle the signal predefined in the kernel boot parameters. Does your monitor have an info mode that shows incoming signal? Jun 28 17:19:22 GrueMaster, even the preinstalled server images stop for him Jun 28 17:19:31 after unpacking the kernel Jun 28 17:19:36 You should see video even if your Beagle is getting power via mUSB. Jun 28 17:19:54 monitor does not show any signal. Jun 28 17:21:03 angs: Do you have a linux desktop/laptop? Looks like you will need to modify the boot parameters on the SD to see what is happening. Jun 28 17:21:19 yes I am using ubuntu 12.04 on my laptop Jun 28 17:21:29 Before trying that, does it boot the test image that should have come with the board? Jun 28 17:22:14 GrueMaster: Yes, it boots fine with the image that comes with the SD card (angstrom dist) Jun 28 17:22:22 * GrueMaster can't remember if they still ship a 1M uSD preloaded or not. Jun 28 17:22:30 Ok, excellent. Jun 28 17:23:21 So, let's modify the boot image. On your laptop, put the SD in a card reader. Jun 28 17:23:27 I am umounting the image before I load the SD image, is it correct to do it? I loaded the server image http://paste.ubuntu.com/1064664/ I am going to boot it Jun 28 17:23:51 ok thank you Jun 28 17:24:18 Yes, unmount the SD before raw writing a new image to it. Jun 28 17:24:55 If you haven't started overwriting the SD yet, we can modify the boot parameters to see if we can root out the issue. Jun 28 17:25:26 I inserted the SD card and umounted it Jun 28 17:26:17 Ok, in a terminal, type "sudo mount /dev/mmcblk0p1 /mnt" (assuming the SD is mmcblk0) Jun 28 17:26:57 it is mmcbblk0, I typed the command Jun 28 17:27:43 Next, type "sudo dd bs=72 skip=1 if=/mnt/boot.scr of=boot.script" Jun 28 17:28:01 fdisk and mount outputs if you would like to see > http://paste.ubuntu.com/1064678/ Jun 28 17:28:23 3+1 records in Jun 28 17:28:23 3+1 records out Jun 28 17:28:23 284 bytes (284 B) copied, 0.00177282 s, 160 kB/s Jun 28 17:28:30 Now you should have a boot.script you can edit. Remove the "quiet splash" lines and add "console=ttyO2,115200" Jun 28 17:30:01 http://paste.ubuntu.com/1064685/ Jun 28 17:31:06 i wonder if the mpurate thing might get in the way Jun 28 17:31:15 You need to strip the binary header before editing it (or you can delete it while in the editor). Hence the dd above. Jun 28 17:31:27 GrueMaster, thats the resulting file ;) Jun 28 17:31:45 it already has console and friends Jun 28 17:32:27 Is it? Looks like he just edited the boot.scr with nano (see pastebin). Jun 28 17:32:53 The u-boot header needs to be regenerated. It is a checksum. Jun 28 17:33:04 yes I just edited it with nano Jun 28 17:33:24 (hence why you can't just edit a boot.scr file). Jun 28 17:35:13 I need to get back to my day job. Here's the detailed instructions: https://wiki.ubuntu.com/ARM/EditBootscr Jun 28 17:35:45 GrueMaster, ogra_: thank you very much for the help Jun 28 17:36:16 btw, the server image works fine without any problem Jun 28 17:36:50 oh ? Jun 28 17:36:59 so you get into the installer etc ? Jun 28 17:37:04 on the serial console Jun 28 17:37:11 yes it asks me the location and time info Jun 28 17:37:22 well, then just run through it ... Jun 28 17:37:36 it will also offer you to install the desktop packages if you want them Jun 28 17:37:46 cool Jun 28 17:38:15 thank you :) Jun 28 17:48:12 what is the default password of the ubuntu image? Jun 28 17:48:27 log in password Jun 28 17:48:33 and user name Jun 28 17:48:58 root@root, admin@admin did not work Jun 28 17:50:13 angs: You should see oem-config on the serial console that will walk you through setting up locale and user info. Jun 28 17:50:43 (until this is run, there is no default user/password. **** ENDING LOGGING AT Fri Jun 29 02:59:58 2012