New IT forum Follow us on Twitter
21 May 2012, 04:51:28 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: TonidoPlug2 - Now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: change black eSata Sheevaplug to a Multiboot Sheevaplug booting from SD  (Read 970 times)
long456
Newbie
*
Posts: 4


« on: 22 May 2011, 11:35:19 pm »

Hi,
I have purchased from NewIT a black eSata Sheevaplug (Debian Squeeze) with UBIFS-File system. I have read in your forum that the NAND only have a limited Read/Write cyles. So I decided to turn my Sheevaplug to an Multiboot Sheevaplug.

I have tried to setup my Sheevaplug to boot (Multiboot) Debian Squeeze from an SD-Card (16GB).

1.) Upgrade u-Boot (see http://www.cyrius.com/debian/kirkwood/sheevaplug/uboot-upgrade.html)

2.) Get your image using
Code:
Wget http://www.newit.co.uk/drive-images/Sheevaplug/eSATA/transcend-8G-8048869376-NewIT-v1.3-debian-squeeze-eSATA/transcend-8G-8048869376-NewIT-v1.3-debian-squeeze-eSATA.img.gz

3.) Extract it
Code:
Gunzip transcend-8G-8048869376-NewIT-v1.3-debian-squeeze-eSATA.img.gz

4.) Copy it to SD
Code:
dd if=/image-location/transcend-8G-8048869376-NewIT-v1.3-debian-squeeze-eSATA.img of=/dev/mmcblk0

5.) Resize the SD-Card (see http://www.newit.co.uk/forum/index.php/topic,1231.0.html)

6.) Upgrade the Kernel on the SD-Card to 2.6.37.6 (see http://www.newit.co.uk/forum/index.php/topic,966.0.html)

7.) Change the u-Boot Parameters of the Sheevaplug to a "multiboot"-System (see http://www.newit.co.uk/forum/index.php/topic,194.0.html)

I don´t how but I have mixed up some Parameters, so that my Sheevaplug didn´t start to boot from NAND. So I have reflashed my Sheevaplug to boot it again from NAND according to this guide (see http://www.newit.co.uk/forum/index.php?topic=1996.0)

After I changed the Parameters to an "multiboot"-System. After I tried different parameters (also from other forums). Now I am stucked and have no idea to boot the System from my SD-Card.

My Boot-Screen:
Code:
SDHC found. Card desciption is:
Manufacturer:       0x1e, OEM "AB"
Product name:       "SDC  ", revision 0.0
Serial number:      467
Manufacturing date: 12/2010
CRC:                0x00, b0 = 0

** No boot file defined **

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.36
   Created:      2010-12-05  16:26:56 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2948072 Bytes =  2.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.36 (newit@gemini) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-68) ) #3 PREEMPT Sun Dec 5 16:26:45 GMT 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell eSATA SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 513140k/513140k available, 11148k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xfe800000   ( 480 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002e000   ( 152 kB)
      .text : 0xc002e000 - 0xc055e000   (5312 kB)
      .data : 0xc0582000 - 0xc05b1840   ( 191 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A1, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4008, nTxLock = 32071
msgmni has been set to 1002
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 154 at 0x000001340000
Bad eraseblock 155 at 0x000001360000
Bad eraseblock 156 at 0x000001380000
Bad eraseblock 157 at 0x0000013a0000
Bad eraseblock 159 at 0x0000013e0000
Bad eraseblock 161 at 0x000001420000
Bad eraseblock 163 at 0x000001460000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: max. sequence number:       1735
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "rootfs"
UBI: MTD device size:            507 MiB
UBI: number of good PEBs:        4049
UBI: number of bad PEBs:         7
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 4049
UBI: number of PEBs reserved for bad PEB handling: 40
UBI: max/mean erase counter: 7/1
UBI: image sequence number:  0
UBI: background thread "ubi_bgt0d" started, PID 465
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address xx:xx:xx:xx:xx:xx #I changed the MAC-Adress
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SDHC card at address b368
mmcblk0: mmc0:b368 SDC   14.9 GiB
 mmcblk0: p1 p2
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
registered taskstats version 1
rtc-mv rtc-mv: setting system clock to 2010-04-21 16:50:14 UTC (1271868614)
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   514805760 bytes (502740 KiB, 490 MiB, 3990 LEBs)
UBIFS: journal size:       25804800 bytes (25200 KiB, 24 MiB, 200 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  4952683 bytes (4836 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:12.
Freeing init memory: 152K
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
.udev/ already exists on the static /dev! ... (warning).
Starting the hotplug events dispatcher: udevdudevd[618]: can not read '/etc/udev/rules.d/75-persistent-net-generator.rules'

udevd (619): /proc/619/oom_adj is deprecated, please use /proc/619/oom_score_adj instead.
.
udevd[619]: can not read '/etc/udev/rules.d/75-persistent-net-generator.rules'

Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
ata1: SATA link down (SStatus 0 SControl F300)
ata2: SATA link down (SStatus 0 SControl F300)
done.
Activating swap...done.
device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel@redhat.com
Starting early crypto disks...done.
Starting remaining crypto disks...done.
Cleaning up ifupdown....
Setting up networking....
Loading kernel modules...done.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
Mounting local filesystems...done.
Activating swapfile swap...done.
Cleaning up temporary files....
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/xx:xx:xx:xx:xx:xx #I changed the MAC-Adress
Sending on   LPF/eth0/xx:xx:xx:xx:xx:xx #I changed the MAC-Adress
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
eth0: link up, 100 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 192.168.0.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.103 -- renewal in 127880 seconds.
done.
Cleaning up temporary files....
Setting kernel variables ...done.
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting enhanced syslogd: rsyslogd.
Starting periodic command scheduler: cron.
Starting OpenBSD Secure Shell server: sshdNET: Registered protocol family 10
ADDRCONF(NETDEV_UP): eth0: link is not ready
.
Running scripts in rc2.d/ took 1 seconds.
eth0: link up, 100 Mb/s, full duplex, flow control disabled
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Debian GNU/Linux squeeze/sid debian ttyS0

debian login: root
Password:
Last login: Wed Apr 21 16:48:26 UTC 2010 on ttyS0
Linux debian 2.6.36 #3 PREEMPT Sun Dec 5 16:26:45 GMT 2010 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~#

and my u-Boot Parameters:

Code:
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
e=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
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;
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
mtdpartitions=mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
ethaddr=xx:xx:xx:xx:xx:xx #I changed the MAC-Adress
bootargs_console=console=ttyS0,115200
recover1=setenv mainlineLinux yes; setenv arcNumber 2678; 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
bootargs_root_nand=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
bootcmd_nand=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root_nand); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
real_bootcmd=run bootcmd_mmc; run bootcmd_nand
bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0
e=ttyS0,115200=mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
arcNumber=2678
ipaddr=192.168.0.2
serverip=192.168.0.6
fileaddr=2000000
filesize=37B8DF
bootcmd=run bootcmd_mmc; run bootcmd_nand
bootargs_root=ubi.mtd=1=root=ubi0:rootfs rootfstype=ubifs
console=console=ttyS0,115200=mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
bootargs=console=ttyS0,115200=root=/dev/mmcblk0p2
bootargs_root_mmc=root=/dev/mmcblk0p2=rootdelay=5
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=a0000
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: 2452/131068 bytes
Marvell>>

Questions:
1.) Can someone tell me, why my Sheevaplug didn´t start from my 16GB SD-Card

2.) I realized that after I set the parameters
Code:
Marvell>> setenv bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2
Marvell>> setenv bootargs_root_mmc=root=/dev/mmcblk0p2 rootdelay=5
Marvell>> setenv bootargs_root=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
Marvell>> setenv console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
Marvell>> setenv bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000
, my Sheevaplug stop loading the Kernel. It also don´t save the parameter setenv bootcmd_mmc" (see my u-Boot Parameters) and the line
Code:
setenv console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
looks strange (see my u-Boot Parameters). Due to limited sign, I can´t show the Bootscreen here.

3.) After I boot Debian Sqeeze from NAND I always see some errors:
Code:
Scanning device for bad blocks
Bad eraseblock 154 at 0x000001340000
Bad eraseblock 155 at 0x000001360000
Bad eraseblock 156 at 0x000001380000
Bad eraseblock 157 at 0x0000013a0000
Bad eraseblock 159 at 0x0000013e0000
Bad eraseblock 161 at 0x000001420000
Bad eraseblock 163 at 0x000001460000
Is that normal?

I hope someone can help me. Thanks in advance.
Logged
long456
Newbie
*
Posts: 4


« Reply #1 on: 22 May 2011, 11:40:01 pm »

Here is my Bootscreen after I setup the paramerters (Question 2):
Code:
Marvell>> setenv bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2
Marvell>> setenv bootargs_root_mmc=root=/dev/mmcblk0p2 rootdelay=5
Marvell>> setenv bootargs_root=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
Marvell>> setenv console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
Marvell>> setenv bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000
SDHC found. Card desciption is:
Manufacturer:       0x1e, OEM "AB"
Product name:       "SDC  ", revision 0.0
Serial number:      467
Manufacturing date: 12/2010
CRC:                0x00, b0 = 0

2798816 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.38.2
   Created:      2011-03-29   1:16:49 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2798752 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpu
Linux version 2.6.38.2 (kelly@speedy) (gcc version 4.5.2 (PlugComputer G++ 20110117) ) #1 PREEMPT Mon Mar 28 19:16:45 MDT 2011
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell eSATA SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200=root=/dev/mmcblk0p2
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 513280k/513280k available, 11008k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xfe800000   ( 480 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002f000   ( 156 kB)
      .text : 0xc002f000 - 0xc05512a8   (5257 kB)
      .data : 0xc0552000 - 0xc05858d8   ( 207 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:114
sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A1, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource orion_clocksource
Switched to NOHz mode on CPU #0
FS-Cache: Loaded
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
FS-Cache: Netfs 'nfs' registered for caching
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4010, nTxLock = 32080
msgmni has been set to 1002
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
ONFI flash detected
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 154 at 0x000001340000
Bad eraseblock 155 at 0x000001360000
Bad eraseblock 156 at 0x000001380000
Bad eraseblock 157 at 0x0000013a0000
Bad eraseblock 159 at 0x0000013e0000
Bad eraseblock 161 at 0x000001420000
Bad eraseblock 163 at 0x000001460000
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address xx:xx:xx:xx:xx:xx # I changed the MAC-Adress
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mousedev: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, using GPIO 47 for card detection
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
registered taskstats version 1
rtc-mv rtc-mv: setting system clock to 2010-04-21 16:36:03 UTC (1271867763)
Root-NFS: no NFS server address
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "(null)" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            1024 mtdblock0  (driver?)
1f01            4096 mtdblock1  (driver?)
1f02          519168 mtdblock2  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c0034724>] (unwind_backtrace+0x0/0xe0) from [<c03ff90c>] (panic+0x58/0x17c)
[<c03ff90c>] (panic+0x58/0x17c) from [<c0008dc4>] (mount_block_root+0x1bc/0x1fc)
[<c0008dc4>] (mount_block_root+0x1bc/0x1fc) from [<c0008f9c>] (mount_root+0xa0/0xc0)
[<c0008f9c>] (mount_root+0xa0/0xc0) from [<c0009120>] (prepare_namespace+0x164/0x1b8)
[<c0009120>] (prepare_namespace+0x164/0x1b8) from [<c0008a1c>] (kernel_init+0x108/0x148)
[<c0008a1c>] (kernel_init+0x108/0x148) from [<c003052c>] (kernel_thread_exit+0x0/0x8)
Logged
NewIT_James
Administrator
Sr. Member
*****
Posts: 394


« Reply #2 on: 23 May 2011, 06:27:41 am »

Hi long456,

The Sheevaplug with UBIFS-File system and the Multiboot Sheevaplug are exactly the same except the Multiboot includes an SD card.

The bad blocks are normal and nothing to worry about.

NewIT James.



Logged

NewITJames
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #3 on: 23 May 2011, 07:24:48 am »

and my u-Boot Parameters:

Code:
bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0
e=ttyS0,115200=mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
Marvell>>

Questions:
1.) Can someone tell me, why my Sheevaplug didn´t start from my 16GB SD-Card

2.) I realized that after I set the parameters
Code:
Marvell>> setenv bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2
Marvell>> setenv bootargs_root_mmc=root=/dev/mmcblk0p2 rootdelay=5
Marvell>> setenv bootargs_root=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
Marvell>> setenv console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
Marvell>> setenv bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000
, my Sheevaplug stop loading the Kernel. It also don´t save the parameter setenv bootcmd_mmc" (see my u-Boot Parameters) and the line
Code:
setenv console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
looks strange (see my u-Boot Parameters). Due to limited sign, I can´t show the Bootscreen here.

The correct form for setting environment variables that have spaces is to use a single quotation mark:

Code:
setenv bootcmd_mmc 'setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0'

You are also showing at least one corrupted environment variable ("e"); this comes from a bug that is present in some versions of U-Boot. It may be that this won't cause a problem for you, but if it does, try a more recent version of U-Boot.
Logged
long456
Newbie
*
Posts: 4


« Reply #4 on: 24 May 2011, 11:12:52 pm »

Hi NewIT_Marcus,

Thanks for replying to my questions  Smiley

I have tried your advice and set the parameter with a single quote and saved it:
Code:
Marvell>> setenv bootcmd_mmc 'setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done

now my parameters looks like this:
Code:
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
e=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
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;
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
mtdpartitions=mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
ethaddr=xx:xx:xx:xx:xx:xx # I have changed it
bootargs_console=console=ttyS0,115200
recover1=setenv mainlineLinux yes; setenv arcNumber 2678; 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
bootargs_root_nand=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
bootcmd_nand=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root_nand); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
real_bootcmd=run bootcmd_mmc; run bootcmd_nand
e=ttyS0,115200=mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
arcNumber=2678
ipaddr=192.168.0.2
serverip=192.168.0.6
fileaddr=2000000
filesize=37B8DF
bootcmd=run bootcmd_mmc; run bootcmd_nand
bootargs_root=ubi.mtd=1=root=ubi0:rootfs rootfstype=ubifs
console=console=ttyS0,115200=mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
bootargs=console=ttyS0,115200=root=/dev/mmcblk0p2
bootargs_root_mmc=root=/dev/mmcblk0p2=rootdelay=5
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=a0000
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
bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0

Environment size: 2452/131068 bytes
Marvell>>

I boot my sheevaplug
Code:
Marvell>> boot
SDHC found. Card desciption is:
Manufacturer:       0x1e, OEM "AB"
Product name:       "SDC  ", revision 0.0
Serial number:      467
Manufacturing date: 12/2010
CRC:                0x00, b0 = 0

** No boot file defined **

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.36
   Created:      2010-12-05  16:26:56 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2948072 Bytes =  2.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.36 (newit@gemini) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-68) ) #3 PREEMPT Sun Dec 5 16:26:45 GMT 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell eSATA SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 513140k/513140k available, 11148k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xfe800000   ( 480 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002e000   ( 152 kB)
      .text : 0xc002e000 - 0xc055e000   (5312 kB)
      .data : 0xc0582000 - 0xc05b1840   ( 191 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A1, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4008, nTxLock = 32071
msgmni has been set to 1002
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 154 at 0x000001340000
Bad eraseblock 155 at 0x000001360000
Bad eraseblock 156 at 0x000001380000
Bad eraseblock 157 at 0x0000013a0000
Bad eraseblock 159 at 0x0000013e0000
Bad eraseblock 161 at 0x000001420000
Bad eraseblock 163 at 0x000001460000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: max. sequence number:       1758
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "rootfs"
UBI: MTD device size:            507 MiB
UBI: number of good PEBs:        4049
UBI: number of bad PEBs:         7
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 4049
UBI: number of PEBs reserved for bad PEB handling: 40
UBI: max/mean erase counter: 7/1
UBI: image sequence number:  0
UBI: background thread "ubi_bgt0d" started, PID 465
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address f0:ad:4e:00:68:40
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SDHC card at address b368
mmcblk0: mmc0:b368 SDC   14.9 GiB
 mmcblk0: p1 p2
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
registered taskstats version 1
rtc-mv rtc-mv: setting system clock to 2010-05-04 18:18:10 UTC (1272997090)
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   514805760 bytes (502740 KiB, 490 MiB, 3990 LEBs)
UBIFS: journal size:       25804800 bytes (25200 KiB, 24 MiB, 200 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  4952683 bytes (4836 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:12.
Freeing init memory: 152K
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
.udev/ already exists on the static /dev! ... (warning).
Starting the hotplug events dispatcher: udevdudevd[618]: can not read '/etc/udev/rules.d/75-persistent-net-generator.rules'

udevd (619): /proc/619/oom_adj is deprecated, please use /proc/619/oom_score_adj instead.
.
udevd[619]: can not read '/etc/udev/rules.d/75-persistent-net-generator.rules'

Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
ata1: SATA link down (SStatus 0 SControl F300)
ata2: SATA link down (SStatus 0 SControl F300)
done.
Activating swap...done.
device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel@redhat.com
Starting early crypto disks...done.
Starting remaining crypto disks...done.
Cleaning up ifupdown....
Setting up networking....
Loading kernel modules...done.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
Mounting local filesystems...done.
Activating swapfile swap...done.
Cleaning up temporary files....
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/xx:xx:xx:xx:xx:xx # I have changed it
Sending on   LPF/eth0/xx:xx:xx:xx:xx:xx # I have changed it
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
eth0: link up, 100 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPOFFER from 192.168.0.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.103 -- renewal in 107161 seconds.
done.
Cleaning up temporary files....
Setting kernel variables ...done.
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting enhanced syslogd: rsyslogd.
Starting periodic command scheduler: cron.
Starting OpenBSD Secure Shell server: sshdNET: Registered protocol family 10
ADDRCONF(NETDEV_UP): eth0: link is not ready
.
Running scripts in rc2.d/ took 1 seconds.
eth0: link up, 100 Mb/s, full duplex, flow control disabled
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Debian GNU/Linux squeeze/sid debian ttyS0

debian login:
but unfortunely it also wouldnt boot from my 16GB SD-Card. Do you have some other advice. The strange thing is that my sheevaplug didn´t find the boot file Huh
Code:
SDHC found. Card desciption is:
Manufacturer:       0x1e, OEM "AB"
Product name:       "SDC  ", revision 0.0
Serial number:      467
Manufacturing date: 12/2010
CRC:                0x00, b0 = 0

** No boot file defined **

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

Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #5 on: 25 May 2011, 07:28:40 am »

Code:
bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0

On the page that you said you had copied environment variables from, bootcmd_mmc is shown as below
Code:
bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000

I've never seen ** No boot file defined ** before; evidently this is the result of not passing a file name parameter to ext2load
Logged
long456
Newbie
*
Posts: 4


« Reply #6 on: 04 June 2011, 01:19:35 pm »

Hi,

I have checked all the parameters according your Link http://www.newit.co.uk/forum/index.php/topic,194.0.html and you are right ... some parameters doesn´t match these are:
- arcNumber=2678
- ipaddr=192.168.0.2
- serverip=192.168.0.6
- filesize=37B8DF
- recover1=setenv mainlineLinux yes; setenv arcNumber 2678; setenv bootcmd run recover2; saveenv; reset
- bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0

I think the only parameter that is important is "bootcmd_mmc". So I have changed it
Code:
setenv bootcmd_mmc 'setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000'

and saved it and restart my Sheevaplug
Code:
saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> boot
after it boots there are unfortunelly some errors:
Code:
Root-NFS: no NFS server address
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mmcblk0p2=rootdelay=5" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            1024 mtdblock0  (driver?)
1f01            4096 mtdblock1  (driver?)
1f02          519168 mtdblock2  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c0034724>] (unwind_backtrace+0x0/0xe0) from [<c03ff90c>] (panic+0x58/0x17c)
[<c03ff90c>] (panic+0x58/0x17c) from [<c0008dc4>] (mount_block_root+0x1bc/0x1fc)
[<c0008dc4>] (mount_block_root+0x1bc/0x1fc) from [<c0008f9c>] (mount_root+0xa0/0xc0)
[<c0008f9c>] (mount_root+0xa0/0xc0) from [<c0009120>] (prepare_namespace+0x164/0x1b8)
[<c0009120>] (prepare_namespace+0x164/0x1b8) from [<c0008a1c>] (kernel_init+0x108/0x148)
[<c0008a1c>] (kernel_init+0x108/0x148) from [<c003052c>] (kernel_thread_exit+0x0/0x8)

Can someone tell me what that means Huh Thanks in advance.
here a complete "screenshot" after I restart:

Code:
SDHC found. Card desciption is:
Manufacturer:       0x1e, OEM "AB"
Product name:       "SDC  ", revision 0.0
Serial number:      467
Manufacturing date: 12/2010
CRC:                0x00, b0 = 0

2798816 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.38.2
   Created:      2011-03-29   1:16:49 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2798752 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpu
Linux version 2.6.38.2 (kelly@speedy) (gcc version 4.5.2 (PlugComputer G++ 20110117) ) #1 PREEMPT Mon Mar 28 19:16:45 MDT 2011
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell eSATA SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2=rootdelay=5
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 513280k/513280k available, 11008k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xfe800000   ( 480 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002f000   ( 156 kB)
      .text : 0xc002f000 - 0xc05512a8   (5257 kB)
      .data : 0xc0552000 - 0xc05858d8   ( 207 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:114
sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A1, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource orion_clocksource
Switched to NOHz mode on CPU #0
FS-Cache: Loaded
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
FS-Cache: Netfs 'nfs' registered for caching
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4010, nTxLock = 32080
msgmni has been set to 1002
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
ONFI flash detected
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 154 at 0x000001340000
Bad eraseblock 155 at 0x000001360000
Bad eraseblock 156 at 0x000001380000
Bad eraseblock 157 at 0x0000013a0000
Bad eraseblock 159 at 0x0000013e0000
Bad eraseblock 161 at 0x000001420000
Bad eraseblock 163 at 0x000001460000
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address xx:xx:xx:xx:xx:xx #I changed it
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mousedev: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, using GPIO 47 for card detection
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
registered taskstats version 1
rtc-mv rtc-mv: setting system clock to 2010-05-15 08:12:35 UTC (1273911155)
Root-NFS: no NFS server address
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mmcblk0p2=rootdelay=5" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            1024 mtdblock0  (driver?)
1f01            4096 mtdblock1  (driver?)
1f02          519168 mtdblock2  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c0034724>] (unwind_backtrace+0x0/0xe0) from [<c03ff90c>] (panic+0x58/0x17c)
[<c03ff90c>] (panic+0x58/0x17c) from [<c0008dc4>] (mount_block_root+0x1bc/0x1fc)
[<c0008dc4>] (mount_block_root+0x1bc/0x1fc) from [<c0008f9c>] (mount_root+0xa0/0xc0)
[<c0008f9c>] (mount_root+0xa0/0xc0) from [<c0009120>] (prepare_namespace+0x164/0x1b8)
[<c0009120>] (prepare_namespace+0x164/0x1b8) from [<c0008a1c>] (kernel_init+0x108/0x148)
[<c0008a1c>] (kernel_init+0x108/0x148) from [<c003052c>] (kernel_thread_exit+0x0/0x8)

and here my current u-Boot Parameter:
Code:
Broadcast message from root@debian (ttyS0) (Sat May 15 08:33:Using makefile-style concurrent boot in runlevel 6.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds....done.
Stopping enhanced syslogd: rsyslogd.
Saving the system clock.
Deconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/xx:xx:xx:xx:xx:xx # I changed it
Sending on   LPF/eth0/xx:xx:xx:xx:xx:xx # I changed it
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
done.
Cleaning up ifupdown....
Deactivating swap...done.
Stopping remaining crypto disks...done.
Stopping early crypto disks...done.
Will now restart.

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

U-Boot 1.1.4 (Nov  4 2009 - 12:58:36) Marvell version: 3.4.23

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

Soc: 88F6281 A1 (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
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
e=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
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;
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
mtdpartitions=mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
ethaddr=xx:xx:xx:xx:xx:xx # I changed it
bootargs_console=console=ttyS0,115200
recover1=setenv mainlineLinux yes; setenv arcNumber 2678; 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
bootargs_root_nand=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
bootcmd_nand=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root_nand); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
real_bootcmd=run bootcmd_mmc; run bootcmd_nand
e=ttyS0,115200=mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
arcNumber=2678
ipaddr=192.168.0.2
serverip=192.168.0.6
fileaddr=2000000
filesize=37B8DF
bootcmd=run bootcmd_mmc; run bootcmd_nand
bootargs_root=ubi.mtd=1=root=ubi0:rootfs rootfstype=ubifs
console=console=ttyS0,115200=mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
bootargs=console=ttyS0,115200=root=/dev/mmcblk0p2
bootargs_root_mmc=root=/dev/mmcblk0p2=rootdelay=5
bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=a0000
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: 2485/131068 bytes
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #7 on: 04 June 2011, 05:30:11 pm »

Code:
Root-NFS: no NFS server address
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mmcblk0p2=rootdelay=5" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            1024 mtdblock0  (driver?)
1f01            4096 mtdblock1  (driver?)
1f02          519168 mtdblock2  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

OK, these are the "interesting" lines.

On my eSATA Sheevaplug, what I see is:

Code:
Waiting 5sec before mounting root device...
usb 1-1: new high speed USB device using orion-ehci and address 2
scsi0 : usb-storage 1-1:1.0
scsi 0:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 8255488 512-byte logical blocks: (4.22 GB/3.93 GiB)

I can't see why yours is looking for NFS and I'm not sure why mine waits for 5 seconds.

But the message regarding your rootfs is clear:
Code:
VFS: Cannot open root device "mmcblk0p2=rootdelay=5" or unknown-block(2,0)

I would suggest:

  • Try performing the boot "manually". Interrupt U-Boot. Type mmcinit. Then type mmcinit again. Then type bootcmd_mmc. This is to test if there may be a timing issue whereby your card is not being recognised immediately.
  • Try a different card

You've done at least one thing that you haven't declared; in your first post you said you put kernel 2.6.37.6 onto the SD card, but your most recent post shows 2.6.38.2.

FWIW, the U-Boot that I have in my multiboot eSATA is:

Code:
U-Boot 1.1.4 (Jul 14 2009 - 06:46:57) Marvell version: 3.4.16
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!