U-Boot updated. new kernels >=3.2 ?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: U-Boot updated. new kernels >=3.2 ?

Postby pepedog » Wed Sep 05, 2012 2:02 pm

I think moonman spelt it out here
viewtopic.php?f=18&t=3355
Updated my u-boot just fine with that method
pepedog
Developer
 
Posts: 2205
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: U-Boot updated. new kernels >=3.2 ?

Postby ruidc » Wed Sep 05, 2012 7:34 pm

good link thx, will that work on a sheevaplug? i'm a coward, replabrobin i presume you're also using a sheevaplug, can you report back if you succeed or fail?
ruidc
 
Posts: 31
Joined: Wed Mar 07, 2012 10:32 pm
Location: Switzerland

Re: U-Boot updated. new kernels >=3.2 ?

Postby replabrobin » Wed Sep 05, 2012 7:58 pm

OK I used the latest debian u-boot.kwb from [url][/url] and am getting problems trying to boot from my SD card. This worked fine with the old pingto0 uboot.

I noticed a couple of changes in the way things worked. In the old mmcinit was parsed correctly as mmc init; now the space is required. The nand boot on my sheeva does work, but that is my rescue 2.6.36 kernel from more than a year ago.

I would like to get the SD boot to work. Here's what I am seeing


Code: Select all
Marvell>> mmc init
SDHC found. Card desciption is:
Manufacturer:       0x02, OEM "TM"
Product name:       "SD08G", revision 3.8
Serial number:      3221812274
Manufacturing date: 9/2008
CRC:                0x00, b0 = 0
mmc1 is available
Marvell>> ext2load mmc 0:1 0x800000 uImage
Loading file "uImage" from mmc device 0:1 (xxa1)
2856016 bytes read
Marvell>> bootm 0x00800000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.1.10-13-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2855952 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
Marvell>> version

U-Boot 2012.04.01 (Jun 01 2012 - 02:27:06)
Marvell-Sheevaplug - eSATA - SD/MMC
gcc (Debian 4.6.3-5) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Marvell>>


Of course it may be that I need to change the way that arguments are passed to the bootm command, but where is that documented. My bootargs looks like
Code: Select all
bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=5


my envirnment looks like
Code: Select all
Marvell>> printenv
CASset=min
MALLOC_len=1
arcNumber=2097
autoload=no
baudrate=115200
bootargs_console=console=ttyS0,115200
bootargs_end=:::DB88FXX81:eth0:none
bootargs_root=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
bootargs_root_mmc=root=/dev/mmcblk0p2 rootdelay=5
bootargs_root_nand=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
bootcmd=run bootcmd_mmc; run bootcmd_nand
bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc);mmc init;ext2load mmc 0:1 0x800000 uImage;bootm 0x00800000
bootcmd_nand=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root_nand); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
bootdelay=3
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
disL2Cache=no
disL2Prefetch=yes
disaMvPnp=no
enaAutoRecovery=yes
enaCpuStream=no
enaDCPref=yes
enaICPref=yes
enaMonExt=no
enaWrAllo=no
ethact=egiga0
ethaddr=YY:YY:YY:YY:YY:YY
ethmtu=1500
ethprime=egiga0
filesize=2B9450
image_name=uImage
ipaddr=192.168.0.9
loadaddr=0x02000000
loads_echo=0
mainlineLinux=yes
mtdpartitions=mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
nandEcc=1bit
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=RC
rcvrip=169.254.100.100
rootpath=/mnt/ARM_FS/
sata_dma_mode=yes
serverip=192.168.0.3
setL2CacheWT=yes
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 1805/131068 bytes
replabrobin
 
Posts: 79
Joined: Tue Nov 30, 2010 11:18 am

Re: U-Boot updated. new kernels >=3.2 ?

Postby replabrobin » Wed Sep 05, 2012 9:01 pm

replabrobin
 
Posts: 79
Joined: Tue Nov 30, 2010 11:18 am

Re: U-Boot updated. new kernels >=3.2 ?

Postby replabrobin » Wed Sep 05, 2012 9:58 pm

If I go back to the old pingtoo uboot then stuff works fine

Code: Select all
USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
SDHC found. Card desciption is:
Manufacturer:       0x02, OEM "TM"
Product name:       "SD08G", revision 3.8
Serial number:      3221812274
Manufacturing date: 9/2008
CRC:                0x00, b0 = 0

2856016 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-3.1.10-13-ARCH
   Created:      2012-08-20  15:46:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2855952 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

I don't want to try the http://forum.doozan.com uboot; that all seems pogo plug oriented.
replabrobin
 
Posts: 79
Joined: Tue Nov 30, 2010 11:18 am

Re: U-Boot updated. new kernels >=3.2 ?

Postby replabrobin » Thu Sep 06, 2012 1:25 pm

I tried compiling uboot from source and that seems fairly easy, but the default sheeva config doesn't have the CONFIG_CMD_MMC defines set up so although I can get a working u-boot it doesn't have the mmc subsystem commands. It seems that all the work of the plugcomputer forum members was just dropped somewhere along the way. Looking at those old patches makes my head spin and I have no real idea of which MMC related configs should be set up. Any info welcome.
replabrobin
 
Posts: 79
Joined: Tue Nov 30, 2010 11:18 am

Re: U-Boot updated. new kernels >=3.2 ?

Postby replabrobin » Sat Sep 08, 2012 12:48 pm

I looked at the patches that were in http://people.debian.org/~tbm/u-boot/2011.12-3/ and it lookes like the l2 cache fix is in there. So the SDHC card boot issue in the latest 2012.04.01-2 debian uboot may not be a problem as the 2011.12-3 u-boot.kwb works well in my sheevaplug.
replabrobin
 
Posts: 79
Joined: Tue Nov 30, 2010 11:18 am

Re: U-Boot updated. new kernels >=3.2 ?

Postby replabrobin » Sat Sep 08, 2012 1:41 pm

OK all's well after ubgrading uboot to http://people.debian.org/~tbm/u-boot/2011.12-3/sheevaplug/u-boot.kwb and upgrading to linux-kirkwood linux-headers-kirkwood after a reboot I see this

Code: Select all
robin@delilah ~:
$ uname -a
Linux delilah 3.5.2-1-ARCH #1 PREEMPT Sat Aug 18 02:51:21 UTC 2012 armv5tel GNU/Linux


so I think sheevaplug users can definitely use that u-boot. Thanks to all at archlinuxarm, plugcomputer & debian for making this stuff happen.
replabrobin
 
Posts: 79
Joined: Tue Nov 30, 2010 11:18 am

Re: U-Boot updated. new kernels >=3.2 ?

Postby ruidc » Sat Sep 08, 2012 6:19 pm

great stuff, i've upgraded but see it's blown away my settings and old settings don't seem to work.
although it boots from nand, doing the following, it just hangs at the end:

Code: Select all
Marvell>> setenv root /dev/mmcblk0p2
Marvell>> mmc init
SDHC found. Card desciption is:
Manufacturer:       0x03, OEM "SD"
Product name:       "SD04G", revision 8.0
Serial number:      153531738
Manufacturing date: 8/2010
CRC:                0x00, b0 = 0
mmc1 is available
Marvell>> ext2load mmc 0:1 0x800000 /uImage;
Loading file "/uImage" from mmc device 0:1 (xxa1)
2856016 bytes read
Marvell>> bootm 0x00800000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.1.10-13-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2855952 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.


can you print your environment?


mine (stock after writing from the kwb linked to):

Code: Select all
U-Boot 2011.12 (Mar 11 2012 - 18:59:46)
Marvell-Sheevaplug - eSATA - SD/MMC

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Marvell>> printenv
baudrate=115200
bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; ${x_bootcmd_usb}; ${x_bootcmd_sata}; bootm 0x6400000;
bootdelay=3
ethact=egiga0
ethaddr=00:50:43:01:c1:e6
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200 mtdparts=orion_nand:512k(uboot),4m@1m(kernel),507m@5m(rootfs) rw
x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs
x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000
x_bootcmd_sata=ide reset;
x_bootcmd_usb=usb start;

Environment size: 532/131068 bytes

ruidc
 
Posts: 31
Joined: Wed Mar 07, 2012 10:32 pm
Location: Switzerland

Re: U-Boot updated. new kernels >=3.2 ?

Postby ruidc » Sat Sep 08, 2012 10:57 pm

I got it working by mashing your environment from before with mine. Thanks for your detailed posts.
ruidc
 
Posts: 31
Joined: Wed Mar 07, 2012 10:32 pm
Location: Switzerland

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 1 guest