*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: 1 ... 13 14 15 [16] 17 18 19 ... 24
Print
Author Topic: Installing Ubuntu using compressed files  (Read 268242 times)

#225 Re: Installing Ubuntu using compressed files

moocapiean
Master Contributor
***
Posts: 330


March 26, 2008, 07:50:12 PM

Brian Basgen:

Hmm, I have a couple of ideas:
1. Was the file you downloaded corrupt?  You can check this by running md5 filename, where filename is the filename of the file you downloaded.  It should be: ba93adcd2c7409a0951494ad5fb99ddd

2. Did you run out of space on any of the drives?  It's probably on the drive you're trying to write to.  You can tell by running df  -h then looking for your drive.  The middle columns report the disk's usage.  Also, are you sure you're writing to the mounted drive and not your internal drive?

3. You may not have permission to write where you're trying to write.  You're probably root, but if you aren't, make sure you are (you can just run su to become root).

4. You might be right, it could be a bad format on your drive.  Try formatting again, and maybe even rebooting.  If you're using Sugar, Sugar might be interfering with the partitioning and formatting, so when you try formatting, make sure your drive isn't mounted.  You might even want to go into the Journal activity and make sure it's not mounted.
Logged

#226 Re: Installing Ubuntu using compressed files

vblackaby
Commenter

Posts: 10


March 27, 2008, 04:08:08 PM

Code:
thanks,

inside /lib/modue/2.6.22-20071121.7.olpc.af3dd731d18bc39 i have:

[code]
build           modules.dep          modules.pcimap    updates
extra           modules.ieee1394map  modules.seriomap  weak-updates
kernel          modules.inputmap     modules.symbols
modules.alias   modules.isapnpmap    modules.usbmap
modules.ccwmap  modules.ofmap        source

i can't cd into build or source don't know if that is normal.

inside the kernel directory i have

Code:
arch  crypto  drivers  fs  lib  net  sound

Am I in the right place?

also, from that directory, when i run the command

fakeroot make-kpkg --initrd --appened-to-version=-custome kernel_image kernel_headers

[colpc@OLPC:/lib/modules/2.6.22-20071121.7.olpc.af3dd731d18bc39/kernel$ fakeroot make-kpkg --initrd --append-to-version=-custome kernel_image kernel_headers
We do not seem to be in a top level linux kernel source directory
tree. Since we are trying to make a kernel package, that does not make
sense.  Please change directory to a top level linux kernel source
directory, and try again. (If I am wrong, and this is indeed a top
level linux kernel source directory, then I have gotten sadly out of
date with current kernels, and you should upgrade kernel-package)
ode]

[/code]

ok.  i did an install of make and fakeroot and then kernel-package

i think i am missing the source-code for the terminal. 

I wish I knew more to be able to help you help me, i appreciate your time.
I'm going to wait here to see if you have any feedback, and go out and get a 4gb  sd card, to see if that method works.

i want to figure this out, but if you can get the kernel headers, i can host for other people as well.

Victoria




Logged

#227 Re: Installing Ubuntu using compressed files

moocapiean
Master Contributor
***
Posts: 330


March 27, 2008, 04:46:00 PM

i can't cd into build or source don't know if that is normal.

That's probably not normal.  They should be directories, links to directories actually, but maybe the things the links point to don't exist.

Quote
inside the kernel directory i have

Code:
arch  crypto  drivers  fs  lib  net  sound

Am I in the right place?

Nope, you're in the kernel modules directory.  Since you want to build the kernel, you should be in the kernel source directory.  Typically, the Linux kernel source code is stored in subdirectories of /usr/src.  I'll post some more about this if/when I get the kernel compiled.

I'll try compiling it on my laptop between tonight and Saturday night and let you know how it goes.  In the meantime, how should I get the files to you if I manage to compile them?
Logged

#228 Re: Installing Ubuntu using compressed files

vblackaby
Commenter

Posts: 10


March 27, 2008, 11:47:29 PM

I redid the compressed files instructions, and I still have nothing in /usr/src.
I also tried the disk version, same thing.  I am really curious as to why.
I have set up an FTP site for you (low bandwidth, unfortunately ) & will keep it running in case anyone else needs it.

Victoria
Logged

#229 Hangs at "INIT: version 2.86 booting"

JoeMac
Senior Contributor
**
Posts: 108


March 28, 2008, 10:11:51 PM

First off, I am a complete Linux noob, so if it seems I don't know what I'm talking about, it might be because I don't know what I'm talking about.  I am trying to boot from a 4 gigabyte SDHC drive.  I mostly followed the compressed files instructions with the following exceptions:

The drive was formated with an EXT3 filesystem and the partition made bootable using Gparted from within Ubuntu Gutsy.  In fact, I used Gutsy for most of the install since I had tremendous difficulty unmounting the SDHC as per the compressed files instructions and I found I had a slightly easier time mucking around in Gnome's GUI for some of the steps in the instructions.  I'm pretty determined to give this a shot Wink  After a few false starts, I was able to get the XO to at least atempt booting off the SDHC card using atraw's olpc.fth and fstab files.  A bunch of drivers looked like they were loading, and then I get to the last bit that looks something like this:

Hello, (children of the) world!
[    25.027045] mmcblk0: mmc0:0002     3870720KiB
[    25.053302]  mmcblk0: p1
[    25.149094] kjournald starting.  Commit interval 5 seconds
[    25.175995] EXT3-fs: mounted filesystem with ordered data mode
 * INIT: version 2.86 booting


It just hangs after that. I get a blinking cursor for about 10 minutes or so below the boot initialization that eventually goes away.  I have know idea where to go from here.... Huh
Logged

#230 Re: Installing Ubuntu using compressed files

JoeMac
Senior Contributor
**
Posts: 108


March 28, 2008, 10:21:36 PM

PS:  I did try holding the O game-pad button down as per atraw's instructions in the olpc.fth for booting off the ramdisk and bringing up sugar while the SDHC card with Ubuntu is installed.  It worked fine.  I noticed the same "INIT: version 2.86 booting" line and it paused a second or two and then ran right past it.  So maybe somethings wrong with the kernal on the SDHC Huh  I wouldn't have the slightest idea of what to look for while mucking around through the filesystem... I unpacked the OLPCFile.tar.bz2 as per the compressed files instruction when I originally set up the SDHC card.  I'm not sure what's up...

Oh, and I'm using OLPC build 656 if that makes any difference...

« Last Edit: March 28, 2008, 10:33:36 PM by JoeMac » Logged

#231 Re: Installing Ubuntu using compressed files

JoeMac
Senior Contributor
**
Posts: 108


March 28, 2008, 10:59:30 PM

I'm not sure if this gives any useable information that could help diagnose my problems, but here is what the SDHC card looks like in Gparted:



and what the files on the SDHC look like in Nautilus:


The device mounted as SDB1 through a USB card adapter.  When I put the SDHC card in the XO it mounts as mmcblk0p1 as cited in the various sets of instructions.

Logged

#232 Re: Installing Ubuntu using compressed files

moocapiean
Master Contributor
***
Posts: 330


March 29, 2008, 05:17:52 AM

I redid the compressed files instructions, and I still have nothing in /usr/src.
I also tried the disk version, same thing.  I am really curious as to why.
I have set up an FTP site for you (low bandwidth, unfortunately ) & will keep it running in case anyone else needs it.

Victoria

Sorry, I guess I never explained why you don't have anything in /usr/src.  I said awhile ago that I left the kernel and its modules installed, not the source code or headers, which is what you're looking for.

Time for an update:
I managed to compile the kernel on my laptop and move it over to my USB drive.  It boots, but then runs into a lot of failures towards the end, but it ultimately gets to the login prompt.  I can log in, but I can't start X.  This morning (I was doing all of this last night), I realized I forgot to copy the modules into their correct home (at least I remembered to put them in the ramdisk).  So, I'm getting close

I guess I should explain why I'm bothering with trying to boot the kernel when all you want is the source code.  Since you're going to be loading kernel modules compiled from this source code and configuration, it's good that those modules will be loaded into the kernel that was compiled from that source code and configuration.

I'll try to work on this a bit more later today.
Logged

#233 Re: Installing Ubuntu using compressed files

vblackaby
Commenter

Posts: 10


March 30, 2008, 10:42:57 AM

Moocapiean,

Thanks for your time!  I'm really looking forward to getting this up and running.  The Disk Image version had the same files, so that didn't make much of a difference.  While waiting, I realize you have 50 million things to do, would it work if I tried an XUbuntu install from scratch?  I'm not really sure how to do that, but I am willing to try!

Thanks again,
Victoria
Logged

#234 Re: Installing Ubuntu using compressed files

moocapiean
Master Contributor
***
Posts: 330


March 30, 2008, 10:58:59 AM

JoeMac:

I haven't been ignoring you. I haven't responded to your problem yet because I don't know what to say, other than it might be an SD card problem (if you look through the thread, you'll see it's somewhat common).  Having used another computer running Ubuntu is fine, that's what I did every time I installed Ubuntu on the XO.
Logged

#235 Re: Installing Ubuntu using compressed files

moocapiean
Master Contributor
***
Posts: 330


March 30, 2008, 11:05:40 AM

vblackaby:

The disk image method and the compressed files method should have the same installation on them since I built one from the other.  Installing Ubuntu yourself wouldn't provide the kernel headers either.

The only way I know to get the correct headers is to download them from OLPC.  The sites I've been using are:
http://wiki.laptop.org/go/Kernel_Building
http://wiki.laptop.org/go/Rebuilding_OLPC_kernel
http://wiki.laptop.org/go/Kernel
I've been using the version that comes in rpm.  I don't remember why the git version didn't work, but I know I had to switch to the rpm sources.

I almost had everything working yesterday, but encountered mouse problems.  For some reason, with the new kernel, my mouse refused to move out of the left side of the screen.  When I attached a USB mouse, it moved, but extremely slow.  Moving the mouse one foot moved the mouse on the screen about five or ten pixels.  I'm going to try using the same kernel version that we're currently using.
Logged

#236 Re: Installing Ubuntu using compressed files

vblackaby
Commenter

Posts: 10


March 30, 2008, 12:33:00 PM

Ok... since my understanding of kernel is incomplete... i thought it was a step above the HAL and involved the code Ubuntu uses to access the HAL... and seeing the issues you are running into... i think i will pass on this step.  When you get it working, I will keep the FTP open and a torrent of it as well.  I can't beleive i am the only person who is going to need this.

Thanks again for your time.
Logged

#237 Re: Installing Ubuntu using compressed files

moocapiean
Master Contributor
***
Posts: 330


March 30, 2008, 06:09:24 PM

Actually, someone contacted me privately about this a little under a day after you posted here.  I'm a little surprised that it took this long for someone to ask about it.

The kernel is actually the lowest layer in the operating system, any lower and you're dealing with the hardware.  It can be intimidating to compile the first few times you try it, but it's really not too bad.  I'll try to post the steps I took once I get it working.
Logged

#238 Re: Installing Ubuntu using compressed files

JoeMac
Senior Contributor
**
Posts: 108


March 30, 2008, 07:15:54 PM

Thanks moocapiean.  I didn't think I was being ignored.  In fact, I think that in even taking all this on, you have gone "above and beyond the call of duty" Wink

I think you are right about the likely cause- I think it is something in the SD card itself.  I can mount it on the XO from the terminal application and it shows up when I attempt booting from it, but I can't see it from within "Journal".  Strange.  I'm going to keep trying.  I might try reformating the 4-gig card into two smaller partitions.  If that doesn't work, I'll try a different card.  I hope it isn't the XO's SD slot.  I have a smaller 1 GB FAT 16 SD (not HC) with some MP3's on it that I'm going to try in a few minutes just to see if it mounts into Journal

 If I knew a bit more about Linux, I would attempt a new thread just dealing with the SD cards since they seem to have a host of issues all their own.  I'm not quite brave enough for that yet Undecided
Logged

#239 Re: Installing Ubuntu using compressed files - Be careful which SD card you use

JoeMac
Senior Contributor
**
Posts: 108


March 30, 2008, 07:51:15 PM

I think moocapiean dragged me out of the rabbit hole I have been going down the last couple of days Smiley  The weird behavior that I have been seeing is almost certainly with the SD card itself.  I've been playing around this evening with the ext3-formatted boot SD that I made and a smaller 1 GB FAT16 SD that I have and I think I might have a clue why some cards seem to work and others don't.  I was under the mistaken idea that my SD card was SDHC because it was a 4 GB card.  I was wrong.  The card says SD on the label, so it is really a nonstandard extension of the SD standard, which stops at 2 GB.  I found this on Wikipedia:

"Before SDHC was standardized, various manufacturers "extended" the SD control block fields for their 2 GB and 4 GB cards in different ways. Those cards are incompatible with many SD and some SDHC devices, as they conform to neither standard"
 http://en.wikipedia.org/wiki/Secure_Digital_card

So it works just fine on my MacBookPro in Ubuntu, but shows unpredicable behavior and is unreliable on the XO.  So, be careful with 2GB and 4GB cards.  1 GB SD and 8 GB SDHC are propably fine.  I wouldn't use a 2 GB or 4 GB card in the XO unless it is truly made to the SDHC standard and not just some one-off extension of SD.  The behavior is just too unpredicable and flakey. 

I'm ordering a Class 6 SHDC card tomorrow and starting over when it comes in.  The XO has taught me more about Linux and SD cards in one week than I ever expected;)
« Last Edit: March 30, 2008, 07:53:16 PM by JoeMac » Logged
Pages: 1 ... 13 14 15 [16] 17 18 19 ... 24
Print
Jump to:  

Members
Total Members: 2405
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 27
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 17
Total: 17