Kurobox NAS-Central Forums

Welcome to the Kuro Community
It is currently Fri Jul 20, 2018 8:18 am

All times are UTC-06:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page Previous 1 2
Author Message
 Post subject:
PostPosted: Fri Aug 25, 2006 1:35 am 
Offline

Joined: Thu Aug 24, 2006 12:36 am
Posts: 11
Location: Murcia (Spain)
Well my problem are ending

I´m edited with vi correctly an the kernel 2.6.15 installed OK

I need an scripts to install/remove MLdonkey and other aplications.

So that they are the patches of the image v5 of the page of unloadings? Thanks


Top
   
 Post subject: Great post. One problem
PostPosted: Tue Sep 12, 2006 5:16 am 
Offline

Joined: Mon Feb 27, 2006 12:30 am
Posts: 1
Hey, thanks for the great post. You may want to fix the link for image part3.rar. My downloader missed that file and when I check I noticed that the link is missing the h in http.


Top
   
PostPosted: Fri Jun 01, 2007 7:46 pm 
Offline

Joined: Sat Apr 30, 2005 10:21 am
Posts: 16
husky99 wrote:
I thought that I would right up a little how-to that contains all of the information that I used to get Sylver's image running and update the kernel to 2.6.15. I've taken from other guides posted on the wiki and other threads on this BB to create one comprehensive guide.

This process assumes that you have the KuroBox? in "EM" mode and that you have used "telnet" to connect to the box.
Run mfdisk in interactive mode


mfdisk -c /dev/hda

Create partition 1 ("/") as 2-10 GB
To use Sylver's image you need at least 2 GB. The extracted the tar file takes about 1.2GB. The tar is about 350K. I used 4 GB


Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-48641, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-48641, default 48641): +4096M

Create partition 2 (swap) as 512 MB

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (132-48641, default 132):
Using default value 132
Last cylinder or +size or +sizeM or +sizeK (132-48641, default 48641): +512M

Set the System ID of the swap partition (partition 2) to "Linux Swap"

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap)

Create partition 3 ("/mnt") as the remainder of the disk. Use the default, which will very depending on your disk size
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (198-48641, default 198):
Using default value 198
Last cylinder or +size or +sizeM or +sizeK (198-48641, default 48641):
Using default value 48641

Write the new partition table and exit

Command (m for help): w

The partition table has been altered!

Syncing disks.

Now that you have created and saved the partitions, ie fdisk, you need to use the mkfs to format each partition

mkfs -j /dev/hda1

mkfs -j /dev/hda3

mkswap /dev/hda2

Now that you have formated each partition, you need to make it available by mounting it

mount /dev/hda1 /mnt

You might ask yourself, as I did, why mount hda1 as mnt? What about hda3? Don't I have to mount that too? Well that magic happens when you leave EM mode.. /mnt becomes / and hda3 becomes /mnt, cool huh?
Download the image @

http://kuroboxhg.free.fr/files/sylver_image/imagev500.part1.rar
http://kuroboxhg.free.fr/files/sylver_image/imagev500.part2.rar
http://kuroboxhg.free.fr/files/sylver_image/imagev500.part3.rar
http://kuroboxhg.free.fr/files/sylver_image/imagev500.part4.rar
http://kuroboxhg.free.fr/files/sylver_image/imagev500.part5.rar
http://kuroboxhg.free.fr/files/sylver_image/imagev500.part6.rar
http://kuroboxhg.free.fr/files/sylver_image/imagev500.part7.rar
http://kuroboxhg.free.fr/files/sylver_image/imagev500.part8.rar
Download the kernel @ http://www.kurobox.com/sylver/image/patch/kernel2.6.15.6.tar.gz
I used winrar to merge the rar files into one tar file imagev500.tar.gz. Next ftp the image and kernel tar file to /mnt
Then untar the image and kernel tar file


cd /mnt
tar xvfz imagev500.tar.gz
tar xvfz kernel2.6.15.6.tar.gz

Remove both tar files to save space.
Now that the package is extracted lets set everything so we can leave EM mode

write_ok

reboot

When your Kuro reboots you should notice that it is no longer in EM mode. Also you should also see your filesystems changed up like I mentioned earlier

[root@KURO-BOX:/]$\ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 4.0G 1.2G 2.7G 31% /
/dev/hda3 183G 33M 174G 1% /mnt

Now lets update the kernel. Sylver made this very easy to do
cd to /etc/init.d and vi the bootnewos file


cd /etc/init.d
vi bootnewos

This will open up a vi text editor. Check the last line:

# bootnewos.sh Boots OS if needed.
#

. /etc/kernel

# detect current kernel
BOOT_NEW_OS=`uname -r | grep ${KERNEL_TO_LOAD}`

if [ "${BOOT_NEW_OS}" ] ; then
echo kernel $KERNEL_TO_LOAD already loaded !
else
echo loading kernel $KERNEL_TO_LOAD
/bin/sync
/bin/sleep 1
/bin/sync
/sbin/insmod /boot/loader.o kernel=/boot/vmlinux-2.6.15-kurobox
fi

Change kernel=/boot/vmlinux-2.6.15-kurobox to
kernel=/boot/vmlinux-2.6.15.6-kuroboxhg if you have a HG Kuro or to
kernel=/boot/vmlinux-2.6.15.6-kurobox if you have a non-HG
Save the file and cd to /scripts


cd /scripts

Now run set_kernel2.6.sh with the install parameter and reboot

./set_kernel2.6.sh install

reboot

When your Kuro restarts check the top of the screen when you telnet in

Kuroutoshikou KURO-BOX/HG (IESHIGE)
Linux/ppc 2.6.15.6-kuroboxhg

Success


Is this the latest on Slyver's image? Isn't 2.6 outdated?

EB


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page Previous 1 2

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited