• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Problem with u-boot  (Read 833 times)
Foggy
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: December 05, 2009, 11:47:27 AM »

I wanted to install gentoo on my sheevaplug, and i set the variables shown Here (http://plugcomputer.org/plugforum/index.php?topic=69.0) by Moshiach. Unfortunality the configuration didn't work so i try to reset the variables with "resetenv". But now when i turn my sheevaplug on, it always show me this error:
Quote
NAND:512 MB

Checking for BootROM Routine Errors

No. of BootROM routine retries: 524288
NAND: Nand ECC error


Running diagnostics ...

DDR2 data bus test                               PASSED

DR2 address bus test                            PASSED
DDR2 device test                                 PASSED
Device: 0, Size: 512 MB, Page Size: 2 KB, Block Size: 128 KB
NAND detection test                              PASSED
Bad Block: 025e0000
Bad Block: 02600000
Bad Block: 0fec0000
Bad Block: 16dc0000
Bad Block: 1d840000
NAND bad-block detection test                    PASSED

Speed: 100 Mbps, Duplex: Full, Link: up
GbE link detect test                             PASSED

RTC test                                         PASSED

Diag completed

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
   Using egiga0 device
   TFTP from server 192.168.0.10; our IP address is 192.168.0.2
   Filename 'uImage'.
   Load address: 0x2000000
   Loading: *
   TFTP error: 'File not found' (1)
   Starting again
What shall I do? Thank you!  Smiley
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #1 on: December 05, 2009, 01:27:53 PM »

Foggy,

unfortunately once the "resetenv" issued all environment variables you entered plus those you did during installation all get wipe out. uboot restore everything from compilation default. which is pretty bad.

you will need to re-enter everything you did during installation or re-run sheeva-installation again if use one.

if you will I can walk you through using tftp, please post following command result.

at Marvell>> prompt,
printenv
version

and from your tftpserver shell prompt,

mkimage -l /path/to/uImage
mkimage -l /path/to/initramfs if you use one.

or if you can wait I will make a gentoo based sheeva plug computer distribution. it is not a normal gentoo stage3 setup, I made it target a NAS environment so it come with some app pre-installed. And a separated stage3 utilities set can be plugin after system is up and running for additional customization. I think it should be ready sometime around end of month of beginning next year.

Logged

Good Luck Smiley

Foggy
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #2 on: December 05, 2009, 02:00:52 PM »

Ccp, thank you very much for your answer,

printenv:
Quote
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
   mainlineLinux=no
   CASset=min
   enaMonExt=no
   enaCpuStream=no
   enaWrAllo=no
   pexMode=RC
   disL2Cache=no
   setL2CacheWT=yes
   disL2Prefetch=yes
   enaICPref=yes
   enaDCPref=yes
   sata_dma_mode=yes
   MALLOC_len=1
   ethprime=egiga0
   netbsd_en=no
   vxworks_en=no
   bootargs_root=root=/dev/nfs rw
   bootargs_end=:::DB88FXX81:eth0:none
   image_name=uImage
   bootcmd=tftpboot 0x2000000 $(image_name);setenv bootargs $(console) $(bootargs_root) nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvNetConfig) $(mvPhoneConfig);  bootm 0x2000000;
   standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
   bootdelay=3
   disaMvPnp=no
   ethaddr=00:50:43:f8:39:28
   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
   enaAutoRecovery=yes
   ethact=egiga0
   bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root) root=/dev/nfs rw nfsroot=10.4.50.5:/mnt/ARM_FS/ ip=10.4.50.165:10.4.50.5:::DB88FXX81:eth0:none mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 mv_phone_config=dev0:fxs,dev1:fxs

   Environment size: 1555/131068 bytes
Version:
Quote
U-Boot 1.1.4 (Mar 19 2009 - 16:06:59) Marvell version: 3.4.16

mkimage -l ./uImage_kwplug:
Quote
Image Name:   Linux-2.6.30-rc5-00100-g8be7b57
 Created:      Wed May 13 14:44:41 2009
 Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2500356 Bytes = 2441.75 kB = 2.38 MB
   Load Address: 00008000
   Entry Point:  0000800

initramfs:
Quote
Image Name:   sheevaplug.initramfs
Created:      Sun May 17 17:40:06 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3869186 Bytes = 3778.50 kB = 3.69 MB
   Load Address: 0000000
You gentoo-based distribution is very interesting! I'll use it when it will be completed!
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #3 on: December 07, 2009, 02:25:05 PM »

Hi Foggy,

very sorry not reply you sooner, I somehow missed your post reply from the most recent post list.

It looks like you have a very old u-boot, I recommend you follow this wiki http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer
once you unpack the sheevaplug_installater you should replace the sheevaplug-installer-v1.0/uboot/uboot.bin with this version http://www.plugcomputer.org/index.php/us/resources/downloads?func=select&id=6 this version support better access to SD.

before you begin flash your uboot, please check and make sure the environment variable ethaddr match the MAC address at bottom of your plug computer.


I just realize it is really hard to explain something using someone else setup. I just don't know where to start Sad
If you feel adventurous  I can share my current development. it take some manual works to boot but you get to see how I configure the system Shocked let me know.
Logged

Good Luck Smiley

Pages: [1]
Print
Jump to: