/srv/irclogs.ubuntu.com/2012/01/17/#ubuntu-arm.txt

NCommandertwb: old names die hard00:00
NCommandertwb: and thats a story that can only be told with loads of booze and a NDA :-/00:00
twbUgh00:00
* NCommander actually loved China TBH00:00
twbEmbedded hw vendors need to get a damn clue00:00
NCommanderI didn't like having four days notice going to china for a month00:00
mythosNCommander, i already read out those u-boot parameters and wondered about those ip-addresses...00:01
twbYou managed to get a visa in four days?  Wow.00:01
NCommandertwb: heh, I already had the visa00:01
NCommanderWhich was obtained for the same reason in the lucid cycle00:01
twbAre you a canonical flunky?00:01
NCommandertwb: yes :-P00:01
* twb adds NCommander to list00:02
* NCommander is listed00:02
NCommandermythos: if you got the u-boot paramters, do you have the bootcmd the board uses?00:02
NCommanderthat might give me a better idea on a scale of 1-5 on how screwed you are00:03
mythosNCommander, i'm not sure00:03
mythosbut i'm going to nopaste it00:03
NCommanderhow'd you fish out the uboot paramaters? I never got uboot-tools to work properly (granted, I didn't try very hard)00:03
mythosNCommander, http://pastebin.de/2238100:05
mythosi booted up up with a usb-device dded /dev/mtd100:06
NCommandermythos: oh, so it boots off USB?00:06
NCommanderSounds like ytour less screwed00:06
mythosnot quite stable, but yes00:06
NCommanderBut yeah, thats a completely custom boot command compared to what I wrote for Ubuntu00:07
twbNCommander: what'd you write, the u-boot script?00:08
NCommandertwb: basically hacked the bootloader to do something sane00:08
NCommanderit probes all devices on USB/SATA, and looks for a boot.scr, then chainloads into that00:09
twbI guess probing mtd as well was nontivial?00:09
mythosthe device has no initrd... the init is on /dev/sda1 and chroots into a sqashfs-filesystem00:09
NCommandertwb: we didn't support it00:09
mythosi never saw anything like that00:09
NCommanderStill don't support it actually (installer limitation)00:09
twbAs in d-i can't install to mtd?00:10
NCommandertwb: yeah. Its getting support via ubifs, but that still requires bootloader support to some extent00:10
twbI thought ubuntu arm installs were all still "dd this image to <magic place> and hope for the best"00:10
NCommanderNo, we had live and alternate and netboot for Dove00:10
twbCool00:10
NCommanderPanda is a new type of image called a preinstall00:10
* NCommander implemented that deeper voodo00:11
NCommander*voodoo00:11
twb"preinstall" sounds like dd-and-hope to me ;-P00:11
GrueMasterPretty much.  The main idea was that beagle/panda boots from removable SD.00:11
=== zyga is now known as zyga-afk
GrueMasterAnd ubiquity has a hard time repartitioning and reimaging the device it boots from.00:12
NCommandertwb: pandas can only boot from SD*00:12
NCommander* - technically USB too, but thats not useful for standalone systems00:12
GrueMasterNo, that just is the secondary boot device.  It can also boot from USB-Gadget.00:12
GrueMasterAnd it can be modified to boot from other devices.00:13
NCommanderGrueMaster: that's what I meant when I said can boot from USB00:13
GrueMasterBut that requires a soldering iron and steady hand.00:13
NCommanderit can't load its bootloader from USB :-P00:13
twbGrueMaster: that's because ubiquity doesn't run 100% out of ram like d-i does00:13
twbboo ubiquity, stupid GUI junk00:13
NCommandertwb: you can run ubiquity in 364MiB00:13
NCommanderWe did that in jaunty for imx5100:14
NCommander(karmic too)00:14
NCommanderand d-i can be a serious RAM hog if it can00:14
GrueMastertwb: It is more than just ubiquity.  The packages would also be on the boot device.00:14
mythosNCommander, so, if i plug a hdd on the board, it would be able to boot from that?00:14
NCommander(d-i will usually OoM if it doesn't have at least 128 MiB in total RAM+swap)00:14
twbNCommander: what I mean is if I bootload the d-i netboot kernel and initrd, then I can do the install and blow away the boot medium entirely00:14
NCommandertwb: yes (with the cavet that the installer doesn't fully enforce panda's unique boot partition requirements)00:15
twbNCommander: admittedly, the initrd needs a driver for the NIC and you can't use wpa yet00:15
NCommandertwb: no, we ship the NIC driver.00:15
GrueMastertwb: That is different.  You aren't installing packages from the boot device to the repartitioned boot device with netboot.00:15
NCommandertwb: GrueMaster uses netboot all the time00:15
twbGrueMaster: right, but what I *do* do sometimes, is put netinst d-i in /boot, point grub at it, then blow away the boot disk with a fresh install00:16
=== Jack87 is now known as Jack87|Away
twbubiquity can't do that, which suck00:16
twb...s00:16
GrueMastertwb: Do you know the kind of overhead to do ubiquity netboot?  Can't do that type of install on any Linux distro that I know of.00:17
twbExactly00:17
NCommandertwb: ubiquity is a serpate codebase from d-i that exists to copy a squashfs into target filesystem, even if you could load it over netboot, you'd still have to feed a squashfs to it00:18
GrueMasterubiquity is X based.  So is the Redhat installer (name escapes me atm) and the Suse installer.00:18
NCommandertwb: d-i is fully supported for those who want/need it (I always use d-i to reinstall my laptop)00:18
NCommanderand we have d-i gtk-installer if you really want flashy graphics00:18
NCommander(though I don't think we build gtk-installer out of the box for ubuntu)00:18
twbYou don't as at lucid, anyway00:19
twb(re gtk d-i)00:19
mythos<NCommander> what compelled you to zero sda though? <-- i wanted to try, if it is able to boot after that. it did once, than it only beeps twice and does nothing00:19
mythossorry, i had to read it five-times to understand, what you meant00:19
GrueMastermythos: Wow.  I just downloaded the recovery image for your hp, and I am appalled at how they mucked it together.00:27
GrueMasterEssentially, it looks like you format a USB drive, unzip the contents to it and reboot on your PC (not the thin client) to the USB stick.  It will boot a small linux image that on init will reflash the usb drive with the thin client image (which itsself is based on our Maverick image).00:29
mythosyes00:30
mythosindeed i reversed it to that state00:31
GrueMasterIf you want to speed up the process (and have less of a chance of clobbering your PC), use win32-image-writer.  It is a windows program designed for this purpose.00:31
twbThis is why we have FOSS00:31
twbSo that we don't need to deal with that kind of vendor bullshit00:31
mythosGrueMaster, i don't know for what the tool is for00:33
mythosGrueMaster, fdisk, mkfs.vfat and unzip is quite easy, so ^^"00:33
GrueMasterIf you are on a windows pc and you want to flash the recovery image for your HP POS^h Thin client, use win32-image-writer to flash the recovery image to the usb stick instead of their muck-around.00:34
GrueMasterYes, but then it requires you to reboot your PC to the usb stick.00:34
GrueMasterWhy reboot your PC?00:35
twbIt also requires that you still *ahve* an x86 pc00:35
GrueMasterThere is a compressed image in their zipfile at images/Z5D40019.dd.gz.  Uncompress that, and use win32-image-writer (windows) or dd (linux) to write that raw image to a usb stick, put it in the thin client and boot.00:36
GrueMastertwb: Most companies deploying these thin clients will have PCs (usually laptops) for their IT support staff.00:37
mythosGrueMaster, to whom are you responsing. for me, it is like i have someone on ignore <.<00:38
GrueMasterThese are mainly sold as kiosk or point of sale systems.00:38
GrueMastermythos: I was replying to twb.00:38
twbI give all my support staff the same shitty thin clients as the prisoners00:38
twbFWIW00:38
mythosGrueMaster, hmm... ok... but i check my ignorelist anyway ^^"00:39
twbmythos: probably my anti-ubiquity ranting :-)00:39
mythostwb, maybe :o00:40
GrueMasterSadly I don't have an ignorefile.  I have to go on the basis that even trolls need help sometimes.  :P00:43
mythosyou are a very nice guy, with nervs out of steel, GrueMaster ^^"00:45
mythosoh lucky, this channel is logged00:54
GrueMasteryep00:54
mythosthen i don't need the verfification-client anymore00:55
mythoshmm... the initrd in this dove-image http://cdimage.ubuntu.com/ubuntu-netbook/ports/releases/maverick/release/ (inside the squashfs) is a dead link01:11
GrueMasterYes, it is generated on install.01:11
mythosok01:12
mythosbut one question, if you don't mind01:13
mythoshow is this "/casper/uInitrd: u-boot/PPCBoot image" created and is it modifyable?01:13
GrueMasterI'm listening (responding is still optional).  :P01:14
mythos*g01:14
GrueMasterThe image was generated with our live-cd tools back when we were making them.01:14
GrueMasterI think we have moved to a new tool base now.01:14
GrueMasterAs to modifying it, what needs to be modified?01:15
mythosi only want to look inside =)01:15
GrueMasterit's possible, but not easy.01:15
GrueMasterAh.01:15
GrueMasterI have scripts for that.01:16
mythosif you give me some hints, i'm going to study it for myself =)01:17
GrueMastermkdir initrd01:17
GrueMasterdd if=$1 skip=64 bs=1|zcat | (cd initrd;sudo cpio -id)01:17
mythosoh, that helps a lot, thx01:17
GrueMasterThat "may" work.  Depends on how much u-boot header cruft is in the uInitrd and also if the initrd is gzipped.01:18
GrueMasterI've seen the header be as much as 72 bytes (skip=72) so play with it.  Make a backup first.01:19
mythosok01:21
mythosnice, thanks =)01:22
twbIs there a functional difference between uinitrd and a normal initrd?01:23
twbBecause if not the obvious way to build uinitrd (for boot, not install) would be update-initramfs01:23
GrueMastertwb: uInitrd are checksum signed for u-boot.01:24
GrueMastersame with uImage and boot.scr01:25
twbAh, OK.01:25
twbHow does u-boot know which key to check it against?  Wouldn't that be device/vendor specific?01:26
GrueMastertwb it is a checksum, not a signed key.01:26
GrueMasterAlthough it can be signed by the vendor (aka locked boot).01:27
twbAh, I misunderstood.  I thought you were saying it generated a checksum and then signed that, or something01:27
GrueMasterNo, it generates a checksum of the file and attaches it in a 64 byte header.01:27
twbYou know how you can tell the kernel (at compile time) "tack this initrd onto yourself" ?  Can you do that post-compile?01:28
GrueMasterIt can also generate a key signature that u-boot has built in so that vendors can lock users from rooting their devices (so far we're smart enough to get around that in most cases).01:29
GrueMasterNot sure.  I know aboot can do that.  That is how I boot panda w/o SD.  I use abootimg to combine kernel, initrd, and boot args into a single blob that I push down with a usbboot utility on the host system.01:30
twbDoesn't "get around it" usually involve exploiting bugs in their bootloader?01:30
GrueMasterNot sure.  I don't work that end personally.01:32
AdamOutlerLetoThe2nd, I have performed step 1.01:40
AdamOutlerI'm not sure about 2 and 3...  2)make sure the bootloader passes this ID 3) make sure the kernel contains a board support file bound to this id.01:41
mythosGrueMaster, it's lzma, thank you very much \o/01:44
GrueMasterYou're welcome.  I'm off for now.01:44
mythoshave a nice day01:44
=== Jack87|Away is now known as Jack87
=== Jack87 is now known as Jack87|Away
=== zyga-afk is now known as zyga
=== doko__ is now known as doko
Riddellinfinity: are you a good person to ask about how to get an arm build with extra swap for qtwebkit?11:43
infinityRiddell: See -devel.11:52
Spider-PorkHi. I'm using my panda rev A3 with kubuntu-desktop, installed with netboot. Board was compiling xbmc, suddenly it freezed. Through ssh connection i got this dmesg output https://ideone.com/GEKEq. Any idea? Thank you13:05
ogra_are you using an USB disk for your rootfs ?13:31
Spider-Porkyep ogra_13:36
Spider-Porkis an adaptor for IDE disk13:36
ogra_well, eth0 is a usb device as well, looks a bit like an issue with the host controller or its driver, file a bug against linux-omap4 with the data from your pastebin13:38
Spider-Porkok thank you ogra_. Where I should post bug?13:39
ogra_see channel topic ;)13:39
ogra_or just use "ubuntu-bug linux-omap4" in a terminal13:40
Spider-Porkok thank you again ogra_13:41
ndecogra_: hi. i tried to upload a pkg with Arch = any-arm on our PPA, and the upload was rejected with "Cannot build any of the architectures requested: any-arm". is that expected?13:51
ogra_what would you expect "any-arm" to be ?13:51
ndecit uses the any-cpu convention from debian policy13:52
ndecit works with dpkg-buildpackage13:52
* ogra_ never heard of it ... infinity ?? 13:52
ndecit would be any arch that is based on arm. so armel or armhf13:52
ogra_i would just put "armel armhf" in that field13:52
ndecsure, that works... but any-arm should work too ;-)13:53
ndecbased on my understanding.13:53
ndecwith any-arm, i can build locally with dpkg-buildpackage from a armel or armhf root fs13:53
ogra_well, as i said, i never head about that ...13:53
ogra_probably ask in #ubuntu-devel13:54
ogra_there might be people that have used it and are brighter than me ;)13:54
ndecogra_: so i saw that you enabled armhf on tiomap-dev/release, can you also do it for all other PPA from tiomap-dev team?13:55
ogra_i can ask :)13:55
ndecthx13:55
ogra_will take a few days13:55
ndecsure13:55
ogra_ndec, btw dpkg-architecture -L should list all valid options for the Architecture field14:01
ndecogra_: any-arm is indeed not listed. however the policy mentions 'architecture wildcard', http://www.debian.org/doc/debian-policy/ch-customized-programs.html14:03
ogra_ndec, well, there is a footnote (88)14:06
ndecyes, but this isn't very clear to me...14:07
ogra_i think our triplet uses armel and armhf in the end ... so arm wouldnt match if any-<arch> is a normalization of the triplet string14:07
ogra_as i said, better ask someone that knows more about it than me, but to me it appears that with the hf and el endings for our arch names any-arm cant work14:08
=== zyga is now known as zyga-food
sveinseAre there any debian/ubuntu based busybox which can be compiled for armel?15:17
ogra_can you elaborate ?15:18
ogra_we have a bunch of busybox binary packages in ubuntu15:18
sveinseI'm investigating to make a small recovery partition, and need to execute a small script with mke2fs, tar and chroot15:18
ogra_just roll an initramfs with these included (hint: readf up about initamfs-tools)15:18
sveinseThe selection of which initramfs can be controlled from the kernel parameter line, yes?15:19
sveinseYes... It's loaded by u-boot, not the kernel nor init15:20
ogra_no, the tools to roll an initrd15:20
sveinseWell, then I have something to work on, thanks!15:20
ogra_you can add hooks to an ubuntu initrd and make it just include the binarties from the rootfs you like15:20
ogra_like mkfs and friends (chroot is in there by default already i think)15:21
sveinse( I plan to put a small tarball with a minimal bootstrap image and a set of debs on a separate partition. The recovery process will then be to mke2fs root partition, unzip the tarball into the partition, chroot into it and install the rest of the debs )15:23
sveinseThe boot partition holding the kernel image and/or the initrd for recovery is untouched by this15:24
ndecogra_: so where should i open the bug? on the 'launchpad' project directly?15:39
ogra_look if there is a soyuz project, else just start with LP and leave it to the LP team to move it to the right component15:40
=== zyga-food is now known as zyga
ogra_ndec, is GLES support affected by any of that syslink stuff you mention in your mail ? ppisati and i were just discussion in the kernel channel17:31
ogra_ndec, i dont mind having another release without mm support but we cant afford not shipping GLEs after all that work that went into unity GLES porting ... and by the looks of it ubuntu wont easily accept 3.317:32
ogra_s/discussion/discussing/17:33
ogra_rsalveti, ^^^ any idea ?17:34
rsalvetiogra_: I don't think sgx would be a problem18:00
rsalvetiwith 3.2 or with 3.318:00
rsalvetiand something the lt can help fixing if if doesn't work18:00
rsalvetithe syslink one is more complicated, because it's on top of another version, and a lot is happening at the kernel side18:01
rsalvetibut for sgx it's an dkms package18:01
ogra_rsalveti, right, i thought so, ubuntu shipped with non working (existing)  MM stack before, i guess we can do that again, even if its not great18:29
rsalvetiogra_: yup18:39
=== Guest26943 is now known as zumbi
=== zumbi is now known as Guest46834
AdamOutler_HI!20:24
AdamOutler_Something is blocking my access to Serial Console.  I can see output, but I cannot use the terminal.   I tried this: http://www.debuntu.org/how-to-set-up-a-serial-console-on-ubuntu  I have root access through RCS.d, so I can run anything.   what can I do to make my terminal start working again?20:25
AdamOutler_The terminal must be blocked by something..  I just don't know what.20:26
AdamOutler_any ideas?  I need a console.  I was able to get it once from /dev/ttyO2 on my UART.20:50
GrueMasterAdamOutler_: What image are you using?20:52
AdamOutler_GrueMaster, Texas Instruments, Blaze board,   on a device based on Blaze Board.20:53
GrueMasterubuntu desktop image?20:54
GrueMasterYou might not have /etc/init/ttyO2.conf for serial console.20:54
AdamOutler_yes.20:55
AdamOutler_I have prepared a ttyO2.conf, I also created the /dev/ttyO2 device.20:55
AdamOutler_I see dmesg output, but not Console.20:56
GrueMasterNot sure.  I haven't tested on a blaze in ages.20:56
AdamOutler_GrueMaster, maybe you can pastebin an OMAP ttyO2?20:56
GrueMasterYou shouldn't need to create the ttyO2 device.20:56
AdamOutler_it was not there by default.20:57
GrueMasterHmm.  I would check dmesg or syslog then to see if the kernel is detecting a serial port.20:57
GrueMasterWhich kernel?20:57
GrueMasterMy /etc/init/ttyO2.conf looks the same as the rest of the tty*.conf files, except the exec line is "exec /sbin/getty -L ttyO2 115200 vt102".  But if your system isn't detecting the serial port this is moot.20:59
AdamOutler_kernel for this device.21:11
AdamOutler_this kernel supports ttyO2 as a shell GrueMaster21:11
AdamOutler_hrm.. i'm using vt100  I'll try that.21:12
GrueMasterttyO2 as a shell?  Maybe a console, but not a shell.21:12
AdamOutler_yeah, sorry..21:13
AdamOutler_GrueMaster, can you ls -l /dev/ttyO2 for me?21:14
AdamOutler_I have CRW-RW-RW21:14
GrueMastercrw------- 1 ubuntu tty 249, 2 2012-01-17 13:14 /dev/ttyO221:15
GrueMasterudev should have created it on boot.21:15
AdamOutler_I created mine manually.  I'll try deleting it.21:15
AdamOutler_mknod ./ ttyO2 247 221:16
AdamOutler_mine is a 247 when running under ubuntu.21:16
AdamOutler_er.. Android.21:16
GrueMasterI don't work with android here, so I won't be able to help.21:17
AdamOutler_understood.21:17
AdamOutler_I'm working with Ubuntu now.21:17
AdamOutler_GrueMaster, I put the following hack into my RC.local21:27
AdamOutler_while true21:27
AdamOutler_do21:27
AdamOutler_ exec /sbin/getty -L ttyO2 115200 vt10221:27
AdamOutler_done21:27
AdamOutler_it's still not working.21:27
GrueMasterCan you type "dmesg|fgrep ttyO2" and see what comes up?21:28
GrueMaster(or fgrep ttyO2 /var/log/syslog)21:28
GrueMasterI have a feeling the device isn't being configured.21:29
AdamOutler_I just booted without a device created, no change, I'm making a 249 device.21:30
AdamOutler_omap-hsuart.2: ttyO2 at MMIO 0x48020000 (irq = 106) is a OMAP UART221:30
GrueMasterOk, that is correct.  When the system boots, it should have a /dev/ttyO2 device already created by udev.21:31
AdamOutler_here's something interesting... I did an ls -l /dev/ttyO* and a  dmesg|fgrep ttyO21:34
AdamOutler_crw-rw---- 1 root dialout 247, 0 Jan 17 21:34 /dev/ttyO021:34
AdamOutler_crw-rw---- 1 root dialout 247, 1 Jan 17 21:34 /dev/ttyO121:34
AdamOutler_crw-rw---- 1 root dialout 247, 2 Jan 17 21:34 /dev/ttyO221:34
AdamOutler_crw-rw---- 1 root dialout 247, 3 Jan 17 21:34 /dev/ttyO321:34
AdamOutler_omap-hsuart.0: ttyO0 at MMIO 0x4806a000 (irq = 104) is a OMAP UART021:34
AdamOutler_console [ttyO0] enabled21:34
AdamOutler_omap-hsuart.1: ttyO1 at MMIO 0x4806c000 (irq = 105) is a OMAP UART121:34
AdamOutler_omap-hsuart.2: ttyO2 at MMIO 0x48020000 (irq = 106) is a OMAP UART221:34
AdamOutler_omap-hsuart.3: ttyO3 at MMIO 0x4806e000 (irq = 102) is a OMAP UART321:34
AdamOutler_my console is on ttyO0...  maybe I can hack it with a rm /dev/ttyO2;ln -P /dev/ttyO0 /dev/ttyO2;21:35
GrueMasterThat is interesting.  I'd just create a /etc/init/ttyO0.conf and call it good.21:36
AdamOutler_that does not explain why my uart would be ported to ttyO0 and not be able to go to ttyO2...  it's odd21:36
AdamOutler_You can have multiple consoles correct? or is that wrong?21:37
GrueMasterYour device is creating multiple serial ports, but they aren't visible to the host pc.  Only one is (ttyO0 in this case).21:38
AdamOutler_GrueMaster, any ideas on that?21:39
AdamOutler_what did you mean by create an /etc/init/ttyO0.conf?21:39
GrueMasterCopy the /etc/init/ttyO2.conf file to /etc/init/ttyO0.conf, and edit the new copy to make sure it points to ttyO0.21:40
AdamOutler_but I'm monitoring on ttyO2.21:41
AdamOutler_by doing a symlink from ttyO0 to ttyO2 I was able to get a shell prompt21:41
GrueMasterI'll have to dig out my blaze and try.  I haven't worked with it since Natty (11.04), so I won't be much help until then.21:43
GrueMasterWhich ubuntu release are you running on it?21:43
AdamOutler_11.1021:49
AdamOutler_I think I have it now.21:49
AdamOutler_I just linked O2 back to the active O0 terminal21:49
GrueMasterOk, I will try it shortly.21:49

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