fw_printenv and fw_setenv October 31, 2017 09:52AM |
Registered: 6 years ago Posts: 337 |
Re: fw_printenv and fw_setenv October 31, 2017 12:17PM |
Registered: 7 years ago Posts: 310 |
Re: fw_printenv and fw_setenv October 31, 2017 04:24PM |
Registered: 6 years ago Posts: 337 |
and I'm not so I don't know if it applies...Quote
While in stock OS...
Re: fw_printenv and fw_setenv October 31, 2017 06:19PM |
Admin Registered: 13 years ago Posts: 18,580 |
and I'm not soQuote
While in stock OS...
Re: fw_printenv and fw_setenv November 11, 2017 05:04PM |
Registered: 6 years ago Posts: 337 |
cd /tmp wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh chmod +x install_uboot_mtd0.sh ./install_uboot_mtd0.sh
baudrate=115200 bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done; bootdelay=3 bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr}; bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr}; console=ttyS0 ethact=egiga0 fdt_addr=0x800000 fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi; loadaddr=0x810000 loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file} loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage} loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage} mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs) setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts} uimage=/boot/uImage zimage=/boot/zImage ethaddr=00:10:75:2E:AE:0F
Re: fw_printenv and fw_setenv November 11, 2017 07:01PM |
Admin Registered: 13 years ago Posts: 18,580 |
Re: fw_printenv and fw_setenv November 12, 2017 03:22AM |
Registered: 6 years ago Posts: 337 |
Re: fw_printenv and fw_setenv November 12, 2017 04:36AM |
Admin Registered: 13 years ago Posts: 18,580 |
ver
grep -a --null-data U-Boot /dev/mtd0ro
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
dtb_file=/boot/dts/kirkwood-goflexnet.dtb
cat /proc/mtdThe output will show the self explanatory names of all mtds.
Re: fw_printenv and fw_setenv November 12, 2017 10:41AM |
Registered: 6 years ago Posts: 337 |
> ver >>
> grep -a --null-data U-Boot /dev/mtd0ro >
Re: fw_printenv and fw_setenv November 12, 2017 04:42PM |
Admin Registered: 13 years ago Posts: 18,580 |
> > ver > >> >
> > grep -a --null-data U-Boot /dev/mtd0ro > >>