• Home
  • Help
  • Search
  • Login
  • Register
Pages: 1 2 [3] 4 5
Author Topic: Debian running on the plug  (Read 18544 times)
Gothnet
Newbie
*

Karma: 0
Posts: 33


View Profile
« Reply #30 on: May 10, 2009, 04:25:03 AM »

Any thoughts on what might be wrong there? Does the debian kernel support the sheevaplug's SDIO device? Can supply more details if they would help.

It does support the sheevaplug's SDIO device, but you have to "modprobe mvsdio" manually...

That's a bit of a pain... but thanks, I'll give it a go.
Logged

Gothnet
Newbie
*

Karma: 0
Posts: 33


View Profile
« Reply #31 on: May 10, 2009, 05:39:56 AM »


It does support the sheevaplug's SDIO device, but you have to "modprobe mvsdio" manually...

Doesn't seem to help, I just get a file in /dev/.udev/failed called \x2fdevices\x2fplatform\x2fmvsdio that would seem to indicate that something hasn't worked properly.

I tried adding sd_mod too, in case it helped, but it didn't seem to, and there aren't many ko files to choose from... Must figure out how to make my own initrd's at some point.
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #32 on: May 10, 2009, 11:25:08 AM »

For the record, you only have to modprobe the module manually right now because of a kernel bug; I reported this issue the other day and there's a fix already that I'll put in the next Debian kernel.
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #33 on: May 12, 2009, 04:44:37 AM »

P.S. Is it possible to give me the u-boot commands in order to revert (If I want it) the booting to the internal nand flash?. Thanks in advance.

Can you try this:

Code:
setenv bootargs_root 'root=/dev/mtdblock2 ro'
setenv bootcmd 'nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
setenv mainlineLinux no
saveenv
reset
Logged

mikekgr
Newbie
*

Karma: 0
Posts: 14


View Profile
« Reply #34 on: May 14, 2009, 05:24:18 AM »

P.S. Is it possible to give me the u-boot commands in order to revert (If I want it) the booting to the internal nand flash?. Thanks in advance.

Can you try this:

Code:
setenv bootargs_root 'root=/dev/mtdblock2 ro'
setenv bootcmd 'nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
setenv mainlineLinux no
saveenv
reset



I tried but there is something wrong with the nand's image most possible. See bellow:
(is there an easy way to re put nand image inside the nand as it was when I first running?)
===== QUOTE =====
Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Feb 24 2008, 16:35:15.
Port /dev/ttyUSB1

                 Press CTRL-A Z for help on special keys

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
Marvell>> setenv bootargs_root 'root=/dev/mtdblock2 ro'
Marvell>> setenv bootcmd 'nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
Marvell>> setenv mainlineLinux no
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> reset

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

U-Boot 1.1.4 (Mar 19 2009 - 16:06:59) Marvell version: 3.4.16

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

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>>
=====UNQUOTE =====
Logged

bjohv052
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #35 on: May 15, 2009, 01:44:44 AM »

Code:
Marvell>> run bootcmd
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... Device NOT ready
   Request Sense returned 05 24 00
1 Storage Device(s) found
** Bad partition 1 **
** Bad partition 1 **
## Booting image at 00400000 ...
Bad Magic Number
Marvell>>

I've checked and tried everything twice. My layout is exactly as described by tbm, but with different sizes of the partitions. I'm running ext3. Should I just try with a different usb stick (I don't have one right now)?
Logged

bjohv052
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #36 on: May 15, 2009, 03:07:32 AM »

Never mind. Another usb stick solved the problem.
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #37 on: May 15, 2009, 03:48:09 AM »

Never mind. Another usb stick solved the problem.

From the log you pasted, it seems u-boot had problems initializing your usb stick so it failed to load the kernel (look for "Device NOT ready" and partition not found).
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #38 on: May 20, 2009, 01:45:39 AM »

BTW, I update the instructions to cover installations to SD cards: http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html
Logged

xyzzy
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #39 on: June 01, 2009, 06:19:10 PM »

BTW, I update the instructions to cover installations to SD cards: http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html


I've tried following those instructions for installing to an SD card (have tried this with two different cards), and my SheevaPlug boots happily enough, but after about ten minutes I start getting MMC errors and linux gets very very sad.  Has anyone else had success with that debian image on an SD card?
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #40 on: June 02, 2009, 12:29:35 AM »

I've tried following those instructions for installing to an SD card (have tried this with two different cards), and my SheevaPlug boots happily enough, but after about ten minutes I start getting MMC errors and linux gets very very sad.  Has anyone else had success with that debian image on an SD card?

What errors do you get exactly?  Can you show the logs.
Logged

xyzzy
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #41 on: June 02, 2009, 03:36:44 AM »

What errors do you get exactly?  Can you show the logs.

Oddly, now that I try to reproduce this problem a third time to grab the logs, it fails to recur.  I'm able to write 400MB of /dev/urandom to files in /tmp without getting MMC errors, whereas previously they just started within 10-15 minutes of booting.  If I see it again I'll be sure to get the logs.
Logged

StarFishes
Newbie
*

Karma: 0
Posts: 25


View Profile
« Reply #42 on: July 02, 2009, 03:06:49 AM »

Hello everybody,

I have a systematic question referring to the installation of Debian on the Plug: In another article (http://www.computingplugs.com/index.php/Booting_entirely_off_an_external_USB_device, thanks to Kenny) there is a way described to run the preinstalled version of Ubuntu completely from an external drive. Due to the fact that I've encountered many problems with Ubuntu (some configutations are simply ridiculous and nonsense) I really want to install Debian. In the article the Kernel is copied onto a separate partition. Can you tell me if it was a good idea to do the same with the Debian installation and if yes, how to do it?

Thank you very much,
StarFishes
Logged

xyzzy
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #43 on: July 02, 2009, 04:42:54 PM »

Oddly, now that I try to reproduce this problem a third time to grab the logs, it fails to recur.  I'm able to write 400MB of /dev/urandom to files in /tmp without getting MMC errors, whereas previously they just started within 10-15 minutes of booting.  If I see it again I'll be sure to get the logs.

Opened up my sheevaplug.  The cable between the main board and the dev (sd/usb console) board was plugged in at an angle to the main board.  Reseating the cable seems to have made the problems go away.
Logged

davall
Newbie
*

Karma: 0
Posts: 26


View Profile
« Reply #44 on: July 03, 2009, 03:04:34 AM »

@StarFishes

The best way to get debian lenny on your plug is to follow Martins (tbm) instructions.
Very easy for usb-disks too. Read the instructions carefully.
A recent (experimental) kernel for the kirkwood architecture can be found here: http://people.debian.org/~tbm/armel/kernel/r13799/
This kernel is running fine on my plug for about 2 weeks.

Good luck, davall
Logged

Pages: 1 2 [3] 4 5
Print
Jump to: