• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1] 2
Author Topic: Problems with booting shevaplug / installing debian  (Read 5639 times)
phampson
Newbie
*

Karma: 0
Posts: 32


View Profile
« on: June 03, 2010, 07:10:16 AM »

Hello

I bricked the shevaplug by installing the wrong file as uboot. I got around this and the plug now boots. However when connected to the shevaplug, after it says uncompressing  the kernel it prints garbage to the screen. Eventually it stops. After it stops I can login to the plug using putty and its ip address. Before I bricked it was booting correctly and the console was functioning

However I really want to get another version running which meets the requirements of the application. Ive been following the procedure to install to the sdcard as below.

 http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html

Ive tried both lenny and squueze and the result is the same. When i run the bootm command I get


 print bootargs
bootargs=console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most
Marvell>> bootm 0x00800000 0x01100000
## Booting image at 00800000 ...
   Image Name:   Debian kernel
   Created:      2010-02-12   1:37:09 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1811896 Bytes =  1.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   debian-installer ramdisk
   Created:      2010-02-12   1:37:09 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    2736441 Bytes =  2.6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

And then garbage on the screen and thats it. Cant login to ip address

I was going to try and install to the plug directly using

http://plugcomputer.org/plugwiki/index.php/Installing_Debian_To_Flash

However dont really want to do that yet if I just end up again with the garbage on the screen.

Any ideas. Ive attached the result of printenv from uboot. Would be happy initially to get it back to how it came booting ubuntu without the garbage to the console. Then believe the debian install may work.

Thanks

Paul


* printenv.txt (2.32 KB - downloaded 146 times.)
« Last Edit: June 03, 2010, 07:13:37 AM by phampson » Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #1 on: June 03, 2010, 07:48:46 AM »

Have you try to take out the "n8" from "console=ttyS0,115200"?

I am not sure that is need in the bootargs.
Logged

Good Luck Smiley

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #2 on: June 03, 2010, 07:53:44 AM »

same thing that looks odd, never used it. try without the n8
Logged

phampson
Newbie
*

Karma: 0
Posts: 32


View Profile
« Reply #3 on: June 03, 2010, 08:42:14 AM »

Hi

The n8 i assume tells it, its 8 bit and no parity. Forgetting trying to install debian the original console setting didnt have it in and still gives the garbage. So wouldnt expect it to make a difference for the install attempts.
The final step in the install sets the console to ttyS0,115200 and set bootcmd etc. However havent run them yet as I dont think the install completes as its waiting for input about partitioning which never gets given.
Logged

phampson
Newbie
*

Karma: 0
Posts: 32


View Profile
« Reply #4 on: June 07, 2010, 02:31:42 AM »

Bump, does anyone have any idea what is causing the linux boot message to comes out as garbage on the console. If theres any interaction in an install it stops it working.

Logged

DubYa
Newbie
*

Karma: -1
Posts: 7



View Profile
« Reply #5 on: June 07, 2010, 05:10:44 AM »

Bump, does anyone have any idea what is causing the linux boot message to comes out as garbage on the console. If theres any interaction in an install it stops it working.



phampson;

Just an idea. Maybe the serial port setup is not correct for some reason?

Does anything appear normal when it starts putting text to the screen?

If not then I strongly suspect it is a serial setting.

I am as new as it gets on the Plug but I tend to approach "issues" with it from my common ground of basic hardware or basic Operating system knowledge.

I had a similar issue with my Linsys Slug and in the end that was a bad port on my laptop [it couldn't reliably do high speed connections]. Simply using another computer fixed that.

Just FYI.

Good Luck with it.

Tom
Logged

Sol, 3rd Rock, North American near the Middle Coast 4318'00N

phampson
Newbie
*

Karma: 0
Posts: 32


View Profile
« Reply #6 on: June 08, 2010, 02:46:10 AM »

Thanks for the reply. Im actually using another computer now. Im certain its not the serial connection as uboot works fine, its only after its loaded the kernel and starts the linux boot that the rubbish is put on the screen. It seems that its displaying the normal linux boot messages wrongly. The plug does boot. However I cant update it as theres no way to answer any interactive questions. Plus of course the console wont work for anything other than uboot.



Logged

phampson
Newbie
*

Karma: 0
Posts: 32


View Profile
« Reply #7 on: June 10, 2010, 02:56:25 AM »

Right the problems with the plugs have been fixed.

I installed the ESIA installer. I think the plug was fixed after running resetenv, reset and then running a uboot reflash followed by an install of debian. There seems to be a bug in the installer which means that it get stuck at 8%. However it actually does carry on and install correctly. It took me awhile before I found out it was actually doing the install and not just stuck. So Im a happy bunny at the moment.

Thanks for all the replies / suggestions / help. Special thanks to rooster who has answered a few emails while on holiday.

Paul
Logged

js4
Newbie
*

Karma: 0
Posts: 16


View Profile
« Reply #8 on: July 16, 2010, 02:57:17 PM »

I'm having the same issue. My rootfs worked fine on the older models, but I got 12 new sheevaplugs and now I have this issue with al of them. I contacted globalscale about the issue and they said the CPU has changed. I'm thinking I need to use a differen't kernal now.
Logged

js4
Newbie
*

Karma: 0
Posts: 16


View Profile
« Reply #9 on: July 19, 2010, 01:51:55 PM »

I created a rootfs.tar.gz from the Unbuntu file system that comes with the new plugs and re-installed it onto the same plug using the sheevaplug installer and the same uboot ver, but the console still showed garbage characters. I'm at a loss; any help would be great!
Logged

tylernt
Jr. Member
**

Karma: 2
Posts: 56


View Profile
« Reply #10 on: July 19, 2010, 02:22:35 PM »

Garbage on bootup is likely the wrong serial baud rate. Are you using 'console=ttyS0,115200' in uBoot?
Logged

js4
Newbie
*

Karma: 0
Posts: 16


View Profile
« Reply #11 on: July 19, 2010, 02:29:21 PM »

Yeah, the garbage happens only when it loads the rootfs.
Logged

js4
Newbie
*

Karma: 0
Posts: 16


View Profile
« Reply #12 on: July 19, 2010, 02:37:28 PM »

Here is an example:

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.30.2
   Created:      2009-07-23   1:53:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2620440 Bytes =  2.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
$q+eug+B,Z(QWY4.da1-QP*EJeugA+& $
R       !+
1)Y,f4RNYFi,6#Bb7I7+bLj3@/KV21U]6hkJ+P+yX,)f.l
)()
      A3WYPiizQ7;P
                        E4-$fAsW5kFm1+t-JA(kqje1
                                                     nqP+IwqEQ3UU
                                                                      E4-Bb,+3WA{I2fU"j5+

                                                                                            B|gI4eP7
                                                                                                        d0wTGQ8.]yw7;Xw1*uBZ$VI:n5/GA45gewh=F2YB/

A:xg}6uX.
             B,
               2,      b9*O1$
Y
  a,
Y,     @wi2rUi0g]wp.C~7-jAzwi2 1'KQr$v%/%u$T`(U+QIPe5G4-x
                                                                           5dbY%q8'U2~6GI\G_9,KYw.Wm5
                                                                                                           bXPI6=V3WAtb2
                                                                                                                              $]zVWe(+V6Z(ѧI1<i2 Z
                                                                                                                                                   F-i1U2|w1A4q1+KQqVBKb IqV@+P)F0[)q8'U"j5q^(Z%0IZJ"BY&8
A4PVYwu%cR0U
             z,E4-^Z)]0-f2\IA8,F8]u-BVYs/dY)0y]{+9$^1yd0BWr6$Uqe_,@)FT(vI1FQ,UEz,]3(*eC=(w]xexfJ,
                                                                                                                   ]sWQ(pv'X)&
                                                                                                                                 ]x67Q1(U+QIe5GY$!).Jg8wA{VIK%IzI:7q7W-A5A3bX(Ti1$f      ()M5Ke1)+]x7]4(*uQ4.2ZG4U;wIqb
                                   b"JYiixi1)cD-KZ<6S7I7;j aEv7$$&I:7Iw.P
                                                                                        E4-rixiiu,e19U"r:]w)yi5
                                                                                                                     YwT;75gB|$fJ(bTuuTIq
                                                                                                                                              x1(uWB
                                                                                                                                                      B
                                                                                                                                                       V:       A{vq;luUQ>-De2ԧI^(kQ;JI0(WmPI:TKApI:kE2$er֧I({Q;JIr(mIz*E1(
                                 S:irPkE3I({Q{
                                                   I0(mJQq-S:erJ5qRZ{wAyGjYqqUAuvQj1RBjjY1qWAuJ+Dx1=r
                                                                                                                                 %=rI;.
                                                                                                                                          QU+UC<]xgA/*U]qo-FaDJ(BX(^4X,Eu0       BX,P(  BP4G@
                                                                                                                                                                                                      B 56"F$B[$B A`(
           B QT(      B 5 J[,E5fdF"*&BXKF0X,Eu   BX,Pu+B0P4G$u&$F"*X$B AU
Logged

tylernt
Jr. Member
**

Karma: 2
Posts: 56


View Profile
« Reply #13 on: July 19, 2010, 02:54:03 PM »

Can you please post the output of the uBoot command 'printenv'?
Logged

js4
Newbie
*

Karma: 0
Posts: 16


View Profile
« Reply #14 on: July 19, 2010, 03:02:56 PM »

I copied these setting directly from the original plug's config and put it in uboot-dflt.txt. uboot-dflt.txt had different settings.

Marvell>> printenv
setenv=baudrate=115200
console=console=ttyS0,115200=mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
standalone=fsload=0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
bootargs=console=ttyS0,115200=mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none
bootargs_root=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
mtdpartitions=mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
ethaddr=00:50:43:01:66:16
real_bootcmd=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
bootargs_console=console=ttyS0,115200
recover1=setenv mainlineLinux yes; setenv arcNumber 2097; setenv bootcmd run recover2; saveenv; reset
recover2=run recover3; setenv bootcmd $(real_bootcmd); saveenv; setenv bootargs $(bootargs_console) $(mtdpartitions) root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=nand; bootm 0x00800000 0x01100000
recover3=run recover4; nand erase clean 0x00100000 0x00400000; nand write.e 0x00800000 0x00100000 0x00400000
recover4=usb start; fatload usb 0 0x00800000 uImage; fatload usb 0 0x01100000 initrd
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
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
arcNumber=2097
filesize=32D62A
bootcmd=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
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
pcieTune=no

Environment size: 2153/131068 bytes
Marvell>>
Logged

Pages: [1] 2
Print
Jump to: