New IT forum
27 June 2022, 05:01:08 am *
Welcome, %1$s. Please login or register.

: GertDuino now in stock.
 
Pages: 1 2 [3] 4 5 ... 7

Author Topic: Need some help please  (Read 47883 times)

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #30 on: 07 January 2014, 06:58:34 am »

grab this one:
   http://www.plugcomputer.org/405/us/plug-basic/kernel/uImage.8.6plug
put it on the USB and rename it uImage2
then do
    usb start; fatload usb 0 0x800000 uImage2;bootm 0x800000
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #31 on: 07 January 2014, 07:10:41 am »

Same problem :(

Marvell>> usb start; fatload usb 0 0x800000 uImage2;bootm 0x800000
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found

** Invalid boot device **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.30.2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2620440 Bytes = 2.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
Marvell>>
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #32 on: 07 January 2014, 07:13:39 am »

It didn't load,
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found


Power cycle the Plug and try it again
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #33 on: 07 January 2014, 07:19:04 am »

Marvell>> usb start; fatload usb 0 0x800000 uImage2;bootm 0x800000
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
reading uImage2

** Unable to read "uImage2" from usb 0:1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Marvell>>
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #34 on: 07 January 2014, 07:24:52 am »

Last thing for today.  I'll need to try this on one of my Sheevas
so give me the output from the Marvell>> prompt
   usb start
   fatls usb 0
   version
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #35 on: 07 January 2014, 07:37:52 am »

Marvell>>    fatls usb 0
  3331626   initrd
  3561533   modules.tar.gz
     1853   readme.txt
 136517388   rootfs.tar.gz
     2671   ubuntu-sheevaplug.sh
  2014240   uimage
            .trash-1000/

6 file(s), 1 dir(s)

Marvell>> 
Logged

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #36 on: 07 January 2014, 07:41:40 am »

I've done it, I needed to rename the uImage file to uImage2 and it seems to be loading :D You my friend are amazing!

Marvell>> usb start; fatload usb 0 0x800000 uImage2;bootm 0x800000
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
reading uImage2

2014240 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.22.18-6plug
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2014176 Bytes = 1.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Still on that though...
« Last Edit: 07 January 2014, 07:44:16 am by Jimbob »
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #37 on: 07 January 2014, 07:50:56 am »

Ok back to
  https://newit.co.uk/forum/index.php/topic,4564.msg11526.html#msg11526
Quote
Hopefully the system boots
Let's write a good uImage to the Flash
1.  Log into the Sheeva
2.  do cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 1fb00000 00020000 "root"

if you see above then
3.  then mount the USB, do fdisk -l to see which dev mount /dev/sdx /mnt put the right letter instead of x
4. do
  cd /usr/local/bin
  wget http://www.tonido.com/downloads/plug2/flash_eraseall
  wget http://www.tonido.com/downloads/plug2/nandwrite


5. flash_eraseall /dev/mtd1
    nandwrite -p /dev/mtd1 /mnt/uImage2


6. reboot

You should have a clean reboot
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #38 on: 07 January 2014, 08:00:11 am »

I went back to that, unfortunately the system won't boot, it just hangs after saying booting the kernel.
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #39 on: 07 January 2014, 08:07:33 am »

OK, power cycle
At the Marvell>> prompt Give me the output from
Enter
version

I'll get back to you in about 10 hours
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #40 on: 07 January 2014, 08:15:56 am »

U-Boot 2011.12 (Mar 11 2012 - 18:59:46)
Marvell-Sheevaplug - eSATA - SD/MMC
gcc (Debian 4.6.3-1) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Marvell>>
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #41 on: 07 January 2014, 11:27:18 pm »

Ok, so lets try this:
Download the following and place on the USB
sheeva-3.7.10-Modules.tar.gz
sheeva-3.7.10-Modules.tar.gz.md5
sheeva-3.7.10-System.map
sheeva-3.7.10-System.map.md5
sheeva-3.7.10-uImage
sheeva-3.7.10-uImage.md5

Do:
md5sum sheeva-3.7.10-uImage

a6d977b6c2776a13d230f5f041fa63b1  sheeva-3.7.10-uImage
cat sheeva-3.7.10-uImage.md5

a6d977b6c2776a13d230f5f041fa63b1  sheeva-3.7.10-uImage
Only continue if the above lines match

Remove the USB and insert into the Plug
Enter the following, at the Marvell>> prompt,one line at a time
setenv mainlineLinux yes; setenv arcNumber 2097
setenv mtdpartitions 'mtdparts=orion_nand:[email protected](uImage),[email protected](rootfs)'
setenv x_bootargs 'console=ttyS0,115200 mtdparts=orion_nand:[email protected](uImage),[email protected](rootfs)'
setenv x_bootargs_root 'ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs'
setenv bootargs $(x_bootargs) $(x_bootargs_root)
setenv x_bootargs_console 'console=ttyS0,115200'
setenv bootargs $(x_bootargs_console) $(mtdpartitions) $(x_bootargs_root)
setenv bootcmd 'setenv bootargs $(x_bootargs_console) $(mtdpartitions) $(x_bootargs_root); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000'
saveenv

You are replacing the uImage, NO TYPOs :o
usb start; fatload usb 0 0x00800000 sheeva-3.7.10-uImage
nand erase clean 0x00100000 0x00400000
nand write.e 0x00800000 0x00100000 0x00400000

Once again, try to boot
« Last Edit: 08 January 2014, 12:11:57 am by bigbear59 »
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #42 on: 08 January 2014, 12:04:52 am »

Thanks so much, I will try this first thing tomorrow. I have just tried and I'm getting that line in use error again. My brain isn't working in the right gear to try and tackle it again now.

Thanks once again for all your help it's very much appreciated!
Logged

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #43 on: 08 January 2014, 04:06:24 am »

All those commands worked fine :) But when I try to boot I get:

Marvell>> boot

NAND read: device 0 offset 0x100000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.7.10
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3263816 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Initializing cgroup subsys cpu
Linux version 3.7.10 ([email protected]) (gcc version 4.7.3 20130205 (prerelease) (Linaro GCC 4.7-2013.02) ) #3 PREEMPT Wed Feb 27 23:18:20 MST 2013
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell 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:[email protected](uImage),[email protected](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: 512MB = 512MB total
Memory: 512820k/512820k available, 11468k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc05f86d0   (6082 kB)
      .init : 0xc05f9000 - 0xc0625964   ( 179 kB)
      .data : 0xc0626000 - 0xc0669fb8   ( 272 kB)
       .bss : 0xc0669fdc - 0xc06c4cbc   ( 364 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:114
sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
Console: colour dummy device 80x30
Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys cpuacct
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys blkio
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x47fd80 - 0x47fdbc
devtmpfs: initialized
NET: Registered protocol family 16
DMA: preallocated 1024 KiB pool for atomic coherent allocations
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
FS-Cache: Loaded
NET: Registered protocol family 2
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 named UNIX socket transport module.
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
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4006, nTxLock = 32051
msgmni has been set to 1001
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
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 )
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: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit), page size: 2048, OOB size: 64
Scanning device for bad blocks
Bad eraseblock 899 at 0x000007060000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
libphy: mv643xx_eth smi: probed
mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:01:c6:e6
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-cypress
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
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
sdhci-pltfm: SDHCI platform and OF driver helper
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
zram: num_devices not specified. Using default: 1
zram: Creating 1 devices ...
TCP: cubic registered
NET: Registered protocol family 10
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Key type dns_resolver registered
registered taskstats version 1
UBI: attaching mtd1 to ubi0
usb 1-1: new high-speed USB device number 2 using orion-ehci
scsi0 : usb-storage 1-1:1.0
UBI: scanning is finished
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_attach_mtd_dev: failed to attach mtd1, error -22
UBI error: ubi_init: cannot attach mtd1
rtc-mv rtc-mv: setting system clock to 2013-12-02 16:41:25 UTC (1386002485)
UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
Please append a correct "root=" boot option; here are the available partitions:
1f00            4096 mtdblock0  (driver?)
1f01          519168 mtdblock1  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c000d0c8>] (unwind_backtrace+0x0/0xe0) from [<c0475164>] (panic+0x80/0x1d8)
[<c0475164>] (panic+0x80/0x1d8) from [<c05f9cd0>] (mount_block_root+0x1f4/0x238)
[<c05f9cd0>] (mount_block_root+0x1f4/0x238) from [<c05f9fa4>] (prepare_namespace+0x88/0x1bc)
[<c05f9fa4>] (prepare_namespace+0x88/0x1bc) from [<c046d4d0>] (kernel_init+0x8/0x104)
[<c046d4d0>] (kernel_init+0x8/0x104) from [<c0008d10>] (ret_from_fork+0x14/0x24)

« Last Edit: 08 January 2014, 04:51:11 am by Jimbob »
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #44 on: 08 January 2014, 06:29:45 am »

Ok, I'm taking a wild guess but here we go:
Do
setenv mtdpartitions 'mtdparts=nand_mtd:[email protected](u-boot),[email protected](uImage)ro,[email protected](rootfs)rw'
setenv x_bootargs_root 'root=/dev/mtdblock2'
setenv bootargs $(x_bootargs_console) $(mtdpartitions) $(x_bootargs_root)
setenv bootcmd 'setenv bootargs $(x_bootargs_console) $(mtdpartitions) $(x_bootargs_root); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000'
saveenv

boot


X= (emoticon for Fingers Crossed)
if this don't work it's time to boot from USB    :-[
Logged
Cheers,
BigBear59
Pages: 1 2 [3] 4 5 ... 7
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!