• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Gentoo Support  (Read 4840 times)
karurosu
Global Moderator
Full Member
*****

Karma: 0
Posts: 116



View Profile WWW
« on: April 15, 2009, 11:08:04 AM »

Hi,
Who is in charge of maintaining the gentoo files? I want to know because I havenít seen much activity in the forums regarding installing/using gentoo.
On a related topic: has anybody tried installing gentoo on the plug? What are the results?

Thanks.
Logged

moshiach
Guest
« Reply #1 on: April 15, 2009, 04:46:02 PM »

I've got one plug running gentoo pretty successfully from nand.  It's very easy.  The part I'm working on is moving that installation to a usb drive.  But to get it booted up, follow these intructions:

Assumptions:
You are sharing TFTP and NFS from another linux computer and have export /tftpboot and untard hentoo_sheevaplug_200M_selinux.tar.bz2
to /tftpboot/sheevaselinux and you have the default uImage and default rootfs from the installation cd or another source in /tftpboot and /tftpboot/sheevaroot




1)  On the NFS host Copy uImage.6plug and gentoo_sheevaplug_70M_selinux.jffs2 into /tftpboot/sheevaroot
2)  TFTPboot the plug into the default uIamge.sheeva.whateverdate with rootpath /tftpboot/sheevaroot
uBoot Environment for TFTP
Code:
Hit any key to stop autoboot:  0
set mainlineLinux no
set arcNumber 2097
set image_name uImage.sheeva.20090319
set tftp_rootpath /tftpboot/sheevaroot
set ipaddr <your ip address>
set serverip <your nfs/tftp server>
set hostname <your plugs name>
set netmask <your subnet mask>
set gw-ip <your router>
set console console=ttyS0,115200
set mtdargs1 'mtdparts=nand_mtd:0x100000@0x00000(uBoot)ro,0x500000@0x100000(uImage),-(rootFS)'
set bootargs_root_tftp 'root=/dev/nfs rw'
set bootargs_nfs nfsroot=${serverip}:${rootpath}
set bootargs_end ip=${ipaddr}:${serverip}:${gw-ip}:${netmask}:${hostname}:eth0:none
set setboot_tftp 'set bootargs ${console} ${mtdargs1} ${bootargs_root_tftp} ${bootargs_nfs} ${bootargs_end}'
set bootcmd_tftp 'set bootcmd tftpboot 0x2000000 ' ${image_name}';bootm 0x2000000'
set setbootcmd_tftp 'set bootcmd ${bootcmd_tftp}'
set boottftp 'run setboot_tftp;run setbootcmd_tftp;save'
save
run boottftp
reset

3)  If all went well you are at a -sh-3.2> prompt
Code:
cd /
ls 
#make sure you see uIamge6.plug and gentoo_sheeveplug_70M_selinux.jffs.  If not, go back to step 1
flash_eraseall -j /dev/mtd1
flash_eraseall -j /dev/mtd2
nandwrite -pm /dev/mtd1 /uImage.6plug
nandwrite -pm /dev/mtd2 /gentoo_sheevaplug_70M_selinux.jffs
reboot

6)  Interrupt the boot process and change your environment
Code:
set bootargs_root_nand 'root=/dev/mtdblock2 rw'
set setboot_nand 'set bootargs ${console} ${mtdargs1} ${bootargs_root_nand}  ${bootargs_end}'
set bootcmd_nand 'nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
set setbootcmd_nand  'set bootcmd ${bootcmd_nand}'
set bootnand 'run setboot_nand;run setbootcmd_nand;save'
save
run boottftp
reset

7)  You are going to see a whole bunch of selinux errors and audits flash by.  Ignore them.  Eventually you will arrive at a bootprompt.  Login is root/plugtop

Cool run the command modules_update

That should be enought to get you going. 

Logged

karurosu
Global Moderator
Full Member
*****

Karma: 0
Posts: 116



View Profile WWW
« Reply #2 on: April 15, 2009, 05:27:42 PM »

I was planning on using a sd for /usr do you think its possible?
Besides that is using tftp really necessary (using external storage)?

My plug is not here yet, but I want to put gentoo as soon as its here (I am not a big fan of ubuntu)
Logged

moshiach
Guest
« Reply #3 on: April 15, 2009, 05:34:15 PM »

The plug come spreinstalled with a working ubuntu installation.  If you want to move it to gentoo, you 'll need to setup a tftp and nfs server on another computer and follow the instructions above.  Once you have it booting from nand into gentoo THEN worry about getting it onto external storage (in fact as far asI'm concerned it's a must.)
Logged

jlpoole
Principal Software Engineer
Global Moderator
Jr. Member
*****

Karma: 2
Posts: 87

Principal Software Engineer -- Oracle Corporation


View Profile
« Reply #4 on: April 15, 2009, 09:51:20 PM »

I have Gentoo running, all from the USB (16GB) thumb drive. 

I used Windows (PuTTY) to connect, I did not have to use another Linux box.  The instructions changed last Friday evening at

 http://dev.gentoo.org/~armin76/arm/sheevaplug/install.xml

where they first had you using GIT to Marvell's repository; now the kernel is obtained from vanilla sources using emerge.  This was a breakthrough as the GIT to Marvells was not working (see my posts at:

http://forums.gentoo.org/viewtopic-t-749438-highlight-sheevaplug.html

Sadly, I am experiencing unscheduled reboots, and I had forgotten to manually set the date/time at start up and had files dated 2017.  I create a perl script to change any future dated files back 11 years and I'm in the process of testing the system's stability. 

Still haven't worked out the time clock, I'll post separately about that issue.
Logged

The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.

karurosu
Global Moderator
Full Member
*****

Karma: 0
Posts: 116



View Profile WWW
« Reply #5 on: April 15, 2009, 10:05:38 PM »

Thatís one awesome link Smiley
I canít wait to get a sheevaplug and start installing.

What are the problems you have found so far?
Logged

moshiach
Guest
« Reply #6 on: April 16, 2009, 11:37:56 AM »

That link to dev.gentoo.org is really nice.  I just rebuild my gentoo plug and it works perfectly.   A lot better (although slower) than using the included gentoo images.
Logged

rc3
Newbie
*

Karma: 0
Posts: 36


View Profile
« Reply #7 on: July 04, 2009, 05:36:56 PM »

Hi guys, tried to follow http://dev.gentoo.org/~armin76/arm/sheevaplug/install.xml and installed gentoo successfully into a 20G external usb driver, but when booting, I got  the following the booting just reset by itself:
Code:
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
.
.........................
........................
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
..................

3869250 bytes read
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
........................[b]undefined instruction[/b]
pc : [<90000004>]          lr : [<0061f938>]
sp : 005fd3ac  ip : 00000000     fp : 00000001
r10: 00690288  r9 : 006cf020     r8 : ad87587c
r7 : 1163662a  r6 : f27ffe38     r5 : 76010ac0  r4 : b04c030f
r3 : 0068897c  r2 : 0000296e     r1 : 00030d40  r0 : 00007e56
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

I have set the booting from usb as follows:
Quote
setenv bootargs_usb 'root=/dev/sda5 rootdelay=10'
setenv bootcmd_usb_init 'usb start; ext2load usb 0:1 0x0800000 /boot/uInitrd; ext2load usb 0:1 0x400000 /boot/uImage'
setenv bootcmd_usb 'setenv bootargs $(console) $(bootargs_usb); run bootcmd_usb_init; bootm 0x400000 0x0800000'
saveenv
When the autoboot is interrupted, I run
Code:
run bootcmd_usb
and got the above error.  The above error is from using the uImage_kwplug and sheevaplug.initramfs
 from the howto. I also tried 2.6.30 kernel that's running fine on my nand and 2GB mmc card, as well as the 2.6.30 downloaded from http://sheeva.with-linux.com/sheeva/
Could it be the problem of the uboot? Thanks in advance.

Logged

rc3
Newbie
*

Karma: 0
Posts: 36


View Profile
« Reply #8 on: July 05, 2009, 11:52:15 AM »

Just figured out there are 2 reasons that caused this problem:
1. (not sure this is relevant) I partitioned the HD into /boot (ext3) and root (ext4)
2. I used mkimage downloaded from http://computingplugs.com/files/mkimage.bz2

After changing to one root and one swap partition schema, I was able to boot the 2.6.30 kernel that I am using for the sd card and the nand. But locally-built kernels on Gentoo still can not boot (I got some kind of CRC errors while loading kernal image). After downloaded the SheevaPlug_U-Boot.zip and compiled mkimage, I no longer have the the problem booting into the system except this Unknown HZ value problem

http://ricochen.wordpress.com/2009/07/05/gentoo-on-sheevaplug-unknown-hz-value-problem/
Logged

karurosu
Global Moderator
Full Member
*****

Karma: 0
Posts: 116



View Profile WWW
« Reply #9 on: July 05, 2009, 07:31:21 PM »

The unknown HZ value is nothing important, as mentioned in your post, the problem is the procps and certain power states (it is related to the system tick), I applied the patches for the power save and it has pretty much dissappeared from my install (running gentoo 2.6.30-rc5 if I remember correctly).
Logged

rc3
Newbie
*

Karma: 0
Posts: 36


View Profile
« Reply #10 on: July 06, 2009, 05:07:06 PM »

Thanks for the info, karurosu. I am using 2.6.30.1 kernel (vanilla-sources), do you know where I can get the power stat patch?

 I solved the "no login prompt" problem by changing
Code:
s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
in /etc/inittab
into
Code:
s0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100

I think the reason why the default baud rate is set to 9600 instead of 115200 is because Gentoo runs on a number of ARM-based devices with sheevaplug being just one of them.
« Last Edit: July 06, 2009, 05:16:36 PM by rc3 » Logged

karurosu
Global Moderator
Full Member
*****

Karma: 0
Posts: 116



View Profile WWW
« Reply #11 on: July 06, 2009, 06:28:40 PM »

Here is it:
http://computingplugs.com/index.php/CPU_idle_patch_from_Orion

My sheevaplug is running 2.6.30-rc6, I havent bothered to update to the final or .1, I am just lazy, and as they say: "dont fix what isnt broken".

As of the no login, I think it was written on de gentoo guide posted above, since I have the same line on my inittab (and I didnt have your problem, so I probably added it when installing)

Btw, I disabled every other terminarl (except one) since most I only use ssh and screen.
Logged

rc3
Newbie
*

Karma: 0
Posts: 36


View Profile
« Reply #12 on: August 13, 2009, 02:53:32 PM »

Hi all,
I am using gentoo_sheevaplug_70M_selinux.jffs2 (with NAND as the only storage) and it's been great except I can't install packages such as mysql, netdate, ntp (also tried ntpd)

I got the following when trying to install mysql
Code:
PlugGentoo ~ # emerge --ask --getbinpkg mysql

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "dev-db/mysql-init-scripts".
(dependency required by "dev-db/mysql-5.0.60-r1" [binary])
(dependency required by "mysql" [argument])

for netdate (same problem with ntp or ntpd) I got
Code:
PlugGentoo ~ # emerge --ask --getbinpkg netdate

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "netdate".
I have no clue how to get the above packages installed. [ I do have packages such as vim, php, apache2 installed just fine. ]
Logged

Pages: [1]
Print
Jump to: