[05:18] <lfitz> is there a guide to install ubuntu onto an SD card?
[05:18] <lfitz> for the sheevaplug
[07:01] <lfitz> is there a default password for root on ubuntu-arm i followed this guide: http://plugcomputer.org/plugwiki/index.php/Ubuntu_9.0.4_Plug_Computer_Distribution#Building_a_rootfs_to_install_Ubuntu_on_an_SD_Card_or_USB_Drive
[07:02] <lfitz> also, i can login to the user account i created, but i cant login as root
[07:02] <lfitz> or sudo
[07:02] <lfitz> sudo outputs: must be setuid root
[07:13] <lfitz> ugh, i chown'd everything so i could move it before putting it on the sd card and forgot...thats why that happened ^^^
[07:36] <DanaG> yeah, next time sudo tar. =þ
[07:38] <lfitz> DanaG actually im still stuck
[07:38] <lfitz> do i have to build the rootfs again?
[07:38] <lfitz> because i basically have no root, correct?
[08:06] <sechrist> are there prebuilt armv6 images?
[08:07] <sechrist> heh perhaps I should read further down the page next time. Found one
[08:08] <sechrist> woah
[08:08] <sechrist> http://w3.impa.br/~gabrield/data/click.php?id=4 shows php source hehe
[11:16] <dcordes> hi
[11:19] <dcordes> somebody has a secret deb to fix rootstock ?
[11:22] <dcordes> so far it only worked with karmic in karmic for me
[11:24] <dcordes> creating lucid rootfs from lucid it hangs building iso locales or so (that's in bugzilla for 3 months or so)
[11:25] <dcordes> not exactly specific to roostcok: getting lucid minimal rootfs and installing the desktop task results in dependency problems
[11:25] <dcordes> worked around it and got non working usb keyboard in gdm
[11:26] <dcordes> building maverick image from lucid results in segfault
[11:29] <dcordes> alternatively, somebody has a clue where to get finished lucid or maverick desktop tarballs ?
[12:00] <armin76> sechrist: ubuntu doesn't support armv6 anymore, 9.10 is the last release supporting armv6+vfp(so no qualcomm)
[12:00] <sechrist> armin76: thanks, I figured this out a few hours ago
[12:00] <armin76> someone from ubuntu should answer those questions instead of me :)
[12:01] <armin76> dcordes: ogra is the one you should poke about it
[12:02] <dcordes> armin76: it's armv7 only now ?
[12:02] <dcordes> ogra: poke
[12:02] <dcordes> on a side note I considered reporting on bugzilla instead of here
[12:02] <dcordes> but everything is present already
[12:03] <dcordes> I am just wondering if somebody is working on this
[12:03] <armin76> dcordes: yes
[12:03] <dcordes> sechrist: which device do you have ?
[12:04] <sechrist> dcordes: kindle
[12:04] <dcordes> isn't ubuntu a bit 'big' for it ?
[12:04] <dcordes> did you consider something openembedded based ?
[12:04] <sechrist> nfs dawg
[12:04] <sechrist> nah I haven't, I can't replace the kernel either
[12:04] <sechrist> I just wanted something to chroot into
[12:04] <lfitz> hi, my sheevaplug stops booting at uncompressing the kernel...booting the kernel.
[12:04] <dcordes> oh that sucks
[12:05] <sechrist> well I probably could replace the kernel
[12:05] <sechrist> but I don't have a serial cable. I don't want to risk a brick.
[12:05] <dcordes> lfitz: what build do you use?
[12:05] <dcordes> sechrist: lol then don't :)
[12:06] <lfitz> do you mean the kernel number?
[12:06] <lfitz> 2.6.34
[12:06] <dcordes> lfitz: I mean your entire setup
[12:07] <lfitz> uboot 3.4.19
[12:07] <dcordes> you built this yourself ?
[12:07] <lfitz> yeah
[12:07] <lfitz> it was working
[12:07] <lfitz> until i tried to go and install ubuntu :P
[12:07] <lfitz> i ran debian, now both sd cards stop at the same place
[12:07] <dcordes> on first look it seems unrealted to ubuntu
[12:07] <lfitz> yeah
[12:07] <dcordes> maybe file corruption?
[12:08] <lfitz> well...not on the sd cards
[12:08] <armin76> haha
[12:08] <lfitz> cause i have two
[12:08] <lfitz> possibly on nand cause theres a crc error
[12:08] <dcordes> aha
[12:08] <dcordes> there you go
[12:08] <lfitz> but i think its unrelated
[12:08] <dcordes> rebuild the kernel
[12:08] <lfitz> cause it was booting debian from sd today
[12:08] <dcordes> copy it again
[12:08] <dcordes> check md5
[12:09] <lfitz> rebuild the kernel on sd card?
[12:09] <lfitz> i just downloaded it from sheeva.with-linux.com/sheeva
[12:09] <dcordes> I don't know how you build your kernel
[12:09] <dcordes> you said you were building yourself.
[12:09] <lfitz> well, heres what i have done...
[12:10] <lfitz> used rootstock to build a....?filesystem?....then downloaded the kernel headers, extracted them to the filesystem, and the modules
[12:11] <dcordes> armin76: any clue where to get prebuilt arm tarballs ? I can only find some minimal builds.
[12:11] <lfitz> along with uimage
[12:11] <tmzt_> does qemu-debootstrap work?
[12:11] <lfitz> preferably i would like to default the plug, but i dont know if its possible...
[12:11] <dcordes> this all irrelevant if your kernel fails uncompressing
[12:11] <lfitz> yeah
[12:11] <dcordes> you flash the kernal image to nand ?
[12:11] <lfitz> is there an easier way to restore the factory install
[12:11] <armin76> dcordes: sorry i don't, i don't even use ubuntu myself
[12:12] <dcordes> ok
[12:12] <dcordes> hi tmzt_
[12:12] <tmzt_> sechrist: isn't kindle arm11?
[12:12] <tmzt_> hey
[12:12] <dcordes> tmzt_: big rootstock disappointment here
[12:12] <dcordes> tmzt_: did you ever use it ?
[12:13] <tmzt_> no, I'm just reading the changelogs on my maverick update
[12:13] <tmzt_> I hadn't heard of qemu-debootstrap before
[12:13] <dcordes> tmzt_: it is installed on my lucid host
[12:16] <tmzt_> cp $(which "qemu-$qemu_arch-static") "$target/usr/bin"
[12:16] <tmzt_> run chroot "$target" /debootstrap/debootstrap --second-stage
[12:16] <lfitz> dcordes:  would it be wise to set the username in rootstock to root
[12:16] <sechrist> tmzt_: you reading wikipedia?
[12:16] <tmzt_> that's from the script, okay
[12:16] <tmzt_> sechrist: no, why?
[12:16] <sechrist> tmzt_: because it's armv6
[12:16] <tmzt_> yep, armv6==arm11
[12:16] <tmzt_> neither is supported in lucid or maverick to my knowledge
[12:16] <sechrist> I'm running 9
[12:18] <lfitz> dcordes:  http://plugcomputer.org/plugwiki/index.php/Ubuntu_9.0.4_Plug_Computer_Distribution#Building_a_rootfs_to_install_Ubuntu_on_an_SD_Card_or_USB_Drive
[12:19] <lfitz> thats the guide i followed...
[12:20] <sechrist> so is cross compiling even worth trying
[12:20] <sechrist> or is there like architecture-sound emulators (I'm thinking qemu but I haven't ever used it)
[12:21] <dcordes> lfitz: You should download the kernel place the uImage in the boot directory of the filesystem
[12:21] <sechrist> like a full running arm nix system inside an emu on x86
[12:21] <dcordes> lfitz: make sure nothing goes wrong during that step
[12:21] <dcordes> lfitz: check md5sum of kernel inside your SD /boot/ vs kernel image from the download source
[12:21] <lfitz> well sheeva.with-linux.com has kernel-headers...
[12:21] <lfitz> is that the kernel...
[12:21] <lfitz> ?
[12:22] <dcordes> no
[12:22] <dcordes> http://sheeva.with-linux.com/sheeva/2.6.34/sheeva-2.6.34-uImage
[12:22] <dcordes> this is the kernel
[12:22] <lfitz> okay
[12:22] <dcordes> get this along with the modules http://sheeva.with-linux.com/sheeva/2.6.34/sheeva-2.6.34-Modules.tar.gz
[12:23] <lfitz> what about kernel headers, no need for it?
[12:23] <dcordes> this is the device specific part you need
[12:23] <dcordes> no
[12:23] <dcordes> unless you want to compile some modules
[12:23] <dcordes> later on
[12:23] <lfitz> okay
[12:24] <lfitz> so im running rootstock again to build the rootfs, and then ill add sheeva-2.6.34-uImage to \\boot and sheeva-2.6.34-Modules (extracted) to rootfs
[12:24] <lfitz> err //boot
[12:24] <lfitz> / boot
[12:25] <dcordes> if you still have the .tar.gz from your previous roostcok build, you do not need to build it again
[12:25] <tmzt_> sheeva only has one ethernet?
[12:25] <lfitz> dump it to sd card, modify the environment settings to boot from sd and hopefully boot sucessfully...
[12:25] <lfitz> tmzt_:  yes only one
[12:26] <dcordes> tmzt_: uboot able to mount rootfs ?
[12:26] <dcordes> tmzt_: just wondering if he needs to flash uimage
[12:26] <tmzt_> too bad, I might need a voip proxy for a project
[12:26] <tmzt_> dcordes: what do you mean?
[12:26] <tmzt_> if I understand rootfs is just a kernel parameter
[12:27] <dcordes> lfitz: he's told to put uImage in /boot
[12:27] <dcordes> and I'm wondering if the bootloader can access it
[12:27] <dcordes> or if he needs to flash
[12:28] <lfitz> yeah, it can access uImage, its offset at 0x80000000
[12:28] <lfitz> 0x8000000*
[12:28] <lfitz> and it reads all the bytes
[12:29] <lfitz> i mean, the total number of bytes of the uImage
[12:29] <dcordes> fine
[12:30] <lfitz> ?
[14:06] <dcordes> lfitz: so you got anywhere with the clean reinstall ?
[14:26] <sechrist> dcordes: I'm having weird issues where I can't access the internet inside my chroot, but I can outside
[14:27] <sechrist> I mounted the various system endpoints and stuff too.. no idea
[14:27] <tmzt_> probably dns
[14:27] <sechrist> no
[14:27] <sechrist> pinging 8.8.8.8 fails
[14:27] <tmzt_> copy /etc/resolv.conf
[14:27] <tmzt_> hmm
[14:27] <sechrist> "operation not permitted"
[14:27] <sechrist> not dns
[14:27] <tmzt_> ah
[14:27] <tmzt_> you don't have root?
[14:27] <sechrist> of course I have root
[14:27] <tmzt_> weird
[14:27] <sechrist> https://gist.github.com/0df5ac2f27bf0c7cfb30
[14:28] <tmzt_> strace
[14:28] <sechrist> I don't have strace in the chroot but i'll try and copy the one I have over
[14:28] <dcordes> sechrist: I have hada similar problem in karmic where I could not user network interfaces as non privileged user. this was native rather than chroot
[14:28] <dcordes> s/user/use/
[14:29] <sechrist> straced
[14:29] <sechrist> added as comment to gist above
[14:29] <sechrist> O.o @ that
[14:30] <sechrist> umoven input/output error
[14:30] <sechrist> hm
[14:31] <sechrist> so it's a ptrace problem?
[14:36] <sechrist> oooh it's not that
[14:36] <sechrist> it's getuid32 failing
[14:36] <sechrist> wt
[14:38] <sechrist> oh, no, meh
[14:39] <dcordes> sechrist: did you do lucid lynx tarball with rootstock ?
[14:39] <sechrist> nah this is armv6
[14:39] <sechrist> it's 9.10.2
[14:40] <sechrist> ubuntu-9.10.2-minimal-armel to be exact I guess
[14:40] <sechrist> I extracted the rootfs tarball and just mounted it
[14:40] <dcordes> aight
[14:40] <sechrist> I didn't need to provision it or anything right?
[14:40] <sechrist> it's not like I was booting off of it
[14:41] <dcordes> just wondering cause I have severe problems creating tarballs with roostock with anything > karmic
[14:41] <sechrist> v6 device running v7 code?
[14:41] <sechrist> oh
[14:41] <sechrist> creating
[14:41] <sechrist> nv,
[14:57] <sechrist> mystery solved
[14:57] <sechrist> permissions error
[14:57] <sechrist> some critical shit was owned by my macbook user
[14:57] <sechrist> doh
[14:58] <tmzt_> did you post an strace?
[14:58] <tmzt_> I think I know the issue but I'd like to confirm
[14:58] <sechrist> https://gist.github.com/0df5ac2f27bf0c7cfb30
[14:58] <sechrist> several
[15:00] <sechrist> dude I am totally apt-get installing on a kindle. huuah
[15:00] <tmzt_> I think it wasn't able to read either /etc/resolv.conf or other /etc/ file or a required lib because of the permissions issue
[15:00] <sechrist> most likely a lib
[15:01] <sechrist> I did a few stats and went doh when I saw the userid owning the files was 503, so I did a find/exec loop
[15:44] <Jameswstubbs> ogra, Is this http://people.canonical.com/~ogra/mobile/ possible on armv6?
[15:53] <Jameswstubbs> I'd like to use it for iPhone port
[16:14] <GrueMaster> Jameswstubbs: The image you are referring to at ~ogra/mobile is specific to an Intel project over two years ago.  It is not arm based, it is lpia (Intel Atom/Poulsbo).
[16:16] <Jameswstubbs> Hm, Is there a list of the software/configs so I can check ports.ubuntu.com
[16:16] <Jameswstubbs> Maybe piece bits together
[16:18] <GrueMaster> Esentially, Jaunty is Armv5, Karmic is Armv6+vfp, and Lucid+ is Armv7+thumb2.
[16:18] <GrueMaster> I don'tknow what is in the original iPhone.  You might want to stick with debian.
[16:19] <GrueMaster> At least that way you can have access to the latest software but built for older hardware.
[16:19] <Jameswstubbs> I've just finished booting Karmic on the iPhone 3g, I'm wanting to choose a more appropriate wm before release,
[16:19] <Jameswstubbs> Considering matchbox
[16:19] <Jameswstubbs> But this is more attractive
[16:23] <gsnedders> The 3G is a Cortex A8, AFAIK
[16:23] <Jameswstubbs> armv6
[16:23] <gsnedders> Oh, it's only the 3GS that's Cortex A8
[16:24] <Jameswstubbs> Yep, i think iphone 4 is a4 or whatever it's called. Im only working on 2G and 3G atm
[16:24] <gsnedders> A4 is just a Cortex A8 impl
[16:25] <Jameswstubbs> I havn't looked into, I can't afford one
[17:35] <lfitz> hi, i can boot ubuntu on my sheevaplug from an sd card now...however i can not login, i followed this guide...
[17:36] <lfitz> http://plugcomputer.org/plugwiki/index.php/Ubuntu_9.0.4_Plug_Computer_Distribution#Building_a_rootfs_to_install_Ubuntu_on_an_SD_Card_or_USB_Drive
[17:36] <lfitz> at this section: '  sudo ./rootstock -f sheevaplug -l [username] -p nosoup4u -d jaunty --serial ttyS0 --seed ssh' i set my username to root
[17:37] <lfitz> with a temp password
[17:37] <lfitz> and i tried to login as root with the temp passwd and even the default password in that line and it says login incorrect...
[17:37] <lfitz> since the fs is on sd can i edit a text file such as /etc/passwd to add a new user/pass?
[17:37] <lfitz> or does it need to be done, once logged in...
[17:39] <lfitz> hi orga: the README in rootstock fs says to contact you here... or by email, are you around?
[19:53] <dcordes> lfitz: can you share how you came over the can't extract kernel Image problem ? was the reason you did not have a kernel image in /boot ?
[19:54] <dcordes> lfitz: ogra is busy fixing rootstock I guess :P
[19:54] <dcordes> lfitz: are you 100% sure you usin the same password you specified with the rootstock command ?
[20:34] <lfitz> dcordes:  100% sure
[20:35] <lfitz> it worked initially, on the first attempt...but when i tried to switch to root i got an error 'setuid root'
[20:35] <lfitz> or whenever i tried to sudo i got that error
[20:36] <lfitz> dcordes:  i switched from ext3 to ext2 because i only had one partition
[20:36] <lfitz> the command to boot is ext2load
[20:36] <lfitz> so i figured ext2 fs would be best
[20:36] <lfitz> basically /boot needs to be ext2
[20:37] <dcordes> I see
[20:37] <dcordes> so that was the source of the unable to uncompress image erorr ?
[20:37] <lfitz> im not sure....but i think thats the only thing i changed...
[20:38] <lfitz> i would rewrite the section in the plugwiki about using rootstockfs, its missing a few words (not meaning to insult anyone) but its a little hard to follow
[20:39] <dcordes> go for it that's why it's a wiki
[20:39] <lfitz> but thats not ubuntu-arm... its at plugwiki / ubuntu 9.04
[20:39] <lfitz> oh
[20:39] <lfitz> alright :)
[20:40] <dcordes> I've been asking you so that others can contribute when they read the logs of this channel
[20:40] <dcordes> foss we are doomed to work toegether
[20:40] <lfitz> okay, thats a good idea :)
[20:41] <dcordes> so to get back to your login problem
[20:41] <lfitz> i will try to write the rootfs from scratch for sheevaplug entirely :)
[20:41] <dcordes> I've had the exact same problem
[20:41] <dcordes> with lucid lynx rootstock
[20:41] <lfitz> no way! :P
[20:41] <dcordes> it is specific to rootstock
[20:42] <dcordes> and seems to exist across different versions
[20:42] <lfitz> i switched the sd card into my laptop and tried chrooting to it so i could add users
[20:42] <lfitz> but that didnt work either
[20:42] <dcordes> yxou don't need to  chroot
[20:42] <lfitz> no exec error
[20:42] <dcordes> you can spare the chroot part
[20:42] <dcordes> just mount he rootfs
[20:42] <dcordes> and copy the passwd and groups etc from your known work ubuntu rootfs.
[20:43] <dcordes> shadow
[20:44] <lfitz> /etc/passwd, /etc/group, /etc/shadow?
[20:46] <dcordes> yeap
[20:48] <lfitz> okay that works, however it only works for one user the primary user and not the root account
[20:48] <lfitz> and it logins then quickly logs out
[20:48] <lfitz> could it be because i dont have a /home/dir
[20:51] <dcordes> lfitz: what is it ?
[20:51] <lfitz> um, i copied the /etc files you mentioned
[20:51] <lfitz> but the /home/username directory on the sd cards dont exist..yet
[20:52] <dcordes> I mean, you logging in on the text terminal or graphical ?
[20:52] <lfitz> text...screen
[20:53] <dcordes> ok it worked for me w/o /home/username
[20:53] <dcordes> just got warning
[20:53] <lfitz> i get the default log in message
[20:53] <lfitz> but then im asked for my password again
[20:53] <lfitz> username and password*
[20:56] <lfitz> dcordes:  ^^
[20:57] <dcordes> I hate roostock
[20:57] <dcordes> I mean it's not a bad concept
[20:57] <dcordes> but needs much love
[20:57] <dcordes> spent way too much time wit it this week
[20:58] <lfitz> any idea how to get the default ubuntu image back?
[20:58] <dcordes> lfitz: ask #ubuntu
[20:58] <lfitz> okay, thanks
[20:58] <lfitz> thank you for the help
[20:58] <lfitz> !
[20:58] <dcordes> the cause of the problem is specific to rootstock
[20:58] <dcordes> or the arm repos...
[20:59] <dcordes> but way to solve it is generic so you can go ask anywhere
[20:59] <dcordes> no problem
[20:59] <dcordes> you welcome
[20:59] <dcordes> what do you mean get default ubuntu image back ?
[21:08] <lfitz> dcordes:  the plug ships with ubuntu installed
[21:08] <lfitz> but i think i bricked it just now
[21:08] <lfitz> :X
[21:09] <dcordes> put your cheepoplug in the trashcan and get something decent like new gumstix
[21:15] <zumbi> armin76: remember where i used to work? right by us are developing a new product based on igepv2 :)
[21:32] <Jameswstubbs> How do use apt-cache with rootstock?
[21:40] <michaelh1>  Jameswstubbs: I've used rootstock with apt-cacher-ng quite happily...
[21:40] <michaelh1> (oh, sorry, wrong tool)
[21:40] <Jameswstubbs> Do you just install apt-cache on host machine?
[21:40] <Jameswstubbs> Anything else need to be done?
[21:41] <Jameswstubbs> I spent 6 hours making a ubuntu-rootfs only to accidently format my image :p
[21:42] <michaelh1> What would you like to achieve?
[21:43] <Jameswstubbs> To not need to download all the dpkg's over and over again
[21:43] <Jameswstubbs> I might just make a backup of the tarball this time
[21:44] <michaelh1> Ah.  A couple of options - use --copy-package-cache/--save-package-cache, or use a APT proxy like apt-cacher-ng
[21:45] <michaelh1> I use the latter and am quite happy with it.  Set http_proxy and /etc/apt/apt.conf.d/proxy to point to the cache and the rest just flows...
[21:48] <Jameswstubbs> Ah thank you :) I think i'll use --copy-package-cache