New IT forum Follow us on Twitter
04 February 2012, 04:35:32 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EFIKA MX reviewed in Linux User & Developer issue 104
 
   Home   SHOP Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: U-Boot environment variables for Sheevaplug multi-boot version  (Read 13694 times)
truehl
Jr. Member
**
Posts: 58


« Reply #15 on: 07 June 2010, 06:16:34 pm »

Hi Marcus,
sorry I try to make it more clear.

I'm searching for the right uboot-nand-custom.txt file and uboot-mmc-custom.txt file to get a multi-boot plug, equal to which option I choose with runme.php (php rumeme.php nand or php runme.php mmc). I want to run the process twice, one time with the nand-option a the other with the mmc-option.

Thanks an greetings, Thomas
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #16 on: 07 June 2010, 07:43:15 pm »

If you choose to use the installer twice, it doesn't matter what environment variables you use the first time.

We only use the installer once, since the SD cards are prepared without using the installer. Therefore our installer parameter is aimed at NAND with this uboot-dual-custom.txt (I also have a slightly tweaked runme,php, but if you name this uboot-nand-custom.txt it would do the job):

Code:
#### Change ONLY in the following few lines

# Following for installation on SD card. If you want to boot from USB stick change it to /dev/sda1
# or /dev/mtdblock1 if you installed rootfs on the NAND inside the plug
bootargs_root ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs

# NAND flash partitions. If using kernel >= 2.6.30 then replace orion_nand with orion_mtd
# NewIT comment: If orion_mtd finds 3 partitions when preparing to copy filesystem,
# there will be no room for the filesystem and the flashing will fail.
# It seems that orion_nand is perhaps the correct parameter *always*:
# http://plugcomputer.org/plugforum/index.php?topic=1188.0
mtdpartitions mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)

# The following is an example MAC address. Change it according the MAC on the back side of the plug
ethaddr 00:50:43:01:xx:xx

#### DONT change the following.
# Automated process the sets arcNumer to 2097, reset, runs uImage and initrd from USB stick and set bootcmd to 'real_bootcmd' above
# Bootcmd to be used after all installation is done
# New IT commented out 2009-11-18 real_bootcmd setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000

bootargs_console console=ttyS0,115200
bootcmd run recover1
recover1 setenv mainlineLinux yes; setenv arcNumber 2097; 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

# New IT added 2009-11-18
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
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
real_bootcmd run bootcmd_mmc; run bootcmd_nand
Logged
truehl
Jr. Member
**
Posts: 58


« Reply #17 on: 10 June 2010, 09:37:15 am »

Hi Marcus,
I think you still got me wrong. I'm searching for a uboot-mmc-custom.txt file which does the following:
1. Burns the sd-card
2. Sets the u-boot environment to the multi-boot value.

I've edited the uboot-mmc-custom.txt file but I'm not shure it will work:

Code:
#### Change ONLY in the following few lines

# Following for installation on SD card. If you want to boot from USB stick change it to /dev/sda1
# or /dev/mtdblock1 if you installed rootfs on the NAND inside the plug
bootargs_root root=/dev/mmcblk0p2 rootdelay=5

# The following is an example MAC address. Change it according the MAC on the back side of the plug
ethaddr 00:50:43:01:xx:xx

#### DONT change the following.
# Automated process the sets arcNumer to 2097, reset, runs uImage and initrd from USB stick and set bootcmd to 'real_bootcmd' above
# Bootcmd to be used after all installation is done
real_bootcmd setenv bootargs $(bootargs_console) $(bootargs_root); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000

bootargs_console console=ttyS0,115200
bootcmd run recover1
recover1 setenv mainlineLinux yes; setenv arcNumber 2097; setenv bootcmd run recover2; saveenv; reset
recover2 run recover3; setenv bootcmd $(real_bootcmd); saveenv; setenv bootargs $(bootargs_console) root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=mmc; bootm 0x00800000 0x01100000
recover3 usb start; fatload usb 0 0x00800000 uImage; fatload usb 0 0x01100000 initrd

# New IT added 2009-11-18
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
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
real_bootcmd run bootcmd_mmc; run bootcmd_nand

Greetings,
Thomas
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #18 on: 10 June 2010, 05:00:47 pm »

Hi Marcus,
I think you still got me wrong. I'm searching for a uboot-mmc-custom.txt file which does the following:
1. Burns the sd-card
2. Sets the u-boot environment to the multi-boot value.

(2). is easy. Just execute it with the mmc parameter.

(1). is dependent upon the NAND having been modified. So you must execute with the nand parameter.

Unless you are going to figure a new set of environment variables for booting the original JFFS2 file system or SD card, you have to either run the installer twice (first mmc then nand), or run once and prepare the SD cards separately.
Logged
DesertDog
Newbie
*
Posts: 2


« Reply #19 on: 12 June 2010, 06:52:47 am »

Maybe a noob question, but I am absolutely beginner, and I was not be able to find an answer so far.
How to apply the uboot-custom.txt?
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #20 on: 12 June 2010, 01:43:21 pm »

Maybe a noob question, but I am absolutely beginner, and I was not be able to find an answer so far.
How to apply the uboot-custom.txt?

http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer
Logged
DesertDog
Newbie
*
Posts: 2


« Reply #21 on: 13 June 2010, 08:16:59 am »

But it doensn't seem to upload the content of the environment settings.
Also if I try to change it manually then saveenv and reset my changes are lost.  Huh
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #22 on: 13 June 2010, 01:34:30 pm »

But it doensn't seem to upload the content of the environment settings.
Also if I try to change it manually then saveenv and reset my changes are lost.  Huh

You aren't giving us anything to go on.

If you are struggling with the installer, please review the threads at the plugcomputer forum, and if you are still stuck, post either here (in a separate thread) or there describing what procedure you followed, and (in detail) what was the output.
Logged
MatteoBP
Newbie
*
Posts: 23


« Reply #23 on: 13 October 2010, 12:59:21 pm »

Hi. I'm a new user.

I bought the eSata Sheeva Multi and the SD card 4GB with Debian 6.0 (Squeeze), and this is the u-boot version that I had:
Code:
U-Boot 1.1.4 (Jul 14 2009 - 06:46:57) Marvell version: 3.4.16

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

Is it normal? I think it should be:
Code:
U-Boot 1.1.4 (Nov  4 2009 - 12:58:36) Marvell version: 3.4.23

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

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


« Reply #24 on: 13 October 2010, 04:58:37 pm »

We use a different version of U-Boot on the eSATA plugs. So yes, what you have is normal and OK.

The newer U-Boot will probably work, if you want to try it.
Logged
Pages: 1 [2]
  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!