Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] Install Gentoo on AMD64 using Ubuntu LiveCD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
localghost
Apprentice
Apprentice


Joined: 28 Oct 2004
Posts: 185
Location: Sint-Niklaas, Belgium

PostPosted: Thu Feb 10, 2005 10:38 pm    Post subject: [HOWTO] Install Gentoo on AMD64 using Ubuntu LiveCD Reply with quote

1. Introduction

This Ubuntu HOWTO is an alternative to the Knoppix installation, as described in the Gentoo Alternative Installation Guide.
When I tried the Knoppix installation for my AMD64 box, I ran into problems when chrooting. This is because Knoppix is a x86 (32 bit) distribution, but more details about that later.
I'll try to keep this HOWTO useful also for people with a x86 computer.

2. Objectives

  1. I will demonstrate Ubuntu as an alternative for Knoppix, in particular for architectures other than x86 (AMD64, PowerPC, IA-64)
  2. I will configure a (software) RAID 1 array (mirror) with 2 SATA disks


3. PC specifications

These are the specifications for my pc:

  • Motherboard: Asus K8V SE Deluxe
  • Memory: 1 GiB RAM
  • CPU: AMD Athlon 64 3000+
  • hard disks: 2 * 120 GiB SATA (Seagate Barracuda) and 1 * 200 GiB SATA (Maxtor)
  • Graphics: Abit Siluro GeForce4 Ti 4200 AGP 8x
  • Some more info in detail:
    Code:
    root@ubuntu:~ # cat /proc/cpuinfo
    processor       : 0
    vendor_id       : AuthenticAMD
    cpu family      : 15
    model           : 12
    model name      : AMD Athlon(tm) 64 Processor 3000+
    stepping        : 0
    cpu MHz         : 1001.311
    cache size      : 512 KB
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 1
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 pni syscall nx mmxext lm 3dnowext 3dnow
    bogomips        : 1966.08
    TLB size        : 1088 4K pages
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 40 bits physical, 48 bits virtual
    power management: ts fid vid ttp
    Code:
    root@ubuntu:~ # lspci
    0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge (rev 01)
    0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800 South]
    0000:00:07.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
    0000:00:08.0 RAID bus controller: Promise Technology, Inc. PDC20378 (FastTrak 378/SATA 378) (rev 02)
    0000:00:0a.0 Ethernet controller: Marvell Technology Group Ltd. Yukon Gigabit Ethernet 10/100/1000Base-T Adapter (rev 13)
    0000:00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
    0000:00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
    0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
    0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
    0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
    0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
    0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
    0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [K8T800 South]
    0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
    0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
    0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
    0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
    0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
    0000:01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1)
    Code:
    root@ubuntu:~ # fdisk -l

    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

       Device Boot      Start         End      Blocks   Id  System

    Disk /dev/sdb: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

       Device Boot      Start         End      Blocks   Id  System

    Disk /dev/sdc: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *           1       24320   195350368+   7  HPFS/NTFS
    The intention is to use /dev/sda and /dev/sdb in a RAID array. The third disk, /dev/sdc, is used for Wintendo purposes. :wink:


4. Ready, Steady, Go!

  1. Download a copy of an Ubuntu LiveCD. I got my ISO-file from http://ubuntu.mirrors.tds.net/cdimage/releases/hoary/current/ but other mirrors may also work. At least make sure you get the Hoary (5.04) release and not the Warty (4.10) release. This is because Warty only has an Intel x86 LiveCD, while Hoary has LiveCDs for Intel x86, PowerPC, AMD64 and IA-64.
  2. Burn the ISO file to a CD. Read the FAQ if you don't know how.
  3. Reboot with the Ubuntu LiveCD.
  4. Open a console. You don't need to change the root home directory because Ubuntu just uses regular /root (Knoppix uses /home/root).
  5. Change the root password to your liking:
    Code:
    # sudo passwd root

  6. su into root:
    Code:
    # su -

  7. Create the /mnt/gentoo mountpoint using mkdir:
    Code:
    # mkdir /mnt/gentoo

  8. At this point, you can pick up with the standard install documentation at part 4. I will add my changes and comments below.
  9. Part 4 - Partitioning: I'm going to use /dev/sda and /dev/sdb as a RAID 1 array (mirror). First I fdisked both drives. It is important that the partition sizes are identical! You can use the sizes in the manual. I used +100M for /dev/sdx1 (/boot), +512M for /dev/sdx2 (swap) and the rest for /dev/sdx3 (/).
  10. Before I created the filesystems, I created the RAID array. Read this thread for more information, it is really, really good so why should I repeat it. You can follow it almost to the letter, just replace hda and hdc with sda and sdb where needed. Please use that thread for any further discussion about RAID.
  11. Where you are asked to mount /dev/hdax in the handbook, I mounted /dev/mdx. But if you just use plain vanilla disks, no SATA or RAID, just follow the Handbook.
  12. Part 5.e: Compile options. See this thread fo a discussion of CHOST and other settings for AMD64 in make.conf. Please use that thread for any further discussion about CHOST and other settings in make.conf. This is my make.conf:
    Code:
    CHOST="x86_64-pc-linux-gnu"
    CFLAGS="-march=athlon64 -O2 -pipe"
    CXXFLAGS="${CFLAGS}"
    ACCEPT_KEYWORDS="~amd64"
    MAKEOPTS="-j2"
    PORTDIR_OVERLAY=/usr/local/portage
    PORTAGE_NICENESS=15

  13. Part 6: When you're asked to mount the proc system, issue the following command instead:
    Code:
    # mount -o bind /proc /mnt/gentoo/proc

  14. Don't forget to copy your mdadm.conf file into your chrooted environment:
    Code:
    # mkdir /mnt/gentoo/etc/mdadm
    # cp -L /etc/mdadm/mdadm.conf /mnt/gentoo/etc/mdadm/mdadm.conf

  15. chroot as described in the Handbook. If you had done this from a Knoppix LiveCD with an AMD64 (or any other non-x86), you would have got an error about an unknown exec format here. Remember, I warned you about possible problems when using a Knoppix LiveCD for an installation on an AMD64, well, here it is. I had to learn this the hard way, so you learn from my mistake. :wink:
  16. Don't forget to compile your SATA drivers into the kernel, not as a module. You can find them (make menuconfig) under Device Drivers -> SCSI device support -> SCSI low level drivers. In my case it was not very obvious. VIA SATA support, that was easy to spot. But Promise SATA? To be safe, I compiled all 4 Promise drivers in the kernel. But I've got the impression that one of the Promise PATA 2027x drivers is actually mislabeled and should be the Promise SATA 2037x driver. I'll try to investigate this further and give you an update if I come to a conclusion. For now: play it safe, and compile all Promise drivers in the kernel, it won't hurt.
  17. I followed this thread for the installation of Grub. Just remember to install grub on both drives.


Useful references

_________________
411 /0µr 84$3 4r3 8310n9 70 µ$.
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1003
Location: GMT-8 (Spokane)

PostPosted: Wed Feb 16, 2005 11:27 pm    Post subject: Re: [HOWTO] Install Gentoo on AMD64 using Ubuntu LiveCD Reply with quote

localghost wrote:

[*] https://forums.gentoo.org/viewtopic.php?t=28653 - Gentoo on AMD64: make.conf


uhm...the title says something to do with quake3 to me
_________________
while(true) {self.input(sugar);} :twisted:
Back to top
View user's profile Send private message
Karsten from Berlin
Guru
Guru


Joined: 28 Feb 2004
Posts: 446
Location: Berlin/Germany

PostPosted: Thu Feb 17, 2005 11:16 am    Post subject: Reply with quote

Hint:

At the moment (Feb. 2005) Ubuntu has massive problems in booting the following configuration:

a) the booting cd-drive is connected as IDE-device (PATA)
_and_
b) your harddrive is connected as SATA-device

Although I verified the checksum of the ISO and burnt 3 different CD's, I wasn't able to boot. I only got a blinking underscore. The problem is mentioned in their forum, it's based on a borked installer.

At the end I installed a 'Fedora Core 3 for AMD64' to get an initial linux-system.
_________________
Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians.
Back to top
View user's profile Send private message
localghost
Apprentice
Apprentice


Joined: 28 Oct 2004
Posts: 185
Location: Sint-Niklaas, Belgium

PostPosted: Thu Feb 17, 2005 12:06 pm    Post subject: Reply with quote

Karsten from Berlin wrote:
Hint:

At the moment (Feb. 2005) Ubuntu has massive problems in booting the following configuration:

a) the booting cd-drive is connected as IDE-device (PATA)
_and_
b) your harddrive is connected as SATA-device

Although I verified the checksum of the ISO and burnt 3 different CD's, I wasn't able to boot. I only got a blinking underscore. The problem is mentioned in their forum, it's based on a borked installer.

At the end I installed a 'Fedora Core 3 for AMD64' to get an initial linux-system.


Hello Karsten,

a) My booting cd-drive is IDE-device hdc (PATA)
_and_
b) My 3 hard hard drives are SATA-devices sda sdb and sdc

I did _not_ experience any problem at all!
Are you sure you got the right version?
What version/mirror did you use?
I'm not at my Gentoo box right now, but when I'm home, I'll post my checksum for reference.
_________________
411 /0µr 84$3 4r3 8310n9 70 µ$.
Back to top
View user's profile Send private message
Karsten from Berlin
Guru
Guru


Joined: 28 Feb 2004
Posts: 446
Location: Berlin/Germany

PostPosted: Thu Feb 17, 2005 12:53 pm    Post subject: Reply with quote

I'm through with the installation, based on a 'Fedora Core 3 for AMD64'. Thanks a lot for your effort. I got the right ISO you mentioned above and checked the sums before burning and compared the burned CDs after burning against the ISO (ok, Nero did that for me).

I only wanted to mention this problem I had because I felt a bit like Asterix & Obelix: I thought, heaven would falling down on my head. Nothing worked with my new AMD64. First I tried to install based on a 32-bit Knoppix (failed, of course), then I found your thread and downloaded the image. After a lot of burned CDs and frustration I found many threads in the Ubuntu-Forum, all having problems with hardware-detection in the initial stage of booting. People try to boot and nothing happens. Like on my machine. No boot-screen, nothing! Only a blinking undercore.

After my post people know that there can be problems and that the problem is not that they are to stupid to burn CDs. If it works with Ubuntu, it's ok.

Thanks for your thread. I never heard of this distro before.
_________________
Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians.
Back to top
View user's profile Send private message
jerrybme
n00b
n00b


Joined: 15 Sep 2004
Posts: 61

PostPosted: Thu Feb 24, 2005 7:28 pm    Post subject: Reply with quote

I used this method to do a wireless install on my system Lanparty 250gb motherboard, amd64 3000 with a SMC PCI wireless card. It was the only 64 bit Live CD that could detect and load the Prism54 drivers for wireless. I also have a 3 rd hard drive that is SATA and it worked flawlessly.

Cheers,
Jerry
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum