New IT forum
27 June 2022, 11:37:54 am *
Welcome, %1$s. Please login or register.

: PiHub now in stock.
 
Pages: [1]

Author Topic: sheevaplug update problems  (Read 9749 times)

elvis61

  • Newbie
  • *
  • Posts: 13
sheevaplug update problems
« on: 02 January 2014, 06:44:43 pm »

happy new year,

i try to update my sheevaplug. i compiled and flashed latest u-boot. it works fine.

U-Boot 2013.10 (Dec 29 2013 - 12:15:18)                                         
Marvell-Sheevaplug                                                             
                                                                               
SoC:   Kirkwood 88F6281_A1                                                     
DRAM:  512 MiB                                                                 
WARNING: Caches not enabled                                                     
NAND:  512 MiB                                                                 
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Net:   egiga0 [PRIME]                                                           
88E1116 Initialized on egiga0                                                   
Hit any key to stop autoboot:  0                                               
Marvell>> bdinfo                                                               
arch_number = 0x00000831                                                       
boot_params = 0x00000100                                                       
DRAM bank   = 0x00000000                                                       
-> start    = 0x00000000                                                       
-> size     = 0x10000000                                                       
DRAM bank   = 0x00000001                                                       
-> start    = 0x10000000                                                       
-> size     = 0x10000000                                                       
eth0name    = egiga0                                                           
ethaddr     = 00:50:43:01:96:CF                                                 
current eth = egiga0                                                           
ip_addr     = 192.168.178.26                                                   
baudrate    = 115200 bps                                                       
TLB addr    = 0x1FFF0000                                                       
relocaddr   = 0x1FF4D000                                                       
reloc off   = 0x1F94D000                                                       
irq_sp      = 0x1FB2CF40                                                       
sp start    = 0x1FB2CF30                                                       
Marvell>>

But i have not the same luck with latest kernel.

According to this manual "http://shallowsky.com/linux/sheevaplug-kernel.html" i try to update the kernel.

But i get the following error message

Marvell>> run bootcmd                                                           
Using egiga0 device                                                             
TFTP from server 192.168.178.21; our IP address is 192.168.178.26               
Filename 'uImage'.                                                             
Load address: 0x2000000                                                         
Loading: #################################################################     
         #################################################################     
         #################################################################     
         #####################################                                 
         3.8 MiB/s                                                             
done                                                                           
Bytes transferred = 3399760 (33e050 hex)                                       
Using egiga0 device                                                             
TFTP from server 192.168.178.21; our IP address is 192.168.178.26               
Filename 'uInitram'.                                                           
Load address: 0x8000000                                                         
Loading: #################################################################     
         #################################################################     
         #################################################################     
         #################################################################     
         ###                                                                   
         4.6 MiB/s                                                             
done                                                                           
Bytes transferred = 3851184 (3ac3b0 hex)                                       
## Booting kernel from Legacy Image at 02000000 ...                             
   Image Name:   Linux-3.12.6                                                   
   Image Type:   ARM Linux Kernel Image (uncompressed)                         
   Data Size:    3399696 Bytes = 3.2 MiB                                       
   Load Address: 00008000                                                       
   Entry Point:  00008000                                                       
   Verifying Checksum ... OK                                                   
## Loading init Ramdisk from Legacy Image at 08000000 ...                       
   Image Name:   Rootfs                                                         
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)                     
   Data Size:    3851120 Bytes = 3.7 MiB                                       
   Load Address: 08000000                                                       
   Entry Point:  08000000                                                       
   Verifying Checksum ... OK                                                   
   Loading Kernel Image ... OK                                                 
Using machid 0x692 from environment                                             
                                                                               
Starting kernel ...                                                             
                                                                               
Uncompressing Linux... done, booting the kernel.                               

After this message it is dead.

My relevant u-boot-env:
arcNumber=2097
machid=692
mainlineLinux=yes

My toolchain:
[email protected] ~/aaa/arm/she/linux-3.12.6 $ arm-none-linux-gnueabi-gcc --version
arm-none-linux-gnueabi-gcc (Sourcery CodeBench Lite 2013.05-24) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

what am I doing wrong yet..

every idea appreciated






Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: sheevaplug update problems
« Reply #1 on: 03 January 2014, 03:06:36 pm »

From previous posts on the forum....
Quote
Globalscale privately forked both uboot and the kernel for the plug without getting an official machine ident,
they dreamt one up of their own. This means the machid (arcNumber) in Globalscale's uboot and kernel are invalid,
and only work with each other (this is what the plug was shipped with).

Quote
getting it wrong will cause the kernel to stop immediately

Quote
The mainline uboot command to set the machine id has since changed from 'arcNumber' to 'machid',
With an updated mainline uboot, to use the original Globalscale kernel from NAND you must specify
setenv machid XXXX

From your post....
Quote
Marvell>> bdinfo                                                               
arch_number = 0x00000831

U-Boot has been compiled for machine architecture id of 0x0831 by default (labelled as arch_number, a historical mistake).

Quote
My relevant u-boot-env:
arcNumber=2097
........
mainlineLinux=yes
These do nothing, as they are for older versions of U-Boot.

Quote
Loading Kernel Image ... OK                                                 
Using machid 0x692 from environment                                             
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
This report from U-Boot shows it is using machine architecture id of 0x0692, as set in the environment variable 'machid', overriding the machine architecture id compiled into U-Boot.

Ensure that the U-Boot environment variable 'machid' matches the machine architecture id of the kernel, as
Quote
getting it wrong will cause the kernel to stop immediately
Search this forum for more details, use the guides on this forum.



Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

elvis61

  • Newbie
  • *
  • Posts: 13
Re: sheevaplug update problems
« Reply #2 on: 04 January 2014, 08:34:57 am »

You are right. These are irrelevant

Marvell>> setenv mainlineLinux
Marvell>> setenv arcNumber
Marvell>> setenv machid
Marvell>> saveenv

> Ensure that the U-Boot environment variable 'machid' matches the machine architecture id of the kernel, as

i tought i done it with

setenv machid 692

because i got the following message if i don't define this env.variable

...
...
...
Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000831).

Available machine support:

ID (hex)        NAME
0000089b        LaCie d2 Network v2
0000089e        LaCie 5Big Network v2
0000089c        LaCie 2Big Network v2
00000b44        Marvell OpenRD Ultimate Board
00000939        Marvell OpenRD Client Board
00000915        Marvell OpenRD Base Board
00000691        Marvell RD-88F6192-NAS Development Board
00000692        Marvell RD-88F6281 Reference Board
00000b1e        HP t5325 Thin Client
0000085b        QNAP TS-119/TS-219
000009c6        QNAP TS-41x
ffffffff        Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.

Best regards
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: sheevaplug update problems
« Reply #3 on: 05 January 2014, 12:52:20 am »

Quote
setenv machid 692

Quote
Available machine support:

ID (hex)        NAME
0000089b        LaCie d2 Network v2
0000089e        LaCie 5Big Network v2
0000089c        LaCie 2Big Network v2
00000b44        Marvell OpenRD Ultimate Board
00000939        Marvell OpenRD Client Board
00000915        Marvell OpenRD Base Board
00000691        Marvell RD-88F6192-NAS Development Board
00000692        Marvell RD-88F6281 Reference Board
00000b1e        HP t5325 Thin Client
0000085b        QNAP TS-119/TS-219
000009c6        QNAP TS-41x
ffffffff        Marvell Kirkwood (Flattened Device Tree)

Is a 'RD-88F6281' kernel compatible with a SheevaPlug ?

I believe you need to use the last option with this kernel, that is
'Marvell Kirkwood (Flattened Device Tree)' don't forget that at boot time
you will need to pass the FDT complied from a 'dts' file for the SheevaPlug too.

Your version of U-Boot should support it, but you may possibly need to append
the FDT onto the kernel image to create a single boot image file.

I do not have (practical experience of) a SheevaPlug, you will have to RTFM unless someone else can help.
« Last Edit: 05 January 2014, 01:01:13 am by Confusticated »
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

elvis61

  • Newbie
  • *
  • Posts: 13
Re: sheevaplug update problems
« Reply #4 on: 05 January 2014, 10:31:58 am »

Thanks for response..

> you will need to pass the FDT complied from a 'dts' file for the SheevaPlug too.

i don't know how doing this

if i set only machid i have the same behavior

Marvell>> setenv machid ffffffff
Marvell>> saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0x60000 -- 100% complete.
Writing to NAND... OK
Marvell>> reset
resetting ...


U-Boot 2013.10 (Dec 29 2013 - 12:15:18)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0 [PRIME]
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Using egiga0 device
TFTP from server 192.168.178.21; our IP address is 192.168.178.26
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         ##########################
         5.8 MiB/s
done
Bytes transferred = 3241616 (317690 hex)
Using egiga0 device
TFTP from server 192.168.178.21; our IP address is 192.168.178.26
Filename 'uInitram'.
Load address: 0x8000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###
         6 MiB/s
done
Bytes transferred = 3851184 (3ac3b0 hex)
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-3.12.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3241552 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 08000000 ...
   Image Name:   Rootfs
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3851120 Bytes = 3.7 MiB
   Load Address: 08000000
   Entry Point:  08000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xffffffff from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Please share your knowhow...

best regards
Logged

elvis61

  • Newbie
  • *
  • Posts: 13
Re: sheevaplug update problems
« Reply #5 on: 20 January 2014, 08:18:45 pm »

i tried it with "Linux version 2.6.39.4" (because of i need no dts-files with this version) and have a stupid phenomenon.

Builroot:
  *** Linaro toolchains available for Cortex-A{5,7,8,9,15} and

     (1) Sourcery CodeBench ARM 2013.05
     (2) Sourcery CodeBench ARM 2012.03            
     (3) Sourcery CodeBench ARM 2011.09

i change between toolchains (1) and (3). If i compile first time with (1) it works. if i compile with (1) for the second time it doesn't work.

i go to toolchain (3) and have the same phenomenon. it is so to be crazy.

the precompiled version "http://www.xilka.com/sheeva/2.6/2.6.39/2.6.39.4/sheeva-2.6.39.4-uImage" works.

Is there a toolchain bug ??





« Last Edit: 20 January 2014, 08:20:29 pm by elvis61 »
Logged
Pages: [1]
 
 

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