Quantcast
Channel: Linux Device Hacking - uBoot
Viewing all articles
Browse latest Browse all 902

Pogoplug V3 (Pro and Classic) - Sample u-boot Env's for uEnv.txt (2 replies)

$
0
0
******!!!!CURRENTLY BETA AND FOR SINGLE DEVICE ATTACHED BOOTING ONLY!!!!!********

With the release of the latest bodhi u-boot for Oxnas (uboot.2013.10-tld-4 u-Boot), those of us with Oxnas powered Pogoplugs now have the opportunity to use an alternative boot environment that is called from the new default uboot environment through the uenv_import function. With this new uenv import function, all you need to do is put a file in /boot named uEnv.txt. If you put a file name uEnv.txt in /boot, and provided the boot env's set in that file are valid, that will become your boot environment. This allows you to modify the boot environment without changing the firmware env's so that if you want to leave the stock firmware as is you can boot that by renaming uEnv.txt to something else or if you want to change the device you boot from you simply just modify uEnv.txt to say change boot from IDE as opposed to USB.

I have devised a set of boot env's that I want to post as a file as a sample for anyone else to use. You'll notice the boot env's are set in this file slightly differently than from the fw_setenv command in that you use an equals sign and you don't need to have single quote characters in front and in back of the environment variable you are trying to set. My suggested boot env's are below and I would ask my fellow forum members to review them and comment before I attach it as a file. I just want to make sure I don't have any syntax errors or have left anything out so thanks for your eyes in advance:

Suggested uEnv.txt content:

autoload=no
baudrate=115200
bootdelay=3
rootdelay=10
rootfstype=ext3
console=console=ttyS0,115200n8
usb_root=/dev/sda1 
ide_root=/dev/sda1
ethact=mii0
ethaddr=>>>>>>>>>>>>>>>NOTHING HERE YET<<<<<<<<<<<<<<<<<<
serverip=>>>>>>>>>>>>>>>NOTHING HERE YET<<<<<<<<<<<<<<<<<<
ipaddr=>>>>>>>>>>>>>>>NOTHING HERE YET<<<<<<<<<<<<<<<<<<<
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stdin=serial
stdout=serial
stderr=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
dtb_addr=0x62c00000
boot_device=0:1
bootcmd=run dt_bootcmd_usb
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_bootcmd_ide=ide reset; run dt_ide_bootcmd; ide reset
dt_ide_bootcmd=run ide_set_bootargs; run dt_ide_boot
ide_set_bootargs=setenv bootargs console=$console root=$ide_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
dt_ide_boot=run dt_ide_load_uimage; run dt_ide_load_initrd; run dt_ide_load_dtb; run dt_bootm
dt_ide_load_uimage=ext2load ide $boot_device $uimage_addr /boot/uImage
dt_ide_load_initrd=ext2load ide $boot_device $uinitrd_addr /boot/uInitrd
dt_ide_load_dtb=ext2load ide $boot_device $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
dt_usb_boot=run dt_usb_load_uimage; run dt_usb_load_initrd; run dt_usb_load_dtb; run dt_bootm
dt_usb_load_uimage=ext2load usb $boot_device $uimage_addr /boot/uImage
dt_usb_load_initrd=ext2load usb $boot_device $uinitrd_addr /boot/uInitrd
dt_usb_load_dtb=ext2load usb $boot_device $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb

Viewing all articles
Browse latest Browse all 902

Trending Articles