Difference between revisions of "Kurobox Pro u-boot environment variable settings"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m (u-boot environment variable settings)
m (Boot settings when uImage(/dev/sda1), rootfs(/dev/sda2))
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Articles|KuroboxPro}}
+
{{Articles|KuroboxPro|UBoot}}
 +
 
 +
==CHANGING U-BOOT SETTINGS==
 +
use "setenv ... " as shown below, check with "printenv", then save to flash with "saveenv".
  
 
==FLASH BOOT==
 
==FLASH BOOT==
Line 23: Line 26:
 
setenv uImage_block 0  
 
setenv uImage_block 0  
 
setenv uImage_offset 0x00020000  
 
setenv uImage_offset 0x00020000  
setenv bootcmd ‘nboot $(default_kernel_addr) $(uImage_block) $(uImage_offset); bootm $(default_kernel_addr)
+
setenv bootcmd 'nboot $(default_kernel_addr) $(uImage_block) $(uImage_offset); bootm $(default_kernel_addr)'
 
</pre>
 
</pre>
  
 
+
===[http://kuroutoshikou.com/products/kuro_box_pro/u-boot-initienv.txt Marvell>> environment at the time of Flash starting]===
==Uboot Settings==
+
===[http://karlo.homedns.org/mt/kuroboxpro/printenv.log Marvell>> printenv At the time of Flash starting]===
+
 
<pre>
 
<pre>
 
baudrate=115200
 
baudrate=115200
Line 35: Line 36:
 
serverip=192.168.11.1
 
serverip=192.168.11.1
 
rootpath=/nfs/arm
 
rootpath=/nfs/arm
 +
stdin=serial
 +
stdout=serial
 +
stderr=serial
 
cpuName=926
 
cpuName=926
 
CASset=min
 
CASset=min
 +
enaMonExt=no
 +
enaFlashBuf=yes
 +
enaCpuStream=no
 
MALLOC_len=4
 
MALLOC_len=4
 +
ethprime=egiga0
 
bootargs_end=:::DB88FXX81:eth0:none
 
bootargs_end=:::DB88FXX81:eth0:none
ethact=egiga0
 
ethaddr=00:16:01:A4:C2:4A
 
 
buffalo_ver=BOOTVER=1.091
 
buffalo_ver=BOOTVER=1.091
build_time=15:59:38
+
build_time=18:10:02
 
initrd=initrd.buffalo
 
initrd=initrd.buffalo
 
kernel=uImage.buffalo
 
kernel=uImage.buffalo
Line 51: Line 57:
 
default_kernel_addr=0x00100000
 
default_kernel_addr=0x00100000
 
default_initrd_addr=0x02000000
 
default_initrd_addr=0x02000000
def_tftp=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) rw initrd=0x02000040,20M panic=5 $(buffalo_ver); bootm $(default_kernel_addr) $(default_initrd_addr)
+
bootcmd=nboot $(default_kernel_addr) 0 $(nand_uImage_offset) ;setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver); bootm $(default_kernel_addr)
 +
def_tftp=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) rw initrd=0x02000040,20M panic=5 $(buffalo_ver); bootm $(default_kernel_addr) $(default_initrd_addr)
 
nand_boot=yes
 
nand_boot=yes
stdin=serial
 
stdout=serial
 
stderr=serial
 
enaMonExt=no
 
enaFlashBuf=yes
 
enaCpuStream=no
 
ethprime=egiga0
 
 
bootdelay=3
 
bootdelay=3
 
disaMvPnp=no
 
disaMvPnp=no
Line 65: Line 65:
 
usb0Mode=host
 
usb0Mode=host
 
usb1Mode=host
 
usb1Mode=host
force_tftp=1
+
ethact=egiga0
bootcmd=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root)  rw initrd=0x02000040,20M panic=5 $(buffalo_ver); bootm $(default_kernel_addr) $(default_initrd_addr)
+
ethaddr=XX:XX:XX:XX:XX:XX</pre>
 
+
Environment size: 1192/4092 bytes
+
</pre>
+
  
 
==HARD DRIVE BOOT==
 
==HARD DRIVE BOOT==
Line 93: Line 90:
 
setenv uImage block 0  
 
setenv uImage block 0  
 
setenv uImage_offset 0x00020000  
 
setenv uImage_offset 0x00020000  
setenv bootcmd ‘nboot $(default_kernel_addr) $(uImage_block) $(uImage_offset); bootm $(default_kernel_addr)
+
setenv bootcmd 'nboot $(default_kernel_addr) $(uImage_block) $(uImage_offset); bootm $(default_kernel_addr)'
 
</pre>
 
</pre>
  
Line 107: Line 104:
 
|-
 
|-
 
||Notes ||  
 
||Notes ||  
* /dev/sdal is formatted in ext2, and uImage.buffalo is stored.  
+
* /dev/sda1 is formatted in ext2, and uImage.buffalo is stored.  
 
|}
 
|}
 
====u-boot environment settings====
 
====u-boot environment settings====
Line 116: Line 113:
 
setenv bootargs_root root=/dev/sda2 rw  
 
setenv bootargs_root root=/dev/sda2 rw  
 
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver)  
 
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver)  
setenv bootcmd ‘ext2load ide 0:1 $(default_kernel_addr)/$(kernel); bootm $(default_kernel_addr)
+
setenv bootcmd 'ext2load ide 0:1 $(default_kernel_addr)/$(kernel); bootm $(default_kernel_addr)'
 
</pre>
 
</pre>
 +
 +
===[http://karlo.homedns.org/mt/kuroboxpro/printenv2.log Marvell>> printenv At the time of HDD starting]===
 +
<pre>
 +
baudrate=115200
 +
loads_echo=0
 +
ipaddr=192.168.11.150
 +
serverip=192.168.11.1
 +
rootpath=/nfs/arm
 +
cpuName=926
 +
CASset=min
 +
MALLOC_len=4
 +
bootargs_end=:::DB88FXX81:eth0:none
 +
ethact=egiga0
 +
ethaddr=00:16:01:A4:C2:4A
 +
buffalo_ver=BOOTVER=1.091
 +
build_time=15:59:38
 +
initrd=initrd.buffalo
 +
kernel=uImage.buffalo
 +
bootargs_base=console=ttyS0,115200
 +
bootargs_root=root=/dev/sda2 rw panic=5
 +
bootargs=console=ttyS0,115200 root=/dev/sda2 rw panic=5 BOOTVER=1.09
 +
nand_uImage_offset=20000
 +
default_kernel_addr=0x00100000
 +
default_initrd_addr=0x02000000
 +
def_tftp=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root)  rw initrd=0x02000040,20M panic=5 $(buffalo_ver); bootm $(default_kernel_addr) $(default_initrd_addr)
 +
nand_boot=no
 +
stdin=serial
 +
stdout=serial
 +
stderr=serial
 +
enaMonExt=no
 +
enaFlashBuf=yes
 +
enaCpuStream=no
 +
ethprime=egiga0
 +
bootdelay=3
 +
disaMvPnp=no
 +
overEthAddr=no
 +
usb0Mode=host
 +
usb1Mode=host
 +
force_tftp=1
 +
bootcmd=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root)  rw initrd=0x02000040,20M panic=5 $(buffalo_ver); bootm $(default_kernel_addr) $(default_initrd_addr)
 +
 +
Environment size: 1197/4092 bytes
 +
 +
</pre>
 +
  
 
==TFTP BOOT==
 
==TFTP BOOT==
Line 147: Line 189:
 
setenv serverip 192.168.11.100  
 
setenv serverip 192.168.11.100  
 
setenv ipaddr 192.168.11.150  
 
setenv ipaddr 192.168.11.150  
setenv bootcmd ‘tftp $(default_kernel_addr) $(kernel); bootm $(default_kernel_addr)
+
setenv bootcmd 'tftp $(default_kernel_addr) $(kernel); bootm $(default_kernel_addr)'
 
</pre>
 
</pre>
  
Line 176: Line 218:
 
setenv default_initrd_addr 0x02000000  
 
setenv default_initrd_addr 0x02000000  
 
setenv bootargs_base console=ttyS0,115200  
 
setenv bootargs_base console=ttyS0,115200  
setenv bootargs_root root=/dev/mtdblock2 rw  
+
setenv bootargs_root root=/dev/ram0 rw  
 
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver)  
 
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver)  
 
setenv serverip 192.168.11.100  
 
setenv serverip 192.168.11.100  
 
setenv ipaddr 192.168.11.150  
 
setenv ipaddr 192.168.11.150  
setenv bootcmd ‘tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); bootm$(default_kernel_addr) $(default_initrd_addr)
+
setenv bootcmd 'tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); bootm $(default_kernel_addr) $(default_initrd_addr)'
 
</pre>
 
</pre>

Latest revision as of 14:11, 21 May 2008


Contents

CHANGING U-BOOT SETTINGS

use "setenv ... " as shown below, check with "printenv", then save to flash with "saveenv".

FLASH BOOT

Boot settings when uImage(nand /dev/mtdblock1), rootfs(nand /dev/mtdblock2)

uImage /dev/mtdblock1 (0x00020000~0x00400000)

4MB arrangement excluding head 128KB

initrd ----- (Not use)
rootfs /dev/mtdblock2

u-boot environment variable settings

setenv default_kernel_addr 0x00100000 
setenv bootargs_base console=ttyS0,115200 
setenv bootargs_root root=/dev/mtdblock2 rw 
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) 
setenv uImage_block 0 
setenv uImage_offset 0x00020000 
setenv bootcmd 'nboot $(default_kernel_addr) $(uImage_block) $(uImage_offset); bootm $(default_kernel_addr)'

Marvell>> environment at the time of Flash starting

baudrate=115200
loads_echo=0
ipaddr=192.168.11.150
serverip=192.168.11.1
rootpath=/nfs/arm
stdin=serial
stdout=serial
stderr=serial
cpuName=926
CASset=min
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
MALLOC_len=4
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
buffalo_ver=BOOTVER=1.091
build_time=18:10:02
initrd=initrd.buffalo
kernel=uImage.buffalo
bootargs_base=console=ttyS0,115200
bootargs_root=root=/dev/mtdblock2 rw panic=5
bootargs=$(bootargs_base) $(bootargs_root) $(buffalo_ver)
nand_uImage_offset=20000
default_kernel_addr=0x00100000
default_initrd_addr=0x02000000
bootcmd=nboot $(default_kernel_addr) 0 $(nand_uImage_offset) ;setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver); bootm $(default_kernel_addr)
def_tftp=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) rw initrd=0x02000040,20M panic=5 $(buffalo_ver); bootm $(default_kernel_addr) $(default_initrd_addr)
nand_boot=yes
bootdelay=3
disaMvPnp=no
overEthAddr=no
usb0Mode=host
usb1Mode=host
ethact=egiga0
ethaddr=XX:XX:XX:XX:XX:XX

HARD DRIVE BOOT

Boot settings when uImage(nand /dev/mtdblock1), rootfs(/dev/sda2)

uImage /dev/mtdblock1 (0x00020000~0x00400000)

4MB arrangement excluding head 128KB

initrd -----(Not use)
rootfs /dev/sda2

u-boot environment settings

setenv default_kernel_addr 0x00100000 
setenv bootargs_base console=ttyS0,115200 
setenv bootargs_root root=/dev/sda2 rw 
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) 
setenv uImage block 0 
setenv uImage_offset 0x00020000 
setenv bootcmd 'nboot $(default_kernel_addr) $(uImage_block) $(uImage_offset); bootm $(default_kernel_addr)'

Boot settings when uImage(/dev/sda1), rootfs(/dev/sda2)

uImage /dev/sda1
initrd -----(Not use)
rootfs /dev/sda2
Notes
  • /dev/sda1 is formatted in ext2, and uImage.buffalo is stored.

u-boot environment settings

setenv default_kernel_addr 0x00100000 
setenv bootargs_base console=ttyS0,115200 
setenv bootargs_root root=/dev/sda2 rw 
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) 
setenv bootcmd 'ext2load ide 0:1 $(default_kernel_addr)/$(kernel); bootm $(default_kernel_addr)'

Marvell>> printenv At the time of HDD starting

baudrate=115200
loads_echo=0
ipaddr=192.168.11.150
serverip=192.168.11.1
rootpath=/nfs/arm
cpuName=926
CASset=min
MALLOC_len=4
bootargs_end=:::DB88FXX81:eth0:none
ethact=egiga0
ethaddr=00:16:01:A4:C2:4A
buffalo_ver=BOOTVER=1.091
build_time=15:59:38
initrd=initrd.buffalo
kernel=uImage.buffalo
bootargs_base=console=ttyS0,115200
bootargs_root=root=/dev/sda2 rw panic=5
bootargs=console=ttyS0,115200 root=/dev/sda2 rw panic=5 BOOTVER=1.09
nand_uImage_offset=20000
default_kernel_addr=0x00100000
default_initrd_addr=0x02000000
def_tftp=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root)  rw initrd=0x02000040,20M panic=5 $(buffalo_ver); bootm $(default_kernel_addr) $(default_initrd_addr)
nand_boot=no
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
ethprime=egiga0
bootdelay=3
disaMvPnp=no
overEthAddr=no
usb0Mode=host
usb1Mode=host
force_tftp=1
bootcmd=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root)  rw initrd=0x02000040,20M panic=5 $(buffalo_ver); bootm $(default_kernel_addr) $(default_initrd_addr)

Environment size: 1197/4092 bytes


TFTP BOOT

Boot settings when uImage(tftp load), rootfs(nand /dev/mtdblock2)

uImage Load from tftp
initrd -----(Not use)
rootfs /dev/mtdblock2
tftpserver (e.g.) 192.168.11.100
KUROBOX-PRO (e.g.) 192.168.11.150
Notes
  • uImage.buffalo exists in the tftp root directory of tftpserver.

u-boot environment variable settings

setenv default_kernel_addr 0x00100000 
setenv bootargs_base console=ttyS0,115200 
setenv bootargs_root root=/dev/mtdblock2 rw 
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) 
setenv serverip 192.168.11.100 
setenv ipaddr 192.168.11.150 
setenv bootcmd 'tftp $(default_kernel_addr) $(kernel); bootm $(default_kernel_addr)'

Boot settings when uImage(tftp load), initrd(tftp load)

uImage Load from tftp
initrd Load from tftp
rootfs Exists in initrd
tftpserver (e.g.) 192.168.11.100
KUROBOX-PRO (e.g.) 192.168.11.150
Notes
  • uImage.buffalo and initrd.buffalo exist in the tftp root directory of tftpserver.
  • rootfs exists in initrd.
  • After expanding rootfs in initrd, it is within 32MB.

u-boot environment variable settings

setenv default_kernel_addr 0x00100000 
setenv default_initrd_addr 0x02000000 
setenv bootargs_base console=ttyS0,115200 
setenv bootargs_root root=/dev/ram0 rw 
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) 
setenv serverip 192.168.11.100 
setenv ipaddr 192.168.11.150 
setenv bootcmd 'tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); bootm $(default_kernel_addr) $(default_initrd_addr)'