New IT forum
27 June 2022, 05:44:32 pm *
Welcome, %1$s. Please login or register.

: MiraBox now in stock.
 
Pages: [1]

Author Topic: Dreamplug - uboot update  (Read 14128 times)

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Dreamplug - uboot update
« on: 19 July 2011, 09:40:09 am »


It may be very tempting to reflash the uboot on the Dreamplug but we strongly recommend you do NOT try this. Doing so will void your Warranty and there is NO recovery procedure at present.

NewIT Technical

Logged
NewITJames

Rzkphy

  • Newbie
  • *
  • Posts: 6
Re: Dreamplug - uboot update
« Reply #1 on: 19 July 2011, 11:42:34 am »

Is it possible to reflash the uboot of the dreamplug to the factory default?
I have somehow set an environment variable which I cannot remove by

setenv [variable]

It does not affect the boot process - anymore - since I use another variable instead but it would be nice to see that variable removed...
Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: Dreamplug - uboot update
« Reply #2 on: 19 July 2011, 11:48:35 am »

Hi Rzkphy,

setenv [variable] should get rid of unwanted variables.

Can you post your uboot variables please.

NewITJames
Logged
NewITJames

Rzkphy

  • Newbie
  • *
  • Posts: 6
Re: Dreamplug - uboot update
« Reply #3 on: 19 July 2011, 05:27:51 pm »

Code: [Select]
Marvell>> printenv
bootdelay=3
baudrate=115200
x_bootcmd_ethernet=ping 192.168.2.1
x_bootargs=console=ttyS0,115200
ethact=egiga0
ethaddr=F0:AD:4E:00:7F:85
eth1addr=F0:AD:4E:00:7F:86
x_bootcmd_usb=usb start; fatload 1 1000000 script; source 1000000;
bootcmd=usb start; fatload usb 1 100000 script; source 100000; ${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;
filesize=BA
x_bootcmd_kernel=fatload usb 1 0x6400000 uImage
x_bootargs_root=root=/dev/sdb2 rootdelay=10
stdin=serial
stdout=serial
stderr=serial

Environment size: 530/4092 bytes

The problem appears in variable x_bootcmd_usb

The funny thing is that I also can have a new variable with the same name:

Code: [Select]
Marvell>> setenv x_bootcmd_usb funny things happen
Marvell>> printenv
bootdelay=3
baudrate=115200
x_bootcmd_ethernet=ping 192.168.2.1
x_bootargs=console=ttyS0,115200
ethact=egiga0
ethaddr=F0:AD:4E:00:7F:85
eth1addr=F0:AD:4E:00:7F:86
x_bootcmd_usb=usb start; fatload 1 1000000 script; source 1000000;
bootcmd=usb start; fatload usb 1 100000 script; source 100000; ${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;
filesize=BA
x_bootcmd_kernel=fatload usb 1 0x6400000 uImage
x_bootargs_root=root=/dev/sdb2 rootdelay=10
stdin=serial
stdout=serial
stderr=serial
x_bootcmd_usb=funny things happen

Environment size: 564/4092 bytes

Unfortunately I do not remember the exact command I used to create that first variable as it seems that the name is somehow different from what I expect it to be...

Thank you for your help
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Dreamplug - uboot update
« Reply #4 on: 20 July 2011, 05:57:14 pm »

This was a known bug in older versions of uboot
You could try clearing the memory space used by the environment (wiping everything),
or reflashing just the environment, BUT in either case you had better be sure you get it right !!!
Safer just to use 'y_bootargs_usb' instead  ;)
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

Rzkphy

  • Newbie
  • *
  • Posts: 6
Re: Dreamplug - uboot update
« Reply #5 on: 21 July 2011, 08:13:39 am »

Okay, that was my second guess but I didn't check for bugs of uboot. Next time I will do better ;-)

I guess wiping the memory used by the environment would involve some kind of memload operation within uboot?! And I should be quite sure about the maths here...

Right know I am just avoiding the variable anyway so I think it should be fine.


Thank you and I hope that won't happen with the real bootcmd variable ?! ;-)
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Dreamplug - uboot update
« Reply #6 on: 07 October 2011, 11:07:24 pm »

Er..Pretty Pretty Please, I need a DreamPlug u-boot.img.

Two obvious ways I can think of to get at it:
Build a modern kernel with the Marvell SPI\Flash support and cat it from the /dev/???.
Write a little tcl and dump it to file with OpenOCD (after reading it into RAM at the u-boot prompt).

Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

Fletch

  • Guest
Re: Dreamplug - uboot update
« Reply #7 on: 07 October 2011, 11:32:52 pm »

Er..Pretty Pretty Please, I need a DreamPlug u-boot.img.

You can get the one from the dream_burn_spi on the googlecode site.  Not sure what version it is.
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Dreamplug - uboot update
« Reply #8 on: 08 October 2011, 07:10:50 am »

Thanks Fletch,
Hexdump wil tell me everything I need to know :)

EDIT: All I can find there are kernel\rootfs images, still need a u-boot.img :(
EDIT: Found it, it is in the sheevaplug tree (but the Marvell prompt gives the game away)!
« Last Edit: 08 October 2011, 12:36:18 pm by Confusticated »
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!