• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Getting Startted with eSata Multi Boot  (Read 3777 times)
alfa145
Newbie
*

Karma: 0
Posts: 8


View Profile
« on: February 06, 2011, 03:12:33 PM »

So I recently came across a link to a plug computer, did some reading and got a Sheeva Multi Boot - eSata and MMC model from Ebay.  I have powerd it up, given it an IP to get it on the network and test it works OK.

I need more storage so is it best to use a USB memory or th SDHC in terms of speed?

It has JFFS2 instead of UBIFS which leads me on to my first question - I cannot find a decent guide which explains for a new user how to convert to UBIFS - does it replace uboot, or is the file system on the NAND to boot Ubuntu (or other OS).

I want to preserver the NAND so will use USB or SD, so I presume it is the card which is formatted with UBIFS?

Can anyone point me in the right direction for any guides, etc.?

Thanks
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #1 on: February 06, 2011, 04:01:55 PM »

Quote
eSata and MMC model from Ebay

If it is a Esata sheevaplug ?, then I would say the best method is to use the esata port , which is way faster than the usb or nand or sd card.
Logged

alfa145
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #2 on: February 06, 2011, 04:18:54 PM »

Thanks, I missed that vital piece of information, it is an esata Sheeva.

I know esata is quicker than usb/sd card, but I wasnt sure on the best way to do this.  Intended use is mail (imap,smtp), anti spam (assp), open vpn, local network file storage, web server.
I was planning to have all of the server services (including web files and emails) stored on flash memory - usb or sd card, then files for the samba/nfs just on the esata hdd, so it can spin down when not in use.

That was my thinking, but maybe I would do better to run the lot from the esata hdd?
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #3 on: February 06, 2011, 04:51:02 PM »

Yep , run the whole lot off the Esata drive.

BUT BUT BUT , You may have to compile your own kernel .
The esata module need to be built into the kernel where http://sheeva.with-linux.com/sheeva/ kernels the esata module is not built in , so works only for sd-card.

If you set the drive up for a sd card sized rfs partition and have the rest mounted for your data .
You can boot from the nand and backup the whole rfs to sd-card for backup.

Logged

alfa145
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #4 on: February 07, 2011, 07:17:39 AM »

OK, makes sense.  So, where to find how to build the esata module into the kernel?

I guess if I follow this guide (http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html?) I can't go too far wrong, right?  Undecided



Logged

newitjames
Newbie
*

Karma: 2
Posts: 26



View Profile WWW
« Reply #5 on: February 07, 2011, 07:23:57 AM »

I have a ready made kernel v2.6.36.2

http://www.newit.co.uk/forum/index.php/topic,796.0.html

or what you need to change to build your own if you wish.

newitjames
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #6 on: February 07, 2011, 08:36:48 AM »

o.k bit to read on making the file root system and kernel are :-

http://www.newit.co.uk/forum/index.php/topic,285.0.html
http://www.newit.co.uk/forum/index.php/topic,271.0.html
http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html
http://www.computingplugs.com/index.php/Building_a_custom_kernel
http://plugcomputer.org/plugwiki/index.php/Compiling_Linux_Kernel_for_the_Plug_Computer

i`ve started to native compile the kernel , you only need to install "uboot-mkimage make build-essential ncurses-dev"

Then it`s a case of :-
make clean
make kirkwood_defconfig
make menuconfig
make uImage
make INSTALL_MOD_PATH=.. modules_install



Logged

alfa145
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #7 on: February 07, 2011, 12:58:10 PM »

Thanks Peter and James -plenty to get reading whilst waiting for my hdd to arrive - probably best as quite busy at work this week so won't have much time to devote, but hope to have a little play at the weekend Smiley
Logged

alfa145
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #8 on: February 10, 2011, 04:40:37 PM »

Help!  I've broken it...
I tried installing following: http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html?
uImage: http://www.newit.co.uk/forum/index.php/topic,796.0.html
initrd: http://ftp://ftp.debian.org/debian/dists/testing/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrd

I uploaded uimage & initrd via TFTP following the post above.
Set arcnumber, mainlinelinux to yes

setenv bootargs console='ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most;bootm 0x00800000 0x01100000'

saved, reset...

NAND read: device 0 offset 0x1000000, size 0x5000000
Reading data from 0x601f800 -- 100% complete.
 83886080 bytes read: OK

## Booting image at 08000000 ...
Bad Magic Number


I tried with uboot 090903 and uboot-3.4.27.bin

printenv:
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethaddr=00:50:43:39:27:15
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
bootargs=console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most;bootm 0x00800000 0x01100000
bootcmd=nand read.e 0x800000 0x100000 0x300000; bootm 0x800000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes


The only thing I am guessing at is the install guide doesn't list the bootcmd command - does this need to be updated?

Thanks
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #9 on: February 10, 2011, 04:53:58 PM »

I left nand well alone and did my set ups on the sd card to start with, and move the image when I got it right to the esata drive.

From :- bootcmd=nand read.e 0x800000 0x100000 0x300000; bootm 0x800000 - you are still booting from the nand.

by the way if you want to put a image on the sd card try ESIA , which I`ve been playing with the last couple days.
if you are runninmg windows 7 and maybe vista , don`t run the extra usb drivers it asks to inistall .

It is fun when it kills all usb devices and you are on a usb keyboard and mouse I can tell you.
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #10 on: February 11, 2011, 01:29:42 AM »

I tried installing following: http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html?
uImage: http://www.newit.co.uk/forum/index.php/topic,796.0.html
initrd: http://ftp://ftp.debian.org/debian/dists/testing/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrd

I uploaded uimage & initrd via TFTP following the post above.
Set arcnumber, mainlinelinux to yes

setenv bootargs console='ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most;bootm 0x00800000 0x01100000'

saved, reset...

The only thing I am guessing at is the install guide doesn't list the bootcmd command - does this need to be updated?

You have to follow the install guide exactly.  After loading the installer to RAM via TFTP and setting bootargs, you have to do "bootm 0x00800000 0x01100000" to execute the installer.  Please read http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html again.

Also, no idea why you're trying to use a different kernel than that listed on the install guide.
Logged

alfa145
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #11 on: February 12, 2011, 04:49:56 AM »

You've nailed it exactly - I thought when applying uimage/uinitrd it was pernament, so when making other changes, rebooting etc I didn't realise that you would need to load them again.  In my defence I was trying it when extremely tired, I think stepping away from it and trying it again with a fresh mind helped - I followed the guide and it worked perfectly.


I did try the later uboot (3.4.27?), but it didn't find my esata disk.  Rolling back to 090903.bin did work (yeah - just like it says in the guide  Roll Eyes )

As for why I was trying to use a different kernel - no reason other than it wasn't working so I tried changing variables - when googling there is lots (mis)information, or it sometimes doesn't apply as it is outdated, so as a newb to the sheevaplug it just helped confuse matters further :/

Anyway an update: last night I followed the guide again, very precisely, and it worked - now booting from esata with squeeze  Smiley

So chaps - thanks for all the help, no doubt I'll be back soon with more questions Smiley
Logged

Pages: [1]
Print
Jump to: