• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Reinstallation problem - PLEASE HELP  (Read 3947 times)
lordvader34
Newbie
*

Karma: 0
Posts: 7


View Profile
« on: June 26, 2009, 10:34:23 PM »

I am new on this, it's been several years since I touch the last linux box.....

I loved the sheevaplug when I read about it, but I totally screwed up and dunno how to fix it.

I bought the plug and connected to the console, as I thought the OS may have been outdated I deleted the MTD1 and 2....

When I tried to reinstalled I get to messages, following up the instructions to install an Ubuntu image the plug it hangs and I get the following error.

Starting kernel ...

Uncompressing Linux.............................................................
....................................................................... done, bo
oting the kernel.


The installation I am using for tftp is the following.

I boot using a Gentoo image

Marvell>> setenv ipaddr 10.0.0.3
Marvell>> setenv serverip 10.0.0.116
Marvell>> setenv arcNumber 2097
Marvell>> setenv mainlineLinux yes
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> reset
Marvell>> tftpboot 0x8000000 sheevaplug.initramfs
Marvell>> tftpboot 0x2000000 uImage_kwplug
Marvell>> setenv bootargs console=ttyS0,115200 root=/dev/ram rw
Marvell>> bootm 0x2000000 0x8000000



-sh-3.2# flash_eraseall -j /dev/mtd1
-sh-3.2# flash_eraseall -j /dev/mtd2

ftpget the files uImage.sheeva.20090319 ubuntu-9.0.5.Release.jffs2

-sh-3.2# nandwrite p /dev/mtd1 uImage.sheeva.20090319
-sh-3.2# nandwrite /dev/mtd2 ubuntu-9.0.5.Release.jffs2
-sh-3.2# mkdir mnt1
-sh-3.2# mount -t jffs2 /dev/mtdblock2 /mnt1

Marvell>> setenv bootargs 'console=ttyS0,115200 mtdparts=nand_flash:0x400000@0x100000(uImage)ro,0x1fC00000@0x500000(
rootfs)rw root=/dev/mtdblock2'
Marvell>> saveenv
Marvell>> setenv bootcmd 'nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
Marvell>> saveenv

This is the startup log
****************************************
Marvell>> reset

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Mar  2 2009 - 12:16:00) Marvell version: 3.4.16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x400000

Reading data from 0x4ff800 -- 100% complete.
 4194304 bytes read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2009-03-19   9:18:16 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2106696 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
....................................................................... done, booting the kernel.



I have been strugling with this for the last week. PLEASE HELP !!!
I want to install any distritubion to make it work. Can someone provide a detailed instruction on how to proceed on installing reinstalling ANY distribution on the plug? THANKS!!!
Logged

restamp
Global Moderator
Sr. Member
*****

Karma: 4
Posts: 273


View Profile
« Reply #1 on: June 26, 2009, 11:19:06 PM »

You don't really say what other computers you have lying around.  If you have a Linux box, and can get it to talk to your Plug via the mini-USB connector, you might try:

http://www.openplug.org/plugwiki/index.php/SheevaPlug_Installer

after carefully reading the thread:

http://plugcomputer.org/plugforum/index.php?topic=355.0

It's fairly straightforward and will load a very recent version of Ubuntu onto the NAND.

However, since you have a working Uboot, you have other options.  For instance, you might also want to take a look at:

http://computingplugs.com/index.php/Booting_entirely_off_an_external_USB_device

Good luck!
Logged

lordvader34
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #2 on: June 27, 2009, 12:17:51 PM »

Thanks for the help.

I was trying from a Windows box to install both Ubuntu and Gentoo distributions.

Now I installed an Ubuntu, run the Alpha6 installation as you recommended but still no luck
Here is the boot log

Marvell>> reset

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (May 13 2009 - 13:10:52) Marvell version: 3.4.16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CF100

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x400000

Reading data from 0x4ff800 -- 100% complete.
 4194304 bytes read: OK
## Booting image at 00800000 ...
Bad Magic Number
Marvell>>
Marvell>>
Marvell>>
Marvell>>
Marvell>>

Any suggestion? Thanks,
Logged

restamp
Global Moderator
Sr. Member
*****

Karma: 4
Posts: 273


View Profile
« Reply #3 on: June 27, 2009, 12:46:36 PM »

Well, looks like you were successful at installing the new Uboot and environment, but the Ubuntu install somehow failed.  This happened to me, too, and it turned out to be that the "usb start" command didn't seem to work if it had been run before since the Plug was initialized -- you get one shot at it.  What did work for me is to reset the Plug -- at the Marvell>> prompt, either type "reset" or stick a paperclip in the reset hole (which is what I did).  Then, hit a key several times to break to the Marvell>> prompt w/o letting it autoboot.

Next, make sure (1) you've edited the uboot-custom.txt file in the installer directory to reflect your Plug's MAC address, (2) got a pristine FAT32 formatted thumb drive, (3) copied everything in the installer directory to the thumb drive, and (4) plugged the thumb drive directly into the plug.

Now, rerun the installer.

Note: Leave the monitor (PuTTY or the minicom), which should still be at the Marvell>> prompt, up and running while the installer runs.  It will show what's happening during the OS-install phase, and this might prove helpful if it fails again.

Good luck.
Logged

lordvader34
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #4 on: June 27, 2009, 12:49:15 PM »

Thanks, the problem of leaving the console opened is that I could not find the port to configure the minicom on the ubuntu side. for that reason I have the ubuntu and in other hand a laptop with the Hypertem connection to the plug console.

Is there a way to find the port on the Ubintu? Thanks, Marcelo
« Last Edit: June 27, 2009, 01:00:35 PM by lordvader34 » Logged

lordvader34
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #5 on: June 27, 2009, 02:33:18 PM »

I found the problem seems to be that on the boot part the USB the uImage and initrd were not found. He goes the log.

Thanks,

Saving Environment to NAND...
Erasing Nand...Writing to Nand... done

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (May 13 2009 - 13:10:52) Marvell version: 3.4.16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CF100

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
reading uImage

** Unable to read "uImage" from usb 0:1 **
reading initrd

** Unable to read "initrd" from usb 0:1 **

NAND erase: device 0 offset 0x100000, size 0x400000
Erasing at 0x4e0000 -- 100% complete. Cleanmarker written at 0x4e0000.
OK

NAND write: device 0 offset 0x100000, size 0x400000

Writing data at 0x4ff800 -- 100% complete.
 4194304 bytes written: OK
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
## Booting image at 00800000 ...
Bad Magic Number
Marvell>>
Logged

restamp
Global Moderator
Sr. Member
*****

Karma: 4
Posts: 273


View Profile
« Reply #6 on: June 27, 2009, 06:54:27 PM »

It found the thumb drive.  I'd check two things:

(1) Are you sure that all the contents of the installer directory are copied to the root directory of the thumb drive.  (It is incorrect to have an "installer" directory on the thumb drive and the contents in a subdirectory.)

(2) Are you sure the thumb drive is formatted with a FAT32 partition.  Often they come formatted with FAT16, which is claimed not to work, although I haven't tried it.

Keep at it.  I think you are getting close, and at this point the problem must be something simple.
Logged

lordvader34
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #7 on: June 27, 2009, 06:59:42 PM »

I put the files on the instaler directory on the pen drive root directory. All of them were there, I copied them to the HD, edited the uboot-custom.txt, changed the MAC address and copied to the pen drive.

I tried formating on FAT32 and FAT and none of them worked.

This is driving me crazy, I changed the approach an now trying to boot from tftp to check what happens  Undecided . I keep you posted. THANKS!!
« Last Edit: June 27, 2009, 08:10:25 PM by lordvader34 » Logged

lordvader34
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #8 on: June 28, 2009, 04:51:08 PM »

Finally got it working using the boot file "ce_uboot_v1.0.bin"

I got it from this post.

http://plugcomputer.org/plugforum/index.php?topic=422.0

Restamp, thanks a lot for your support!!

Best, LV
Logged

ianjb
Jr. Member
**

Karma: 0
Posts: 65


View Profile
« Reply #9 on: June 28, 2009, 06:24:16 PM »

LV,

Sounds like you're in the same place as me. IT boots using the CE (Cloud Engines) uboot but doesn't boot with the Marvell uboot. You may notice that the CE uboot doesn't have any USB commands. I'd be interested to hear if you get a Marvel Uboot to work and how you do it.

Regards,
Ian
Logged

rooster
Guest
« Reply #10 on: June 29, 2009, 08:23:29 AM »

I have managed to use FAT32/16 with the installer and it works fine, BTW the current uboot version supports FAT16 (FAT32 support will be added soon).

What kind of USB storage did you use? HDD/DOK, I used DOK (<4G) and had no issue, also try to use putty not minicom (minicom sends some characters that might interfere with installer openOCD NAND burning)
Logged

Rabeeh Khoury
Administrator
Full Member
*****

Karma: 5
Posts: 218


View Profile
« Reply #11 on: June 29, 2009, 01:49:30 PM »

rooster - the u-boot with the alpha-6 already includes (a bit buggy) SD card support and FAT32.

lordvader34 - can you please look at my answer to Mike on this and report back if it helped -

http://plugcomputer.org/plugforum/index.php?topic=355.msg2698#msg2698

He had similar problem like yours.
Logged

lordvader34
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #12 on: June 29, 2009, 07:04:19 PM »


mike
Newbie
*
Posts: 7


View Profile Personal Message (Offline)
   
   
Re: Sheevaplug installer - alpha-6 release - Testers needed
Reply #59 on: Today at 02:01:33 PM
   Reply with quoteQuote
Hi,

Ouch...  Dumb mistake on my part.... I added the sdb1 partition and all works great now.

For those who might find it helpful, here's what I did:

1.) fdisk /dev/sdb to set up the device
2.) mkdosfs /dev/sdb1 to create the partition
3.) mount the /dev/sdb1 to a directory I created (/media/disk)
4.) copy in the content of the install directory (from the alpha 6 download) to the newly created /media/disk
5.) unmount the usb
6.) attach the usb to the plug
7.) start up putty
8.) reboot the plug

And it all works.

Rabee, do you refer to this solution? this may work, will try it. Thanks.
Logged

Pages: [1]
Print
Jump to: